Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+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/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.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.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001253/0.001253, allocations: 98.53 kB / 15.05 MB, free: 1.105 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001439/0.00144, allocations: 177.3 kB / 15.94 MB, free: 228 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.64/1.64, allocations: 205.4 MB / 222.1 MB, free: 5.512 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.563/1.563, allocations: 251.9 MB / 0.51 GB, free: 4.793 MB / 414.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.000538/0.0005383, allocations: 23.94 kB / 0.6241 GB, free: 1.121 MB / 0.5137 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6728/0.6734, allocations: 106.3 MB / 0.728 GB, free: 11.38 MB / 0.545 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl): time 0.002853/0.6763, allocations: 1.91 MB / 0.7298 GB, free: 9.461 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.001959/0.6783, allocations: 0.9827 MB / 0.7308 GB, free: 8.469 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001985/0.6785, allocations: 7.938 kB / 0.7308 GB, free: 8.461 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.0001911/0.6787, allocations: 51.58 kB / 0.7309 GB, free: 8.41 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.0002481/0.6789, allocations: 43.75 kB / 0.7309 GB, free: 8.367 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005001/0.6794, allocations: 167.8 kB / 0.7311 GB, free: 8.203 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.0004756/0.6799, allocations: 352.1 kB / 0.7314 GB, free: 7.859 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005704/0.6805, allocations: 364.3 kB / 0.7317 GB, free: 7.5 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001832/0.6807, allocations: 139.5 kB / 0.7319 GB, free: 7.363 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002203/0.6809, allocations: 163.1 kB / 0.732 GB, free: 7.203 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 4.016e-05/0.681, allocations: 20 kB / 0.7321 GB, free: 7.184 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 9.494e-05/0.6811, allocations: 28 kB / 0.7321 GB, free: 7.156 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.0001187/0.6812, allocations: 87.66 kB / 0.7322 GB, free: 7.07 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.0001124/0.6813, allocations: 105.5 kB / 0.7323 GB, free: 6.961 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.0005281/0.6819, allocations: 0.5319 MB / 0.7328 GB, free: 6.43 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 3.707e-06/0.6819, allocations: 0 / 0.7328 GB, free: 6.43 MB / 0.545 GB Notification: Performance of FrontEnd: time 2.945e-06/0.6819, allocations: 0 / 0.7328 GB, free: 6.43 MB / 0.545 GB Notification: Performance of Transformations before backend: time 8.175e-06/0.6819, allocations: 0 / 0.7328 GB, free: 6.43 MB / 0.545 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.001171/0.6831, allocations: 0.6304 MB / 0.7334 GB, free: 5.742 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 4.414e-05/0.6831, allocations: 8.031 kB / 0.7334 GB, free: 5.734 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001064/0.6832, allocations: 59.38 kB / 0.7335 GB, free: 5.676 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004536/0.6837, allocations: 336.4 kB / 0.7338 GB, free: 5.309 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.391e-05/0.6838, allocations: 49.25 kB / 0.7338 GB, free: 5.262 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.932e-05/0.6839, allocations: 56 kB / 0.7339 GB, free: 5.207 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009754/0.6849, allocations: 0.5695 MB / 0.7344 GB, free: 4.609 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.515e-05/0.6849, allocations: 0 / 0.7344 GB, free: 4.609 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.78e-05/0.685, allocations: 20 kB / 0.7345 GB, free: 4.59 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.127e-05/0.685, allocations: 24.98 kB / 0.7345 GB, free: 4.566 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007538/0.6858, allocations: 423.6 kB / 0.7349 GB, free: 4.152 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002506/0.6883, allocations: 1.942 MB / 0.7368 GB, free: 2.133 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005861/0.6889, allocations: 348.2 kB / 0.7371 GB, free: 1.785 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 6.677e-05/0.689, allocations: 8 kB / 0.7371 GB, free: 1.777 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003883/0.6894, allocations: 222 kB / 0.7373 GB, free: 1.547 MB / 0.545 GB Notification: Performance of pre-optimization done (n=46): time 2.665e-06/0.6894, allocations: 4 kB / 0.7373 GB, free: 1.543 MB / 0.545 GB Notification: Performance of matching and sorting (n=46): time 0.0009269/0.6903, allocations: 474.6 kB / 0.7378 GB, free: 1.074 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.531e-05/0.6904, allocations: 75.14 kB / 0.7379 GB, free: 0.9883 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002282/0.6906, allocations: 233.7 kB / 0.7381 GB, free: 0.75 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 5.131e-05/0.6907, allocations: 49.69 kB / 0.7381 GB, free: 0.6953 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001748/0.6909, allocations: 220.7 kB / 0.7383 GB, free: 488 kB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.000104/0.691, allocations: 114.5 kB / 0.7385 GB, free: 372 kB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.276e-05/0.691, allocations: 12 kB / 0.7385 GB, free: 360 kB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001457/0.6912, allocations: 342.8 kB / 0.7388 GB, free: 8 kB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002965/0.6915, allocations: 161.2 kB / 0.7389 GB, free: 15.85 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000365/0.6918, allocations: 292.6 kB / 0.7392 GB, free: 15.52 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002961/0.6922, allocations: 170.2 kB / 0.7394 GB, free: 15.35 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.787e-06/0.6922, allocations: 0 / 0.7394 GB, free: 15.35 MB / 0.5606 GB Notification: Performance of matching and sorting (n=74) (initialization): time 0.0007846/0.693, allocations: 0.5064 MB / 0.7399 GB, free: 14.84 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.8e-05/0.693, allocations: 4 kB / 0.7399 GB, free: 14.84 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.947e-06/0.693, allocations: 4 kB / 0.7399 GB, free: 14.84 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.952e-05/0.693, allocations: 11.98 kB / 0.7399 GB, free: 14.82 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002399/0.6933, allocations: 59.84 kB / 0.74 GB, free: 14.77 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.443e-05/0.6933, allocations: 8 kB / 0.74 GB, free: 14.76 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002512/0.6935, allocations: 67.69 kB / 0.74 GB, free: 14.69 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.468e-05/0.6936, allocations: 28 kB / 0.7401 GB, free: 14.66 MB / 0.5606 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.lessThreshold.y,con.not1.y,con.greaterThreshold.y,con.multiSwitch1.u[1],con.multiSwitch1.u[2],con.multiSwitch1.firstActiveIndex,con.off.active,$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.stateGraphRoot.activeSteps,con.alternative.split[2].available,con.t1.condition,con.t1.enableFire,con.t1.fire,$PRE.con.t1.t_start,con.t1.t_start,con.t2.condition,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.condition,con.t3.enableFire,con.t4.condition,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.0003221/0.6939, allocations: 238.7 kB / 0.7403 GB, free: 14.42 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.223e-05/0.694, allocations: 31.62 kB / 0.7403 GB, free: 14.39 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007455/0.6947, allocations: 423.6 kB / 0.7407 GB, free: 13.97 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.005e-06/0.6948, allocations: 4 kB / 0.7407 GB, free: 13.97 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.129e-06/0.6948, allocations: 4 kB / 0.7407 GB, free: 13.96 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.624e-06/0.6948, allocations: 3.984 kB / 0.7407 GB, free: 13.96 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001571/0.6964, allocations: 1.134 MB / 0.7418 GB, free: 12.75 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.366e-06/0.6964, allocations: 0 / 0.7418 GB, free: 12.75 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001487/0.6965, allocations: 39.91 kB / 0.7419 GB, free: 12.71 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.782e-06/0.6965, allocations: 3.984 kB / 0.7419 GB, free: 12.71 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.436e-05/0.6966, allocations: 8 kB / 0.7419 GB, free: 12.7 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.464e-06/0.6966, allocations: 0 / 0.7419 GB, free: 12.7 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.257e-05/0.6966, allocations: 11.95 kB / 0.7419 GB, free: 12.69 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000665/0.6973, allocations: 499.7 kB / 0.7424 GB, free: 12.19 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 7.939e-05/0.6974, allocations: 112.6 kB / 0.7425 GB, free: 12.06 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.517e-05/0.6974, allocations: 11.98 kB / 0.7425 GB, free: 12.05 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001803/0.6976, allocations: 27.98 kB / 0.7425 GB, free: 12.02 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001922/0.6978, allocations: 68.3 kB / 0.7426 GB, free: 11.95 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.936e-05/0.6979, allocations: 19.98 kB / 0.7426 GB, free: 11.93 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.0001248/0.698, allocations: 131.2 kB / 0.7427 GB, free: 11.8 MB / 0.5606 GB Notification: Performance of sort global known variables: time 3.2e-07/0.698, allocations: 3.938 kB / 0.7427 GB, free: 11.8 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0004947/0.6985, allocations: 107.6 kB / 0.7428 GB, free: 11.7 MB / 0.5606 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.lessThreshold.y,con.not1.y,con.greaterThreshold.y,con.multiSwitch1.u[1],con.multiSwitch1.u[2],con.multiSwitch1.firstActiveIndex,con.off.active,con.off.inPort[1].set,con.off.outPort[1].reset,con.off.newActive,con.off.oldActive,con.stateGraphRoot.activeSteps,con.alternative.split[2].available,con.t1.condition,con.t1.fire,con.t1.t_start,con.t2.condition,con.t2.fire,con.t2.t_start,con.charge.newActive,con.charge.oldActive,con.discharge.newActive,con.discharge.oldActive,con.t3.condition,con.t3.enableFire,con.t4.condition,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.0002399/0.6987, allocations: 145.4 kB / 0.743 GB, free: 11.54 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0007676/0.6995, allocations: 437.5 kB / 0.7434 GB, free: 11.11 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 3.266e-06/0.6995, allocations: 0.9375 kB / 0.7434 GB, free: 11.11 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.0003488/0.6999, allocations: 222.4 kB / 0.7436 GB, free: 10.89 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003088/0.7002, allocations: 38.73 kB / 0.7436 GB, free: 10.86 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001524/0.7017, allocations: 0.8481 MB / 0.7445 GB, free: 9.984 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004846/0.7023, allocations: 0.831 MB / 0.7453 GB, free: 9.125 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.0002101/0.7025, allocations: 71.22 kB / 0.7454 GB, free: 9.059 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001078/0.7026, allocations: 39.42 kB / 0.7454 GB, free: 9.023 MB / 0.5606 GB Notification: Performance of SimCode: time 5.62e-07/0.7026, allocations: 0 / 0.7454 GB, free: 9.023 MB / 0.5606 GB Notification: Performance of Templates: time 0.008177/0.7108, allocations: 3.734 MB / 0.749 GB, free: 5.34 MB / 0.5606 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.makefile Environment - environmentSimulation: (rm -f Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.sim & ./Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.pipe 2>&1) Environment - environmentSimulation: