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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo): time 2.819/2.819, allocations: 287.3 MB / 302.3 MB, free: 8.32 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.001498/0.001498, allocations: 189.9 kB / 370.8 MB, free: 10.8 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.382/2.382, allocations: 205.4 MB / 0.6295 GB, free: 10.55 MB / 458.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001182/0.001181, allocations: 91.73 kB / 0.7428 GB, free: 6.562 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0004998/0.0004999, allocations: 16.41 kB / 0.8657 GB, free: 140.9 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2482/0.2487, allocations: 115.3 MB / 0.9783 GB, free: 28.25 MB / 0.6198 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.082/1.331, allocations: 142.1 MB / 1.117 GB, free: 15.48 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003412/1.332, allocations: 98.89 kB / 1.117 GB, free: 15.48 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 0.03124/1.363, allocations: 8.243 MB / 1.125 GB, free: 30.65 MB / 0.698 GB Notification: Performance of FrontEnd: time 2.846e-06/1.363, allocations: 0 / 1.125 GB, free: 30.65 MB / 0.698 GB Notification: Performance of Transformations before backend: time 4.04e-05/1.363, allocations: 15.69 kB / 1.125 GB, free: 30.64 MB / 0.698 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.00159/1.365, allocations: 0.6481 MB / 1.126 GB, free: 30.17 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 5.447e-05/1.365, allocations: 7.656 kB / 1.126 GB, free: 30.17 MB / 0.698 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002148/1.365, allocations: 91.69 kB / 1.126 GB, free: 30.13 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001442/1.365, allocations: 50.53 kB / 1.126 GB, free: 30.11 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006004/1.366, allocations: 326.7 kB / 1.126 GB, free: 29.89 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.601e-05/1.366, allocations: 45.47 kB / 1.126 GB, free: 29.89 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001081/1.366, allocations: 62.16 kB / 1.126 GB, free: 29.89 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001497/1.367, allocations: 0.5603 MB / 1.127 GB, free: 29.77 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.365e-05/1.367, allocations: 3.953 kB / 1.127 GB, free: 29.77 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.306e-05/1.368, allocations: 25.06 kB / 1.127 GB, free: 29.76 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.52e-05/1.368, allocations: 20.34 kB / 1.127 GB, free: 29.76 MB / 0.698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001222/1.369, allocations: 421.6 kB / 1.127 GB, free: 29.75 MB / 0.698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003657/1.373, allocations: 1.912 MB / 1.129 GB, free: 28.8 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008796/1.373, allocations: 351.1 kB / 1.13 GB, free: 28.76 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 8.008e-05/1.374, allocations: 14.17 kB / 1.13 GB, free: 28.76 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000552/1.374, allocations: 226.2 kB / 1.13 GB, free: 28.7 MB / 0.698 GB Notification: Performance of pre-optimization done (n=46): time 3.257e-06/1.374, allocations: 0 / 1.13 GB, free: 28.7 MB / 0.698 GB Notification: Performance of matching and sorting (n=46): time 0.00137/1.376, allocations: 483.1 kB / 1.13 GB, free: 28.65 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.786e-05/1.376, allocations: 66 kB / 1.13 GB, free: 28.58 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003145/1.376, allocations: 220 kB / 1.131 GB, free: 28.46 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 8.644e-05/1.376, allocations: 56.45 kB / 1.131 GB, free: 28.43 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001627/1.376, allocations: 214.8 kB / 1.131 GB, free: 28.29 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001147/1.376, allocations: 109.3 kB / 1.131 GB, free: 28.23 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.271e-05/1.376, allocations: 11.44 kB / 1.131 GB, free: 28.23 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 0.0001408/1.377, allocations: 342 kB / 1.131 GB, free: 27.91 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004389/1.377, allocations: 161 kB / 1.131 GB, free: 27.91 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005042/1.378, allocations: 286.8 kB / 1.132 GB, free: 27.77 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004455/1.378, allocations: 175 kB / 1.132 GB, free: 27.76 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.03e-06/1.378, allocations: 4 kB / 1.132 GB, free: 27.76 MB / 0.698 GB Notification: Performance of matching and sorting (n=74) (initialization): time 0.001193/1.379, allocations: 0.4942 MB / 1.132 GB, free: 27.68 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 2.369e-05/1.379, allocations: 11.72 kB / 1.132 GB, free: 27.67 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.191e-05/1.379, allocations: 7.953 kB / 1.132 GB, free: 27.67 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.873e-05/1.379, allocations: 10.5 kB / 1.132 GB, free: 27.67 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004073/1.38, allocations: 65.33 kB / 1.132 GB, free: 27.66 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.734e-05/1.38, allocations: 10.77 kB / 1.132 GB, free: 27.65 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000376/1.38, allocations: 49.52 kB / 1.132 GB, free: 27.64 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.094e-05/1.38, allocations: 26.19 kB / 1.133 GB, free: 27.64 MB / 0.698 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 () * Number of clocked 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.0004181/1.381, allocations: 231.8 kB / 1.133 GB, free: 27.49 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.694e-05/1.381, allocations: 34.44 kB / 1.133 GB, free: 27.47 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001094/1.382, allocations: 437.6 kB / 1.133 GB, free: 27.36 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.217e-06/1.382, allocations: 7.75 kB / 1.133 GB, free: 27.36 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.851e-06/1.382, allocations: 0 / 1.133 GB, free: 27.36 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.759e-06/1.382, allocations: 3.984 kB / 1.133 GB, free: 27.35 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002144/1.384, allocations: 1.059 MB / 1.134 GB, free: 26.87 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.588e-06/1.384, allocations: 0 / 1.134 GB, free: 26.87 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002685/1.384, allocations: 38.28 kB / 1.134 GB, free: 26.86 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.095e-05/1.384, allocations: 7.797 kB / 1.134 GB, free: 26.85 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.527e-05/1.384, allocations: 6.562 kB / 1.134 GB, free: 26.85 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.274e-06/1.384, allocations: 3.812 kB / 1.134 GB, free: 26.85 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.124e-06/1.384, allocations: 0 / 1.134 GB, free: 26.85 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009505/1.385, allocations: 0.4903 MB / 1.135 GB, free: 26.64 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 7.939e-05/1.386, allocations: 108.5 kB / 1.135 GB, free: 26.53 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.879e-05/1.386, allocations: 14.31 kB / 1.135 GB, free: 26.52 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000304/1.386, allocations: 26.58 kB / 1.135 GB, free: 26.52 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001888/1.386, allocations: 68.78 kB / 1.135 GB, free: 26.49 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.17e-05/1.386, allocations: 22.23 kB / 1.135 GB, free: 26.49 MB / 0.698 GB Notification: Performance of sorting global known variables: time 0.0001498/1.386, allocations: 132.5 kB / 1.135 GB, free: 26.4 MB / 0.698 GB Notification: Performance of sort global known variables: time 3.6e-07/1.386, allocations: 0 / 1.135 GB, free: 26.4 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.0006325/1.387, allocations: 89.88 kB / 1.135 GB, free: 26.4 MB / 0.698 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) * Number of clocked states: 0 () * 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.001405/1.388, allocations: 1.075 MB / 1.136 GB, free: 25.66 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.001072/1.39, allocations: 437.5 kB / 1.137 GB, free: 25.59 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 3.507e-06/1.39, allocations: 0 / 1.137 GB, free: 25.59 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.0004815/1.39, allocations: 219.6 kB / 1.137 GB, free: 25.55 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003997/1.39, allocations: 49.41 kB / 1.137 GB, free: 25.54 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005095/1.396, allocations: 4.292 MB / 1.141 GB, free: 22.27 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004742/1.396, allocations: 0.8302 MB / 1.142 GB, free: 21.52 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 0.0003726/1.396, allocations: 65.61 kB / 1.142 GB, free: 21.48 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003178/1.397, allocations: 143.6 kB / 1.142 GB, free: 21.46 MB / 0.698 GB Notification: Performance of SimCode: time 1.232e-06/1.397, allocations: 0 / 1.142 GB, free: 21.46 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03093/1.428, allocations: 7.119 MB / 1.149 GB, free: 18.16 MB / 0.698 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002995/1.428, allocations: 215 kB / 1.149 GB, free: 17.92 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.733/4.161, allocations: 3.938 kB / 1.149 GB, free: 17.92 MB / 0.698 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)