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: translateModel(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.8.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl") translateModel(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.8.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo): time 1.672/1.672, allocations: 285.6 MB / 293.1 MB, free: 10.21 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.0012/0.0012, allocations: 172.9 kB / 361.4 MB, free: 6.816 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.462/1.462, allocations: 205.2 MB / 0.62 GB, free: 11.64 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.0008698/0.0008696, allocations: 88.41 kB / 0.733 GB, free: 44.16 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 1.841e-05/1.844e-05, allocations: 4 kB / 0.8518 GB, free: 2.707 MB / 0.5886 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6576/0.6576, allocations: 115.3 MB / 0.9644 GB, free: 78.79 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1885/0.8462, allocations: 141.5 MB / 1.103 GB, free: 14.33 MB / 0.7136 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002757/0.8465, allocations: 89.02 kB / 1.103 GB, free: 14.24 MB / 0.7136 GB Notification: Performance of FrontEnd - DAE generated: time 0.02069/0.8672, allocations: 8.074 MB / 1.111 GB, free: 6.223 MB / 0.7136 GB Notification: Performance of FrontEnd: time 1.693e-06/0.8673, allocations: 4 kB / 1.111 GB, free: 6.219 MB / 0.7136 GB Notification: Performance of Transformations before backend: time 3.647e-05/0.8673, allocations: 20.58 kB / 1.111 GB, free: 6.199 MB / 0.7136 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.001161/0.8685, allocations: 0.611 MB / 1.111 GB, free: 5.535 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 4.802e-05/0.8686, allocations: 12.03 kB / 1.111 GB, free: 5.523 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001817/0.8688, allocations: 53.28 kB / 1.111 GB, free: 5.473 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000486/0.8693, allocations: 331.2 kB / 1.112 GB, free: 5.105 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.879e-05/0.8693, allocations: 24 kB / 1.112 GB, free: 5.082 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.592e-05/0.8694, allocations: 32 kB / 1.112 GB, free: 5.051 MB / 0.7136 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0007405/0.8701, allocations: 362.5 kB / 1.112 GB, free: 4.699 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000839/0.871, allocations: 497.7 kB / 1.112 GB, free: 4.18 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.708e-05/0.871, allocations: 0 / 1.112 GB, free: 4.18 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.45e-05/0.8711, allocations: 7.953 kB / 1.112 GB, free: 4.172 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.203e-05/0.8711, allocations: 21.31 kB / 1.112 GB, free: 4.152 MB / 0.7136 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002357/0.8735, allocations: 1.809 MB / 1.114 GB, free: 2.277 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005041/0.874, allocations: 324.6 kB / 1.114 GB, free: 1.949 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002328/0.8742, allocations: 161.5 kB / 1.115 GB, free: 1.789 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 7.279e-05/0.8743, allocations: 12 kB / 1.115 GB, free: 1.777 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003124/0.8746, allocations: 197.7 kB / 1.115 GB, free: 1.57 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=46): time 2.224e-06/0.8747, allocations: 3.938 kB / 1.115 GB, free: 1.566 MB / 0.7136 GB Notification: Performance of matching and sorting (n=46): time 0.000606/0.8753, allocations: 302 kB / 1.115 GB, free: 1.266 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.054e-05/0.8753, allocations: 67.39 kB / 1.115 GB, free: 1.188 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002164/0.8756, allocations: 216.7 kB / 1.115 GB, free: 0.9688 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 5.506e-05/0.8756, allocations: 41.69 kB / 1.115 GB, free: 0.9219 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001571/0.8758, allocations: 213.3 kB / 1.116 GB, free: 0.7109 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 0.000103/0.8759, allocations: 108.4 kB / 1.116 GB, free: 0.6055 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.099e-05/0.8759, allocations: 4 kB / 1.116 GB, free: 0.6016 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 0.0001362/0.8761, allocations: 346.8 kB / 1.116 GB, free: 260 kB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002366/0.8763, allocations: 137.5 kB / 1.116 GB, free: 124 kB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000315/0.8766, allocations: 264.5 kB / 1.116 GB, free: 15.82 MB / 0.7292 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002902/0.8769, allocations: 146.1 kB / 1.117 GB, free: 15.67 MB / 0.7292 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.919e-06/0.877, allocations: 4 kB / 1.117 GB, free: 15.67 MB / 0.7292 GB Notification: Performance of matching and sorting (n=74) (initialization): time 0.0006862/0.8776, allocations: 442.7 kB / 1.117 GB, free: 15.23 MB / 0.7292 GB Notification: Performance of prepare postOptimizeDAE: time 1.811e-05/0.8777, allocations: 8 kB / 1.117 GB, free: 15.22 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.538e-06/0.8777, allocations: 4 kB / 1.117 GB, free: 15.21 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.234e-05/0.8777, allocations: 4 kB / 1.117 GB, free: 15.21 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002513/0.878, allocations: 67.83 kB / 1.117 GB, free: 15.14 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.558e-05/0.878, allocations: 8 kB / 1.117 GB, free: 15.14 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002082/0.8782, allocations: 31.95 kB / 1.117 GB, free: 15.11 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.309e-05/0.8783, allocations: 29.94 kB / 1.117 GB, free: 15.08 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.0001465/0.8785, allocations: 150 kB / 1.117 GB, free: 14.93 MB / 0.7292 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.59e-05/0.8785, allocations: 30 kB / 1.117 GB, free: 14.9 MB / 0.7292 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006978/0.8792, allocations: 381.5 kB / 1.118 GB, free: 14.52 MB / 0.7292 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.09e-06/0.8792, allocations: 6.906 kB / 1.118 GB, free: 14.52 MB / 0.7292 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.43e-06/0.8792, allocations: 0 / 1.118 GB, free: 14.52 MB / 0.7292 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.827e-06/0.8793, allocations: 11.97 kB / 1.118 GB, free: 14.51 MB / 0.7292 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001296/0.8806, allocations: 0.9333 MB / 1.119 GB, free: 13.53 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.224e-06/0.8806, allocations: 4 kB / 1.119 GB, free: 13.52 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001577/0.8807, allocations: 35.91 kB / 1.119 GB, free: 13.49 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.59e-06/0.8808, allocations: 0 / 1.119 GB, free: 13.49 MB / 0.7292 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.557e-05/0.8808, allocations: 11.94 kB / 1.119 GB, free: 13.48 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.709e-06/0.8808, allocations: 3.938 kB / 1.119 GB, free: 13.47 MB / 0.7292 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.695e-06/0.8808, allocations: 0 / 1.119 GB, free: 13.47 MB / 0.7292 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000608/0.8814, allocations: 462.6 kB / 1.119 GB, free: 13.01 MB / 0.7292 GB Notification: Performance of postOpt removeConstants (simulation): time 5.624e-05/0.8815, allocations: 104.8 kB / 1.119 GB, free: 12.89 MB / 0.7292 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.205e-05/0.8815, allocations: 3.984 kB / 1.119 GB, free: 12.88 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001702/0.8817, allocations: 19.98 kB / 1.119 GB, free: 12.86 MB / 0.7292 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001376/0.8819, allocations: 64.34 kB / 1.119 GB, free: 12.8 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.571e-05/0.8819, allocations: 19.98 kB / 1.119 GB, free: 12.78 MB / 0.7292 GB Notification: Performance of sorting global known variables: time 8.947e-05/0.882, allocations: 128.2 kB / 1.119 GB, free: 12.66 MB / 0.7292 GB Notification: Performance of sort global known variables: time 1.41e-07/0.882, allocations: 0 / 1.119 GB, free: 12.66 MB / 0.7292 GB Notification: Performance of remove unused functions: time 0.000385/0.8824, allocations: 83.89 kB / 1.12 GB, free: 12.57 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.0002083/0.8826, allocations: 142 kB / 1.12 GB, free: 12.43 MB / 0.7292 GB Notification: Performance of simCode: created initialization part: time 0.0005411/0.8832, allocations: 388.5 kB / 1.12 GB, free: 12.05 MB / 0.7292 GB Notification: Performance of simCode: created event and clocks part: time 1.843e-06/0.8832, allocations: 0 / 1.12 GB, free: 12.05 MB / 0.7292 GB Notification: Performance of simCode: created simulation system equations: time 0.0002597/0.8834, allocations: 201.7 kB / 1.12 GB, free: 11.85 MB / 0.7292 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002749/0.8837, allocations: 28.7 kB / 1.12 GB, free: 11.83 MB / 0.7292 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009089/0.8846, allocations: 0.5115 MB / 1.121 GB, free: 11.3 MB / 0.7292 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003691/0.885, allocations: 0.8317 MB / 1.122 GB, free: 10.44 MB / 0.7292 GB Notification: Performance of simCode: alias equations: time 0.000201/0.8852, allocations: 68.06 kB / 1.122 GB, free: 10.38 MB / 0.7292 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001049/0.8853, allocations: 39.42 kB / 1.122 GB, free: 10.34 MB / 0.7292 GB Notification: Performance of SimCode: time 1.353e-06/0.8853, allocations: 4 kB / 1.122 GB, free: 10.34 MB / 0.7292 GB Notification: Performance of Templates: time 0.007352/0.8927, allocations: 3.608 MB / 1.125 GB, free: 6.816 MB / 0.7292 GB make -j1 -f Buildings_maint.8.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.makefile (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 & ./Buildings_maint.8.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_maint.8.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.pipe 2>&1)