Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.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 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_BatteryControl",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl,fileNamePrefix="Buildings_maint_7_0_x_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 7.0.3-maint.7.0.x/package.mo): time 1.209/1.209, allocations: 249.4 MB / 256.7 MB, free: 15.86 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001165/0.001165, allocations: 182.8 kB / 316 MB, free: 7.266 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.418/1.418, allocations: 205.1 MB / 0.5667 GB, free: 23.66 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008247/0.0008247, allocations: 88.7 kB / 0.671 GB, free: 1.004 MB / 0.4948 GB Notification: Performance of FrontEnd - loaded program: time 0.2112/0.212, allocations: 112.5 MB / 0.7808 GB, free: 428 kB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4499/0.662, allocations: 106.3 MB / 0.8847 GB, free: 76.4 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1542/0.8162, allocations: 135.1 MB / 1.017 GB, free: 5.082 MB / 0.6667 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002608/0.8165, allocations: 91.94 kB / 1.017 GB, free: 4.992 MB / 0.6667 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.0208/0.8374, allocations: 8.377 MB / 1.025 GB, free: 12.52 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 3.842e-05/0.8374, allocations: 8 kB / 1.025 GB, free: 12.52 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001623/0.8376, allocations: 55.38 kB / 1.025 GB, free: 12.46 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004812/0.8381, allocations: 333.2 kB / 1.025 GB, free: 12.09 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.537e-05/0.8381, allocations: 24 kB / 1.025 GB, free: 12.07 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.195e-05/0.8382, allocations: 32 kB / 1.025 GB, free: 12.04 MB / 0.6823 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000745/0.839, allocations: 374.5 kB / 1.026 GB, free: 11.67 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007883/0.8398, allocations: 0.4889 MB / 1.026 GB, free: 11.15 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.761e-05/0.8398, allocations: 0 / 1.026 GB, free: 11.15 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.732e-05/0.8399, allocations: 0 / 1.026 GB, free: 11.15 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.322e-05/0.8399, allocations: 24.98 kB / 1.026 GB, free: 11.13 MB / 0.6823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002233/0.8421, allocations: 1.8 MB / 1.028 GB, free: 9.258 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004983/0.8427, allocations: 311 kB / 1.028 GB, free: 8.941 MB / 0.6823 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000246/0.8429, allocations: 164.8 kB / 1.028 GB, free: 8.777 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 5.464e-05/0.843, allocations: 12.61 kB / 1.028 GB, free: 8.766 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002812/0.8433, allocations: 201.8 kB / 1.029 GB, free: 8.555 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=46): time 2.164e-06/0.8433, allocations: 0 / 1.029 GB, free: 8.555 MB / 0.6823 GB Notification: Performance of matching and sorting (n=46): time 0.0005623/0.8438, allocations: 297.7 kB / 1.029 GB, free: 8.258 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.407e-05/0.8439, allocations: 59.34 kB / 1.029 GB, free: 8.188 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001938/0.8441, allocations: 220.6 kB / 1.029 GB, free: 7.965 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 5.175e-05/0.8441, allocations: 41.7 kB / 1.029 GB, free: 7.918 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001702/0.8443, allocations: 204.7 kB / 1.029 GB, free: 7.715 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001002/0.8444, allocations: 102.7 kB / 1.029 GB, free: 7.613 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.132e-05/0.8445, allocations: 0 / 1.029 GB, free: 7.613 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 0.000125/0.8446, allocations: 342.8 kB / 1.03 GB, free: 7.27 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002335/0.8448, allocations: 141.3 kB / 1.03 GB, free: 7.133 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003029/0.8451, allocations: 259.5 kB / 1.03 GB, free: 6.828 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002905/0.8454, allocations: 149.4 kB / 1.03 GB, free: 6.684 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.226e-06/0.8454, allocations: 0 / 1.03 GB, free: 6.684 MB / 0.6823 GB Notification: Performance of matching and sorting (n=74) (initialization): time 0.0007277/0.8462, allocations: 444 kB / 1.031 GB, free: 6.242 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 1.397e-05/0.8462, allocations: 4 kB / 1.031 GB, free: 6.238 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.131e-05/0.8462, allocations: 4 kB / 1.031 GB, free: 6.234 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.184e-05/0.8462, allocations: 15.84 kB / 1.031 GB, free: 6.219 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002466/0.8465, allocations: 67.78 kB / 1.031 GB, free: 6.152 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.051e-05/0.8465, allocations: 4 kB / 1.031 GB, free: 6.148 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002354/0.8468, allocations: 40.19 kB / 1.031 GB, free: 6.109 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.286e-05/0.8468, allocations: 28 kB / 1.031 GB, free: 6.082 MB / 0.6823 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.0001497/0.847, allocations: 154 kB / 1.031 GB, free: 5.922 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.497e-05/0.847, allocations: 27.62 kB / 1.031 GB, free: 5.895 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000722/0.8477, allocations: 374.4 kB / 1.031 GB, free: 5.531 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.392e-06/0.8478, allocations: 7.906 kB / 1.031 GB, free: 5.523 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.284e-06/0.8478, allocations: 7.922 kB / 1.031 GB, free: 5.516 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.883e-06/0.8478, allocations: 4 kB / 1.031 GB, free: 5.512 MB / 0.6823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001419/0.8492, allocations: 0.9209 MB / 1.032 GB, free: 4.543 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.124e-06/0.8492, allocations: 0 / 1.032 GB, free: 4.543 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001617/0.8494, allocations: 39.91 kB / 1.032 GB, free: 4.504 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.171e-06/0.8494, allocations: 4 kB / 1.032 GB, free: 4.5 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.139e-05/0.8495, allocations: 4 kB / 1.032 GB, free: 4.496 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.687e-06/0.8495, allocations: 3.906 kB / 1.032 GB, free: 4.492 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.154e-06/0.8495, allocations: 0 / 1.032 GB, free: 4.492 MB / 0.6823 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0006534/0.8501, allocations: 447.6 kB / 1.033 GB, free: 4.039 MB / 0.6823 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0008134/0.851, allocations: 0.8118 MB / 1.034 GB, free: 3.211 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 6.954e-05/0.851, allocations: 100.8 kB / 1.034 GB, free: 3.094 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.625e-05/0.8511, allocations: 15.89 kB / 1.034 GB, free: 3.078 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002023/0.8513, allocations: 19.98 kB / 1.034 GB, free: 3.059 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001554/0.8515, allocations: 64.34 kB / 1.034 GB, free: 2.996 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.87e-05/0.8515, allocations: 19.98 kB / 1.034 GB, free: 2.977 MB / 0.6823 GB Notification: Performance of sort global known variables: time 9.669e-05/0.8516, allocations: 120.5 kB / 1.034 GB, free: 2.859 MB / 0.6823 GB Notification: Performance of remove unused functions: time 0.001031/0.8527, allocations: 71.98 kB / 1.034 GB, free: 2.789 MB / 0.6823 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.0002145/0.8529, allocations: 142.2 kB / 1.034 GB, free: 2.641 MB / 0.6823 GB Notification: Performance of simCode: created initialization part: time 0.000585/0.8535, allocations: 399.4 kB / 1.035 GB, free: 2.25 MB / 0.6823 GB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.8535, allocations: 0 / 1.035 GB, free: 2.25 MB / 0.6823 GB Notification: Performance of simCode: created simulation system equations: time 0.0003041/0.8538, allocations: 197.6 kB / 1.035 GB, free: 2.055 MB / 0.6823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002809/0.8541, allocations: 35.83 kB / 1.035 GB, free: 2.02 MB / 0.6823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001078/0.8552, allocations: 0.5216 MB / 1.035 GB, free: 1.477 MB / 0.6823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000512/0.8557, allocations: 0.8772 MB / 1.036 GB, free: 0.5742 MB / 0.6823 GB Notification: Performance of SimCode: time 2.4e-07/0.8557, allocations: 0 / 1.036 GB, free: 0.5742 MB / 0.6823 GB (rm -f Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_7_0_x_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_BatteryControl_fmu --startTime=0 --stopTime=604800 --timeout=50 --tolerance=1e-06 Buildings_maint_7_0_x_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_BatteryControl.fmu > Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.pipe 2>&1)