Arduino MKR 1000 upload problem

We’re having some problems with uploading the following code:

 #include <Servo.h>

 
Servo servo_test;         
                

int fotosenzor = 1;  
int jacina = 0;                            
int hrana = 0;
int angle = 0;
                               
void setup() {                            
    Serial.begin(9600);                  
     SerialUSB.begin(4800);

  pinMode(fotosenzor, INPUT);
  servo_test.attach(9);    
}
void loop() {
  jacina = digitalRead(fotosenzor);    
  Serial.print(jacina,DEC);       
  Serial.print('\n'); 
 if (jacina > 150){                  
    hrana = true;

 }
 if (jacina < 150){
        hrana = false;
        
     }
 

 if (hrana == true){ 
  for(angle = 0; angle < 90; angle += 5)  
  {                                  
    servo_test.write(angle);
    delay(15);                       
    } 
 

  
  for(angle = 90; angle>=1; angle-=5)     
  {                                
    servo_test.write(angle);
    delay(5);                       
  } 
  while (jacina < 150){
    delay (1);
  }
 }
}

This is the error message we get:

./opt/arduino-builder/arduino-builder -compile -core-api-version 10611 -hardware opt/arduino-builder/hardware -hardware ./opt/cores -tools opt/arduino-builder/tools -tools ./opt/tools -built-in-libraries opt/libraries/latest -logger humantags -fqbn arduino:samd:mkr1000 -build-cache /tmp -build-path /tmp/767325444/build -verbose -prefs runtime.tools.arm-none-eabi-gcc.path=./opt/tools/arm-none-eabi-gcc/4.8.3-2014q1 -prefs runtime.tools.bossac.path=./opt/tools/bossac/1.7.0 -prefs runtime.tools.openocd.path=./opt/tools/openocd/0.9.0-arduino6-static -prefs runtime.tools.CMSIS.path=./opt/tools/CMSIS/4.5.0 -prefs runtime.tools.CMSIS-Atmel.path=./opt/tools/CMSIS-Atmel/1.1.0 -prefs runtime.tools.arduinoOTA.path=./opt/tools/arduinoOTA/1.2.0 -libraries /tmp/767325444/custom -libraries /tmp/767325444/pinned /tmp/767325444/sketch_apr17a_copy1
Sketch uses 11584 bytes (4%) of program storage space. Maximum is 262144 bytes.
Programming with: Serial
Restarting in bootloader mode
Get port list before reset
[COM7]
Touching port COM7 at 1200bps
Set DTR off
Flashing with command:C:/Users/Učenik/.arduino-create/arduino/bossac/1.7.0/bossac.exe -i -d --port=COM7 -U true -i -e -w -v C:/Users/Učenik/AppData/Local/Temp/arduino-create-agent884415996/sketch_apr17a_copy1.bin -R
Set binary mode
No such file or directory
readWord(addr=0)=0x20007ffc
readWord(addr=0xe000ed00)=0x410cc601
readWord(addr=0x41002018)=0x10010305
version()=v2.0 [Arduino:XYZ] Dec 20 2016 15:36:43
chipId=0x10010005
Connected at 921600 baud
readWord(addr=0)=0x20007ffc
readWord(addr=0xe000ed00)=0x410cc601
readWord(addr=0x41002018)=0x10010305
Atmel SMART device 0x10010005 found
write(addr=0x20004000,size=0x34)
writeWord(addr=0x20004030,value=0x10)
writeWord(addr=0x20004020,value=0x20008000)
Device : ATSAMD21G18A
readWord(addr=0)=0x20007ffc
readWord(addr=0xe000ed00)=0x410cc601
readWord(addr=0x41002018)=0x10010305
Chip ID : 10010005
version()=v2.0 [Arduino:XYZ] Dec 20 2016 15:36:43
Version : v2.0 [Arduino:XYZ] Dec 20 2016 15:36:43
Address : 8192
Pages : 3968
Page Size : 64 bytes
Total Size : 248KB
Planes : 1
Lock Regions : 16
Locked : readWord(addr=0x41004020)=0xffff
readWord(addr=0x41004020)=0xffff
readWord(addr=0x41004020)=0xffff
readWord(addr=0x41004020)=0xffff
readWord(addr=0x41004020)=0xffff
readWord(addr=0x41004020)=0xffff
readWord(addr=0x41004020)=0xffff
readWord(addr=0x41004020)=0xffff
readWord(addr=0x41004020)=0xffff
readWord(addr=0x41004020)=0xffff
readWord(addr=0x41004020)=0xffff
readWord(addr=0x41004020)=0xffff
readWord(addr=0x41004020)=0xffff
readWord(addr=0x41004020)=0xffff
readWord(addr=0x41004020)=0xffff
readWord(addr=0x41004020)=0xffff
none
readWord(addr=0x41004018)=0
Security : false
Boot Flash : true
readWord(addr=0x40000834)=0x7000a
BOD : true
readWord(addr=0x40000834)=0x7000a
BOR : true
Arduino : FAST_CHIP_ERASE
Arduino : FAST_MULTI_PAGE_WRITE
Arduino : CAN_CHECKSUM_MEMORY_BUFFER
Erase flash
chipErase(addr=0x2000)
done in 0.823 seconds

pls reply