Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.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.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl,fileNamePrefix="Buildings_latest_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_BatteryControl",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl,fileNamePrefix="Buildings_latest_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 10.0.0-master/package.mo): time 1.797/1.797, allocations: 390.4 MB / 397.7 MB, free: 11.23 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.0008862/0.0008862, allocations: 178.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.112/1.112, allocations: 221.3 MB / 0.7863 GB, free: 13.79 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.0008736/0.0008735, allocations: 97.05 kB / 0.9264 GB, free: 14.32 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 0.3962/0.3971, allocations: 149.1 MB / 1.072 GB, free: 164.6 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.179/0.5761, allocations: 143 MB / 1.212 GB, free: 21.83 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.5002/1.076, allocations: 153.7 MB / 1.362 GB, free: 15.29 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000218/1.077, allocations: 93.44 kB / 1.362 GB, free: 15.24 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: 128 * Number of variables: 128 Notification: Performance of Generate backend data structure: time 0.01938/1.096, allocations: 8.539 MB / 1.37 GB, free: 8.125 MB / 0.823 GB Notification: Performance of prepare preOptimizeDAE: time 3.151e-05/1.096, allocations: 16 kB / 1.37 GB, free: 8.109 MB / 0.823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001145/1.096, allocations: 51.34 kB / 1.37 GB, free: 8.059 MB / 0.823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004138/1.097, allocations: 329.4 kB / 1.371 GB, free: 7.75 MB / 0.823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.58e-05/1.097, allocations: 23.12 kB / 1.371 GB, free: 7.73 MB / 0.823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.877e-05/1.097, allocations: 35.94 kB / 1.371 GB, free: 7.695 MB / 0.823 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006277/1.097, allocations: 369.5 kB / 1.371 GB, free: 7.473 MB / 0.823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007037/1.098, allocations: 495.6 kB / 1.371 GB, free: 7.082 MB / 0.823 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.494e-05/1.098, allocations: 0 / 1.371 GB, free: 7.082 MB / 0.823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.873e-05/1.098, allocations: 7.672 kB / 1.371 GB, free: 7.078 MB / 0.823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.951e-05/1.098, allocations: 21 kB / 1.371 GB, free: 7.059 MB / 0.823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001957/1.1, allocations: 1.806 MB / 1.373 GB, free: 5.543 MB / 0.823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004669/1.101, allocations: 348.3 kB / 1.374 GB, free: 5.273 MB / 0.823 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002287/1.101, allocations: 181.2 kB / 1.374 GB, free: 5.152 MB / 0.823 GB Notification: Performance of preOpt evalFunc (simulation): time 4.963e-05/1.101, allocations: 12.61 kB / 1.374 GB, free: 5.141 MB / 0.823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000306/1.101, allocations: 242.8 kB / 1.374 GB, free: 4.938 MB / 0.823 GB Notification: Performance of pre-optimization done (n=48): time 1.813e-06/1.101, allocations: 0 / 1.374 GB, free: 4.938 MB / 0.823 GB Notification: Performance of matching and sorting (n=48): time 0.0005542/1.102, allocations: 310.4 kB / 1.374 GB, free: 4.703 MB / 0.823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.755e-05/1.102, allocations: 114.8 kB / 1.374 GB, free: 4.566 MB / 0.823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001633/1.102, allocations: 215.2 kB / 1.375 GB, free: 4.391 MB / 0.823 GB Notification: Performance of collectPreVariables (initialization): time 4.913e-05/1.102, allocations: 40.89 kB / 1.375 GB, free: 4.348 MB / 0.823 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001077/1.102, allocations: 204.2 kB / 1.375 GB, free: 4.16 MB / 0.823 GB Notification: Performance of collectInitialBindings (initialization): time 8.677e-05/1.102, allocations: 107.2 kB / 1.375 GB, free: 4.07 MB / 0.823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.845e-05/1.102, allocations: 0 / 1.375 GB, free: 4.07 MB / 0.823 GB Notification: Performance of setup shared object (initialization): time 0.0001021/1.102, allocations: 340.4 kB / 1.375 GB, free: 3.742 MB / 0.823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002196/1.103, allocations: 154.4 kB / 1.375 GB, free: 3.652 MB / 0.823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002753/1.103, allocations: 255.6 kB / 1.376 GB, free: 3.418 MB / 0.823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002721/1.103, allocations: 161 kB / 1.376 GB, free: 3.309 MB / 0.823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.446e-06/1.103, allocations: 0 / 1.376 GB, free: 3.309 MB / 0.823 GB Notification: Performance of matching and sorting (n=76) (initialization): time 0.0006724/1.104, allocations: 444.6 kB / 1.376 GB, free: 2.969 MB / 0.823 GB Notification: Performance of prepare postOptimizeDAE: time 1.262e-05/1.104, allocations: 4.469 kB / 1.376 GB, free: 2.965 MB / 0.823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.404e-06/1.104, allocations: 11.94 kB / 1.376 GB, free: 2.953 MB / 0.823 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.586e-05/1.104, allocations: 8 kB / 1.376 GB, free: 2.945 MB / 0.823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000244/1.104, allocations: 65.97 kB / 1.376 GB, free: 2.887 MB / 0.823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.155e-05/1.104, allocations: 11.98 kB / 1.376 GB, free: 2.875 MB / 0.823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002486/1.104, allocations: 39.73 kB / 1.376 GB, free: 2.836 MB / 0.823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.186e-05/1.104, allocations: 30.23 kB / 1.376 GB, free: 2.812 MB / 0.823 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.0001225/1.105, allocations: 149.7 kB / 1.377 GB, free: 2.668 MB / 0.823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.282e-05/1.105, allocations: 27.62 kB / 1.377 GB, free: 2.641 MB / 0.823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006732/1.105, allocations: 386.8 kB / 1.377 GB, free: 2.363 MB / 0.823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.893e-06/1.105, allocations: 4 kB / 1.377 GB, free: 2.359 MB / 0.823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.74e-06/1.105, allocations: 4 kB / 1.377 GB, free: 2.355 MB / 0.823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.055e-06/1.105, allocations: 3.984 kB / 1.377 GB, free: 2.352 MB / 0.823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001301/1.107, allocations: 0.9407 MB / 1.378 GB, free: 1.586 MB / 0.823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.415e-06/1.107, allocations: 4 kB / 1.378 GB, free: 1.582 MB / 0.823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001601/1.107, allocations: 39.03 kB / 1.378 GB, free: 1.547 MB / 0.823 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.979e-06/1.107, allocations: 0 / 1.378 GB, free: 1.547 MB / 0.823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.861e-05/1.107, allocations: 7.984 kB / 1.378 GB, free: 1.539 MB / 0.823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.988e-06/1.107, allocations: 4 kB / 1.378 GB, free: 1.535 MB / 0.823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.627e-06/1.107, allocations: 7.938 kB / 1.378 GB, free: 1.527 MB / 0.823 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0006173/1.108, allocations: 486.5 kB / 1.378 GB, free: 1.105 MB / 0.823 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0006761/1.108, allocations: 0.8546 MB / 1.379 GB, free: 312 kB / 0.823 GB Notification: Performance of postOpt removeConstants (simulation): time 5.251e-05/1.108, allocations: 104.7 kB / 1.379 GB, free: 188 kB / 0.823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.007e-05/1.108, allocations: 7.938 kB / 1.379 GB, free: 180 kB / 0.823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002026/1.109, allocations: 23.98 kB / 1.379 GB, free: 156 kB / 0.823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001269/1.109, allocations: 65.45 kB / 1.379 GB, free: 104 kB / 0.823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.597e-05/1.109, allocations: 15.25 kB / 1.379 GB, free: 92 kB / 0.823 GB Notification: Performance of sort global known variables: time 9.215e-05/1.109, allocations: 134.6 kB / 1.38 GB, free: 15.98 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0009054/1.11, allocations: 71.91 kB / 1.38 GB, free: 15.91 MB / 0.8386 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.0001795/1.11, allocations: 149.2 kB / 1.38 GB, free: 15.76 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0005454/1.11, allocations: 405.5 kB / 1.38 GB, free: 15.48 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 1.573e-06/1.111, allocations: 0 / 1.38 GB, free: 15.48 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.0002896/1.111, allocations: 214.5 kB / 1.38 GB, free: 15.33 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002397/1.111, allocations: 31.48 kB / 1.38 GB, free: 15.31 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001013/1.112, allocations: 0.5406 MB / 1.381 GB, free: 14.84 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004988/1.113, allocations: 0.8766 MB / 1.382 GB, free: 13.94 MB / 0.8386 GB Notification: Performance of SimCode: time 2.7e-07/1.113, allocations: 0 / 1.382 GB, free: 13.94 MB / 0.8386 GB (rm -f Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.pipe ; mkfifo Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.pipe ; head -c 1048576 < Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.pipe >> ../files/Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl_res.mat --tempDir=temp_Buildings_latest_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_BatteryControl_fmu --startTime=0 --stopTime=604800 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_BatteryControl.fmu > Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.pipe 2>&1)