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.921/1.921, allocations: 289.9 MB / 297.4 MB, free: 6.359 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: 180.8 kB / 366.7 MB, free: 1.648 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.794/1.794, allocations: 205.2 MB / 0.626 GB, free: 7.168 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.0008956/0.0008956, allocations: 98.97 kB / 0.74 GB, free: 39.55 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 2.965e-05/3e-05, allocations: 4 kB / 0.8598 GB, free: 12.95 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7415/0.7415, allocations: 116.3 MB / 0.9734 GB, free: 76.03 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2137/0.9553, allocations: 142.5 MB / 1.112 GB, free: 7.633 MB / 0.7136 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002443/0.9556, allocations: 93.84 kB / 1.113 GB, free: 7.543 MB / 0.7136 GB Notification: Performance of FrontEnd - DAE generated: time 0.02129/0.9769, allocations: 8.077 MB / 1.12 GB, free: 15.5 MB / 0.7292 GB Notification: Performance of FrontEnd: time 1.643e-06/0.977, allocations: 0 / 1.12 GB, free: 15.5 MB / 0.7292 GB Notification: Performance of Transformations before backend: time 3.852e-05/0.977, allocations: 20.59 kB / 1.12 GB, free: 15.48 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.001288/0.9783, allocations: 0.6188 MB / 1.121 GB, free: 14.81 MB / 0.7292 GB Notification: Performance of prepare preOptimizeDAE: time 5.227e-05/0.9784, allocations: 11.31 kB / 1.121 GB, free: 14.8 MB / 0.7292 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000197/0.9786, allocations: 51.34 kB / 1.121 GB, free: 14.75 MB / 0.7292 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005322/0.9791, allocations: 332.8 kB / 1.121 GB, free: 14.39 MB / 0.7292 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.034e-05/0.9792, allocations: 28 kB / 1.121 GB, free: 14.36 MB / 0.7292 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.288e-05/0.9793, allocations: 35.98 kB / 1.122 GB, free: 14.32 MB / 0.7292 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0007608/0.9801, allocations: 362.5 kB / 1.122 GB, free: 13.97 MB / 0.7292 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009575/0.981, allocations: 493.7 kB / 1.122 GB, free: 13.46 MB / 0.7292 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.604e-05/0.9811, allocations: 4 kB / 1.122 GB, free: 13.45 MB / 0.7292 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.238e-05/0.9811, allocations: 3.953 kB / 1.122 GB, free: 13.45 MB / 0.7292 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.683e-05/0.9812, allocations: 25.31 kB / 1.122 GB, free: 13.43 MB / 0.7292 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00252/0.9837, allocations: 1.81 MB / 1.124 GB, free: 11.55 MB / 0.7292 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005409/0.9842, allocations: 323.1 kB / 1.124 GB, free: 11.23 MB / 0.7292 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002758/0.9845, allocations: 160.8 kB / 1.125 GB, free: 11.07 MB / 0.7292 GB Notification: Performance of preOpt evalFunc (simulation): time 5.912e-05/0.9846, allocations: 8 kB / 1.125 GB, free: 11.06 MB / 0.7292 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003396/0.9849, allocations: 197.7 kB / 1.125 GB, free: 10.85 MB / 0.7292 GB Notification: Performance of pre-optimization done (n=46): time 2.785e-06/0.985, allocations: 0 / 1.125 GB, free: 10.85 MB / 0.7292 GB Notification: Performance of matching and sorting (n=46): time 0.0006202/0.9856, allocations: 302 kB / 1.125 GB, free: 10.55 MB / 0.7292 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.218e-05/0.9857, allocations: 71.39 kB / 1.125 GB, free: 10.47 MB / 0.7292 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000229/0.9859, allocations: 212.9 kB / 1.125 GB, free: 10.25 MB / 0.7292 GB Notification: Performance of collectPreVariables (initialization): time 6.407e-05/0.986, allocations: 41.69 kB / 1.125 GB, free: 10.21 MB / 0.7292 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001695/0.9861, allocations: 217.3 kB / 1.126 GB, free: 9.992 MB / 0.7292 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001023/0.9863, allocations: 102.7 kB / 1.126 GB, free: 9.891 MB / 0.7292 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.024e-05/0.9863, allocations: 0 / 1.126 GB, free: 9.891 MB / 0.7292 GB Notification: Performance of setup shared object (initialization): time 0.0001414/0.9864, allocations: 346.8 kB / 1.126 GB, free: 9.543 MB / 0.7292 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002519/0.9867, allocations: 141.5 kB / 1.126 GB, free: 9.406 MB / 0.7292 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003198/0.987, allocations: 260.5 kB / 1.126 GB, free: 9.098 MB / 0.7292 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003164/0.9873, allocations: 150 kB / 1.127 GB, free: 8.953 MB / 0.7292 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.403e-06/0.9874, allocations: 8 kB / 1.127 GB, free: 8.945 MB / 0.7292 GB Notification: Performance of matching and sorting (n=74) (initialization): time 0.000762/0.9881, allocations: 430.4 kB / 1.127 GB, free: 8.516 MB / 0.7292 GB Notification: Performance of prepare postOptimizeDAE: time 2.268e-05/0.9882, allocations: 8 kB / 1.127 GB, free: 8.508 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.257e-05/0.9882, allocations: 4.469 kB / 1.127 GB, free: 8.504 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.183e-05/0.9882, allocations: 12 kB / 1.127 GB, free: 8.492 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00028/0.9885, allocations: 67.83 kB / 1.127 GB, free: 8.426 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.528e-05/0.9885, allocations: 11.94 kB / 1.127 GB, free: 8.414 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002587/0.9888, allocations: 29.23 kB / 1.127 GB, free: 8.387 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.13e-05/0.9889, allocations: 27.98 kB / 1.127 GB, free: 8.359 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 () * 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.0001751/0.989, allocations: 157 kB / 1.127 GB, free: 8.199 MB / 0.7292 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0005433/0.9896, allocations: 312.8 kB / 1.128 GB, free: 7.887 MB / 0.7292 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.423e-05/0.9896, allocations: 23.72 kB / 1.128 GB, free: 7.863 MB / 0.7292 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000769/0.9904, allocations: 379.8 kB / 1.128 GB, free: 7.492 MB / 0.7292 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.434e-06/0.9904, allocations: 4 kB / 1.128 GB, free: 7.488 MB / 0.7292 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.933e-06/0.9905, allocations: 7.812 kB / 1.128 GB, free: 7.484 MB / 0.7292 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.752e-06/0.9905, allocations: 0 / 1.128 GB, free: 7.484 MB / 0.7292 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001539/0.992, allocations: 0.945 MB / 1.129 GB, free: 6.496 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.136e-06/0.992, allocations: 4 kB / 1.129 GB, free: 6.492 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001677/0.9922, allocations: 27.92 kB / 1.129 GB, free: 6.465 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.845e-06/0.9922, allocations: 11.94 kB / 1.129 GB, free: 6.453 MB / 0.7292 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.117e-05/0.9923, allocations: 11.94 kB / 1.129 GB, free: 6.441 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.388e-06/0.9923, allocations: 4 kB / 1.129 GB, free: 6.438 MB / 0.7292 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.176e-06/0.9923, allocations: 1.875 kB / 1.129 GB, free: 6.438 MB / 0.7292 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007462/0.993, allocations: 456.5 kB / 1.129 GB, free: 5.977 MB / 0.7292 GB Notification: Performance of postOpt removeConstants (simulation): time 8.827e-05/0.9931, allocations: 104.7 kB / 1.129 GB, free: 5.855 MB / 0.7292 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.453e-05/0.9932, allocations: 0 / 1.129 GB, free: 5.855 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001921/0.9934, allocations: 31.92 kB / 1.13 GB, free: 5.824 MB / 0.7292 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001485/0.9936, allocations: 60.34 kB / 1.13 GB, free: 5.762 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.113e-05/0.9936, allocations: 19.98 kB / 1.13 GB, free: 5.742 MB / 0.7292 GB Notification: Performance of sorting global known variables: time 0.0001132/0.9937, allocations: 128.3 kB / 1.13 GB, free: 5.617 MB / 0.7292 GB Notification: Performance of sort global known variables: time 3.11e-07/0.9937, allocations: 0 / 1.13 GB, free: 5.617 MB / 0.7292 GB Notification: Performance of remove unused functions: time 0.000429/0.9942, allocations: 64 kB / 1.13 GB, free: 5.555 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.001187/0.9954, allocations: 1.024 MB / 1.131 GB, free: 4.504 MB / 0.7292 GB Notification: Performance of simCode: created initialization part: time 0.0006628/0.996, allocations: 392.2 kB / 1.131 GB, free: 4.125 MB / 0.7292 GB Notification: Performance of simCode: created event and clocks part: time 5.59e-06/0.9961, allocations: 4.375 kB / 1.131 GB, free: 4.121 MB / 0.7292 GB Notification: Performance of simCode: created simulation system equations: time 0.0002963/0.9964, allocations: 197.5 kB / 1.131 GB, free: 3.93 MB / 0.7292 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003089/0.9967, allocations: 37.25 kB / 1.131 GB, free: 3.898 MB / 0.7292 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001399/0.9981, allocations: 0.5811 MB / 1.132 GB, free: 3.277 MB / 0.7292 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004855/0.9986, allocations: 0.8278 MB / 1.133 GB, free: 2.426 MB / 0.7292 GB Notification: Performance of simCode: alias equations: time 0.0002405/0.9988, allocations: 74.97 kB / 1.133 GB, free: 2.359 MB / 0.7292 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002441/0.9991, allocations: 147.4 kB / 1.133 GB, free: 2.215 MB / 0.7292 GB Notification: Performance of SimCode: time 2.7e-07/0.9991, allocations: 0 / 1.133 GB, free: 2.215 MB / 0.7292 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03089/1.03, allocations: 6.797 MB / 1.14 GB, free: 11.58 MB / 0.7448 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002019/1.03, allocations: 173 kB / 1.14 GB, free: 11.38 MB / 0.7448 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.428/3.458, allocations: 0 / 1.14 GB, free: 11.38 MB / 0.7448 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)