Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light") translateModel(Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001054/0.001054, allocations: 107.3 kB / 16.42 MB, free: 6.469 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00112/0.00112, allocations: 192.3 kB / 17.36 MB, free: 5.707 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.151/1.151, allocations: 205.1 MB / 223.2 MB, free: 12.24 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.205/1.205, allocations: 251.7 MB / 0.51 GB, free: 388 kB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.616e-05/1.616e-05, allocations: 2.281 kB / 0.7263 GB, free: 4.77 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light): time 0.002001/0.002026, allocations: 1.529 MB / 0.7278 GB, free: 3.223 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.001206/0.003243, allocations: 0.8082 MB / 0.7286 GB, free: 2.406 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.858e-05/0.003291, allocations: 0 / 0.7286 GB, free: 2.406 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 2.324e-05/0.00332, allocations: 3.938 kB / 0.7286 GB, free: 2.402 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 7.152e-05/0.003396, allocations: 19.8 kB / 0.7286 GB, free: 2.383 MB / 0.5606 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Math/Random.mo:127:7-213:23:writable] Warning: Pure function 'Modelica.Math.Random.Generators.Xorshift64star.initialState' contains a call to impure function 'Modelica.Math.Random.Generators.Xorshift64star.random'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Math/Random.mo:851:5-931:39:writable] Warning: Pure function 'Modelica.Math.Random.Utilities.initialStateWithXorshift64star' contains a call to impure function 'Modelica.Math.Random.Generators.Xorshift64star.initialState'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Math/Random.mo:499:7-563:23:writable] Warning: Pure function 'Modelica.Math.Random.Generators.Xorshift1024star.initialState' contains a call to impure function 'Modelica.Math.Random.Utilities.initialStateWithXorshift64star'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/Occupants/BaseClasses/binaryVariableGeneration.mo:2:1-32:29:writable] Warning: Pure function 'Buildings.Occupants.BaseClasses.binaryVariableGeneration' contains a call to impure function 'Modelica.Math.Random.Generators.Xorshift1024star.initialState'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/Occupants/BaseClasses/binaryVariableGeneration.mo:11:3-11:96:writable] Warning: localSeed was used before it was defined (given a value). Additional such uses may exist for the variable, but some messages were suppressed. Notification: Performance of NFTyping.typeClassSections: time 0.0004333/0.003843, allocations: 123.6 kB / 0.7288 GB, free: 2.262 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.0001284/0.00398, allocations: 119.6 kB / 0.7289 GB, free: 2.145 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 7.507e-05/0.004062, allocations: 8 kB / 0.7289 GB, free: 2.137 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 8.138e-05/0.004149, allocations: 47.91 kB / 0.7289 GB, free: 2.09 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 5.857e-05/0.004215, allocations: 43.81 kB / 0.729 GB, free: 2.047 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 1.675e-05/0.004237, allocations: 8 kB / 0.729 GB, free: 2.039 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001558/0.004398, allocations: 99.78 kB / 0.7291 GB, free: 1.941 MB / 0.5606 GB Notification: Performance of combineBinaries: time 9.872e-05/0.004505, allocations: 134.6 kB / 0.7292 GB, free: 1.809 MB / 0.5606 GB Notification: Performance of replaceArrayConstructors: time 7.847e-05/0.004589, allocations: 82.86 kB / 0.7293 GB, free: 1.727 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 2.175e-05/0.004617, allocations: 15.94 kB / 0.7293 GB, free: 1.711 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.386e-05/0.004635, allocations: 7.984 kB / 0.7293 GB, free: 1.703 MB / 0.5606 GB Error: Internal error NBackendDAE.lowerWhenBranchStatement for if lig.sampleTrigger then if lig.occ then if not pre(lig.on) then lig.on = Buildings.Occupants.BaseClasses.binaryVariableGeneration(lig.pInter, integer(lig.curSeed)); elseif true then lig.on = true; end if; elseif true then lig.on = false; end if; elseif true then lig.on = Buildings.Occupants.BaseClasses.binaryVariableGeneration(lig.pArriv, integer(lig.curSeed)); end if