Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) 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) Running command: translateModel(Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light") translateModel(Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.459/1.459, allocations: 289.8 MB / 297.1 MB, free: 6.719 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001031/0.001031, allocations: 177.3 kB / 366.3 MB, free: 2.02 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.148/1.148, allocations: 205.1 MB / 0.6256 GB, free: 5.863 MB / 474.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009657/0.0009656, allocations: 82.97 kB / 0.7395 GB, free: 39.68 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 8.146e-06/8.176e-06, allocations: 4 kB / 0.859 GB, free: 13.39 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5239/0.5239, allocations: 116.3 MB / 0.9726 GB, free: 68.29 MB / 0.6511 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1626/0.6866, allocations: 140.5 MB / 1.11 GB, free: 8.043 MB / 0.7136 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002532/0.6869, allocations: 83.94 kB / 1.11 GB, free: 7.961 MB / 0.7136 GB [/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 FrontEnd: time 0.009558/0.6965, allocations: 2.913 MB / 1.113 GB, free: 5.066 MB / 0.7136 GB Notification: Performance of Transformations before backend: time 7.804e-06/0.6965, allocations: 4 kB / 1.113 GB, free: 5.062 MB / 0.7136 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.000628/0.6971, allocations: 483.3 kB / 1.113 GB, free: 4.527 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 3.615e-05/0.6972, allocations: 8.031 kB / 1.113 GB, free: 4.52 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.652e-05/0.6972, allocations: 11.91 kB / 1.113 GB, free: 4.508 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001678/0.6974, allocations: 187.5 kB / 1.113 GB, free: 4.285 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.993e-05/0.6974, allocations: 7.984 kB / 1.113 GB, free: 4.277 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.637e-05/0.6974, allocations: 0 / 1.113 GB, free: 4.277 MB / 0.7136 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001273/0.6976, allocations: 43.89 kB / 1.113 GB, free: 4.234 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001216/0.6977, allocations: 65.66 kB / 1.113 GB, free: 4.164 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.365e-06/0.6977, allocations: 0 / 1.113 GB, free: 4.164 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.281e-05/0.6977, allocations: 4 kB / 1.113 GB, free: 4.16 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.831e-06/0.6977, allocations: 2.406 kB / 1.113 GB, free: 4.16 MB / 0.7136 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000468/0.6982, allocations: 297.2 kB / 1.114 GB, free: 3.832 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000163/0.6984, allocations: 70.69 kB / 1.114 GB, free: 3.754 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.034e-05/0.6985, allocations: 32.84 kB / 1.114 GB, free: 3.719 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 2.294e-05/0.6985, allocations: 4 kB / 1.114 GB, free: 3.715 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001318/0.6986, allocations: 87.34 kB / 1.114 GB, free: 3.617 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=11): time 2.534e-06/0.6986, allocations: 7.984 kB / 1.114 GB, free: 3.609 MB / 0.7136 GB Notification: Performance of matching and sorting (n=11): time 0.0002718/0.6989, allocations: 105.5 kB / 1.114 GB, free: 3.5 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.515e-05/0.699, allocations: 55.41 kB / 1.114 GB, free: 3.434 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001481/0.6991, allocations: 120.5 kB / 1.114 GB, free: 3.309 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 2.114e-05/0.6992, allocations: 25.7 kB / 1.114 GB, free: 3.277 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 5.468e-05/0.6992, allocations: 92.12 kB / 1.114 GB, free: 3.184 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 2.822e-05/0.6992, allocations: 23.8 kB / 1.114 GB, free: 3.16 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.995e-06/0.6993, allocations: 4 kB / 1.114 GB, free: 3.156 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 0.0001016/0.6994, allocations: 326.7 kB / 1.115 GB, free: 2.828 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.733e-05/0.6994, allocations: 24 kB / 1.115 GB, free: 2.805 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.92e-05/0.6995, allocations: 61.14 kB / 1.115 GB, free: 2.727 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.029e-05/0.6996, allocations: 27.92 kB / 1.115 GB, free: 2.699 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.843e-06/0.6996, allocations: 4 kB / 1.115 GB, free: 2.695 MB / 0.7136 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0001757/0.6998, allocations: 114.5 kB / 1.115 GB, free: 2.578 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 1.224e-05/0.6998, allocations: 4 kB / 1.115 GB, free: 2.574 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.993e-06/0.6998, allocations: 4 kB / 1.115 GB, free: 2.57 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.342e-05/0.6998, allocations: 3.938 kB / 1.115 GB, free: 2.566 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001228/0.6999, allocations: 23.92 kB / 1.115 GB, free: 2.543 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.128e-06/0.7, allocations: 0 / 1.115 GB, free: 2.543 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001127/0.7001, allocations: 23.98 kB / 1.115 GB, free: 2.52 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.32e-05/0.7001, allocations: 4 kB / 1.115 GB, free: 2.516 MB / 0.7136 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 ($PRE.lig.curSeed,lig.curSeed,$PRE.lig.on,lig.on,$whenCondition3,$whenCondition2,lig.sampleTrigger,$whenCondition1,booleanPulse.y,$PRE.booleanPulse.pulseStart,booleanPulse.pulseStart) * Number of discrete 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.415e-05/0.7002, allocations: 114.4 kB / 1.115 GB, free: 2.398 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.007e-05/0.7002, allocations: 7.906 kB / 1.115 GB, free: 2.391 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002679/0.7005, allocations: 129.7 kB / 1.115 GB, free: 2.262 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.008e-06/0.7005, allocations: 4.938 kB / 1.115 GB, free: 2.258 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.963e-06/0.7005, allocations: 4 kB / 1.115 GB, free: 2.254 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.983e-06/0.7005, allocations: 3.984 kB / 1.115 GB, free: 2.25 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005391/0.7011, allocations: 382.9 kB / 1.116 GB, free: 1.832 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.873e-06/0.7011, allocations: 0 / 1.116 GB, free: 1.832 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.186e-05/0.7012, allocations: 19.98 kB / 1.116 GB, free: 1.812 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.074e-06/0.7012, allocations: 0 / 1.116 GB, free: 1.812 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.425e-05/0.7012, allocations: 3.984 kB / 1.116 GB, free: 1.809 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.888e-06/0.7012, allocations: 4 kB / 1.116 GB, free: 1.805 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.315e-06/0.7012, allocations: 2.812 kB / 1.116 GB, free: 1.805 MB / 0.7136 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002311/0.7015, allocations: 208.1 kB / 1.116 GB, free: 1.586 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 4.658e-05/0.7015, allocations: 89 kB / 1.116 GB, free: 1.48 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.83e-05/0.7015, allocations: 4 kB / 1.116 GB, free: 1.477 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001356/0.7017, allocations: 19.89 kB / 1.116 GB, free: 1.457 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.733e-05/0.7017, allocations: 7.984 kB / 1.116 GB, free: 1.449 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.312e-05/0.7018, allocations: 4.141 kB / 1.116 GB, free: 1.445 MB / 0.7136 GB Notification: Performance of sort global known variables: time 4.997e-05/0.7018, allocations: 99.27 kB / 1.116 GB, free: 1.348 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.0003032/0.7021, allocations: 47.94 kB / 1.116 GB, free: 1.301 MB / 0.7136 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) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003154/0.7024, allocations: 172.2 kB / 1.116 GB, free: 1.137 MB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 0.0001711/0.7026, allocations: 79.86 kB / 1.116 GB, free: 1.059 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 1.653e-06/0.7026, allocations: 0 / 1.116 GB, free: 1.059 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 8.54e-05/0.7027, allocations: 51.91 kB / 1.116 GB, free: 1.008 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002427/0.703, allocations: 22.23 kB / 1.116 GB, free: 0.9883 MB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004525/0.7034, allocations: 123.3 kB / 1.116 GB, free: 0.8438 MB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003361/0.7038, allocations: 0.723 MB / 1.117 GB, free: 96 kB / 0.7136 GB Notification: Performance of SimCode: time 2.31e-07/0.7038, allocations: 0 / 1.117 GB, free: 96 kB / 0.7136 GB Notification: Performance of Templates: time 0.004889/0.7087, allocations: 2.024 MB / 1.119 GB, free: 14.11 MB / 0.7292 GB make -j1 -f Buildings_8_Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light.makefile (rm -f Buildings_8_Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light.pipe ; mkfifo Buildings_8_Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light.pipe ; head -c 1048576 < Buildings_8_Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light.pipe >> ../files/Buildings_8_Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light.sim & ./Buildings_8_Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8_Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light.pipe 2>&1)