Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo) Running command: "" <> buildModelFMU(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl,fileNamePrefix="Buildings_8_0_0_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_BatteryControl",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl,fileNamePrefix="Buildings_8_0_0_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 8.0.0/package.mo): time 2.106/2.106, allocations: 284.8 MB / 292.1 MB, free: 10.73 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.001598/0.001597, allocations: 195.4 kB / 360.3 MB, free: 7.508 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.597/1.597, allocations: 205.1 MB / 0.6187 GB, free: 13.21 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.001148/0.001147, allocations: 96.2 kB / 0.7317 GB, free: 45.09 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.239/0.2402, allocations: 121.4 MB / 0.8502 GB, free: 3.867 MB / 0.5886 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.543/0.7832, allocations: 115.2 MB / 0.9628 GB, free: 78.28 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2098/0.993, allocations: 141.3 MB / 1.101 GB, free: 15.55 MB / 0.7136 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003283/0.9934, allocations: 88.97 kB / 1.101 GB, free: 15.46 MB / 0.7136 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.03293/1.026, allocations: 8.379 MB / 1.109 GB, free: 7.102 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 4.337e-05/1.026, allocations: 8.5 kB / 1.109 GB, free: 7.094 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001582/1.027, allocations: 55.34 kB / 1.109 GB, free: 7.039 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006382/1.027, allocations: 339.1 kB / 1.109 GB, free: 6.664 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.73e-05/1.027, allocations: 23.94 kB / 1.109 GB, free: 6.641 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001021/1.027, allocations: 32 kB / 1.109 GB, free: 6.609 MB / 0.7136 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001164/1.029, allocations: 366.5 kB / 1.11 GB, free: 6.254 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001265/1.03, allocations: 496.7 kB / 1.11 GB, free: 5.742 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.027e-05/1.03, allocations: 0 / 1.11 GB, free: 5.742 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.868e-05/1.03, allocations: 0 / 1.11 GB, free: 5.742 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.137e-05/1.03, allocations: 25 kB / 1.11 GB, free: 5.719 MB / 0.7136 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003523/1.034, allocations: 1.81 MB / 1.112 GB, free: 3.844 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008295/1.034, allocations: 315.8 kB / 1.112 GB, free: 3.523 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004293/1.035, allocations: 164.8 kB / 1.112 GB, free: 3.359 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 7.617e-05/1.035, allocations: 8 kB / 1.112 GB, free: 3.352 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004806/1.035, allocations: 197.7 kB / 1.113 GB, free: 3.145 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=46): time 3.237e-06/1.035, allocations: 0 / 1.113 GB, free: 3.145 MB / 0.7136 GB Notification: Performance of matching and sorting (n=46): time 0.0009301/1.036, allocations: 297.9 kB / 1.113 GB, free: 2.848 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.373e-05/1.036, allocations: 59.41 kB / 1.113 GB, free: 2.777 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003055/1.037, allocations: 209.2 kB / 1.113 GB, free: 2.566 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 8.3e-05/1.037, allocations: 37.7 kB / 1.113 GB, free: 2.523 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001909/1.037, allocations: 210.4 kB / 1.113 GB, free: 2.316 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001493/1.037, allocations: 106.5 kB / 1.114 GB, free: 2.211 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.315e-05/1.037, allocations: 4 kB / 1.114 GB, free: 2.207 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 0.0001692/1.037, allocations: 342.7 kB / 1.114 GB, free: 1.863 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004228/1.038, allocations: 145.3 kB / 1.114 GB, free: 1.723 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005652/1.038, allocations: 259.5 kB / 1.114 GB, free: 1.422 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000484/1.039, allocations: 145.4 kB / 1.114 GB, free: 1.277 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.28e-06/1.039, allocations: 0 / 1.114 GB, free: 1.277 MB / 0.7136 GB Notification: Performance of matching and sorting (n=74) (initialization): time 0.001223/1.04, allocations: 439.9 kB / 1.115 GB, free: 0.8398 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 2.426e-05/1.04, allocations: 13.08 kB / 1.115 GB, free: 0.8281 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.304e-05/1.04, allocations: 4 kB / 1.115 GB, free: 0.8242 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.59e-05/1.04, allocations: 4 kB / 1.115 GB, free: 0.8203 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004577/1.041, allocations: 64.31 kB / 1.115 GB, free: 0.7578 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.411e-05/1.041, allocations: 11.94 kB / 1.115 GB, free: 0.7461 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003994/1.041, allocations: 43.72 kB / 1.115 GB, free: 0.7031 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.785e-05/1.041, allocations: 24 kB / 1.115 GB, free: 0.6797 MB / 0.7136 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 55 ($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,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 (74): * Single equations (assignments): 74 * 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.0002228/1.042, allocations: 155.4 kB / 1.115 GB, free: 0.5195 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.997e-05/1.042, allocations: 27.7 kB / 1.115 GB, free: 0.4922 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001274/1.043, allocations: 367.6 kB / 1.116 GB, free: 140 kB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.101e-05/1.043, allocations: 8 kB / 1.116 GB, free: 132 kB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.703e-06/1.043, allocations: 5.375 kB / 1.116 GB, free: 128 kB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.424e-05/1.043, allocations: 3.984 kB / 1.116 GB, free: 124 kB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002368/1.045, allocations: 0.9324 MB / 1.116 GB, free: 15.14 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.709e-06/1.045, allocations: 4 kB / 1.116 GB, free: 15.14 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002851/1.046, allocations: 35.91 kB / 1.116 GB, free: 15.11 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.957e-06/1.046, allocations: 0 / 1.116 GB, free: 15.11 MB / 0.7292 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.93e-05/1.046, allocations: 8 kB / 1.116 GB, free: 15.1 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.98e-06/1.046, allocations: 0 / 1.116 GB, free: 15.1 MB / 0.7292 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.21e-06/1.046, allocations: 4 kB / 1.116 GB, free: 15.09 MB / 0.7292 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001053/1.047, allocations: 440.5 kB / 1.117 GB, free: 14.64 MB / 0.7292 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001154/1.048, allocations: 0.8273 MB / 1.118 GB, free: 13.8 MB / 0.7292 GB Notification: Performance of postOpt removeConstants (simulation): time 8.275e-05/1.048, allocations: 104.7 kB / 1.118 GB, free: 13.68 MB / 0.7292 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.196e-05/1.048, allocations: 0 / 1.118 GB, free: 13.68 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003558/1.049, allocations: 31.97 kB / 1.118 GB, free: 13.65 MB / 0.7292 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002248/1.049, allocations: 60.34 kB / 1.118 GB, free: 13.59 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.991e-05/1.049, allocations: 20.98 kB / 1.118 GB, free: 13.57 MB / 0.7292 GB Notification: Performance of sort global known variables: time 0.0002103/1.049, allocations: 129 kB / 1.118 GB, free: 13.45 MB / 0.7292 GB Notification: Performance of remove unused functions: time 0.001463/1.051, allocations: 67.91 kB / 1.118 GB, free: 13.38 MB / 0.7292 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 42 (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: 3 (con.off.newActive,con.charge.newActive,con.discharge.newActive) * Top-level inputs: 0 Notification: Strong component statistics for simulation (52): * Single equations (assignments): 47 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * 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.0002652/1.051, allocations: 134.3 kB / 1.118 GB, free: 13.23 MB / 0.7292 GB Notification: Performance of simCode: created initialization part: time 0.001/1.052, allocations: 395.4 kB / 1.119 GB, free: 12.85 MB / 0.7292 GB Notification: Performance of simCode: created event and clocks part: time 2.494e-06/1.052, allocations: 0 / 1.119 GB, free: 12.85 MB / 0.7292 GB Notification: Performance of simCode: created simulation system equations: time 0.0004767/1.052, allocations: 202.3 kB / 1.119 GB, free: 12.65 MB / 0.7292 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003813/1.053, allocations: 30.8 kB / 1.119 GB, free: 12.62 MB / 0.7292 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001735/1.055, allocations: 0.5253 MB / 1.119 GB, free: 12.07 MB / 0.7292 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007711/1.055, allocations: 0.8733 MB / 1.12 GB, free: 11.18 MB / 0.7292 GB Notification: Performance of SimCode: time 1.293e-06/1.055, allocations: 0 / 1.12 GB, free: 11.18 MB / 0.7292 GB (rm -f Buildings_8.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.pipe ; mkfifo Buildings_8.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.pipe ; head -c 1048576 < Buildings_8.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.pipe >> ../files/Buildings_8.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_0_0_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_BatteryControl_fmu --startTime=0 --stopTime=604800 --timeout=50 --tolerance=1e-06 Buildings_8_0_0_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_BatteryControl.fmu > Buildings_8.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.pipe 2>&1)