Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.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 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl,fileNamePrefix="Buildings_8_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_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.1.4-maint.8.1.x/package.mo): time 1.773/1.773, allocations: 292.6 MB / 307.5 MB, free: 5.168 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.001153/0.001153, allocations: 188.5 kB / 377.1 MB, free: 1.5 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.838/1.838, allocations: 205.4 MB / 0.6366 GB, free: 8.582 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.0009717/0.0009714, allocations: 90.98 kB / 0.7509 GB, free: 63.01 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0004641/0.0004641, allocations: 15.98 kB / 0.8749 GB, free: 11.05 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3314/0.3319, allocations: 116.3 MB / 0.9884 GB, free: 6.586 MB / 0.7136 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9836/1.316, allocations: 143.2 MB / 1.128 GB, free: 32.27 MB / 0.7292 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003552/1.316, allocations: 93.34 kB / 1.128 GB, free: 32.19 MB / 0.7292 GB Notification: Performance of FrontEnd - DAE generated: time 0.02243/1.338, allocations: 8.239 MB / 1.136 GB, free: 26.54 MB / 0.7292 GB Notification: Performance of FrontEnd: time 2.325e-06/1.339, allocations: 0 / 1.136 GB, free: 26.54 MB / 0.7292 GB Notification: Performance of Transformations before backend: time 3.566e-05/1.339, allocations: 16.44 kB / 1.136 GB, free: 26.53 MB / 0.7292 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.001137/1.34, allocations: 0.6535 MB / 1.137 GB, free: 25.88 MB / 0.7292 GB Notification: Performance of prepare preOptimizeDAE: time 5.765e-05/1.34, allocations: 8.031 kB / 1.137 GB, free: 25.87 MB / 0.7292 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001359/1.34, allocations: 91.31 kB / 1.137 GB, free: 25.78 MB / 0.7292 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001004/1.34, allocations: 55.58 kB / 1.137 GB, free: 25.73 MB / 0.7292 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000479/1.341, allocations: 323.8 kB / 1.138 GB, free: 25.41 MB / 0.7292 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.625e-05/1.341, allocations: 45.92 kB / 1.138 GB, free: 25.36 MB / 0.7292 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.48e-05/1.341, allocations: 58.27 kB / 1.138 GB, free: 25.31 MB / 0.7292 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001009/1.342, allocations: 0.5705 MB / 1.138 GB, free: 24.8 MB / 0.7292 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.709e-05/1.342, allocations: 0 / 1.138 GB, free: 24.8 MB / 0.7292 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.616e-05/1.342, allocations: 20.66 kB / 1.138 GB, free: 24.78 MB / 0.7292 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.075e-05/1.342, allocations: 22.64 kB / 1.138 GB, free: 24.76 MB / 0.7292 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000768/1.343, allocations: 424.7 kB / 1.139 GB, free: 24.4 MB / 0.7292 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002544/1.345, allocations: 1.907 MB / 1.14 GB, free: 22.7 MB / 0.7292 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000595/1.346, allocations: 363.3 kB / 1.141 GB, free: 22.37 MB / 0.7292 GB Notification: Performance of preOpt evalFunc (simulation): time 6.532e-05/1.346, allocations: 5.328 kB / 1.141 GB, free: 22.36 MB / 0.7292 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004239/1.346, allocations: 226.8 kB / 1.141 GB, free: 22.17 MB / 0.7292 GB Notification: Performance of pre-optimization done (n=46): time 2.384e-06/1.346, allocations: 0 / 1.141 GB, free: 22.17 MB / 0.7292 GB Notification: Performance of matching and sorting (n=46): time 0.0008736/1.347, allocations: 481.7 kB / 1.142 GB, free: 21.74 MB / 0.7292 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.947e-05/1.347, allocations: 68.39 kB / 1.142 GB, free: 21.66 MB / 0.7292 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002218/1.347, allocations: 224.5 kB / 1.142 GB, free: 21.46 MB / 0.7292 GB Notification: Performance of collectPreVariables (initialization): time 5.091e-05/1.348, allocations: 46.92 kB / 1.142 GB, free: 21.41 MB / 0.7292 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001303/1.348, allocations: 214.9 kB / 1.142 GB, free: 21.2 MB / 0.7292 GB Notification: Performance of collectInitialBindings (initialization): time 8.588e-05/1.348, allocations: 115.4 kB / 1.142 GB, free: 21.1 MB / 0.7292 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.286e-05/1.348, allocations: 12 kB / 1.142 GB, free: 21.09 MB / 0.7292 GB Notification: Performance of setup shared object (initialization): time 0.000103/1.348, allocations: 348.9 kB / 1.143 GB, free: 20.75 MB / 0.7292 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002737/1.348, allocations: 157.9 kB / 1.143 GB, free: 20.61 MB / 0.7292 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000385/1.349, allocations: 285.6 kB / 1.143 GB, free: 20.31 MB / 0.7292 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002922/1.349, allocations: 169.5 kB / 1.143 GB, free: 20.16 MB / 0.7292 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.877e-06/1.349, allocations: 0 / 1.143 GB, free: 20.16 MB / 0.7292 GB Notification: Performance of matching and sorting (n=74) (initialization): time 0.0007779/1.35, allocations: 0.5056 MB / 1.144 GB, free: 19.69 MB / 0.7292 GB Notification: Performance of prepare postOptimizeDAE: time 2.623e-05/1.35, allocations: 4 kB / 1.144 GB, free: 19.68 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.013e-05/1.35, allocations: 8.406 kB / 1.144 GB, free: 19.68 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.871e-05/1.35, allocations: 13.73 kB / 1.144 GB, free: 19.66 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002904/1.35, allocations: 65.81 kB / 1.144 GB, free: 19.61 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.663e-05/1.35, allocations: 8.656 kB / 1.144 GB, free: 19.6 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000244/1.35, allocations: 42.08 kB / 1.144 GB, free: 19.57 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.394e-05/1.35, allocations: 29.72 kB / 1.144 GB, free: 19.54 MB / 0.7292 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.0003054/1.351, allocations: 239.7 kB / 1.144 GB, free: 19.31 MB / 0.7292 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.834e-05/1.351, allocations: 27.62 kB / 1.144 GB, free: 19.28 MB / 0.7292 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008059/1.352, allocations: 438.2 kB / 1.144 GB, free: 18.91 MB / 0.7292 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.165e-06/1.352, allocations: 12 kB / 1.144 GB, free: 18.9 MB / 0.7292 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.322e-06/1.352, allocations: 0 / 1.144 GB, free: 18.9 MB / 0.7292 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.01e-05/1.352, allocations: 4.172 kB / 1.144 GB, free: 18.9 MB / 0.7292 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001577/1.353, allocations: 1.051 MB / 1.145 GB, free: 17.95 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.597e-06/1.353, allocations: 0.5625 kB / 1.145 GB, free: 17.95 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000149/1.353, allocations: 38.22 kB / 1.146 GB, free: 17.92 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.801e-06/1.353, allocations: 4 kB / 1.146 GB, free: 17.91 MB / 0.7292 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.299e-05/1.353, allocations: 14.11 kB / 1.146 GB, free: 17.9 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.326e-06/1.353, allocations: 6.969 kB / 1.146 GB, free: 17.9 MB / 0.7292 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.854e-06/1.353, allocations: 0 / 1.146 GB, free: 17.9 MB / 0.7292 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006861/1.354, allocations: 0.4915 MB / 1.146 GB, free: 17.43 MB / 0.7292 GB Notification: Performance of postOpt removeConstants (simulation): time 7.024e-05/1.354, allocations: 101.6 kB / 1.146 GB, free: 17.31 MB / 0.7292 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.334e-05/1.354, allocations: 9.359 kB / 1.146 GB, free: 17.3 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001917/1.354, allocations: 33.3 kB / 1.146 GB, free: 17.27 MB / 0.7292 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002004/1.355, allocations: 66.17 kB / 1.146 GB, free: 17.23 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.469e-05/1.355, allocations: 18.48 kB / 1.146 GB, free: 17.22 MB / 0.7292 GB Notification: Performance of sorting global known variables: time 0.0001294/1.355, allocations: 135.5 kB / 1.146 GB, free: 17.1 MB / 0.7292 GB Notification: Performance of sort global known variables: time 6.11e-07/1.355, allocations: 0 / 1.146 GB, free: 17.1 MB / 0.7292 GB Notification: Performance of remove unused functions: time 0.0004707/1.355, allocations: 89.22 kB / 1.146 GB, free: 17.01 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) * 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.001104/1.356, allocations: 1.08 MB / 1.147 GB, free: 15.95 MB / 0.7292 GB Notification: Performance of simCode: created initialization part: time 0.0007999/1.357, allocations: 438.4 kB / 1.148 GB, free: 15.57 MB / 0.7292 GB Notification: Performance of simCode: created event and clocks part: time 4.87e-06/1.357, allocations: 8.188 kB / 1.148 GB, free: 15.56 MB / 0.7292 GB Notification: Performance of simCode: created simulation system equations: time 0.000337/1.358, allocations: 212.9 kB / 1.148 GB, free: 15.38 MB / 0.7292 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000321/1.358, allocations: 41.27 kB / 1.148 GB, free: 15.34 MB / 0.7292 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004086/1.362, allocations: 4.284 MB / 1.152 GB, free: 11.13 MB / 0.7292 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004357/1.363, allocations: 0.8332 MB / 1.153 GB, free: 10.32 MB / 0.7292 GB Notification: Performance of simCode: alias equations: time 0.0002775/1.363, allocations: 69.3 kB / 1.153 GB, free: 10.27 MB / 0.7292 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002517/1.363, allocations: 147.2 kB / 1.153 GB, free: 10.15 MB / 0.7292 GB Notification: Performance of SimCode: time 7.01e-07/1.363, allocations: 0 / 1.153 GB, free: 10.15 MB / 0.7292 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02539/1.388, allocations: 7.121 MB / 1.16 GB, free: 6.031 MB / 0.7292 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002185/1.389, allocations: 217.3 kB / 1.161 GB, free: 5.785 MB / 0.7292 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.863/4.252, allocations: 4 kB / 1.161 GB, free: 5.781 MB / 0.7292 GB (rm -f Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.pipe ; mkfifo Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.pipe ; head -c 1048576 < Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.pipe >> ../files/Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_BatteryControl_fmu --startTime=0 --stopTime=604800 --timeout=50 --tolerance=1e-06 Buildings_8_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_BatteryControl.fmu > Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.pipe 2>&1)