Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_master_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.conf.json 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 9.0.0 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.0.0-master/package.mo) Running command: translateModel(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_master_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.0.0-master/package.mo): time 4.926/4.926, allocations: 0.5623 GB / 0.5769 GB, free: 3.324 MB / 474.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002468/0.002468, allocations: 353.9 kB / 0.644 GB, free: 185.7 MB / 474.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 3.95/3.95, allocations: 410.7 MB / 1.112 GB, free: 5.898 MB / 0.6042 GB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001806/0.001806, allocations: 185.7 kB / 1.225 GB, free: 6.066 MB / 0.7136 GB Notification: Performance of FrontEnd - loaded program: time 0.0004936/0.0004939, allocations: 12 kB / 1.348 GB, free: 8.191 MB / 0.8386 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.592/0.5925, allocations: 115.3 MB / 1.461 GB, free: 284.4 MB / 0.8542 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl): time 0.002303/0.5949, allocations: 1.916 MB / 1.463 GB, free: 282.4 MB / 0.8542 GB Notification: Performance of NFInst.instExpressions: time 0.001704/0.5966, allocations: 0.972 MB / 1.464 GB, free: 281.4 MB / 0.8542 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002075/0.5969, allocations: 8.688 kB / 1.464 GB, free: 281.4 MB / 0.8542 GB Notification: Performance of NFTyping.typeComponents: time 0.000139/0.597, allocations: 43.59 kB / 1.464 GB, free: 281.4 MB / 0.8542 GB Notification: Performance of NFTyping.typeBindings: time 0.0002284/0.5973, allocations: 30.53 kB / 1.464 GB, free: 281.4 MB / 0.8542 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005099/0.5978, allocations: 179.7 kB / 1.464 GB, free: 281.2 MB / 0.8542 GB Notification: Performance of NFFlatten.flatten: time 0.0004986/0.5983, allocations: 0.5426 MB / 1.464 GB, free: 280.6 MB / 0.8542 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004885/0.5988, allocations: 344.2 kB / 1.465 GB, free: 280.3 MB / 0.8542 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002182/0.599, allocations: 143.4 kB / 1.465 GB, free: 280.2 MB / 0.8542 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001855/0.5993, allocations: 159.8 kB / 1.465 GB, free: 280 MB / 0.8542 GB Notification: Performance of NFPackage.collectConstants: time 5.017e-05/0.5993, allocations: 20.66 kB / 1.465 GB, free: 280 MB / 0.8542 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001078/0.5994, allocations: 35.92 kB / 1.465 GB, free: 280 MB / 0.8542 GB Notification: Performance of NFScalarize.scalarize: time 0.0001084/0.5996, allocations: 84.33 kB / 1.465 GB, free: 279.9 MB / 0.8542 GB Notification: Performance of NFVerifyModel.verify: time 8.357e-05/0.5997, allocations: 103.2 kB / 1.465 GB, free: 279.8 MB / 0.8542 GB Notification: Performance of NFConvertDAE.convert: time 0.0004812/0.6001, allocations: 0.5359 MB / 1.466 GB, free: 279.3 MB / 0.8542 GB Notification: Performance of FrontEnd - DAE generated: time 4.796e-06/0.6002, allocations: 0 / 1.466 GB, free: 279.3 MB / 0.8542 GB Notification: Performance of FrontEnd: time 2.142e-06/0.6002, allocations: 0 / 1.466 GB, free: 279.3 MB / 0.8542 GB Notification: Performance of Transformations before backend: time 1.653e-05/0.6002, allocations: 0 / 1.466 GB, free: 279.3 MB / 0.8542 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.001007/0.6012, allocations: 0.6298 MB / 1.466 GB, free: 278.6 MB / 0.8542 GB Notification: Performance of prepare preOptimizeDAE: time 3.776e-05/0.6013, allocations: 12.22 kB / 1.466 GB, free: 278.6 MB / 0.8542 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001141/0.6014, allocations: 59.3 kB / 1.466 GB, free: 278.5 MB / 0.8542 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004014/0.6018, allocations: 342.8 kB / 1.467 GB, free: 278.1 MB / 0.8542 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.904e-05/0.6019, allocations: 45.31 kB / 1.467 GB, free: 278.1 MB / 0.8542 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.377e-05/0.602, allocations: 52 kB / 1.467 GB, free: 278.1 MB / 0.8542 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001091/0.6031, allocations: 0.5716 MB / 1.467 GB, free: 277.4 MB / 0.8542 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.012e-05/0.6031, allocations: 0 / 1.467 GB, free: 277.4 MB / 0.8542 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.672e-05/0.6032, allocations: 23.98 kB / 1.467 GB, free: 277.4 MB / 0.8542 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.36e-05/0.6032, allocations: 21.91 kB / 1.467 GB, free: 277.4 MB / 0.8542 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009505/0.6042, allocations: 433.6 kB / 1.468 GB, free: 277 MB / 0.8542 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002478/0.6067, allocations: 1.928 MB / 1.47 GB, free: 275 MB / 0.8542 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007183/0.6075, allocations: 357.6 kB / 1.47 GB, free: 274.7 MB / 0.8542 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003558/0.6078, allocations: 180.8 kB / 1.47 GB, free: 274.5 MB / 0.8542 GB Notification: Performance of preOpt evalFunc (simulation): time 6.053e-05/0.6079, allocations: 12 kB / 1.47 GB, free: 274.5 MB / 0.8542 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000431/0.6084, allocations: 229.1 kB / 1.47 GB, free: 274.2 MB / 0.8542 GB Notification: Performance of pre-optimization done (n=46): time 3.834e-06/0.6084, allocations: 0.7188 kB / 1.47 GB, free: 274.2 MB / 0.8542 GB Notification: Performance of matching and sorting (n=46): time 0.001156/0.6096, allocations: 483 kB / 1.471 GB, free: 273.8 MB / 0.8542 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.271e-05/0.6096, allocations: 71.08 kB / 1.471 GB, free: 273.7 MB / 0.8542 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002472/0.6099, allocations: 235.4 kB / 1.471 GB, free: 273.4 MB / 0.8542 GB Notification: Performance of collectPreVariables (initialization): time 5.754e-05/0.6099, allocations: 54.56 kB / 1.471 GB, free: 273.4 MB / 0.8542 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001283/0.6101, allocations: 212.7 kB / 1.471 GB, free: 273.2 MB / 0.8542 GB Notification: Performance of collectInitialBindings (initialization): time 9.352e-05/0.6102, allocations: 115.8 kB / 1.472 GB, free: 273.1 MB / 0.8542 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.89e-05/0.6102, allocations: 12 kB / 1.472 GB, free: 273 MB / 0.8542 GB Notification: Performance of setup shared object (initialization): time 7.487e-05/0.6103, allocations: 342.8 kB / 1.472 GB, free: 272.7 MB / 0.8542 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003767/0.6107, allocations: 167.5 kB / 1.472 GB, free: 272.5 MB / 0.8542 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000438/0.6112, allocations: 291.1 kB / 1.472 GB, free: 272.2 MB / 0.8542 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003743/0.6116, allocations: 172.9 kB / 1.473 GB, free: 272 MB / 0.8542 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.902e-06/0.6116, allocations: 0 / 1.473 GB, free: 272 MB / 0.8542 GB Notification: Performance of matching and sorting (n=74) (initialization): time 0.00101/0.6126, allocations: 0.4979 MB / 1.473 GB, free: 271.5 MB / 0.8542 GB Notification: Performance of prepare postOptimizeDAE: time 2.055e-05/0.6126, allocations: 4 kB / 1.473 GB, free: 271.5 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.066e-05/0.6127, allocations: 8 kB / 1.473 GB, free: 271.5 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.541e-05/0.6127, allocations: 9.062 kB / 1.473 GB, free: 271.5 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002928/0.613, allocations: 63.83 kB / 1.473 GB, free: 271.5 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.568e-05/0.613, allocations: 11.94 kB / 1.473 GB, free: 271.5 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000291/0.6133, allocations: 69.39 kB / 1.473 GB, free: 271.4 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.767e-05/0.6134, allocations: 27.98 kB / 1.473 GB, free: 271.4 MB / 0.8542 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.0003072/0.6137, allocations: 232.7 kB / 1.473 GB, free: 271.1 MB / 0.8542 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.807e-05/0.6138, allocations: 28.52 kB / 1.473 GB, free: 271.1 MB / 0.8542 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008926/0.6147, allocations: 426.7 kB / 1.474 GB, free: 270.7 MB / 0.8542 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.205e-06/0.6147, allocations: 5.172 kB / 1.474 GB, free: 270.7 MB / 0.8542 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.286e-06/0.6147, allocations: 0 / 1.474 GB, free: 270.7 MB / 0.8542 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.688e-06/0.6148, allocations: 7.984 kB / 1.474 GB, free: 270.7 MB / 0.8542 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001799/0.6166, allocations: 1.131 MB / 1.475 GB, free: 269.5 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.947e-06/0.6166, allocations: 4 kB / 1.475 GB, free: 269.5 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002008/0.6168, allocations: 37.33 kB / 1.475 GB, free: 269.4 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.285e-06/0.6168, allocations: 3.984 kB / 1.475 GB, free: 269.4 MB / 0.8542 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.373e-05/0.6169, allocations: 12 kB / 1.475 GB, free: 269.4 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.129e-06/0.6169, allocations: 5.141 kB / 1.475 GB, free: 269.4 MB / 0.8542 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.357e-06/0.6169, allocations: 0 / 1.475 GB, free: 269.4 MB / 0.8542 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007841/0.6177, allocations: 0.4908 MB / 1.476 GB, free: 268.9 MB / 0.8542 GB Notification: Performance of postOpt removeConstants (simulation): time 4.976e-05/0.6178, allocations: 108.6 kB / 1.476 GB, free: 268.8 MB / 0.8542 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.685e-05/0.6178, allocations: 15.98 kB / 1.476 GB, free: 268.8 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002422/0.6181, allocations: 25.05 kB / 1.476 GB, free: 268.8 MB / 0.8542 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001687/0.6183, allocations: 77.2 kB / 1.476 GB, free: 268.7 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.393e-05/0.6183, allocations: 19.98 kB / 1.476 GB, free: 268.7 MB / 0.8542 GB Notification: Performance of sorting global known variables: time 0.0001175/0.6185, allocations: 139.6 kB / 1.476 GB, free: 268.5 MB / 0.8542 GB Notification: Performance of sort global known variables: time 7.3e-07/0.6185, allocations: 3.938 kB / 1.476 GB, free: 268.5 MB / 0.8542 GB Notification: Performance of remove unused functions: time 0.0005739/0.6191, allocations: 111.5 kB / 1.476 GB, free: 268.4 MB / 0.8542 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.000195/0.6193, allocations: 139 kB / 1.476 GB, free: 268.3 MB / 0.8542 GB Notification: Performance of simCode: created initialization part: time 0.0009003/0.6202, allocations: 444.5 kB / 1.477 GB, free: 267.9 MB / 0.8542 GB Notification: Performance of simCode: created event and clocks part: time 3.273e-06/0.6202, allocations: 4 kB / 1.477 GB, free: 267.9 MB / 0.8542 GB Notification: Performance of simCode: created simulation system equations: time 0.0004011/0.6206, allocations: 211.1 kB / 1.477 GB, free: 267.6 MB / 0.8542 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004745/0.6211, allocations: 47.17 kB / 1.477 GB, free: 267.6 MB / 0.8542 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001442/0.6226, allocations: 0.8469 MB / 1.478 GB, free: 266.7 MB / 0.8542 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002979/0.6229, allocations: 0.8259 MB / 1.478 GB, free: 265.9 MB / 0.8542 GB Notification: Performance of simCode: alias equations: time 0.000315/0.6232, allocations: 68.36 kB / 1.478 GB, free: 265.8 MB / 0.8542 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001436/0.6234, allocations: 43.42 kB / 1.479 GB, free: 265.8 MB / 0.8542 GB Notification: Performance of SimCode: time 1.742e-06/0.6234, allocations: 0 / 1.479 GB, free: 265.8 MB / 0.8542 GB Notification: Performance of Templates: time 0.01023/0.6336, allocations: 3.753 MB / 1.482 GB, free: 262.3 MB / 0.8542 GB