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.007605/0.007605, allocations: 103.2 kB / 15.73 MB, free: 6.004 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.001049/0.001049, allocations: 191.2 kB / 16.67 MB, free: 5.93 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.51/1.51, allocations: 205.1 MB / 222.5 MB, free: 12.23 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.398/1.398, allocations: 251.7 MB / 0.5094 GB, free: 404 kB / 430.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.00166/0.00166, allocations: 67.91 kB / 0.7257 GB, free: 4.727 MB / 0.5606 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7469/0.7485, allocations: 104.7 MB / 0.828 GB, free: 2.645 MB / 0.6231 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light): time 0.002799/0.7514, allocations: 1.527 MB / 0.8295 GB, free: 1.098 MB / 0.6231 GB Notification: Performance of NFInst.instExpressions: time 0.00135/0.7528, allocations: 0.8013 MB / 0.8303 GB, free: 296 kB / 0.6231 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.46e-05/0.7528, allocations: 0 / 0.8303 GB, free: 296 kB / 0.6231 GB Notification: Performance of NFTyping.typeComponents: time 3.326e-05/0.7529, allocations: 7.938 kB / 0.8303 GB, free: 288 kB / 0.6231 GB Notification: Performance of NFTyping.typeBindings: time 0.0001115/0.753, allocations: 19.8 kB / 0.8303 GB, free: 268 kB / 0.6231 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.0006111/0.7536, allocations: 135.5 kB / 0.8304 GB, free: 132 kB / 0.6231 GB Notification: Performance of NFFlatten.flatten: time 0.0001313/0.7538, allocations: 95.7 kB / 0.8305 GB, free: 36 kB / 0.6231 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001056/0.7539, allocations: 12 kB / 0.8305 GB, free: 24 kB / 0.6231 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001136/0.754, allocations: 43.91 kB / 0.8306 GB, free: 15.98 MB / 0.6387 GB Notification: Performance of NFSimplifyModel.simplify: time 7.517e-05/0.7541, allocations: 51.83 kB / 0.8306 GB, free: 15.93 MB / 0.6387 GB Notification: Performance of NFPackage.collectConstants: time 1.981e-05/0.7541, allocations: 8 kB / 0.8306 GB, free: 15.92 MB / 0.6387 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001778/0.7543, allocations: 95.77 kB / 0.8307 GB, free: 15.83 MB / 0.6387 GB Notification: Performance of NFScalarize.scalarize: time 3.599e-05/0.7543, allocations: 27.89 kB / 0.8308 GB, free: 15.8 MB / 0.6387 GB Notification: Performance of NFVerifyModel.verify: time 5.322e-05/0.7544, allocations: 39.8 kB / 0.8308 GB, free: 15.76 MB / 0.6387 GB Notification: Performance of NFConvertDAE.convert: time 0.0002404/0.7546, allocations: 155.1 kB / 0.8309 GB, free: 15.61 MB / 0.6387 GB Notification: Performance of FrontEnd - DAE generated: time 4.398e-06/0.7546, allocations: 0 / 0.8309 GB, free: 15.61 MB / 0.6387 GB Notification: Performance of FrontEnd: time 1.183e-06/0.7547, allocations: 0 / 0.8309 GB, free: 15.61 MB / 0.6387 GB Notification: Performance of Transformations before backend: time 5.57e-06/0.7547, allocations: 0 / 0.8309 GB, free: 15.61 MB / 0.6387 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.0008029/0.7555, allocations: 0.4907 MB / 0.8314 GB, free: 15.06 MB / 0.6387 GB Notification: Performance of prepare preOptimizeDAE: time 4.384e-05/0.7555, allocations: 8.031 kB / 0.8314 GB, free: 15.05 MB / 0.6387 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.069e-05/0.7556, allocations: 16.83 kB / 0.8314 GB, free: 15.04 MB / 0.6387 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000174/0.7558, allocations: 180.2 kB / 0.8316 GB, free: 14.82 MB / 0.6387 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.02e-05/0.7558, allocations: 4.375 kB / 0.8316 GB, free: 14.82 MB / 0.6387 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.658e-05/0.7558, allocations: 4.375 kB / 0.8316 GB, free: 14.81 MB / 0.6387 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002108/0.756, allocations: 81.95 kB / 0.8317 GB, free: 14.73 MB / 0.6387 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.121e-05/0.7561, allocations: 0 / 0.8317 GB, free: 14.73 MB / 0.6387 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.68e-05/0.7561, allocations: 8 kB / 0.8317 GB, free: 14.72 MB / 0.6387 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.28e-06/0.7561, allocations: 0 / 0.8317 GB, free: 14.72 MB / 0.6387 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001567/0.7563, allocations: 51.89 kB / 0.8318 GB, free: 14.67 MB / 0.6387 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005887/0.7568, allocations: 332.7 kB / 0.8321 GB, free: 14.29 MB / 0.6387 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000228/0.7571, allocations: 82.7 kB / 0.8322 GB, free: 14.2 MB / 0.6387 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.544e-05/0.7572, allocations: 40.84 kB / 0.8322 GB, free: 14.16 MB / 0.6387 GB Notification: Performance of preOpt evalFunc (simulation): time 2.859e-05/0.7572, allocations: 7.969 kB / 0.8322 GB, free: 14.15 MB / 0.6387 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002527/0.7575, allocations: 103.2 kB / 0.8323 GB, free: 14.04 MB / 0.6387 GB Notification: Performance of pre-optimization done (n=11): time 1.493e-06/0.7575, allocations: 0 / 0.8323 GB, free: 14.04 MB / 0.6387 GB Notification: Performance of matching and sorting (n=11): time 0.0004509/0.7579, allocations: 177.5 kB / 0.8325 GB, free: 13.86 MB / 0.6387 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.978e-05/0.758, allocations: 59.34 kB / 0.8325 GB, free: 13.79 MB / 0.6387 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000112/0.7581, allocations: 140.9 kB / 0.8327 GB, free: 13.64 MB / 0.6387 GB Notification: Performance of collectPreVariables (initialization): time 2.811e-05/0.7582, allocations: 29.7 kB / 0.8327 GB, free: 13.61 MB / 0.6387 GB Notification: Performance of collectInitialEqns (initialization): time 6.337e-05/0.7582, allocations: 96.12 kB / 0.8328 GB, free: 13.51 MB / 0.6387 GB Notification: Performance of collectInitialBindings (initialization): time 3.695e-05/0.7583, allocations: 27.56 kB / 0.8328 GB, free: 13.48 MB / 0.6387 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.714e-05/0.7583, allocations: 29.7 kB / 0.8328 GB, free: 13.45 MB / 0.6387 GB Notification: Performance of setup shared object (initialization): time 0.0001697/0.7585, allocations: 330.7 kB / 0.8332 GB, free: 13.12 MB / 0.6387 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.126e-05/0.7586, allocations: 31.98 kB / 0.8332 GB, free: 13.09 MB / 0.6387 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000121/0.7587, allocations: 69.12 kB / 0.8332 GB, free: 13 MB / 0.6387 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002069/0.7589, allocations: 113 kB / 0.8334 GB, free: 12.87 MB / 0.6387 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.785e-06/0.7589, allocations: 0 / 0.8334 GB, free: 12.87 MB / 0.6387 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002735/0.7592, allocations: 133.4 kB / 0.8335 GB, free: 12.73 MB / 0.6387 GB Notification: Performance of prepare postOptimizeDAE: time 1.884e-05/0.7593, allocations: 4 kB / 0.8335 GB, free: 12.73 MB / 0.6387 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.192e-05/0.7593, allocations: 7.984 kB / 0.8335 GB, free: 12.72 MB / 0.6387 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.79e-05/0.7593, allocations: 0 / 0.8335 GB, free: 12.72 MB / 0.6387 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000119/0.7594, allocations: 19.92 kB / 0.8335 GB, free: 12.7 MB / 0.6387 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.503e-05/0.7595, allocations: 7.984 kB / 0.8335 GB, free: 12.7 MB / 0.6387 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.668e-05/0.7596, allocations: 12.09 kB / 0.8335 GB, free: 12.68 MB / 0.6387 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.886e-05/0.7596, allocations: 7.984 kB / 0.8335 GB, free: 12.68 MB / 0.6387 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 11 (lig.curSeed,$PRE.lig.curSeed,lig.on,$PRE.lig.on,$whenCondition3,lig.sampleTrigger,$whenCondition2,booleanPulse.pulseStart,$PRE.booleanPulse.pulseStart,booleanPulse.y,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (15): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001486/0.7597, allocations: 130.7 kB / 0.8337 GB, free: 12.54 MB / 0.6387 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.111e-05/0.7598, allocations: 7.906 kB / 0.8337 GB, free: 12.53 MB / 0.6387 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003837/0.7602, allocations: 162.3 kB / 0.8338 GB, free: 12.37 MB / 0.6387 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.71e-06/0.7602, allocations: 4 kB / 0.8338 GB, free: 12.36 MB / 0.6387 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.372e-06/0.7602, allocations: 0 / 0.8338 GB, free: 12.36 MB / 0.6387 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.531e-06/0.7602, allocations: 4 kB / 0.8338 GB, free: 12.36 MB / 0.6387 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006879/0.7609, allocations: 455.2 kB / 0.8343 GB, free: 11.86 MB / 0.6387 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.463e-06/0.7609, allocations: 0 / 0.8343 GB, free: 11.86 MB / 0.6387 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.194e-05/0.761, allocations: 15.98 kB / 0.8343 GB, free: 11.84 MB / 0.6387 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.096e-06/0.761, allocations: 0 / 0.8343 GB, free: 11.84 MB / 0.6387 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.446e-05/0.761, allocations: 0 / 0.8343 GB, free: 11.84 MB / 0.6387 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.216e-06/0.761, allocations: 7.938 kB / 0.8343 GB, free: 11.84 MB / 0.6387 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/0.761, allocations: 3.938 kB / 0.8343 GB, free: 11.83 MB / 0.6387 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003718/0.7614, allocations: 240.8 kB / 0.8345 GB, free: 11.58 MB / 0.6387 GB Notification: Performance of postOpt removeConstants (simulation): time 5.359e-05/0.7615, allocations: 84.95 kB / 0.8346 GB, free: 11.48 MB / 0.6387 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.89e-05/0.7615, allocations: 11.94 kB / 0.8346 GB, free: 11.47 MB / 0.6387 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001122/0.7616, allocations: 7.984 kB / 0.8346 GB, free: 11.46 MB / 0.6387 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.827e-05/0.7617, allocations: 7.984 kB / 0.8346 GB, free: 11.45 MB / 0.6387 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.39e-05/0.7617, allocations: 11.98 kB / 0.8346 GB, free: 11.44 MB / 0.6387 GB Notification: Performance of sorting global known variables: time 7.873e-05/0.7618, allocations: 102.5 kB / 0.8347 GB, free: 11.34 MB / 0.6387 GB Notification: Performance of sort global known variables: time 2.134e-06/0.7618, allocations: 0 / 0.8347 GB, free: 11.34 MB / 0.6387 GB Notification: Performance of remove unused functions: time 0.0003392/0.7622, allocations: 55.84 kB / 0.8348 GB, free: 11.29 MB / 0.6387 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 8 (booleanPulse.y,lig.sampleTrigger,$whenCondition3,$whenCondition2,$whenCondition1,lig.on,lig.curSeed,booleanPulse.pulseStart) * Number of discrete states: 1 (lig.on) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (13): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003935/0.7626, allocations: 164.9 kB / 0.835 GB, free: 11.14 MB / 0.6387 GB Notification: Performance of simCode: created initialization part: time 0.0002672/0.7628, allocations: 95.89 kB / 0.835 GB, free: 11.04 MB / 0.6387 GB Notification: Performance of simCode: created event and clocks part: time 2.024e-06/0.7629, allocations: 0 / 0.835 GB, free: 11.04 MB / 0.6387 GB Notification: Performance of simCode: created simulation system equations: time 0.0001181/0.763, allocations: 59.91 kB / 0.8351 GB, free: 10.98 MB / 0.6387 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002953/0.7633, allocations: 16.42 kB / 0.8351 GB, free: 10.97 MB / 0.6387 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004822/0.7638, allocations: 208.2 kB / 0.8353 GB, free: 10.73 MB / 0.6387 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002561/0.764, allocations: 0.7041 MB / 0.836 GB, free: 10 MB / 0.6387 GB Notification: Performance of simCode: alias equations: time 4.345e-05/0.7641, allocations: 12.42 kB / 0.836 GB, free: 9.992 MB / 0.6387 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.091e-05/0.7641, allocations: 15.44 kB / 0.836 GB, free: 9.977 MB / 0.6387 GB Notification: Performance of SimCode: time 2.3e-07/0.7641, allocations: 0 / 0.836 GB, free: 9.977 MB / 0.6387 GB Notification: Performance of Templates: time 0.005468/0.7696, allocations: 1.964 MB / 0.8379 GB, free: 8.023 MB / 0.6387 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light.makefile (rm -f Buildings_maint.7.0.x_Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light.sim & ./Buildings_maint.7.0.x_Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light.pipe 2>&1)