Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.conf.json loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 8.0.0 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo) Running command: translateModel(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8.0.0_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_8.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo): time 2.627/2.627, allocations: 284.8 MB / 297.3 MB, free: 6.34 MB / 234.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001488/0.001488, allocations: 184.8 kB / 365.7 MB, free: 2.598 MB / 298.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.926/1.926, allocations: 205.2 MB / 0.6241 GB, free: 8.211 MB / 474.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001022/0.001021, allocations: 88.27 kB / 0.7372 GB, free: 40.78 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 3.534e-05/3.547e-05, allocations: 4 kB / 0.8574 GB, free: 13.7 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8088/0.8089, allocations: 115.2 MB / 0.97 GB, free: 78.09 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2476/1.057, allocations: 142 MB / 1.109 GB, free: 10.45 MB / 0.7136 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003747/1.057, allocations: 93.19 kB / 1.109 GB, free: 10.36 MB / 0.7136 GB Notification: Performance of FrontEnd - DAE generated: time 0.03492/1.092, allocations: 8.228 MB / 1.117 GB, free: 2.191 MB / 0.7136 GB Notification: Performance of FrontEnd: time 1.673e-06/1.092, allocations: 0 / 1.117 GB, free: 2.191 MB / 0.7136 GB Notification: Performance of Transformations before backend: time 3.709e-05/1.092, allocations: 12.66 kB / 1.117 GB, free: 2.18 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.001439/1.093, allocations: 0.6188 MB / 1.117 GB, free: 1.512 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 5.328e-05/1.094, allocations: 8.031 kB / 1.117 GB, free: 1.504 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001768/1.094, allocations: 51.34 kB / 1.117 GB, free: 1.453 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006688/1.094, allocations: 335.2 kB / 1.118 GB, free: 1.082 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.304e-05/1.095, allocations: 45.31 kB / 1.118 GB, free: 1.035 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001297/1.095, allocations: 56 kB / 1.118 GB, free: 0.9805 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001516/1.096, allocations: 0.5544 MB / 1.118 GB, free: 408 kB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.686e-05/1.096, allocations: 0 / 1.118 GB, free: 408 kB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.196e-05/1.096, allocations: 25.2 kB / 1.118 GB, free: 384 kB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.19e-05/1.096, allocations: 21 kB / 1.118 GB, free: 364 kB / 0.7136 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001203/1.098, allocations: 403.8 kB / 1.119 GB, free: 15.96 MB / 0.7292 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003778/1.101, allocations: 1.911 MB / 1.121 GB, free: 13.98 MB / 0.7292 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009019/1.102, allocations: 336.5 kB / 1.121 GB, free: 13.64 MB / 0.7292 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004387/1.103, allocations: 178.4 kB / 1.121 GB, free: 13.46 MB / 0.7292 GB Notification: Performance of preOpt evalFunc (simulation): time 8.037e-05/1.103, allocations: 15.97 kB / 1.121 GB, free: 13.45 MB / 0.7292 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005418/1.104, allocations: 218 kB / 1.121 GB, free: 13.22 MB / 0.7292 GB Notification: Performance of pre-optimization done (n=46): time 3.527e-06/1.104, allocations: 0 / 1.121 GB, free: 13.22 MB / 0.7292 GB Notification: Performance of matching and sorting (n=46): time 0.001011/1.105, allocations: 329.6 kB / 1.122 GB, free: 12.89 MB / 0.7292 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.148e-05/1.105, allocations: 63.36 kB / 1.122 GB, free: 12.82 MB / 0.7292 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003415/1.105, allocations: 217 kB / 1.122 GB, free: 12.6 MB / 0.7292 GB Notification: Performance of collectPreVariables (initialization): time 0.0001002/1.105, allocations: 49.69 kB / 1.122 GB, free: 12.55 MB / 0.7292 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002149/1.105, allocations: 224.6 kB / 1.122 GB, free: 12.32 MB / 0.7292 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001521/1.105, allocations: 114.6 kB / 1.122 GB, free: 12.21 MB / 0.7292 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.987e-05/1.106, allocations: 8 kB / 1.122 GB, free: 12.2 MB / 0.7292 GB Notification: Performance of setup shared object (initialization): time 0.0001722/1.106, allocations: 344.8 kB / 1.123 GB, free: 11.86 MB / 0.7292 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004396/1.106, allocations: 149.5 kB / 1.123 GB, free: 11.71 MB / 0.7292 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000555/1.107, allocations: 282 kB / 1.123 GB, free: 11.39 MB / 0.7292 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004605/1.107, allocations: 163.2 kB / 1.123 GB, free: 11.23 MB / 0.7292 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.541e-06/1.107, allocations: 0 / 1.123 GB, free: 11.23 MB / 0.7292 GB Notification: Performance of matching and sorting (n=74) (initialization): time 0.001279/1.109, allocations: 486.4 kB / 1.124 GB, free: 10.74 MB / 0.7292 GB Notification: Performance of prepare postOptimizeDAE: time 2.982e-05/1.109, allocations: 8 kB / 1.124 GB, free: 10.73 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.542e-05/1.109, allocations: 7.984 kB / 1.124 GB, free: 10.73 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.902e-05/1.109, allocations: 8.469 kB / 1.124 GB, free: 10.72 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004658/1.109, allocations: 67.84 kB / 1.124 GB, free: 10.65 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.233e-05/1.109, allocations: 11.94 kB / 1.124 GB, free: 10.64 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004041/1.11, allocations: 47.77 kB / 1.124 GB, free: 10.59 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.912e-05/1.11, allocations: 24 kB / 1.124 GB, free: 10.57 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.0002437/1.11, allocations: 174 kB / 1.124 GB, free: 10.39 MB / 0.7292 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.551e-05/1.11, allocations: 27.62 kB / 1.124 GB, free: 10.37 MB / 0.7292 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001161/1.111, allocations: 405.1 kB / 1.124 GB, free: 9.969 MB / 0.7292 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.898e-06/1.111, allocations: 4 kB / 1.124 GB, free: 9.965 MB / 0.7292 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.221e-06/1.111, allocations: 0 / 1.124 GB, free: 9.965 MB / 0.7292 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.241e-05/1.111, allocations: 3.984 kB / 1.124 GB, free: 9.961 MB / 0.7292 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002482/1.114, allocations: 1.052 MB / 1.126 GB, free: 8.852 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.093e-06/1.114, allocations: 0 / 1.126 GB, free: 8.852 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003109/1.114, allocations: 41.41 kB / 1.126 GB, free: 8.812 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.506e-05/1.114, allocations: 7.953 kB / 1.126 GB, free: 8.805 MB / 0.7292 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.187e-05/1.114, allocations: 8 kB / 1.126 GB, free: 8.797 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.664e-06/1.114, allocations: 4 kB / 1.126 GB, free: 8.793 MB / 0.7292 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.054e-06/1.114, allocations: 3.938 kB / 1.126 GB, free: 8.789 MB / 0.7292 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001043/1.115, allocations: 483.7 kB / 1.126 GB, free: 8.301 MB / 0.7292 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001045/1.115, allocations: 100.8 kB / 1.126 GB, free: 8.184 MB / 0.7292 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.507e-05/1.116, allocations: 19.88 kB / 1.126 GB, free: 8.164 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003513/1.116, allocations: 31.98 kB / 1.126 GB, free: 8.133 MB / 0.7292 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002317/1.116, allocations: 60.34 kB / 1.126 GB, free: 8.074 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.635e-05/1.116, allocations: 19.98 kB / 1.126 GB, free: 8.055 MB / 0.7292 GB Notification: Performance of sorting global known variables: time 0.0002051/1.116, allocations: 128.5 kB / 1.126 GB, free: 7.93 MB / 0.7292 GB Notification: Performance of sort global known variables: time 3.91e-07/1.116, allocations: 0 / 1.126 GB, free: 7.93 MB / 0.7292 GB Notification: Performance of remove unused functions: time 0.0006238/1.117, allocations: 95.89 kB / 1.126 GB, free: 7.836 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.0003005/1.117, allocations: 152 kB / 1.127 GB, free: 7.684 MB / 0.7292 GB Notification: Performance of simCode: created initialization part: time 0.00114/1.119, allocations: 417.6 kB / 1.127 GB, free: 7.277 MB / 0.7292 GB Notification: Performance of simCode: created event and clocks part: time 3.547e-06/1.119, allocations: 0 / 1.127 GB, free: 7.277 MB / 0.7292 GB Notification: Performance of simCode: created simulation system equations: time 0.0005208/1.119, allocations: 206.5 kB / 1.127 GB, free: 7.078 MB / 0.7292 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004297/1.12, allocations: 38.33 kB / 1.127 GB, free: 7.043 MB / 0.7292 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001661/1.121, allocations: 0.5344 MB / 1.128 GB, free: 6.484 MB / 0.7292 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005511/1.122, allocations: 0.8319 MB / 1.129 GB, free: 5.621 MB / 0.7292 GB Notification: Performance of simCode: alias equations: time 0.0004261/1.122, allocations: 62.62 kB / 1.129 GB, free: 5.559 MB / 0.7292 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002027/1.122, allocations: 47.41 kB / 1.129 GB, free: 5.516 MB / 0.7292 GB Notification: Performance of SimCode: time 3.587e-06/1.122, allocations: 0 / 1.129 GB, free: 5.516 MB / 0.7292 GB Notification: Performance of Templates: time 0.01388/1.136, allocations: 3.732 MB / 1.132 GB, free: 1.875 MB / 0.7292 GB make -j1 -f Buildings_8.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.makefile (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 & ./Buildings_8.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.pipe 2>&1)