Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Occupants.Office.Lighting.Validation.Love1998Light2.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.Love1998Light2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Occupants.Office.Lighting.Validation.Love1998Light2") translateModel(Buildings.Occupants.Office.Lighting.Validation.Love1998Light2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Occupants.Office.Lighting.Validation.Love1998Light2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.006436/0.006436, allocations: 101.8 kB / 15.73 MB, free: 5.992 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.001259/0.001259, allocations: 198.8 kB / 16.68 MB, free: 5.918 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.569/1.569, allocations: 205.1 MB / 222.5 MB, free: 4.496 MB / 174.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.582/1.582, allocations: 251.7 MB / 0.5094 GB, free: 3 MB / 414.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.001617/0.001617, allocations: 71.89 kB / 0.7258 GB, free: 9.145 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2516/0.2532, allocations: 104.7 MB / 0.828 GB, free: 340 kB / 0.6387 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Lighting.Validation.Love1998Light2): time 0.002528/0.2558, allocations: 1.512 MB / 0.8295 GB, free: 14.81 MB / 0.6544 GB Notification: Performance of NFInst.instExpressions: time 0.001324/0.2571, allocations: 0.7992 MB / 0.8303 GB, free: 14 MB / 0.6544 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.573e-05/0.2572, allocations: 0 / 0.8303 GB, free: 14 MB / 0.6544 GB Notification: Performance of NFTyping.typeComponents: time 3.667e-05/0.2572, allocations: 7.922 kB / 0.8303 GB, free: 13.99 MB / 0.6544 GB Notification: Performance of NFTyping.typeBindings: time 0.0001452/0.2574, allocations: 27.8 kB / 0.8303 GB, free: 13.96 MB / 0.6544 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.000581/0.258, allocations: 127.6 kB / 0.8304 GB, free: 13.84 MB / 0.6544 GB Notification: Performance of NFFlatten.flatten: time 0.0001175/0.2581, allocations: 79.77 kB / 0.8305 GB, free: 13.76 MB / 0.6544 GB Notification: Performance of NFFlatten.resolveConnections: time 9.362e-05/0.2582, allocations: 12 kB / 0.8305 GB, free: 13.75 MB / 0.6544 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001215/0.2583, allocations: 51.7 kB / 0.8306 GB, free: 13.7 MB / 0.6544 GB Notification: Performance of NFSimplifyModel.simplify: time 6.456e-05/0.2584, allocations: 31.84 kB / 0.8306 GB, free: 13.67 MB / 0.6544 GB Notification: Performance of NFPackage.collectConstants: time 1.843e-05/0.2584, allocations: 12 kB / 0.8306 GB, free: 13.66 MB / 0.6544 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001756/0.2586, allocations: 95.91 kB / 0.8307 GB, free: 13.56 MB / 0.6544 GB Notification: Performance of NFScalarize.scalarize: time 3.03e-05/0.2587, allocations: 15.98 kB / 0.8307 GB, free: 13.55 MB / 0.6544 GB Notification: Performance of NFVerifyModel.verify: time 6.634e-05/0.2587, allocations: 43.72 kB / 0.8308 GB, free: 13.5 MB / 0.6544 GB Notification: Performance of NFConvertDAE.convert: time 0.0002357/0.259, allocations: 143.6 kB / 0.8309 GB, free: 13.36 MB / 0.6544 GB Notification: Performance of FrontEnd - DAE generated: time 3.867e-06/0.259, allocations: 0 / 0.8309 GB, free: 13.36 MB / 0.6544 GB Notification: Performance of FrontEnd: time 3.206e-06/0.259, allocations: 4 kB / 0.8309 GB, free: 13.36 MB / 0.6544 GB Notification: Performance of Transformations before backend: time 8.265e-06/0.259, allocations: 0 / 0.8309 GB, free: 13.36 MB / 0.6544 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 9 * Number of variables: 9 Notification: Performance of Generate backend data structure: time 0.000732/0.2598, allocations: 470.5 kB / 0.8313 GB, free: 12.84 MB / 0.6544 GB Notification: Performance of prepare preOptimizeDAE: time 3.921e-05/0.2598, allocations: 12.03 kB / 0.8314 GB, free: 12.83 MB / 0.6544 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.113e-05/0.2599, allocations: 8.844 kB / 0.8314 GB, free: 12.82 MB / 0.6544 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001869/0.2601, allocations: 172.2 kB / 0.8315 GB, free: 12.61 MB / 0.6544 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.166e-05/0.2601, allocations: 4.375 kB / 0.8315 GB, free: 12.61 MB / 0.6544 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.173e-05/0.2601, allocations: 12.31 kB / 0.8315 GB, free: 12.6 MB / 0.6544 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002388/0.2603, allocations: 73.95 kB / 0.8316 GB, free: 12.52 MB / 0.6544 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.848e-06/0.2604, allocations: 4 kB / 0.8316 GB, free: 12.52 MB / 0.6544 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.236e-05/0.2604, allocations: 0 / 0.8316 GB, free: 12.52 MB / 0.6544 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.853e-06/0.2604, allocations: 7.984 kB / 0.8316 GB, free: 12.51 MB / 0.6544 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001354/0.2605, allocations: 39.97 kB / 0.8317 GB, free: 12.47 MB / 0.6544 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000567/0.2611, allocations: 328.6 kB / 0.832 GB, free: 12.1 MB / 0.6544 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001564/0.2613, allocations: 54.56 kB / 0.832 GB, free: 12.04 MB / 0.6544 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.179e-05/0.2614, allocations: 40.84 kB / 0.8321 GB, free: 11.99 MB / 0.6544 GB Notification: Performance of preOpt evalFunc (simulation): time 2.335e-05/0.2614, allocations: 0 / 0.8321 GB, free: 11.99 MB / 0.6544 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002262/0.2616, allocations: 95.38 kB / 0.8322 GB, free: 11.89 MB / 0.6544 GB Notification: Performance of pre-optimization done (n=10): time 1.463e-06/0.2617, allocations: 4 kB / 0.8322 GB, free: 11.88 MB / 0.6544 GB Notification: Performance of matching and sorting (n=10): time 0.0004128/0.2621, allocations: 157.4 kB / 0.8323 GB, free: 11.72 MB / 0.6544 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.009e-05/0.2621, allocations: 51.41 kB / 0.8324 GB, free: 11.66 MB / 0.6544 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001137/0.2623, allocations: 133.8 kB / 0.8325 GB, free: 11.52 MB / 0.6544 GB Notification: Performance of collectPreVariables (initialization): time 1.949e-05/0.2623, allocations: 25.7 kB / 0.8325 GB, free: 11.49 MB / 0.6544 GB Notification: Performance of collectInitialEqns (initialization): time 6.448e-05/0.2623, allocations: 96.36 kB / 0.8326 GB, free: 11.39 MB / 0.6544 GB Notification: Performance of collectInitialBindings (initialization): time 2.957e-05/0.2624, allocations: 23.66 kB / 0.8326 GB, free: 11.37 MB / 0.6544 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.623e-05/0.2624, allocations: 29.7 kB / 0.8327 GB, free: 11.33 MB / 0.6544 GB Notification: Performance of setup shared object (initialization): time 0.0001493/0.2626, allocations: 326.8 kB / 0.833 GB, free: 11 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.04e-05/0.2627, allocations: 27.98 kB / 0.833 GB, free: 10.98 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001044/0.2628, allocations: 65.12 kB / 0.8331 GB, free: 10.89 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001699/0.263, allocations: 101 kB / 0.8332 GB, free: 10.78 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.959e-06/0.263, allocations: 4 kB / 0.8332 GB, free: 10.77 MB / 0.6544 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002289/0.2632, allocations: 129.4 kB / 0.8333 GB, free: 10.64 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 1.739e-05/0.2633, allocations: 8 kB / 0.8333 GB, free: 10.63 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.39e-06/0.2633, allocations: 0 / 0.8333 GB, free: 10.63 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.789e-05/0.2633, allocations: 4 kB / 0.8333 GB, free: 10.63 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001112/0.2634, allocations: 15.98 kB / 0.8333 GB, free: 10.61 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.235e-06/0.2634, allocations: 4 kB / 0.8333 GB, free: 10.61 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.524e-05/0.2635, allocations: 16.02 kB / 0.8333 GB, free: 10.59 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.354e-05/0.2636, allocations: 4 kB / 0.8333 GB, free: 10.59 MB / 0.6544 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,occ.pulseStart,$PRE.occ.pulseStart,occ.y,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (14): * Single equations (assignments): 14 * 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.0001063/0.2637, allocations: 133.7 kB / 0.8335 GB, free: 10.45 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.035e-05/0.2637, allocations: 7.906 kB / 0.8335 GB, free: 10.44 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003302/0.264, allocations: 142 kB / 0.8336 GB, free: 10.3 MB / 0.6544 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.508e-06/0.264, allocations: 0 / 0.8336 GB, free: 10.3 MB / 0.6544 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.07e-06/0.2641, allocations: 3.938 kB / 0.8336 GB, free: 10.29 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.4e-06/0.2641, allocations: 12 kB / 0.8336 GB, free: 10.28 MB / 0.6544 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005601/0.2646, allocations: 422.5 kB / 0.834 GB, free: 9.812 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.703e-06/0.2646, allocations: 0 / 0.834 GB, free: 9.812 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.557e-05/0.2647, allocations: 19.92 kB / 0.834 GB, free: 9.793 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.265e-06/0.2647, allocations: 0 / 0.834 GB, free: 9.793 MB / 0.6544 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.311e-05/0.2648, allocations: 96 / 0.834 GB, free: 9.793 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.372e-06/0.2648, allocations: 0 / 0.834 GB, free: 9.793 MB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.635e-06/0.2648, allocations: 7.938 kB / 0.834 GB, free: 9.785 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002932/0.2651, allocations: 235.2 kB / 0.8343 GB, free: 9.539 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 4.143e-05/0.2651, allocations: 85.02 kB / 0.8344 GB, free: 9.438 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.321e-05/0.2652, allocations: 4 kB / 0.8344 GB, free: 9.434 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001104/0.2653, allocations: 7.984 kB / 0.8344 GB, free: 9.426 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.942e-05/0.2653, allocations: 16.3 kB / 0.8344 GB, free: 9.41 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.708e-05/0.2654, allocations: 4 kB / 0.8344 GB, free: 9.406 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 7.172e-05/0.2654, allocations: 110.8 kB / 0.8345 GB, free: 9.301 MB / 0.6544 GB Notification: Performance of sort global known variables: time 1.4e-07/0.2654, allocations: 0 / 0.8345 GB, free: 9.301 MB / 0.6544 GB Notification: Performance of remove unused functions: time 0.000309/0.2658, allocations: 43.94 kB / 0.8345 GB, free: 9.258 MB / 0.6544 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 (occ.y,lig.sampleTrigger,$whenCondition3,$whenCondition2,$whenCondition1,lig.on,lig.curSeed,occ.pulseStart) * Number of discrete states: 1 (lig.on) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (12): * Single equations (assignments): 9 * 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.0003409/0.2661, allocations: 163 kB / 0.8347 GB, free: 9.105 MB / 0.6544 GB Notification: Performance of simCode: created initialization part: time 0.0002682/0.2664, allocations: 87.83 kB / 0.8348 GB, free: 9.02 MB / 0.6544 GB Notification: Performance of simCode: created event and clocks part: time 1.793e-06/0.2664, allocations: 4 kB / 0.8348 GB, free: 9.016 MB / 0.6544 GB Notification: Performance of simCode: created simulation system equations: time 0.0001101/0.2665, allocations: 47.92 kB / 0.8348 GB, free: 8.969 MB / 0.6544 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000306/0.2668, allocations: 11.98 kB / 0.8348 GB, free: 8.957 MB / 0.6544 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004654/0.2673, allocations: 203.6 kB / 0.835 GB, free: 8.73 MB / 0.6544 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002574/0.2676, allocations: 0.7004 MB / 0.8357 GB, free: 8.004 MB / 0.6544 GB Notification: Performance of simCode: alias equations: time 4.231e-05/0.2676, allocations: 4.438 kB / 0.8357 GB, free: 8 MB / 0.6544 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.051e-05/0.2677, allocations: 23.42 kB / 0.8357 GB, free: 7.977 MB / 0.6544 GB Notification: Performance of SimCode: time 4.3e-07/0.2677, allocations: 0 / 0.8357 GB, free: 7.977 MB / 0.6544 GB Notification: Performance of Templates: time 0.005003/0.2727, allocations: 1.811 MB / 0.8375 GB, free: 6.172 MB / 0.6544 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Occupants.Office.Lighting.Validation.Love1998Light2.makefile (rm -f Buildings_maint.7.0.x_Buildings.Occupants.Office.Lighting.Validation.Love1998Light2.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Occupants.Office.Lighting.Validation.Love1998Light2.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Occupants.Office.Lighting.Validation.Love1998Light2.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Occupants.Office.Lighting.Validation.Love1998Light2.sim & ./Buildings_maint.7.0.x_Buildings.Occupants.Office.Lighting.Validation.Love1998Light2 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Occupants.Office.Lighting.Validation.Love1998Light2.pipe 2>&1)