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.000789/0.000789, allocations: 90.83 kB / 15.36 MB, free: 0.7383 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.004675/0.004675, allocations: 172.7 kB / 16.26 MB, free: 6.613 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.205/1.205, allocations: 205.4 MB / 222.4 MB, free: 5.801 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.339/1.339, allocations: 252 MB / 0.5105 GB, free: 4.719 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.0004502/0.00045, allocations: 16 kB / 0.6249 GB, free: 0.7148 MB / 0.5137 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3788/0.3792, allocations: 106.3 MB / 0.7287 GB, free: 11.4 MB / 0.545 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl): time 0.002266/0.3815, allocations: 1.972 MB / 0.7307 GB, free: 9.418 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.001534/0.3831, allocations: 1.01 MB / 0.7316 GB, free: 8.398 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002106/0.3833, allocations: 11.94 kB / 0.7317 GB, free: 8.387 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.0001443/0.3835, allocations: 39.66 kB / 0.7317 GB, free: 8.348 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.0002157/0.3837, allocations: 31.78 kB / 0.7317 GB, free: 8.316 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005048/0.3842, allocations: 255.7 kB / 0.732 GB, free: 8.066 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.000575/0.3848, allocations: 0.5661 MB / 0.7325 GB, free: 7.5 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00051/0.3853, allocations: 400.5 kB / 0.7329 GB, free: 7.105 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001896/0.3855, allocations: 147.4 kB / 0.733 GB, free: 6.961 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001938/0.3857, allocations: 171 kB / 0.7332 GB, free: 6.793 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 4.457e-05/0.3858, allocations: 20 kB / 0.7332 GB, free: 6.773 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 8.718e-05/0.3859, allocations: 35.92 kB / 0.7333 GB, free: 6.738 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.0001033/0.386, allocations: 95.66 kB / 0.7334 GB, free: 6.645 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.0001602/0.3862, allocations: 208.5 kB / 0.7335 GB, free: 6.434 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.0004835/0.3866, allocations: 0.625 MB / 0.7342 GB, free: 5.809 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 3.797e-06/0.3867, allocations: 0 / 0.7342 GB, free: 5.809 MB / 0.545 GB Notification: Performance of FrontEnd: time 3.145e-06/0.3867, allocations: 3.984 kB / 0.7342 GB, free: 5.805 MB / 0.545 GB Notification: Performance of Transformations before backend: time 1.509e-05/0.3867, allocations: 0 / 0.7342 GB, free: 5.805 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.000922/0.3876, allocations: 0.6268 MB / 0.7348 GB, free: 5.125 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 3.492e-05/0.3877, allocations: 12.03 kB / 0.7348 GB, free: 5.113 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.475e-05/0.3878, allocations: 52.38 kB / 0.7348 GB, free: 5.062 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000341/0.3881, allocations: 345.6 kB / 0.7352 GB, free: 4.688 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.055e-05/0.3882, allocations: 45.69 kB / 0.7352 GB, free: 4.645 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.152e-05/0.3882, allocations: 56.38 kB / 0.7353 GB, free: 4.59 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008494/0.3891, allocations: 0.5816 MB / 0.7358 GB, free: 3.98 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.406e-05/0.3891, allocations: 3.938 kB / 0.7358 GB, free: 3.977 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.412e-05/0.3892, allocations: 24 kB / 0.7359 GB, free: 3.953 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.573e-05/0.3892, allocations: 17 kB / 0.7359 GB, free: 3.938 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006955/0.3899, allocations: 427.7 kB / 0.7363 GB, free: 3.52 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001971/0.3919, allocations: 1.934 MB / 0.7382 GB, free: 1.504 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005077/0.3924, allocations: 365.6 kB / 0.7385 GB, free: 1.141 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002643/0.3927, allocations: 180.8 kB / 0.7387 GB, free: 0.9609 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 4.553e-05/0.3927, allocations: 11.98 kB / 0.7387 GB, free: 0.9492 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000324/0.3931, allocations: 226.2 kB / 0.7389 GB, free: 0.7148 MB / 0.545 GB Notification: Performance of pre-optimization done (n=46): time 3.036e-06/0.3931, allocations: 4 kB / 0.7389 GB, free: 0.7109 MB / 0.545 GB Notification: Performance of matching and sorting (n=46): time 0.0007758/0.3938, allocations: 481.2 kB / 0.7394 GB, free: 240 kB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.911e-05/0.3939, allocations: 67.14 kB / 0.7394 GB, free: 160 kB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001944/0.3941, allocations: 245.9 kB / 0.7397 GB, free: 15.9 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 4.629e-05/0.3942, allocations: 45.7 kB / 0.7397 GB, free: 15.85 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001213/0.3943, allocations: 216.7 kB / 0.7399 GB, free: 15.64 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 8.062e-05/0.3944, allocations: 110.5 kB / 0.74 GB, free: 15.53 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.759e-05/0.3945, allocations: 97.66 kB / 0.7401 GB, free: 15.43 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001015/0.3946, allocations: 346.7 kB / 0.7405 GB, free: 15.08 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002659/0.3948, allocations: 161.2 kB / 0.7406 GB, free: 14.92 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003276/0.3952, allocations: 296.6 kB / 0.7409 GB, free: 14.58 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005046/0.3957, allocations: 402.5 kB / 0.7413 GB, free: 14.14 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.286e-06/0.3957, allocations: 0 / 0.7413 GB, free: 14.14 MB / 0.5606 GB Notification: Performance of matching and sorting (n=74) (initialization): time 0.0007248/0.3964, allocations: 0.5139 MB / 0.7418 GB, free: 13.62 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.867e-05/0.3965, allocations: 8 kB / 0.7418 GB, free: 13.61 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.273e-06/0.3965, allocations: 4 kB / 0.7418 GB, free: 13.61 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.441e-05/0.3965, allocations: 4 kB / 0.7418 GB, free: 13.61 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002095/0.3967, allocations: 64.31 kB / 0.7419 GB, free: 13.54 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.072e-05/0.3967, allocations: 11.98 kB / 0.7419 GB, free: 13.53 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002087/0.397, allocations: 59.52 kB / 0.7419 GB, free: 13.47 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.845e-05/0.397, allocations: 28 kB / 0.742 GB, free: 13.45 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,con.t4.enableFire,con.t4.condition,con.t3.enableFire,con.t3.condition,con.discharge.active,con.discharge.oldActive,$PRE.con.discharge.oldActive,con.discharge.newActive,$PRE.con.discharge.newActive,con.discharge.localActive,$PRE.con.discharge.localActive,con.charge.active,con.charge.oldActive,$PRE.con.charge.oldActive,con.charge.newActive,$PRE.con.charge.newActive,con.charge.localActive,$PRE.con.charge.localActive,con.t2.t_start,$PRE.con.t2.t_start,con.t2.fire,con.t2.enableFire,con.t2.condition,con.t1.t_start,$PRE.con.t1.t_start,con.t1.fire,con.t1.enableFire,con.t1.condition,con.alternative.split[2].available,con.stateGraphRoot.activeSteps,con.off.oldActive,$PRE.con.off.oldActive,con.off.newActive,$PRE.con.off.newActive,con.off.outPort[1].reset,con.off.inPort[1].set,con.off.localActive,$PRE.con.off.localActive,con.off.active,con.multiSwitch1.firstActiveIndex,con.multiSwitch1.u[2],con.multiSwitch1.u[1],con.greaterThreshold.y,con.not1.y,con.lessThreshold.y,$whenCondition1,$whenCondition2) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002159/0.3972, allocations: 230.9 kB / 0.7422 GB, free: 13.21 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.641e-05/0.3973, allocations: 31.56 kB / 0.7422 GB, free: 13.18 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006681/0.3979, allocations: 431.5 kB / 0.7426 GB, free: 12.75 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.759e-06/0.398, allocations: 4 kB / 0.7426 GB, free: 12.75 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.621e-06/0.398, allocations: 4 kB / 0.7426 GB, free: 12.75 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.39e-06/0.398, allocations: 4 kB / 0.7426 GB, free: 12.74 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001326/0.3993, allocations: 1.138 MB / 0.7437 GB, free: 11.53 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.545e-06/0.3993, allocations: 0 / 0.7437 GB, free: 11.53 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001359/0.3995, allocations: 43.84 kB / 0.7438 GB, free: 11.49 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.691e-06/0.3995, allocations: 7.938 kB / 0.7438 GB, free: 11.48 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.29e-05/0.3995, allocations: 8 kB / 0.7438 GB, free: 11.47 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.517e-06/0.3995, allocations: 3.984 kB / 0.7438 GB, free: 11.47 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.82e-07/0.3995, allocations: 0 / 0.7438 GB, free: 11.47 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005853/0.4001, allocations: 0.4997 MB / 0.7443 GB, free: 10.95 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 5.269e-05/0.4002, allocations: 116.6 kB / 0.7444 GB, free: 10.82 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.753e-05/0.4002, allocations: 8 kB / 0.7444 GB, free: 10.81 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001696/0.4004, allocations: 35.91 kB / 0.7444 GB, free: 10.78 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001217/0.4005, allocations: 64.36 kB / 0.7445 GB, free: 10.71 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.745e-05/0.4006, allocations: 12 kB / 0.7445 GB, free: 10.7 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 9.377e-05/0.4007, allocations: 136.5 kB / 0.7446 GB, free: 10.57 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.2e-07/0.4007, allocations: 4 kB / 0.7446 GB, free: 10.56 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0003634/0.401, allocations: 111.5 kB / 0.7448 GB, free: 10.45 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001637/0.4012, allocations: 143.1 kB / 0.7449 GB, free: 10.3 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0006386/0.4018, allocations: 442 kB / 0.7453 GB, free: 9.871 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 1.633e-06/0.4019, allocations: 0 / 0.7453 GB, free: 9.871 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.0002986/0.4022, allocations: 218.4 kB / 0.7455 GB, free: 9.66 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003243/0.4025, allocations: 47.92 kB / 0.7456 GB, free: 9.613 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00109/0.4036, allocations: 0.8916 MB / 0.7464 GB, free: 8.695 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003176/0.4039, allocations: 0.8194 MB / 0.7472 GB, free: 7.852 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.0001817/0.4041, allocations: 71.23 kB / 0.7473 GB, free: 7.785 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001016/0.4042, allocations: 43.42 kB / 0.7473 GB, free: 7.746 MB / 0.5606 GB Notification: Performance of SimCode: time 3.11e-07/0.4042, allocations: 3.938 kB / 0.7473 GB, free: 7.742 MB / 0.5606 GB Notification: Performance of Templates: time 0.007083/0.4113, allocations: 3.939 MB / 0.7512 GB, free: 3.855 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: