Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Experimental.DHC.Plants.Cooling.Controls.Validation.ChillerStage.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo) Running command: "" <> buildModelFMU(Buildings.Experimental.DHC.Plants.Cooling.Controls.Validation.ChillerStage,fileNamePrefix="Buildings_latest_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_latest_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 10.0.0-master/package.mo): time 2.367/2.367, allocations: 390.4 MB / 397.7 MB, free: 11.25 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001232/0.001232, allocations: 186.2 kB / 490.8 MB, free: 1.93 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.676/1.676, allocations: 221.4 MB / 0.7863 GB, free: 13.65 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00106/0.00106, allocations: 90.8 kB / 0.9264 GB, free: 14.18 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 0.814/0.8151, allocations: 149.1 MB / 1.072 GB, free: 182.4 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.338/1.153, allocations: 143 MB / 1.212 GB, free: 39.95 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.237/2.39, allocations: 383.2 MB / 1.586 GB, free: 15.39 MB / 1.01 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003218/2.391, allocations: 103.1 kB / 1.586 GB, free: 15.33 MB / 1.01 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.05795/2.449, allocations: 24.07 MB / 1.61 GB, free: 11.9 MB / 1.026 GB Notification: Performance of prepare preOptimizeDAE: time 4.371e-05/2.449, allocations: 8 kB / 1.61 GB, free: 11.89 MB / 1.026 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002636/2.449, allocations: 67.16 kB / 1.61 GB, free: 11.83 MB / 1.026 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01542/2.464, allocations: 6.218 MB / 1.616 GB, free: 6.977 MB / 1.026 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.957e-05/2.465, allocations: 23.44 kB / 1.616 GB, free: 6.957 MB / 1.026 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001975/2.465, allocations: 36 kB / 1.616 GB, free: 6.922 MB / 1.026 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001111/2.466, allocations: 396.9 kB / 1.616 GB, free: 6.68 MB / 1.026 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001059/2.467, allocations: 481.4 kB / 1.617 GB, free: 6.328 MB / 1.026 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.006e-05/2.467, allocations: 0 / 1.617 GB, free: 6.328 MB / 1.026 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.449e-05/2.467, allocations: 0 / 1.617 GB, free: 6.328 MB / 1.026 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.251e-05/2.467, allocations: 16 kB / 1.617 GB, free: 6.312 MB / 1.026 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002814/2.47, allocations: 1.381 MB / 1.618 GB, free: 5.262 MB / 1.026 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006783/2.471, allocations: 356.1 kB / 1.618 GB, free: 5.023 MB / 1.026 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002945/2.471, allocations: 183.7 kB / 1.618 GB, free: 4.914 MB / 1.026 GB Notification: Performance of preOpt evalFunc (simulation): time 3.561e-05/2.471, allocations: 8.438 kB / 1.618 GB, free: 4.906 MB / 1.026 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003816/2.471, allocations: 228 kB / 1.619 GB, free: 4.734 MB / 1.026 GB Notification: Performance of pre-optimization done (n=55): time 2.374e-06/2.471, allocations: 0 / 1.619 GB, free: 4.734 MB / 1.026 GB Notification: Performance of matching and sorting (n=55): time 0.0008537/2.472, allocations: 338.5 kB / 1.619 GB, free: 4.473 MB / 1.026 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.993e-05/2.472, allocations: 92.61 kB / 1.619 GB, free: 4.367 MB / 1.026 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000544/2.473, allocations: 334.1 kB / 1.619 GB, free: 4.109 MB / 1.026 GB Notification: Performance of collectPreVariables (initialization): time 8.646e-05/2.473, allocations: 40.77 kB / 1.619 GB, free: 4.07 MB / 1.026 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002096/2.473, allocations: 206.4 kB / 1.62 GB, free: 3.883 MB / 1.026 GB Notification: Performance of collectInitialBindings (initialization): time 0.000143/2.473, allocations: 127.2 kB / 1.62 GB, free: 3.777 MB / 1.026 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.532e-05/2.473, allocations: 0 / 1.62 GB, free: 3.777 MB / 1.026 GB Notification: Performance of setup shared object (initialization): time 0.0001845/2.474, allocations: 353.3 kB / 1.62 GB, free: 3.441 MB / 1.026 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002795/2.474, allocations: 145.4 kB / 1.62 GB, free: 3.359 MB / 1.026 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000434/2.474, allocations: 260.3 kB / 1.62 GB, free: 3.141 MB / 1.026 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002875/2.475, allocations: 144.7 kB / 1.621 GB, free: 3.051 MB / 1.026 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.741e-06/2.475, allocations: 3.906 kB / 1.621 GB, free: 3.047 MB / 1.026 GB Notification: Performance of matching and sorting (n=79) (initialization): time 0.0007803/2.475, allocations: 449.3 kB / 1.621 GB, free: 2.703 MB / 1.026 GB Notification: Performance of prepare postOptimizeDAE: time 1.802e-05/2.475, allocations: 4 kB / 1.621 GB, free: 2.699 MB / 1.026 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.268e-06/2.475, allocations: 4.188 kB / 1.621 GB, free: 2.695 MB / 1.026 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.914e-05/2.476, allocations: 12 kB / 1.621 GB, free: 2.684 MB / 1.026 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002904/2.476, allocations: 66.53 kB / 1.621 GB, free: 2.625 MB / 1.026 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.268e-05/2.476, allocations: 8 kB / 1.621 GB, free: 2.617 MB / 1.026 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003349/2.476, allocations: 43.81 kB / 1.621 GB, free: 2.574 MB / 1.026 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.615e-05/2.476, allocations: 19.25 kB / 1.621 GB, free: 2.559 MB / 1.026 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.000183/2.476, allocations: 159.4 kB / 1.621 GB, free: 2.402 MB / 1.026 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.583e-05/2.477, allocations: 39.53 kB / 1.621 GB, free: 2.363 MB / 1.026 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008467/2.477, allocations: 417.5 kB / 1.622 GB, free: 2.059 MB / 1.026 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.077e-05/2.477, allocations: 8 kB / 1.622 GB, free: 2.051 MB / 1.026 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.831e-06/2.477, allocations: 0 / 1.622 GB, free: 2.051 MB / 1.026 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.065e-05/2.477, allocations: 7.891 kB / 1.622 GB, free: 2.043 MB / 1.026 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001929/2.479, allocations: 1.044 MB / 1.623 GB, free: 1.207 MB / 1.026 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.897e-06/2.479, allocations: 0 / 1.623 GB, free: 1.207 MB / 1.026 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002134/2.48, allocations: 51.09 kB / 1.623 GB, free: 1.16 MB / 1.026 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.347e-06/2.48, allocations: 7.906 kB / 1.623 GB, free: 1.152 MB / 1.026 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.645e-05/2.48, allocations: 4 kB / 1.623 GB, free: 1.148 MB / 1.026 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.797e-06/2.48, allocations: 0 / 1.623 GB, free: 1.148 MB / 1.026 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.917e-06/2.48, allocations: 4 kB / 1.623 GB, free: 1.145 MB / 1.026 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0008244/2.481, allocations: 486 kB / 1.623 GB, free: 0.7461 MB / 1.026 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.000993/2.482, allocations: 0.8576 MB / 1.624 GB, free: 15.96 MB / 1.042 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001234/2.482, allocations: 119.6 kB / 1.624 GB, free: 15.83 MB / 1.042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.831e-05/2.482, allocations: 6.625 kB / 1.624 GB, free: 15.83 MB / 1.042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002566/2.482, allocations: 34.66 kB / 1.624 GB, free: 15.8 MB / 1.042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001723/2.482, allocations: 65.83 kB / 1.624 GB, free: 15.74 MB / 1.042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.497e-05/2.482, allocations: 27.48 kB / 1.624 GB, free: 15.72 MB / 1.042 GB Notification: Performance of sort global known variables: time 0.0002428/2.483, allocations: 218.2 kB / 1.625 GB, free: 15.55 MB / 1.042 GB Notification: Performance of remove unused functions: time 0.001155/2.484, allocations: 117.1 kB / 1.625 GB, free: 15.45 MB / 1.042 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.0009436/2.485, allocations: 389 kB / 1.625 GB, free: 15.15 MB / 1.042 GB Notification: Performance of simCode: created initialization part: time 0.0007977/2.485, allocations: 415.5 kB / 1.626 GB, free: 14.87 MB / 1.042 GB Notification: Performance of simCode: created event and clocks part: time 2.916e-06/2.485, allocations: 0 / 1.626 GB, free: 14.87 MB / 1.042 GB Notification: Performance of simCode: created simulation system equations: time 0.000387/2.486, allocations: 224.5 kB / 1.626 GB, free: 14.72 MB / 1.042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005298/2.486, allocations: 61.39 kB / 1.626 GB, free: 14.68 MB / 1.042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001742/2.488, allocations: 0.6336 MB / 1.626 GB, free: 14.12 MB / 1.042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008585/2.489, allocations: 0.9186 MB / 1.627 GB, free: 13.18 MB / 1.042 GB Notification: Performance of SimCode: time 3.11e-07/2.489, allocations: 4 kB / 1.627 GB, free: 13.18 MB / 1.042 GB (rm -f Buildings_latest_Buildings.Experimental.DHC.Plants.Cooling.Controls.Validation.ChillerStage.pipe ; mkfifo Buildings_latest_Buildings.Experimental.DHC.Plants.Cooling.Controls.Validation.ChillerStage.pipe ; head -c 1048576 < Buildings_latest_Buildings.Experimental.DHC.Plants.Cooling.Controls.Validation.ChillerStage.pipe >> ../files/Buildings_latest_Buildings.Experimental.DHC.Plants.Cooling.Controls.Validation.ChillerStage.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Experimental.DHC.Plants.Cooling.Controls.Validation.ChillerStage_res.mat --tempDir=temp_Buildings_latest_Buildings_Experimental_DHC_Plants_Cooling_Controls_Validation_ChillerStage_fmu --startTime=0 --stopTime=1200 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Experimental_DHC_Plants_Cooling_Controls_Validation_ChillerStage.fmu > Buildings_latest_Buildings.Experimental.DHC.Plants.Cooling.Controls.Validation.ChillerStage.pipe 2>&1)