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: "" <> buildModelFMU(Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light,fileNamePrefix="Buildings_8_Buildings_Occupants_Office_Lighting_Validation_Gunay2016Light",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light,fileNamePrefix="Buildings_8_Buildings_Occupants_Office_Lighting_Validation_Gunay2016Light",fmuType="me",version="2.0",platforms={"static"}) [: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.51/1.51, allocations: 289.8 MB / 297.1 MB, free: 6.664 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.001017/0.001017, allocations: 173.3 kB / 366.3 MB, free: 1.992 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.276/1.276, allocations: 205.1 MB / 0.6256 GB, free: 5.824 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.001175/0.001175, allocations: 90.88 kB / 0.7395 GB, free: 39.68 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.3057/0.3069, allocations: 122.4 MB / 0.8591 GB, free: 13.27 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7253/1.032, allocations: 116.3 MB / 0.9726 GB, free: 68.67 MB / 0.6511 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1944/1.227, allocations: 140.5 MB / 1.11 GB, free: 7.98 MB / 0.7136 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002667/1.227, allocations: 84.66 kB / 1.11 GB, free: 7.898 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: 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.0106/1.238, allocations: 3.394 MB / 1.113 GB, free: 4.457 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 4.586e-05/1.238, allocations: 12 kB / 1.113 GB, free: 4.445 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.649e-05/1.238, allocations: 7.906 kB / 1.113 GB, free: 4.438 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00018/1.238, allocations: 186.8 kB / 1.113 GB, free: 4.215 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.059e-05/1.238, allocations: 4 kB / 1.113 GB, free: 4.211 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.043e-05/1.238, allocations: 4 kB / 1.113 GB, free: 4.207 MB / 0.7136 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001281/1.238, allocations: 39.89 kB / 1.113 GB, free: 4.168 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001323/1.238, allocations: 73.66 kB / 1.114 GB, free: 4.09 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.975e-06/1.238, allocations: 0 / 1.114 GB, free: 4.09 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.813e-05/1.238, allocations: 3.984 kB / 1.114 GB, free: 4.086 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.009e-06/1.238, allocations: 0 / 1.114 GB, free: 4.086 MB / 0.7136 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005173/1.239, allocations: 289.2 kB / 1.114 GB, free: 3.766 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001712/1.239, allocations: 78.69 kB / 1.114 GB, free: 3.68 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.266e-05/1.239, allocations: 32.84 kB / 1.114 GB, free: 3.645 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 2.256e-05/1.239, allocations: 0 / 1.114 GB, free: 3.645 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000128/1.239, allocations: 89.53 kB / 1.114 GB, free: 3.547 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=11): time 1.333e-06/1.239, allocations: 3.938 kB / 1.114 GB, free: 3.543 MB / 0.7136 GB Notification: Performance of matching and sorting (n=11): time 0.0002868/1.24, allocations: 108.3 kB / 1.114 GB, free: 3.434 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.042e-05/1.24, allocations: 59.39 kB / 1.114 GB, free: 3.363 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.657e-05/1.24, allocations: 122.5 kB / 1.114 GB, free: 3.234 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 1.957e-05/1.24, allocations: 25.7 kB / 1.114 GB, free: 3.203 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 3.507e-05/1.24, allocations: 88.12 kB / 1.114 GB, free: 3.113 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 2.882e-05/1.24, allocations: 23.66 kB / 1.114 GB, free: 3.09 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.923e-06/1.24, allocations: 0 / 1.114 GB, free: 3.09 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 0.000112/1.24, allocations: 322.7 kB / 1.115 GB, free: 2.766 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.614e-05/1.24, allocations: 24 kB / 1.115 GB, free: 2.742 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.036e-05/1.24, allocations: 65.98 kB / 1.115 GB, free: 2.66 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.146e-05/1.24, allocations: 27.92 kB / 1.115 GB, free: 2.633 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.693e-06/1.24, allocations: 0 / 1.115 GB, free: 2.633 MB / 0.7136 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0001846/1.24, allocations: 109.5 kB / 1.115 GB, free: 2.52 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 1.394e-05/1.24, allocations: 8 kB / 1.115 GB, free: 2.512 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.591e-06/1.24, allocations: 4.094 kB / 1.115 GB, free: 2.508 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.366e-05/1.241, allocations: 4 kB / 1.115 GB, free: 2.504 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001248/1.241, allocations: 23.92 kB / 1.115 GB, free: 2.48 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.933e-06/1.241, allocations: 0 / 1.115 GB, free: 2.48 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001089/1.241, allocations: 23.83 kB / 1.115 GB, free: 2.457 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.358e-05/1.241, allocations: 6.625 kB / 1.115 GB, free: 2.453 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.47e-05/1.241, allocations: 116.9 kB / 1.115 GB, free: 2.332 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.869e-05/1.241, allocations: 7.906 kB / 1.115 GB, free: 2.324 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002677/1.241, allocations: 126 kB / 1.115 GB, free: 2.195 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.954e-06/1.241, allocations: 0 / 1.115 GB, free: 2.195 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.516e-06/1.241, allocations: 0 / 1.115 GB, free: 2.195 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.352e-06/1.241, allocations: 4.125 kB / 1.115 GB, free: 2.191 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005361/1.242, allocations: 394.9 kB / 1.116 GB, free: 1.762 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.855e-06/1.242, allocations: 3.984 kB / 1.116 GB, free: 1.758 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.17e-05/1.242, allocations: 16 kB / 1.116 GB, free: 1.742 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.354e-06/1.242, allocations: 0 / 1.116 GB, free: 1.742 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.61e-05/1.242, allocations: 7.984 kB / 1.116 GB, free: 1.734 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.614e-06/1.242, allocations: 8 kB / 1.116 GB, free: 1.727 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.984e-06/1.242, allocations: 0 / 1.116 GB, free: 1.727 MB / 0.7136 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002393/1.242, allocations: 210.9 kB / 1.116 GB, free: 1.508 MB / 0.7136 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0003241/1.242, allocations: 0.5779 MB / 1.116 GB, free: 0.9102 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 4.553e-05/1.243, allocations: 89 kB / 1.117 GB, free: 0.8047 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.014e-05/1.243, allocations: 4 kB / 1.117 GB, free: 0.8008 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001412/1.243, allocations: 11.98 kB / 1.117 GB, free: 0.7891 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.574e-05/1.243, allocations: 7.984 kB / 1.117 GB, free: 0.7812 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.276e-05/1.243, allocations: 4 kB / 1.117 GB, free: 0.7773 MB / 0.7136 GB Notification: Performance of sort global known variables: time 5.572e-05/1.243, allocations: 100.4 kB / 1.117 GB, free: 0.6797 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.0009062/1.244, allocations: 55.84 kB / 1.117 GB, free: 0.625 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.000374/1.244, allocations: 172.1 kB / 1.117 GB, free: 472 kB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 0.0001653/1.244, allocations: 75.92 kB / 1.117 GB, free: 396 kB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 3.637e-06/1.244, allocations: 0 / 1.117 GB, free: 396 kB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 8.544e-05/1.244, allocations: 51.86 kB / 1.117 GB, free: 344 kB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002481/1.245, allocations: 21.22 kB / 1.117 GB, free: 328 kB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004108/1.245, allocations: 127.3 kB / 1.117 GB, free: 176 kB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003676/1.246, allocations: 0.7192 MB / 1.118 GB, free: 15.43 MB / 0.7292 GB Notification: Performance of SimCode: time 2.81e-07/1.246, allocations: 0 / 1.118 GB, free: 15.43 MB / 0.7292 GB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Occupants_Office_Lighting_Validation_Gunay2016Light_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_8_Buildings_Occupants_Office_Lighting_Validation_Gunay2016Light.fmu > Buildings_8_Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light.pipe 2>&1)