Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.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.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl,fileNamePrefix="Buildings_9_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_BatteryControl",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl,fileNamePrefix="Buildings_9_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_BatteryControl",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 1.816/1.816, allocations: 387.2 MB / 394.5 MB, free: 13.67 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.0009756/0.0009756, allocations: 172.5 kB / 487 MB, free: 5.395 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.129/1.129, allocations: 221.3 MB / 0.7819 GB, free: 1.406 MB / 0.5417 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008088/0.0008086, allocations: 93.06 kB / 0.9213 GB, free: 2.664 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.4063/0.4071, allocations: 148.5 MB / 1.066 GB, free: 168.2 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1922/0.5993, allocations: 142.3 MB / 1.205 GB, free: 26.16 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.5095/1.109, allocations: 152.6 MB / 1.354 GB, free: 16.16 MB / 0.8073 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000299/1.109, allocations: 93.11 kB / 1.354 GB, free: 16.16 MB / 0.8073 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 128 * Number of variables: 128 Notification: Performance of Generate backend data structure: time 0.02028/1.13, allocations: 8.534 MB / 1.363 GB, free: 13.95 MB / 0.8073 GB Notification: Performance of prepare preOptimizeDAE: time 3.44e-05/1.13, allocations: 8 kB / 1.363 GB, free: 13.94 MB / 0.8073 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.605e-05/1.13, allocations: 58.59 kB / 1.363 GB, free: 13.88 MB / 0.8073 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003213/1.13, allocations: 333.7 kB / 1.363 GB, free: 13.57 MB / 0.8073 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.865e-05/1.13, allocations: 23.19 kB / 1.363 GB, free: 13.55 MB / 0.8073 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.77e-05/1.13, allocations: 39.92 kB / 1.363 GB, free: 13.52 MB / 0.8073 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005658/1.131, allocations: 363.8 kB / 1.364 GB, free: 13.3 MB / 0.8073 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006201/1.131, allocations: 499.2 kB / 1.364 GB, free: 12.91 MB / 0.8073 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.506e-05/1.131, allocations: 7.984 kB / 1.364 GB, free: 12.9 MB / 0.8073 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.518e-05/1.131, allocations: 4 kB / 1.364 GB, free: 12.89 MB / 0.8073 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.298e-05/1.131, allocations: 20.98 kB / 1.364 GB, free: 12.88 MB / 0.8073 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001525/1.133, allocations: 1.8 MB / 1.366 GB, free: 11.38 MB / 0.8073 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004037/1.133, allocations: 353.2 kB / 1.366 GB, free: 11.11 MB / 0.8073 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002004/1.134, allocations: 186 kB / 1.366 GB, free: 10.99 MB / 0.8073 GB Notification: Performance of preOpt evalFunc (simulation): time 4.96e-05/1.134, allocations: 11.98 kB / 1.366 GB, free: 10.98 MB / 0.8073 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002577/1.134, allocations: 239.6 kB / 1.367 GB, free: 10.78 MB / 0.8073 GB Notification: Performance of pre-optimization done (n=48): time 1.773e-06/1.134, allocations: 0 / 1.367 GB, free: 10.78 MB / 0.8073 GB Notification: Performance of matching and sorting (n=48): time 0.000477/1.134, allocations: 311.8 kB / 1.367 GB, free: 10.54 MB / 0.8073 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.054e-05/1.134, allocations: 118.4 kB / 1.367 GB, free: 10.41 MB / 0.8073 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000127/1.135, allocations: 208.7 kB / 1.367 GB, free: 10.23 MB / 0.8073 GB Notification: Performance of collectPreVariables (initialization): time 4.484e-05/1.135, allocations: 44.69 kB / 1.367 GB, free: 10.19 MB / 0.8073 GB Notification: Performance of collectInitialEqns (initialization): time 7.946e-05/1.135, allocations: 198.5 kB / 1.367 GB, free: 10.02 MB / 0.8073 GB Notification: Performance of collectInitialBindings (initialization): time 6.847e-05/1.135, allocations: 107.6 kB / 1.368 GB, free: 9.934 MB / 0.8073 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.829e-05/1.135, allocations: 0 / 1.368 GB, free: 9.934 MB / 0.8073 GB Notification: Performance of setup shared object (initialization): time 5.353e-05/1.135, allocations: 341.6 kB / 1.368 GB, free: 9.605 MB / 0.8073 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001903/1.135, allocations: 143.9 kB / 1.368 GB, free: 9.523 MB / 0.8073 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002243/1.135, allocations: 267.8 kB / 1.368 GB, free: 9.277 MB / 0.8073 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002435/1.135, allocations: 151.5 kB / 1.368 GB, free: 9.18 MB / 0.8073 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.376e-06/1.135, allocations: 7.938 kB / 1.368 GB, free: 9.172 MB / 0.8073 GB Notification: Performance of matching and sorting (n=76) (initialization): time 0.0005657/1.136, allocations: 448.4 kB / 1.369 GB, free: 8.828 MB / 0.8073 GB Notification: Performance of prepare postOptimizeDAE: time 1.017e-05/1.136, allocations: 7.984 kB / 1.369 GB, free: 8.82 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.002e-06/1.136, allocations: 4 kB / 1.369 GB, free: 8.816 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.58e-05/1.136, allocations: 12.45 kB / 1.369 GB, free: 8.805 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002245/1.136, allocations: 71.12 kB / 1.369 GB, free: 8.738 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.955e-06/1.136, allocations: 7.938 kB / 1.369 GB, free: 8.73 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002032/1.137, allocations: 35.81 kB / 1.369 GB, free: 8.695 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.37e-05/1.137, allocations: 27.44 kB / 1.369 GB, free: 8.672 MB / 0.8073 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 59 ($PRE.con.multiSwitch1.u[1],$PRE.con.multiSwitch1.u[2],$PRE.con.t1.enableFire,$PRE.con.t2.enableFire,$PRE.con.t3.enableFire,$PRE.con.t4.enableFire,$PRE.con.t3.t_start,con.t3.t_start,$PRE.con.t4.t_start,con.t4.t_start,con.stateGraphRoot.resume,con.stateGraphRoot.suspend,$whenCondition2,$whenCondition1,con.greaterEqualThreshold.y,con.and1.u1,con.and1.u2,con.and1.y,con.and2.u2,con.and2.y,con.lessEqualThreshold.y,con.multiSwitch1.u[1],con.multiSwitch1.u[2],con.multiSwitch1.firstActiveIndex,$PRE.con.off.localActive,con.off.localActive,con.off.inPort[1].set,con.off.outPort[1].reset,$PRE.con.off.newActive,con.off.newActive,$PRE.con.off.oldActive,con.off.oldActive,con.off.active,con.stateGraphRoot.activeSteps,con.alternative.split[2].available,con.t1.enableFire,con.t1.fire,$PRE.con.t1.t_start,con.t1.t_start,con.t2.enableFire,con.t2.fire,$PRE.con.t2.t_start,con.t2.t_start,$PRE.con.charge.localActive,con.charge.localActive,$PRE.con.charge.newActive,con.charge.newActive,$PRE.con.charge.oldActive,con.charge.oldActive,con.charge.active,$PRE.con.discharge.localActive,con.discharge.localActive,$PRE.con.discharge.newActive,con.discharge.newActive,$PRE.con.discharge.oldActive,con.discharge.oldActive,con.discharge.active,con.t3.enableFire,con.t4.enableFire) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (76): * Single equations (assignments): 76 * 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.0001054/1.137, allocations: 157 kB / 1.369 GB, free: 8.52 MB / 0.8073 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.658e-05/1.137, allocations: 27.62 kB / 1.369 GB, free: 8.492 MB / 0.8073 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005961/1.137, allocations: 368.5 kB / 1.37 GB, free: 8.219 MB / 0.8073 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.24e-06/1.137, allocations: 8 kB / 1.37 GB, free: 8.211 MB / 0.8073 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.51e-06/1.137, allocations: 7.891 kB / 1.37 GB, free: 8.203 MB / 0.8073 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.512e-06/1.137, allocations: 0 / 1.37 GB, free: 8.203 MB / 0.8073 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00112/1.139, allocations: 0.9532 MB / 1.37 GB, free: 7.449 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.954e-06/1.139, allocations: 0 / 1.37 GB, free: 7.449 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001471/1.139, allocations: 43.78 kB / 1.37 GB, free: 7.41 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.518e-06/1.139, allocations: 7.938 kB / 1.37 GB, free: 7.402 MB / 0.8073 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.506e-05/1.139, allocations: 4 kB / 1.371 GB, free: 7.398 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.846e-06/1.139, allocations: 3.906 kB / 1.371 GB, free: 7.395 MB / 0.8073 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.903e-06/1.139, allocations: 0 / 1.371 GB, free: 7.395 MB / 0.8073 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0005193/1.139, allocations: 497.8 kB / 1.371 GB, free: 6.961 MB / 0.8073 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0005604/1.14, allocations: 0.8492 MB / 1.372 GB, free: 6.16 MB / 0.8073 GB Notification: Performance of postOpt removeConstants (simulation): time 2.905e-05/1.14, allocations: 100.7 kB / 1.372 GB, free: 6.043 MB / 0.8073 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.779e-05/1.14, allocations: 11.3 kB / 1.372 GB, free: 6.035 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001892/1.14, allocations: 23.98 kB / 1.372 GB, free: 6.012 MB / 0.8073 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001194/1.14, allocations: 65.94 kB / 1.372 GB, free: 5.961 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.054e-05/1.14, allocations: 23.23 kB / 1.372 GB, free: 5.941 MB / 0.8073 GB Notification: Performance of sort global known variables: time 5.946e-05/1.14, allocations: 124.8 kB / 1.372 GB, free: 5.836 MB / 0.8073 GB Notification: Performance of remove unused functions: time 0.0008896/1.141, allocations: 75.92 kB / 1.372 GB, free: 5.762 MB / 0.8073 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 44 (con.t4.t_start,con.t3.t_start,con.t2.enableFire,con.t1.enableFire,con.discharge.active,con.discharge.localActive,con.charge.active,con.charge.localActive,con.off.localActive,$cse1,$cse2,$cse3,$cse4,$cse5,$cse6,$whenCondition2,$whenCondition1,con.greaterEqualThreshold.y,con.and1.u1,con.and1.u2,con.and1.y,con.and2.u2,con.and2.y,con.lessEqualThreshold.y,con.multiSwitch1.u[1],con.multiSwitch1.u[2],con.multiSwitch1.firstActiveIndex,con.off.inPort[1].set,con.off.outPort[1].reset,con.off.newActive,con.off.oldActive,con.off.active,con.stateGraphRoot.activeSteps,con.alternative.split[2].available,con.t1.fire,con.t1.t_start,con.t2.fire,con.t2.t_start,con.charge.newActive,con.charge.oldActive,con.discharge.newActive,con.discharge.oldActive,con.t3.enableFire,con.t4.enableFire) * Number of discrete states: 5 (con.off.newActive,con.charge.newActive,con.discharge.newActive,con.t3.t_start,con.t4.t_start) * Top-level inputs: 0 Notification: Strong component statistics for simulation (54): * Single equations (assignments): 47 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 7 * 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.0001792/1.141, allocations: 145.8 kB / 1.372 GB, free: 5.617 MB / 0.8073 GB Notification: Performance of simCode: created initialization part: time 0.0004631/1.142, allocations: 401.7 kB / 1.373 GB, free: 5.344 MB / 0.8073 GB Notification: Performance of simCode: created event and clocks part: time 1.503e-06/1.142, allocations: 4 kB / 1.373 GB, free: 5.34 MB / 0.8073 GB Notification: Performance of simCode: created simulation system equations: time 0.000228/1.142, allocations: 209.2 kB / 1.373 GB, free: 5.199 MB / 0.8073 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002428/1.142, allocations: 31.11 kB / 1.373 GB, free: 5.176 MB / 0.8073 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008943/1.143, allocations: 0.5457 MB / 1.374 GB, free: 4.691 MB / 0.8073 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004405/1.144, allocations: 0.8723 MB / 1.374 GB, free: 19.8 MB / 0.823 GB Notification: Performance of SimCode: time 2.81e-07/1.144, allocations: 4 kB / 1.374 GB, free: 19.79 MB / 0.823 GB (rm -f Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.pipe ; mkfifo Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.pipe ; head -c 1048576 < Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.pipe >> ../files/Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl_res.mat --tempDir=temp_Buildings_9_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_BatteryControl_fmu --startTime=0 --stopTime=604800 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_BatteryControl.fmu > Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.pipe 2>&1)