Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.8.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.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 8.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl,fileNamePrefix="Buildings_maint_8_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_8_0_x_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.1-maint.8.0.x/package.mo): time 1.697/1.697, allocations: 288.2 MB / 303.2 MB, free: 8.211 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.001155/0.001155, allocations: 187.3 kB / 371.8 MB, free: 10.27 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.718/1.718, allocations: 205.4 MB / 0.6305 GB, free: 9.988 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.0009634/0.0009634, allocations: 89.11 kB / 0.7439 GB, free: 5.926 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0004481/0.0004482, allocations: 11.81 kB / 0.8669 GB, free: 142.1 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2799/0.2803, allocations: 115.3 MB / 0.9795 GB, free: 27.59 MB / 0.6198 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9739/1.254, allocations: 142.2 MB / 1.118 GB, free: 16.39 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000229/1.255, allocations: 96.95 kB / 1.118 GB, free: 16.39 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 0.01908/1.274, allocations: 8.236 MB / 1.127 GB, free: 31.52 MB / 0.698 GB Notification: Performance of FrontEnd: time 3.316e-06/1.274, allocations: 4 kB / 1.127 GB, free: 31.52 MB / 0.698 GB Notification: Performance of Transformations before backend: time 3.786e-05/1.274, allocations: 15.94 kB / 1.127 GB, free: 31.52 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.001269/1.275, allocations: 0.6458 MB / 1.127 GB, free: 30.99 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 4.9e-05/1.275, allocations: 11.69 kB / 1.127 GB, free: 30.99 MB / 0.698 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001932/1.275, allocations: 98.16 kB / 1.127 GB, free: 30.93 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001396/1.276, allocations: 46.62 kB / 1.127 GB, free: 30.91 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005814/1.276, allocations: 333.3 kB / 1.128 GB, free: 30.66 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.387e-05/1.276, allocations: 43.72 kB / 1.128 GB, free: 30.66 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.354e-05/1.276, allocations: 51.72 kB / 1.128 GB, free: 30.66 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001082/1.277, allocations: 0.5654 MB / 1.128 GB, free: 30.45 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.125e-05/1.277, allocations: 4.328 kB / 1.128 GB, free: 30.44 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.687e-05/1.277, allocations: 25.23 kB / 1.128 GB, free: 30.44 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.414e-05/1.277, allocations: 24.11 kB / 1.128 GB, free: 30.43 MB / 0.698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007303/1.278, allocations: 422.3 kB / 1.129 GB, free: 30.36 MB / 0.698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002343/1.281, allocations: 1.909 MB / 1.131 GB, free: 29.13 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000551/1.281, allocations: 365.3 kB / 1.131 GB, free: 29.06 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 5.397e-05/1.281, allocations: 7.828 kB / 1.131 GB, free: 29.05 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003452/1.282, allocations: 222.5 kB / 1.131 GB, free: 28.96 MB / 0.698 GB Notification: Performance of pre-optimization done (n=46): time 2.805e-06/1.282, allocations: 0 / 1.131 GB, free: 28.96 MB / 0.698 GB Notification: Performance of matching and sorting (n=46): time 0.0008411/1.282, allocations: 487.8 kB / 1.132 GB, free: 28.86 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.12e-05/1.283, allocations: 70.3 kB / 1.132 GB, free: 28.79 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002278/1.283, allocations: 222.5 kB / 1.132 GB, free: 28.64 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 6.719e-05/1.283, allocations: 51.53 kB / 1.132 GB, free: 28.61 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001541/1.283, allocations: 210.4 kB / 1.132 GB, free: 28.46 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 9.738e-05/1.283, allocations: 108.2 kB / 1.132 GB, free: 28.39 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.419e-05/1.283, allocations: 13.34 kB / 1.132 GB, free: 28.39 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 0.0001574/1.283, allocations: 349.7 kB / 1.133 GB, free: 28.06 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002726/1.284, allocations: 163.2 kB / 1.133 GB, free: 28.04 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003392/1.284, allocations: 290.3 kB / 1.133 GB, free: 27.87 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002852/1.284, allocations: 167 kB / 1.133 GB, free: 27.85 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.119e-06/1.284, allocations: 0 / 1.133 GB, free: 27.85 MB / 0.698 GB Notification: Performance of matching and sorting (n=74) (initialization): time 0.0007396/1.285, allocations: 0.5068 MB / 1.134 GB, free: 27.72 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 2.245e-05/1.285, allocations: 7.562 kB / 1.134 GB, free: 27.72 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.013e-05/1.285, allocations: 3.969 kB / 1.134 GB, free: 27.72 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.635e-05/1.285, allocations: 7.719 kB / 1.134 GB, free: 27.72 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002304/1.285, allocations: 65.41 kB / 1.134 GB, free: 27.7 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.563e-05/1.285, allocations: 7.828 kB / 1.134 GB, free: 27.7 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002561/1.286, allocations: 53.39 kB / 1.134 GB, free: 27.68 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.954e-05/1.286, allocations: 26.88 kB / 1.134 GB, free: 27.67 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.0002925/1.286, allocations: 231.9 kB / 1.134 GB, free: 27.53 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.157e-05/1.286, allocations: 35.12 kB / 1.134 GB, free: 27.51 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006755/1.287, allocations: 436.2 kB / 1.135 GB, free: 27.39 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.39e-06/1.287, allocations: 3.875 kB / 1.135 GB, free: 27.39 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.132e-06/1.287, allocations: 0 / 1.135 GB, free: 27.39 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.123e-06/1.287, allocations: 3.984 kB / 1.135 GB, free: 27.39 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001373/1.288, allocations: 1.056 MB / 1.136 GB, free: 26.91 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.116e-06/1.288, allocations: 0 / 1.136 GB, free: 26.91 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001409/1.288, allocations: 38.88 kB / 1.136 GB, free: 26.89 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.929e-06/1.288, allocations: 3.906 kB / 1.136 GB, free: 26.89 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.88e-05/1.288, allocations: 19.2 kB / 1.136 GB, free: 26.89 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.885e-06/1.288, allocations: 0 / 1.136 GB, free: 26.89 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.173e-06/1.288, allocations: 0 / 1.136 GB, free: 26.89 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005746/1.289, allocations: 497 kB / 1.136 GB, free: 26.69 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 6.311e-05/1.289, allocations: 100.5 kB / 1.136 GB, free: 26.58 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.321e-05/1.289, allocations: 14.92 kB / 1.136 GB, free: 26.57 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001785/1.289, allocations: 38.03 kB / 1.136 GB, free: 26.56 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001388/1.289, allocations: 70.12 kB / 1.136 GB, free: 26.53 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.389e-05/1.289, allocations: 18.27 kB / 1.136 GB, free: 26.53 MB / 0.698 GB Notification: Performance of sorting global known variables: time 0.0001089/1.29, allocations: 137.4 kB / 1.136 GB, free: 26.44 MB / 0.698 GB Notification: Performance of sort global known variables: time 1.6e-07/1.29, allocations: 0 / 1.136 GB, free: 26.44 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.0004151/1.29, allocations: 87.34 kB / 1.137 GB, free: 26.44 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.0009661/1.291, allocations: 1.069 MB / 1.138 GB, free: 25.7 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.0006216/1.292, allocations: 445.7 kB / 1.138 GB, free: 25.63 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 3.096e-06/1.292, allocations: 3.938 kB / 1.138 GB, free: 25.63 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.0002648/1.292, allocations: 216.9 kB / 1.138 GB, free: 25.59 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002697/1.292, allocations: 46.22 kB / 1.138 GB, free: 25.57 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003815/1.296, allocations: 4.293 MB / 1.142 GB, free: 22.31 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004816/1.296, allocations: 0.8339 MB / 1.143 GB, free: 21.55 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 0.000208/1.297, allocations: 61.59 kB / 1.143 GB, free: 21.53 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001941/1.297, allocations: 140.2 kB / 1.143 GB, free: 21.5 MB / 0.698 GB Notification: Performance of SimCode: time 1.152e-06/1.297, allocations: 4 kB / 1.143 GB, free: 21.5 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02027/1.317, allocations: 7.132 MB / 1.15 GB, free: 18.22 MB / 0.698 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002684/1.317, allocations: 222.7 kB / 1.151 GB, free: 17.98 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.401/3.719, allocations: 2.953 kB / 1.151 GB, free: 17.98 MB / 0.698 GB (rm -f Buildings_maint.8.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.pipe ; mkfifo Buildings_maint.8.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.pipe ; head -c 1048576 < Buildings_maint.8.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.pipe >> ../files/Buildings_maint.8.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_8_0_x_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_BatteryControl_fmu --startTime=0 --stopTime=604800 --timeout=50 --tolerance=1e-06 Buildings_maint_8_0_x_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_BatteryControl.fmu > Buildings_maint.8.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.pipe 2>&1)