Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Experimental.DHC.Plants.Cooling.Controls.Validation.ChillerStage.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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 Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Experimental.DHC.Plants.Cooling.Controls.Validation.ChillerStage,fileNamePrefix="Buildings_9_Buildings_Experimental_DHC_Plants_Cooling_Controls_Validation_ChillerStage",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Experimental.DHC.Plants.Cooling.Controls.Validation.ChillerStage,fileNamePrefix="Buildings_9_Buildings_Experimental_DHC_Plants_Cooling_Controls_Validation_ChillerStage",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 9.1.1-maint.9.1.x/package.mo): time 2.229/2.229, allocations: 387.2 MB / 394.5 MB, free: 7.527 MB / 318.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001153/0.001153, allocations: 178.3 kB / 487 MB, free: 7.895 MB / 382.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.515/1.515, allocations: 221.3 MB / 0.7819 GB, free: 4.332 MB / 0.5606 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001131/0.001131, allocations: 94.19 kB / 0.9213 GB, free: 64.96 MB / 0.67 GB Notification: Performance of FrontEnd - loaded program: time 0.3376/0.3388, allocations: 148.5 MB / 1.066 GB, free: 4.23 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3289/0.6677, allocations: 142.3 MB / 1.205 GB, free: 5.785 MB / 0.8575 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.089/1.757, allocations: 382.4 MB / 1.579 GB, free: 15.48 MB / 1.061 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003518/1.758, allocations: 112 kB / 1.579 GB, free: 15.37 MB / 1.061 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 130 * Number of variables: 130 Notification: Performance of Generate backend data structure: time 0.05748/1.815, allocations: 24.07 MB / 1.602 GB, free: 7.387 MB / 1.076 GB Notification: Performance of prepare preOptimizeDAE: time 5.11e-05/1.815, allocations: 8 kB / 1.602 GB, free: 7.379 MB / 1.076 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002727/1.816, allocations: 63.25 kB / 1.602 GB, free: 7.316 MB / 1.076 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01535/1.831, allocations: 6.219 MB / 1.609 GB, free: 1.023 MB / 1.076 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.063e-05/1.831, allocations: 27.89 kB / 1.609 GB, free: 0.9961 MB / 1.076 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001603/1.831, allocations: 36 kB / 1.609 GB, free: 0.9609 MB / 1.076 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0009732/1.832, allocations: 382.5 kB / 1.609 GB, free: 0.5859 MB / 1.076 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001035/1.833, allocations: 480.5 kB / 1.609 GB, free: 100 kB / 1.076 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.897e-05/1.833, allocations: 3.938 kB / 1.609 GB, free: 96 kB / 1.076 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.549e-05/1.833, allocations: 4 kB / 1.609 GB, free: 92 kB / 1.076 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.735e-05/1.833, allocations: 12 kB / 1.609 GB, free: 80 kB / 1.076 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002473/1.836, allocations: 1.388 MB / 1.611 GB, free: 14.65 MB / 1.092 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000599/1.836, allocations: 352.1 kB / 1.611 GB, free: 14.3 MB / 1.092 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002562/1.837, allocations: 181.6 kB / 1.611 GB, free: 14.12 MB / 1.092 GB Notification: Performance of preOpt evalFunc (simulation): time 2.983e-05/1.837, allocations: 12.42 kB / 1.611 GB, free: 14.11 MB / 1.092 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003534/1.837, allocations: 226 kB / 1.612 GB, free: 13.88 MB / 1.092 GB Notification: Performance of pre-optimization done (n=55): time 4.098e-06/1.837, allocations: 0 / 1.612 GB, free: 13.88 MB / 1.092 GB Notification: Performance of matching and sorting (n=55): time 0.0007547/1.838, allocations: 336.1 kB / 1.612 GB, free: 13.54 MB / 1.092 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.545e-05/1.838, allocations: 97.53 kB / 1.612 GB, free: 13.43 MB / 1.092 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004198/1.838, allocations: 335.1 kB / 1.612 GB, free: 13.09 MB / 1.092 GB Notification: Performance of collectPreVariables (initialization): time 6.637e-05/1.838, allocations: 37.7 kB / 1.612 GB, free: 13.05 MB / 1.092 GB Notification: Performance of collectInitialEqns (initialization): time 0.000146/1.839, allocations: 204.9 kB / 1.612 GB, free: 12.84 MB / 1.092 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001248/1.839, allocations: 126.3 kB / 1.613 GB, free: 12.71 MB / 1.092 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.104e-05/1.839, allocations: 0 / 1.613 GB, free: 12.71 MB / 1.092 GB Notification: Performance of setup shared object (initialization): time 0.0001438/1.839, allocations: 362.7 kB / 1.613 GB, free: 12.35 MB / 1.092 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002695/1.839, allocations: 145.3 kB / 1.613 GB, free: 12.21 MB / 1.092 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003155/1.839, allocations: 258 kB / 1.613 GB, free: 11.93 MB / 1.092 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002626/1.84, allocations: 147.1 kB / 1.613 GB, free: 11.78 MB / 1.092 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.777e-06/1.84, allocations: 0 / 1.613 GB, free: 11.78 MB / 1.092 GB Notification: Performance of matching and sorting (n=79) (initialization): time 0.0007176/1.84, allocations: 443.3 kB / 1.614 GB, free: 11.34 MB / 1.092 GB Notification: Performance of prepare postOptimizeDAE: time 1.555e-05/1.84, allocations: 4 kB / 1.614 GB, free: 11.34 MB / 1.092 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.077e-06/1.841, allocations: 4 kB / 1.614 GB, free: 11.34 MB / 1.092 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.961e-05/1.841, allocations: 8.25 kB / 1.614 GB, free: 11.33 MB / 1.092 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002903/1.841, allocations: 71.83 kB / 1.614 GB, free: 11.26 MB / 1.092 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.234e-05/1.841, allocations: 7.938 kB / 1.614 GB, free: 11.25 MB / 1.092 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003155/1.841, allocations: 43.81 kB / 1.614 GB, free: 11.21 MB / 1.092 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.395e-05/1.841, allocations: 20 kB / 1.614 GB, free: 11.19 MB / 1.092 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 60 ($PRE.chiStaCon.offToOne.enableFire,$PRE.chiStaCon.oneToTwo.enableFire,$PRE.chiStaCon.twoToOne.enableFire,$PRE.chiStaCon.oneToOff.enableFire,$whenCondition5,$PRE.on.combiTimeTable.nextTimeEvent,chiStaCon.stateGraphRoot.resume,chiStaCon.stateGraphRoot.suspend,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,chiStaCon.stateGraphRoot.activeSteps,chiStaCon.on,chiStaCon.y[1],$PRE.chiStaCon.off.localActive,chiStaCon.off.localActive,$PRE.chiStaCon.off.newActive,chiStaCon.off.newActive,$PRE.chiStaCon.off.oldActive,chiStaCon.off.oldActive,chiStaCon.off.active,$PRE.chiStaCon.oneOn.localActive,chiStaCon.oneOn.localActive,chiStaCon.oneOn.inPort[2].occupied,chiStaCon.oneOn.outPort[2].available,$PRE.chiStaCon.oneOn.newActive,chiStaCon.oneOn.newActive,$PRE.chiStaCon.oneOn.oldActive,chiStaCon.oneOn.oldActive,chiStaCon.oneOn.active,$PRE.chiStaCon.twoOn.localActive,chiStaCon.twoOn.localActive,$PRE.chiStaCon.twoOn.newActive,chiStaCon.twoOn.newActive,$PRE.chiStaCon.twoOn.oldActive,chiStaCon.twoOn.oldActive,chiStaCon.twoOn.active,chiStaCon.offToOne.enableFire,chiStaCon.offToOne.fire,$PRE.chiStaCon.offToOne.t_start,chiStaCon.offToOne.t_start,chiStaCon.oneToTwo.enableFire,chiStaCon.oneToTwo.fire,$PRE.chiStaCon.oneToTwo.t_start,chiStaCon.oneToTwo.t_start,chiStaCon.twoToOne.enableFire,chiStaCon.twoToOne.fire,$PRE.chiStaCon.twoToOne.t_start,chiStaCon.twoToOne.t_start,chiStaCon.oneToOff.enableFire,chiStaCon.oneToOff.fire,$PRE.chiStaCon.oneToOff.t_start,chiStaCon.oneToOff.t_start,$PRE.chiStaCon.thrOneToTwo.y,chiStaCon.thrOneToTwo.y,chiStaCon.TwoToOne.y,on.combiTimeTable.nextTimeEvent,$PRE.on.combiTimeTable.nextTimeEventScaled,on.combiTimeTable.nextTimeEventScaled) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (79): * Single equations (assignments): 79 * 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 0.0001671/1.841, allocations: 160.7 kB / 1.614 GB, free: 11.02 MB / 1.092 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.194e-05/1.841, allocations: 39.53 kB / 1.614 GB, free: 10.98 MB / 1.092 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007901/1.842, allocations: 412.9 kB / 1.615 GB, free: 10.58 MB / 1.092 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.846e-06/1.842, allocations: 11.91 kB / 1.615 GB, free: 10.57 MB / 1.092 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.682e-06/1.842, allocations: 0 / 1.615 GB, free: 10.57 MB / 1.092 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.147e-06/1.842, allocations: 3.984 kB / 1.615 GB, free: 10.57 MB / 1.092 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001834/1.844, allocations: 1.053 MB / 1.616 GB, free: 9.465 MB / 1.092 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.835e-06/1.844, allocations: 3.938 kB / 1.616 GB, free: 9.461 MB / 1.092 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001931/1.844, allocations: 39.92 kB / 1.616 GB, free: 9.422 MB / 1.092 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.813e-06/1.844, allocations: 0 / 1.616 GB, free: 9.422 MB / 1.092 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.329e-05/1.844, allocations: 15.98 kB / 1.616 GB, free: 9.406 MB / 1.092 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.719e-06/1.844, allocations: 5.219 kB / 1.616 GB, free: 9.402 MB / 1.092 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.785e-06/1.844, allocations: 0 / 1.616 GB, free: 9.402 MB / 1.092 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0007428/1.845, allocations: 480.4 kB / 1.616 GB, free: 8.914 MB / 1.092 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0008493/1.846, allocations: 0.8588 MB / 1.617 GB, free: 8.039 MB / 1.092 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001165/1.846, allocations: 128.6 kB / 1.617 GB, free: 7.895 MB / 1.092 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.509e-05/1.846, allocations: 4 kB / 1.617 GB, free: 7.891 MB / 1.092 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002581/1.847, allocations: 31.97 kB / 1.617 GB, free: 7.859 MB / 1.092 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001652/1.847, allocations: 68.39 kB / 1.617 GB, free: 7.793 MB / 1.092 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.216e-05/1.847, allocations: 23.91 kB / 1.617 GB, free: 7.77 MB / 1.092 GB Notification: Performance of sort global known variables: time 0.0002456/1.847, allocations: 223.1 kB / 1.617 GB, free: 7.551 MB / 1.092 GB Notification: Performance of remove unused functions: time 0.001183/1.848, allocations: 111.9 kB / 1.618 GB, free: 7.441 MB / 1.092 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 44 (chiStaCon.twoToOne.enableFire,chiStaCon.oneToOff.enableFire,chiStaCon.offToOne.enableFire,chiStaCon.oneToTwo.enableFire,chiStaCon.twoOn.localActive,chiStaCon.oneOn.localActive,chiStaCon.off.localActive,$cse2,$cse3,$cse4,$cse5,$cse6,$cse7,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,chiStaCon.stateGraphRoot.activeSteps,chiStaCon.on,chiStaCon.y[1],chiStaCon.off.newActive,chiStaCon.off.oldActive,chiStaCon.off.active,chiStaCon.oneOn.inPort[2].occupied,chiStaCon.oneOn.outPort[2].available,chiStaCon.oneOn.newActive,chiStaCon.oneOn.oldActive,chiStaCon.oneOn.active,chiStaCon.twoOn.newActive,chiStaCon.twoOn.oldActive,chiStaCon.twoOn.active,chiStaCon.offToOne.fire,chiStaCon.offToOne.t_start,chiStaCon.oneToTwo.fire,chiStaCon.oneToTwo.t_start,chiStaCon.twoToOne.fire,chiStaCon.twoToOne.t_start,chiStaCon.oneToOff.fire,chiStaCon.oneToOff.t_start,chiStaCon.thrOneToTwo.y,chiStaCon.TwoToOne.y,on.combiTimeTable.nextTimeEvent,on.combiTimeTable.nextTimeEventScaled) * Number of discrete states: 6 (on.combiTimeTable.nextTimeEvent,chiStaCon.off.newActive,chiStaCon.oneOn.newActive,chiStaCon.twoOn.newActive,chiStaCon.thrOneToTwo.y,on.combiTimeTable.nextTimeEventScaled) * Top-level inputs: 0 Notification: Strong component statistics for simulation (62): * Single equations (assignments): 53 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 9 * 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.0008451/1.849, allocations: 384.3 kB / 1.618 GB, free: 7.18 MB / 1.092 GB Notification: Performance of simCode: created initialization part: time 0.000755/1.85, allocations: 416.9 kB / 1.618 GB, free: 6.773 MB / 1.092 GB Notification: Performance of simCode: created event and clocks part: time 2.985e-06/1.85, allocations: 0 / 1.618 GB, free: 6.773 MB / 1.092 GB Notification: Performance of simCode: created simulation system equations: time 0.0003499/1.85, allocations: 213.9 kB / 1.619 GB, free: 6.566 MB / 1.092 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005294/1.851, allocations: 73.3 kB / 1.619 GB, free: 6.5 MB / 1.092 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001647/1.852, allocations: 0.6373 MB / 1.619 GB, free: 5.844 MB / 1.092 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000937/1.853, allocations: 0.9278 MB / 1.62 GB, free: 4.895 MB / 1.092 GB Notification: Performance of SimCode: time 3.41e-07/1.853, allocations: 0 / 1.62 GB, free: 4.895 MB / 1.092 GB (rm -f Buildings_9_Buildings.Experimental.DHC.Plants.Cooling.Controls.Validation.ChillerStage.pipe ; mkfifo Buildings_9_Buildings.Experimental.DHC.Plants.Cooling.Controls.Validation.ChillerStage.pipe ; head -c 1048576 < Buildings_9_Buildings.Experimental.DHC.Plants.Cooling.Controls.Validation.ChillerStage.pipe >> ../files/Buildings_9_Buildings.Experimental.DHC.Plants.Cooling.Controls.Validation.ChillerStage.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Experimental.DHC.Plants.Cooling.Controls.Validation.ChillerStage_res.mat --tempDir=temp_Buildings_9_Buildings_Experimental_DHC_Plants_Cooling_Controls_Validation_ChillerStage_fmu --startTime=0 --stopTime=1200 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Experimental_DHC_Plants_Cooling_Controls_Validation_ChillerStage.fmu > Buildings_9_Buildings.Experimental.DHC.Plants.Cooling.Controls.Validation.ChillerStage.pipe 2>&1)