Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Occupants.Office.Blinds.Validation.Zhang2012BlindsSolarAltitude.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 8.1.4-maint.8.1.x/package.mo", uses=false) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.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.Blinds.Validation.Zhang2012BlindsSolarAltitude,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Occupants.Office.Blinds.Validation.Zhang2012BlindsSolarAltitude") translateModel(Buildings.Occupants.Office.Blinds.Validation.Zhang2012BlindsSolarAltitude,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Occupants.Office.Blinds.Validation.Zhang2012BlindsSolarAltitude") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00113/0.00113, allocations: 108.4 kB / 16.38 MB, free: 6.387 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.001084/0.001084, allocations: 195.6 kB / 17.32 MB, free: 5.766 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.178/1.178, allocations: 205.1 MB / 223.2 MB, free: 12.25 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.544/1.544, allocations: 292.3 MB / 0.5496 GB, free: 17.51 MB / 462.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.151e-05/2.166e-05, allocations: 2.281 kB / 0.6729 GB, free: 5.945 MB / 0.545 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Blinds.Validation.Zhang2012BlindsSolarAltitude): time 0.002381/0.002415, allocations: 1.504 MB / 0.6743 GB, free: 4.422 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.001181/0.003609, allocations: 0.7955 MB / 0.6751 GB, free: 3.617 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.543e-05/0.003655, allocations: 0 / 0.6751 GB, free: 3.617 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 2.634e-05/0.003688, allocations: 7.875 kB / 0.6751 GB, free: 3.609 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 5.812e-05/0.003751, allocations: 11.88 kB / 0.6751 GB, free: 3.598 MB / 0.545 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 8.1.4-maint.8.1.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 8.1.4-maint.8.1.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.0004891/0.004254, allocations: 139.5 kB / 0.6753 GB, free: 3.461 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.0001115/0.004374, allocations: 91.81 kB / 0.6753 GB, free: 3.371 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 9.027e-05/0.00447, allocations: 19.78 kB / 0.6754 GB, free: 3.352 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 7.923e-05/0.004557, allocations: 47.86 kB / 0.6754 GB, free: 3.305 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 5.995e-05/0.004624, allocations: 47.81 kB / 0.6754 GB, free: 3.258 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 1.929e-05/0.004649, allocations: 8 kB / 0.6755 GB, free: 3.25 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001603/0.004814, allocations: 95.84 kB / 0.6755 GB, free: 3.156 MB / 0.545 GB Notification: Performance of combineBinaries: time 9.701e-05/0.004919, allocations: 126.7 kB / 0.6757 GB, free: 3.031 MB / 0.545 GB Notification: Performance of replaceArrayConstructors: time 4.092e-05/0.004966, allocations: 66.94 kB / 0.6757 GB, free: 2.965 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 2.214e-05/0.004993, allocations: 11.94 kB / 0.6757 GB, free: 2.953 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.35e-05/0.00501, allocations: 4 kB / 0.6757 GB, free: 2.949 MB / 0.545 GB Error: Internal error NBackendDAE.lowerWhenBranchStatement for if bli.occ then if not pre(bli.isOpen) then bli.pUp = 0.0; bli.pDown = exp(bli.ADown * bli.solarAltitude + bli.BDown) / (exp(bli.ADown * bli.solarAltitude + bli.BDown) + 1.0); bli.isOpen = Buildings.Occupants.BaseClasses.binaryVariableGeneration(bli.pDown, integer(bli.curSeed)); elseif true then bli.pUp = exp(bli.AUp * bli.solarAltitude + bli.BUp) / (exp(bli.AUp * bli.solarAltitude + bli.BUp) + 1.0); bli.pDown = 0.0; bli.isOpen = not Buildings.Occupants.BaseClasses.binaryVariableGeneration(bli.pUp, integer(bli.curSeed)); end if; elseif true then bli.pUp = 0.0; bli.pDown = 0.0; bli.isOpen = false; end if