Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.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.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl,fileNamePrefix="Buildings_8_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_WSEControl",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl,fileNamePrefix="Buildings_8_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_WSEControl",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.419/1.419, allocations: 289.8 MB / 297 MB, free: 12.61 MB / 242.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001052/0.001052, allocations: 182.5 kB / 366.3 MB, free: 11.93 MB / 290.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.124/1.124, allocations: 205.1 MB / 0.6256 GB, free: 1.996 MB / 466.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007907/0.0007906, allocations: 93.75 kB / 0.7395 GB, free: 46.99 MB / 0.5183 GB Notification: Performance of FrontEnd - loaded program: time 0.1999/0.2008, allocations: 122.4 MB / 0.8591 GB, free: 7.055 MB / 0.5964 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4885/0.6892, allocations: 116.3 MB / 0.9726 GB, free: 81.43 MB / 0.6746 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1428/0.832, allocations: 141.6 MB / 1.111 GB, free: 2.289 MB / 0.7058 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001982/0.8323, allocations: 91.92 kB / 1.111 GB, free: 2.199 MB / 0.7058 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 72 * Number of variables: 72 Notification: Performance of Generate backend data structure: time 0.01162/0.8439, allocations: 4.881 MB / 1.116 GB, free: 13.28 MB / 0.7214 GB Notification: Performance of prepare preOptimizeDAE: time 3.201e-05/0.8439, allocations: 16 kB / 1.116 GB, free: 13.27 MB / 0.7214 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.041e-05/0.844, allocations: 36.27 kB / 1.116 GB, free: 13.23 MB / 0.7214 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002857/0.8443, allocations: 266.6 kB / 1.116 GB, free: 12.93 MB / 0.7214 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.981e-05/0.8443, allocations: 19.91 kB / 1.116 GB, free: 12.91 MB / 0.7214 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.052e-05/0.8444, allocations: 16 kB / 1.116 GB, free: 12.89 MB / 0.7214 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004013/0.8448, allocations: 205.3 kB / 1.116 GB, free: 12.7 MB / 0.7214 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004282/0.8452, allocations: 269.1 kB / 1.117 GB, free: 12.42 MB / 0.7214 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.061e-05/0.8453, allocations: 0 / 1.117 GB, free: 12.42 MB / 0.7214 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.483e-05/0.8453, allocations: 4.656 kB / 1.117 GB, free: 12.42 MB / 0.7214 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.316e-06/0.8453, allocations: 8 kB / 1.117 GB, free: 12.41 MB / 0.7214 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00122/0.8465, allocations: 0.8872 MB / 1.117 GB, free: 11.48 MB / 0.7214 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003816/0.8469, allocations: 207.2 kB / 1.118 GB, free: 11.27 MB / 0.7214 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001452/0.8471, allocations: 97.34 kB / 1.118 GB, free: 11.18 MB / 0.7214 GB Notification: Performance of preOpt evalFunc (simulation): time 2.468e-05/0.8471, allocations: 8 kB / 1.118 GB, free: 11.17 MB / 0.7214 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002044/0.8473, allocations: 148.2 kB / 1.118 GB, free: 11.02 MB / 0.7214 GB Notification: Performance of pre-optimization done (n=32): time 1.703e-06/0.8473, allocations: 4.938 kB / 1.118 GB, free: 11.01 MB / 0.7214 GB Notification: Performance of matching and sorting (n=32): time 0.0003402/0.8477, allocations: 187 kB / 1.118 GB, free: 10.82 MB / 0.7214 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.357e-05/0.8477, allocations: 63.41 kB / 1.118 GB, free: 10.75 MB / 0.7214 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001252/0.8478, allocations: 163.9 kB / 1.118 GB, free: 10.58 MB / 0.7214 GB Notification: Performance of collectPreVariables (initialization): time 4e-05/0.8479, allocations: 33.7 kB / 1.118 GB, free: 10.54 MB / 0.7214 GB Notification: Performance of collectInitialEqns (initialization): time 7.232e-05/0.848, allocations: 140.5 kB / 1.118 GB, free: 10.4 MB / 0.7214 GB Notification: Performance of collectInitialBindings (initialization): time 6.243e-05/0.848, allocations: 78.95 kB / 1.119 GB, free: 10.32 MB / 0.7214 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.463e-05/0.8481, allocations: 0 / 1.119 GB, free: 10.32 MB / 0.7214 GB Notification: Performance of setup shared object (initialization): time 0.0001017/0.8482, allocations: 342.8 kB / 1.119 GB, free: 9.977 MB / 0.7214 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001456/0.8483, allocations: 76.88 kB / 1.119 GB, free: 9.902 MB / 0.7214 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001715/0.8485, allocations: 141.8 kB / 1.119 GB, free: 9.746 MB / 0.7214 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001332/0.8486, allocations: 79.91 kB / 1.119 GB, free: 9.668 MB / 0.7214 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.043e-06/0.8487, allocations: 4 kB / 1.119 GB, free: 9.664 MB / 0.7214 GB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0003951/0.8491, allocations: 257.6 kB / 1.119 GB, free: 9.41 MB / 0.7214 GB Notification: Performance of prepare postOptimizeDAE: time 1.038e-05/0.8491, allocations: 7.938 kB / 1.119 GB, free: 9.402 MB / 0.7214 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.829e-06/0.8491, allocations: 0 / 1.119 GB, free: 9.402 MB / 0.7214 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.411e-05/0.8491, allocations: 7.906 kB / 1.119 GB, free: 9.395 MB / 0.7214 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002269/0.8493, allocations: 52.06 kB / 1.12 GB, free: 9.344 MB / 0.7214 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.061e-06/0.8493, allocations: 4 kB / 1.12 GB, free: 9.34 MB / 0.7214 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002527/0.8496, allocations: 51.73 kB / 1.12 GB, free: 9.289 MB / 0.7214 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.461e-05/0.8496, allocations: 16 kB / 1.12 GB, free: 9.273 MB / 0.7214 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 36 ($PRE.wseCon.T1.enableFire,$PRE.wseCon.T2.enableFire,wseCon.stateGraphRoot.resume,wseCon.stateGraphRoot.suspend,$whenCondition3,$whenCondition2,$whenCondition1,$PRE.wseCHWST.T_start,wseCHWST.T_start,$PRE.wseCHWST.count,wseCHWST.count,$PRE.wseCon.off.localActive,wseCon.off.localActive,$PRE.wseCon.off.newActive,wseCon.off.newActive,$PRE.wseCon.off.oldActive,wseCon.off.oldActive,wseCon.off.active,wseCon.T1.enableFire,wseCon.T1.fire,$PRE.wseCon.T1.t_start,wseCon.T1.t_start,wseCon.T1.condition,$PRE.wseCon.on.localActive,wseCon.on.localActive,$PRE.wseCon.on.newActive,wseCon.on.newActive,$PRE.wseCon.on.oldActive,wseCon.on.oldActive,wseCon.on.active,wseCon.T2.enableFire,wseCon.T2.fire,$PRE.wseCon.T2.t_start,wseCon.T2.t_start,wseCon.T2.condition,wseCon.stateGraphRoot.activeSteps) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (47): * Single equations (assignments): 46 * Array equations: 0 * Algorithm blocks: 1 * 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 9.514e-05/0.8497, allocations: 124.3 kB / 1.12 GB, free: 9.145 MB / 0.7214 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.153e-05/0.8498, allocations: 19.72 kB / 1.12 GB, free: 9.125 MB / 0.7214 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003939/0.8502, allocations: 232.7 kB / 1.12 GB, free: 8.898 MB / 0.7214 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.859e-06/0.8502, allocations: 4 kB / 1.12 GB, free: 8.895 MB / 0.7214 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.198e-06/0.8502, allocations: 0 / 1.12 GB, free: 8.895 MB / 0.7214 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.571e-06/0.8502, allocations: 3.984 kB / 1.12 GB, free: 8.891 MB / 0.7214 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008278/0.8511, allocations: 0.6354 MB / 1.121 GB, free: 8.211 MB / 0.7214 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.904e-06/0.8511, allocations: 4 kB / 1.121 GB, free: 8.207 MB / 0.7214 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001415/0.8512, allocations: 27.97 kB / 1.121 GB, free: 8.18 MB / 0.7214 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.815e-06/0.8512, allocations: 7.938 kB / 1.121 GB, free: 8.172 MB / 0.7214 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.718e-05/0.8512, allocations: 0 / 1.121 GB, free: 8.172 MB / 0.7214 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.399e-06/0.8513, allocations: 4.812 kB / 1.121 GB, free: 8.168 MB / 0.7214 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.735e-06/0.8513, allocations: 3.906 kB / 1.121 GB, free: 8.164 MB / 0.7214 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.000333/0.8516, allocations: 303.2 kB / 1.121 GB, free: 7.852 MB / 0.7214 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0004004/0.852, allocations: 0.668 MB / 1.122 GB, free: 7.164 MB / 0.7214 GB Notification: Performance of postOpt removeConstants (simulation): time 4.437e-05/0.8521, allocations: 100.8 kB / 1.122 GB, free: 7.047 MB / 0.7214 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.807e-05/0.8521, allocations: 3.984 kB / 1.122 GB, free: 7.043 MB / 0.7214 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002511/0.8524, allocations: 36.66 kB / 1.122 GB, free: 7.008 MB / 0.7214 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001037/0.8525, allocations: 43.94 kB / 1.122 GB, free: 6.965 MB / 0.7214 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.106e-05/0.8525, allocations: 15.94 kB / 1.122 GB, free: 6.949 MB / 0.7214 GB Notification: Performance of sort global known variables: time 6.798e-05/0.8526, allocations: 108 kB / 1.122 GB, free: 6.844 MB / 0.7214 GB Notification: Performance of remove unused functions: time 0.0009063/0.8535, allocations: 63.83 kB / 1.122 GB, free: 6.781 MB / 0.7214 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 24 (wseCon.T1.enableFire,wseCon.T2.enableFire,wseCon.on.localActive,wseCon.off.localActive,$cse1,$cse2,$whenCondition3,$whenCondition2,$whenCondition1,wseCHWST.T_start,wseCHWST.count,wseCon.off.newActive,wseCon.off.oldActive,wseCon.off.active,wseCon.T1.fire,wseCon.T1.t_start,wseCon.T1.condition,wseCon.on.newActive,wseCon.on.oldActive,wseCon.on.active,wseCon.T2.fire,wseCon.T2.t_start,wseCon.T2.condition,wseCon.stateGraphRoot.activeSteps) * Number of discrete states: 3 (wseCHWST.count,wseCon.off.newActive,wseCon.on.newActive) * Top-level inputs: 0 Notification: Strong component statistics for simulation (34): * Single equations (assignments): 28 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 6 * 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.0001481/0.8536, allocations: 106 kB / 1.122 GB, free: 6.672 MB / 0.7214 GB Notification: Performance of simCode: created initialization part: time 0.0003689/0.854, allocations: 258.5 kB / 1.122 GB, free: 6.414 MB / 0.7214 GB Notification: Performance of simCode: created event and clocks part: time 1.583e-06/0.854, allocations: 4.062 kB / 1.122 GB, free: 6.41 MB / 0.7214 GB Notification: Performance of simCode: created simulation system equations: time 0.0001673/0.8542, allocations: 115.9 kB / 1.122 GB, free: 6.297 MB / 0.7214 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002892/0.8545, allocations: 16.64 kB / 1.122 GB, free: 6.281 MB / 0.7214 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006448/0.8552, allocations: 318.5 kB / 1.123 GB, free: 5.949 MB / 0.7214 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003526/0.8555, allocations: 0.7973 MB / 1.123 GB, free: 5.129 MB / 0.7214 GB Notification: Performance of SimCode: time 2.7e-07/0.8555, allocations: 0 / 1.123 GB, free: 5.129 MB / 0.7214 GB (rm -f Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.pipe ; mkfifo Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.pipe ; head -c 1048576 < Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.pipe >> ../files/Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_WSEControl_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_8_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_WSEControl.fmu > Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.pipe 2>&1)