Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Experimental.DHC.CentralPlants.Cooling.Controls.Validation.ChillerStage.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.Experimental.DHC.CentralPlants.Cooling.Controls.Validation.ChillerStage,fileNamePrefix="Buildings_8_Buildings_Experimental_DHC_CentralPlants_Cooling_Controls_Validation_ChillerStage",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Experimental.DHC.CentralPlants.Cooling.Controls.Validation.ChillerStage,fileNamePrefix="Buildings_8_Buildings_Experimental_DHC_CentralPlants_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 8.1.4-maint.8.1.x/package.mo): time 1.371/1.371, allocations: 289.8 MB / 297.1 MB, free: 6.594 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.0009675/0.0009674, allocations: 177.3 kB / 366.3 MB, free: 1.918 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.096/1.096, allocations: 205.1 MB / 0.6256 GB, free: 5.777 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.0008229/0.0008227, allocations: 82.25 kB / 0.7395 GB, free: 39.61 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.203/0.2038, allocations: 122.4 MB / 0.8591 GB, free: 13.19 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4827/0.6865, allocations: 116.3 MB / 0.9727 GB, free: 68.32 MB / 0.6511 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.6675/1.354, allocations: 371.6 MB / 1.336 GB, free: 115.7 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002126/1.354, allocations: 103.8 kB / 1.336 GB, free: 115.6 MB / 0.823 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.04363/1.398, allocations: 23.63 MB / 1.359 GB, free: 96.59 MB / 0.823 GB Notification: Performance of prepare preOptimizeDAE: time 3.172e-05/1.398, allocations: 12 kB / 1.359 GB, free: 96.57 MB / 0.823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001059/1.398, allocations: 67.23 kB / 1.359 GB, free: 96.51 MB / 0.823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01052/1.409, allocations: 6.08 MB / 1.365 GB, free: 91.79 MB / 0.823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.343e-05/1.409, allocations: 23.81 kB / 1.365 GB, free: 91.77 MB / 0.823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.401e-05/1.409, allocations: 36 kB / 1.365 GB, free: 91.73 MB / 0.823 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006024/1.409, allocations: 379 kB / 1.365 GB, free: 91.51 MB / 0.823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006379/1.41, allocations: 485.1 kB / 1.366 GB, free: 91.15 MB / 0.823 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.402e-05/1.41, allocations: 0 / 1.366 GB, free: 91.15 MB / 0.823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.005e-05/1.41, allocations: 3.984 kB / 1.366 GB, free: 91.15 MB / 0.823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.083e-05/1.41, allocations: 16 kB / 1.366 GB, free: 91.13 MB / 0.823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001627/1.412, allocations: 1.376 MB / 1.367 GB, free: 90.09 MB / 0.823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004913/1.412, allocations: 353.9 kB / 1.367 GB, free: 89.85 MB / 0.823 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002335/1.413, allocations: 173.8 kB / 1.368 GB, free: 89.75 MB / 0.823 GB Notification: Performance of preOpt evalFunc (simulation): time 2.697e-05/1.413, allocations: 12.34 kB / 1.368 GB, free: 89.73 MB / 0.823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002918/1.413, allocations: 224.5 kB / 1.368 GB, free: 89.57 MB / 0.823 GB Notification: Performance of pre-optimization done (n=55): time 1.794e-06/1.413, allocations: 0 / 1.368 GB, free: 89.57 MB / 0.823 GB Notification: Performance of matching and sorting (n=55): time 0.0005294/1.413, allocations: 345 kB / 1.368 GB, free: 89.3 MB / 0.823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.212e-05/1.413, allocations: 89.61 kB / 1.368 GB, free: 89.2 MB / 0.823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002605/1.414, allocations: 328.3 kB / 1.368 GB, free: 88.95 MB / 0.823 GB Notification: Performance of collectPreVariables (initialization): time 4.87e-05/1.414, allocations: 44.81 kB / 1.369 GB, free: 88.9 MB / 0.823 GB Notification: Performance of collectInitialEqns (initialization): time 7.986e-05/1.414, allocations: 206.3 kB / 1.369 GB, free: 88.71 MB / 0.823 GB Notification: Performance of collectInitialBindings (initialization): time 7.601e-05/1.414, allocations: 129.5 kB / 1.369 GB, free: 88.61 MB / 0.823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.109e-05/1.414, allocations: 0 / 1.369 GB, free: 88.61 MB / 0.823 GB Notification: Performance of setup shared object (initialization): time 6.188e-05/1.414, allocations: 356.6 kB / 1.369 GB, free: 88.27 MB / 0.823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002098/1.414, allocations: 144.9 kB / 1.369 GB, free: 88.19 MB / 0.823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002463/1.414, allocations: 260.5 kB / 1.37 GB, free: 87.97 MB / 0.823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001982/1.415, allocations: 146.3 kB / 1.37 GB, free: 87.88 MB / 0.823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.375e-06/1.415, allocations: 0 / 1.37 GB, free: 87.88 MB / 0.823 GB Notification: Performance of matching and sorting (n=79) (initialization): time 0.0005685/1.415, allocations: 449.3 kB / 1.37 GB, free: 87.53 MB / 0.823 GB Notification: Performance of prepare postOptimizeDAE: time 1.007e-05/1.415, allocations: 4 kB / 1.37 GB, free: 87.53 MB / 0.823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.454e-06/1.415, allocations: 8.25 kB / 1.37 GB, free: 87.52 MB / 0.823 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.378e-05/1.415, allocations: 8 kB / 1.37 GB, free: 87.51 MB / 0.823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002546/1.416, allocations: 71.75 kB / 1.37 GB, free: 87.45 MB / 0.823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.432e-06/1.416, allocations: 4 kB / 1.37 GB, free: 87.44 MB / 0.823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002479/1.416, allocations: 47.72 kB / 1.37 GB, free: 87.39 MB / 0.823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.001e-05/1.416, allocations: 23.8 kB / 1.37 GB, free: 87.38 MB / 0.823 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.0001061/1.416, allocations: 147.8 kB / 1.37 GB, free: 87.23 MB / 0.823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.09e-05/1.416, allocations: 39.53 kB / 1.37 GB, free: 87.19 MB / 0.823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006467/1.417, allocations: 424.7 kB / 1.371 GB, free: 86.89 MB / 0.823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.839e-06/1.417, allocations: 8 kB / 1.371 GB, free: 86.88 MB / 0.823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.469e-06/1.417, allocations: 0 / 1.371 GB, free: 86.88 MB / 0.823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.214e-06/1.417, allocations: 5.203 kB / 1.371 GB, free: 86.88 MB / 0.823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001291/1.418, allocations: 1.05 MB / 1.372 GB, free: 86.03 MB / 0.823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.014e-06/1.418, allocations: 0 / 1.372 GB, free: 86.03 MB / 0.823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001796/1.418, allocations: 46.97 kB / 1.372 GB, free: 85.99 MB / 0.823 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.978e-06/1.418, allocations: 0 / 1.372 GB, free: 85.99 MB / 0.823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.818e-05/1.418, allocations: 15.92 kB / 1.372 GB, free: 85.98 MB / 0.823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.136e-06/1.418, allocations: 4 kB / 1.372 GB, free: 85.97 MB / 0.823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.174e-06/1.418, allocations: 0 / 1.372 GB, free: 85.97 MB / 0.823 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.00054/1.419, allocations: 479.2 kB / 1.372 GB, free: 85.58 MB / 0.823 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0005782/1.419, allocations: 0.8599 MB / 1.373 GB, free: 84.79 MB / 0.823 GB Notification: Performance of postOpt removeConstants (simulation): time 6.262e-05/1.42, allocations: 120.2 kB / 1.373 GB, free: 84.66 MB / 0.823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.999e-05/1.42, allocations: 4 kB / 1.373 GB, free: 84.65 MB / 0.823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002354/1.42, allocations: 35.66 kB / 1.373 GB, free: 84.62 MB / 0.823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001276/1.42, allocations: 70.61 kB / 1.373 GB, free: 84.57 MB / 0.823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.227e-05/1.42, allocations: 23.42 kB / 1.374 GB, free: 84.55 MB / 0.823 GB Notification: Performance of sort global known variables: time 0.0001638/1.42, allocations: 220.6 kB / 1.374 GB, free: 84.38 MB / 0.823 GB Notification: Performance of remove unused functions: time 0.001018/1.421, allocations: 126.5 kB / 1.374 GB, free: 84.27 MB / 0.823 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.0006592/1.422, allocations: 390.2 kB / 1.374 GB, free: 83.94 MB / 0.823 GB Notification: Performance of simCode: created initialization part: time 0.0005221/1.422, allocations: 414.5 kB / 1.375 GB, free: 83.67 MB / 0.823 GB Notification: Performance of simCode: created event and clocks part: time 1.793e-06/1.422, allocations: 0 / 1.375 GB, free: 83.67 MB / 0.823 GB Notification: Performance of simCode: created simulation system equations: time 0.0002484/1.423, allocations: 221.4 kB / 1.375 GB, free: 83.52 MB / 0.823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003983/1.423, allocations: 60.22 kB / 1.375 GB, free: 83.47 MB / 0.823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00108/1.424, allocations: 0.6287 MB / 1.375 GB, free: 82.92 MB / 0.823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003905/1.425, allocations: 0.922 MB / 1.376 GB, free: 81.98 MB / 0.823 GB Notification: Performance of SimCode: time 2.71e-07/1.425, allocations: 0 / 1.376 GB, free: 81.98 MB / 0.823 GB (rm -f Buildings_8_Buildings.Experimental.DHC.CentralPlants.Cooling.Controls.Validation.ChillerStage.pipe ; mkfifo Buildings_8_Buildings.Experimental.DHC.CentralPlants.Cooling.Controls.Validation.ChillerStage.pipe ; head -c 1048576 < Buildings_8_Buildings.Experimental.DHC.CentralPlants.Cooling.Controls.Validation.ChillerStage.pipe >> ../files/Buildings_8_Buildings.Experimental.DHC.CentralPlants.Cooling.Controls.Validation.ChillerStage.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Experimental_DHC_CentralPlants_Cooling_Controls_Validation_ChillerStage_fmu --startTime=0 --stopTime=1200 --timeout=50 --tolerance=1e-06 Buildings_8_Buildings_Experimental_DHC_CentralPlants_Cooling_Controls_Validation_ChillerStage.fmu > Buildings_8_Buildings.Experimental.DHC.CentralPlants.Cooling.Controls.Validation.ChillerStage.pipe 2>&1)