Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light.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.Hunt1979Light,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light") translateModel(Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001258/0.001258, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001494/0.001494, allocations: 194.2 kB / 16.53 MB, free: 6.391 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.556/1.556, allocations: 205.1 MB / 222.4 MB, free: 4.566 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.63/1.63, allocations: 251.7 MB / 0.5092 GB, free: 3.113 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.001467/0.001467, allocations: 67.91 kB / 0.6223 GB, free: 1.508 MB / 0.5138 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5929/0.5944, allocations: 104.7 MB / 0.7245 GB, free: 12.95 MB / 0.545 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light): time 0.003223/0.5977, allocations: 1.516 MB / 0.726 GB, free: 11.41 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.001563/0.5993, allocations: 0.8184 MB / 0.7268 GB, free: 10.59 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.145e-05/0.5994, allocations: 0 / 0.7268 GB, free: 10.59 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 4.431e-05/0.5994, allocations: 3.938 kB / 0.7268 GB, free: 10.58 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.0001156/0.5995, allocations: 19.8 kB / 0.7268 GB, free: 10.56 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 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.0007378/0.6003, allocations: 127.6 kB / 0.7269 GB, free: 10.44 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.000157/0.6005, allocations: 83.77 kB / 0.727 GB, free: 10.36 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001351/0.6006, allocations: 12 kB / 0.727 GB, free: 10.34 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001424/0.6007, allocations: 43.78 kB / 0.7271 GB, free: 10.3 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 9.783e-05/0.6008, allocations: 47.81 kB / 0.7271 GB, free: 10.25 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 2.139e-05/0.6009, allocations: 4 kB / 0.7271 GB, free: 10.25 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002162/0.6011, allocations: 99.84 kB / 0.7272 GB, free: 10.15 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 3.939e-05/0.6012, allocations: 23.92 kB / 0.7272 GB, free: 10.13 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 7.036e-05/0.6012, allocations: 39.73 kB / 0.7273 GB, free: 10.09 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.0004852/0.6017, allocations: 153.6 kB / 0.7274 GB, free: 9.941 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 5.481e-06/0.6017, allocations: 0 / 0.7274 GB, free: 9.941 MB / 0.545 GB Notification: Performance of FrontEnd: time 3.376e-06/0.6017, allocations: 0 / 0.7274 GB, free: 9.941 MB / 0.545 GB Notification: Performance of Transformations before backend: time 8.547e-06/0.6018, allocations: 0 / 0.7274 GB, free: 9.941 MB / 0.545 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.001128/0.6029, allocations: 474.5 kB / 0.7279 GB, free: 9.418 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 5.033e-05/0.603, allocations: 12.03 kB / 0.7279 GB, free: 9.406 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.005e-05/0.603, allocations: 8.844 kB / 0.7279 GB, free: 9.398 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003585/0.6034, allocations: 188.1 kB / 0.7281 GB, free: 9.176 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.679e-05/0.6035, allocations: 34.27 kB / 0.7281 GB, free: 9.137 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.401e-05/0.6035, allocations: 4.375 kB / 0.7281 GB, free: 9.133 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002604/0.6038, allocations: 77.77 kB / 0.7282 GB, free: 9.051 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.164e-05/0.6038, allocations: 0 / 0.7282 GB, free: 9.051 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.32e-05/0.6039, allocations: 3.984 kB / 0.7282 GB, free: 9.047 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.017e-06/0.6039, allocations: 4 kB / 0.7282 GB, free: 9.043 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002156/0.6041, allocations: 55.89 kB / 0.7282 GB, free: 8.988 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008/0.6049, allocations: 328.6 kB / 0.7286 GB, free: 8.617 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002378/0.6052, allocations: 66.55 kB / 0.7286 GB, free: 8.543 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001144/0.6053, allocations: 40.83 kB / 0.7287 GB, free: 8.5 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 3.307e-05/0.6053, allocations: 8.141 kB / 0.7287 GB, free: 8.492 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003094/0.6056, allocations: 91.39 kB / 0.7288 GB, free: 8.391 MB / 0.545 GB Notification: Performance of pre-optimization done (n=10): time 1.392e-06/0.6056, allocations: 0 / 0.7288 GB, free: 8.391 MB / 0.545 GB Notification: Performance of matching and sorting (n=10): time 0.0004985/0.6061, allocations: 173.7 kB / 0.7289 GB, free: 8.215 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001259/0.6063, allocations: 55.41 kB / 0.729 GB, free: 8.148 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001208/0.6064, allocations: 137.7 kB / 0.7291 GB, free: 8.008 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 2.071e-05/0.6064, allocations: 29.8 kB / 0.7291 GB, free: 7.973 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 6.571e-05/0.6065, allocations: 100.3 kB / 0.7292 GB, free: 7.871 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 2.868e-05/0.6065, allocations: 19.72 kB / 0.7292 GB, free: 7.852 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.352e-05/0.6066, allocations: 29.7 kB / 0.7293 GB, free: 7.816 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001664/0.6068, allocations: 330.8 kB / 0.7296 GB, free: 7.484 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001174/0.6069, allocations: 23.98 kB / 0.7296 GB, free: 7.461 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000128/0.607, allocations: 73.06 kB / 0.7297 GB, free: 7.371 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002494/0.6073, allocations: 109 kB / 0.7298 GB, free: 7.246 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.324e-06/0.6073, allocations: 0 / 0.7298 GB, free: 7.246 MB / 0.545 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002929/0.6076, allocations: 137.5 kB / 0.7299 GB, free: 7.105 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.555e-05/0.6076, allocations: 4 kB / 0.7299 GB, free: 7.102 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.292e-06/0.6076, allocations: 0 / 0.7299 GB, free: 7.102 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.679e-05/0.6077, allocations: 4 kB / 0.7299 GB, free: 7.098 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001205/0.6078, allocations: 15.98 kB / 0.7299 GB, free: 7.082 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.442e-06/0.6078, allocations: 3.938 kB / 0.7299 GB, free: 7.078 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001144/0.6079, allocations: 19.92 kB / 0.73 GB, free: 7.059 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.438e-05/0.6079, allocations: 7.984 kB / 0.73 GB, free: 7.051 MB / 0.545 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.0001057/0.6081, allocations: 129.9 kB / 0.7301 GB, free: 6.914 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.011e-05/0.6081, allocations: 7.906 kB / 0.7301 GB, free: 6.906 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.275e-05/0.6081, allocations: 8.719 kB / 0.7301 GB, free: 6.898 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.646e-06/0.6081, allocations: 4 kB / 0.7301 GB, free: 6.895 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.33e-06/0.6081, allocations: 0 / 0.7301 GB, free: 6.895 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.411e-05/0.6082, allocations: 3.984 kB / 0.7301 GB, free: 6.891 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006172/0.6088, allocations: 434.2 kB / 0.7305 GB, free: 6.41 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.934e-06/0.6088, allocations: 4.094 kB / 0.7305 GB, free: 6.406 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.323e-05/0.6089, allocations: 7.984 kB / 0.7305 GB, free: 6.398 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.584e-06/0.6089, allocations: 3.984 kB / 0.7305 GB, free: 6.395 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.348e-05/0.6089, allocations: 7.938 kB / 0.7306 GB, free: 6.387 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.895e-06/0.6089, allocations: 3.938 kB / 0.7306 GB, free: 6.383 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.002e-06/0.6089, allocations: 0 / 0.7306 GB, free: 6.383 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003391/0.6093, allocations: 235.4 kB / 0.7308 GB, free: 6.137 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 5.285e-05/0.6093, allocations: 88.95 kB / 0.7309 GB, free: 6.031 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.562e-05/0.6094, allocations: 4 kB / 0.7309 GB, free: 6.027 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001278/0.6095, allocations: 11.92 kB / 0.7309 GB, free: 6.016 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.448e-05/0.6096, allocations: 15.98 kB / 0.7309 GB, free: 6 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.598e-05/0.6096, allocations: 3.984 kB / 0.7309 GB, free: 5.996 MB / 0.545 GB Notification: Performance of sorting global known variables: time 5.765e-05/0.6096, allocations: 103.3 kB / 0.731 GB, free: 5.895 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.3e-07/0.6097, allocations: 0 / 0.731 GB, free: 5.895 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0003255/0.61, allocations: 47.98 kB / 0.731 GB, free: 5.848 MB / 0.545 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 (10): * Single equations (assignments): 7 * 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.0003222/0.6103, allocations: 145.4 kB / 0.7312 GB, free: 5.711 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.00033/0.6107, allocations: 99.83 kB / 0.7313 GB, free: 5.613 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.6107, allocations: 0 / 0.7313 GB, free: 5.613 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.0001422/0.6108, allocations: 47.91 kB / 0.7313 GB, free: 5.566 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002843/0.6111, allocations: 16.25 kB / 0.7313 GB, free: 5.551 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000486/0.6116, allocations: 227.7 kB / 0.7316 GB, free: 5.301 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002586/0.6119, allocations: 0.6924 MB / 0.7322 GB, free: 4.582 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 5.3e-05/0.6119, allocations: 8.672 kB / 0.7322 GB, free: 4.57 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.419e-05/0.612, allocations: 15.42 kB / 0.7323 GB, free: 4.559 MB / 0.545 GB Notification: Performance of SimCode: time 1.974e-06/0.612, allocations: 0 / 0.7323 GB, free: 4.559 MB / 0.545 GB Notification: Performance of Templates: time 0.004731/0.6167, allocations: 1.814 MB / 0.734 GB, free: 2.754 MB / 0.545 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light.makefile (rm -f Buildings_maint.7.0.x_Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light.sim & ./Buildings_maint.7.0.x_Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light.pipe 2>&1)