Running command: translateModel(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_6.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl") Notification: Performance of loadModel(Buildings): time 4.31/4.31, allocations: 431.3 MB / 445.8 MB, free: 7.371 MB / 346.7 MB Notification: Performance of FrontEnd - loaded program: time 2.973e-05/2.99e-05, allocations: 0 / 0.5354 GB, free: 1.312 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7262/0.7262, allocations: 98.71 MB / 0.6318 GB, free: 0.8477 MB / 0.4948 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl): time 0.004331/0.7306, allocations: 1.892 MB / 0.6337 GB, free: 14.94 MB / 0.5105 GB Notification: Performance of NFInst.instExpressions: time 0.002537/0.7332, allocations: 0.8661 MB / 0.6345 GB, free: 14.07 MB / 0.5105 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002236/0.7335, allocations: 15.94 kB / 0.6345 GB, free: 14.05 MB / 0.5105 GB Notification: Performance of NFTyping.typeComponents: time 0.0001969/0.7337, allocations: 43.59 kB / 0.6346 GB, free: 14.01 MB / 0.5105 GB Notification: Performance of NFTyping.typeBindings: time 0.0002907/0.734, allocations: 31.88 kB / 0.6346 GB, free: 13.98 MB / 0.5105 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007975/0.7348, allocations: 171.8 kB / 0.6348 GB, free: 13.81 MB / 0.5105 GB Notification: Performance of NFFlatten.flatten: time 0.0007512/0.7356, allocations: 304.1 kB / 0.635 GB, free: 13.51 MB / 0.5105 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0007886/0.7364, allocations: 310.8 kB / 0.6353 GB, free: 13.2 MB / 0.5105 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003344/0.7368, allocations: 123.7 kB / 0.6355 GB, free: 13.08 MB / 0.5105 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003484/0.7371, allocations: 143.4 kB / 0.6356 GB, free: 12.94 MB / 0.5105 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000166/0.7373, allocations: 31.98 kB / 0.6356 GB, free: 12.91 MB / 0.5105 GB Notification: Performance of NFPackage.collectConstants: time 8.952e-05/0.7374, allocations: 16 kB / 0.6356 GB, free: 12.89 MB / 0.5105 GB Notification: Performance of NFScalarize.scalarize: time 0.0002094/0.7377, allocations: 79.75 kB / 0.6357 GB, free: 12.82 MB / 0.5105 GB Notification: Performance of NFVerifyModel.verify: time 0.000106/0.7378, allocations: 24 kB / 0.6357 GB, free: 12.79 MB / 0.5105 GB Notification: Performance of NFConvertDAE.convert: time 0.001093/0.7389, allocations: 0.5206 MB / 0.6362 GB, free: 12.27 MB / 0.5105 GB Notification: Performance of FrontEnd - DAE generated: time 7.615e-06/0.7389, allocations: 0 / 0.6362 GB, free: 12.27 MB / 0.5105 GB Notification: Performance of FrontEnd: time 2.635e-06/0.7389, allocations: 3.938 kB / 0.6363 GB, free: 12.27 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 1.379e-05/0.739, allocations: 0 / 0.6363 GB, free: 12.27 MB / 0.5105 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 125 * Number of variables: 125 Notification: Performance of Generate backend data structure: time 0.001774/0.7407, allocations: 0.6145 MB / 0.6369 GB, free: 11.61 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 5.241e-05/0.7408, allocations: 8.031 kB / 0.6369 GB, free: 11.6 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002066/0.741, allocations: 55.39 kB / 0.6369 GB, free: 11.55 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007643/0.7418, allocations: 331.1 kB / 0.6372 GB, free: 11.18 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001055/0.7419, allocations: 45 kB / 0.6373 GB, free: 11.14 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001928/0.7422, allocations: 55.98 kB / 0.6373 GB, free: 11.09 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002046/0.7442, allocations: 0.55 MB / 0.6379 GB, free: 10.5 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.682e-05/0.7443, allocations: 0 / 0.6379 GB, free: 10.5 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001135/0.7444, allocations: 24 kB / 0.6379 GB, free: 10.48 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.207e-05/0.7445, allocations: 28.88 kB / 0.6379 GB, free: 10.45 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002299/0.7468, allocations: 431.6 kB / 0.6383 GB, free: 10.03 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00571/0.7526, allocations: 1.911 MB / 0.6402 GB, free: 8.039 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001582/0.7542, allocations: 359.5 kB / 0.6405 GB, free: 7.68 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001088/0.7544, allocations: 8 kB / 0.6405 GB, free: 7.672 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009725/0.7553, allocations: 226.2 kB / 0.6408 GB, free: 7.438 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=46): time 5.781e-06/0.7554, allocations: 0 / 0.6408 GB, free: 7.438 MB / 0.5105 GB Notification: Performance of matching and sorting (n=46): time 0.002383/0.7578, allocations: 477.2 kB / 0.6412 GB, free: 6.965 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001041/0.758, allocations: 67.16 kB / 0.6413 GB, free: 6.887 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005114/0.7585, allocations: 213.2 kB / 0.6415 GB, free: 6.672 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0001529/0.7587, allocations: 49.69 kB / 0.6415 GB, free: 6.617 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003117/0.759, allocations: 220.7 kB / 0.6417 GB, free: 6.395 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002246/0.7592, allocations: 110.5 kB / 0.6418 GB, free: 6.285 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.522e-05/0.7593, allocations: 12 kB / 0.6419 GB, free: 6.273 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0002575/0.7596, allocations: 354.8 kB / 0.6422 GB, free: 5.918 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007934/0.7604, allocations: 157.2 kB / 0.6423 GB, free: 5.762 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008728/0.7613, allocations: 288.7 kB / 0.6426 GB, free: 5.434 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008396/0.7622, allocations: 174.1 kB / 0.6428 GB, free: 5.266 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.403e-06/0.7622, allocations: 0 / 0.6428 GB, free: 5.266 MB / 0.5105 GB Notification: Performance of matching and sorting (n=74) (initialization): time 0.002236/0.7645, allocations: 0.4984 MB / 0.6433 GB, free: 4.762 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 3.6e-05/0.7645, allocations: 8 kB / 0.6433 GB, free: 4.754 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.055e-05/0.7646, allocations: 4.469 kB / 0.6433 GB, free: 4.75 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.881e-05/0.7646, allocations: 15.98 kB / 0.6433 GB, free: 4.734 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006404/0.7653, allocations: 63.83 kB / 0.6434 GB, free: 4.672 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.023e-05/0.7653, allocations: 15.88 kB / 0.6434 GB, free: 4.656 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006384/0.766, allocations: 59.52 kB / 0.6434 GB, free: 4.598 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001159/0.7661, allocations: 27.98 kB / 0.6435 GB, free: 4.57 MB / 0.5105 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 () * 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.0006104/0.7667, allocations: 230.8 kB / 0.6437 GB, free: 4.336 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001159/0.7669, allocations: 23.72 kB / 0.6437 GB, free: 4.312 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002001/0.7689, allocations: 431.5 kB / 0.6441 GB, free: 3.887 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.101e-05/0.769, allocations: 12 kB / 0.6441 GB, free: 3.875 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.321e-05/0.769, allocations: 0 / 0.6441 GB, free: 3.875 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.829e-05/0.7691, allocations: 7.922 kB / 0.6441 GB, free: 3.867 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004214/0.7733, allocations: 1.122 MB / 0.6452 GB, free: 2.676 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.274e-05/0.7733, allocations: 7.984 kB / 0.6452 GB, free: 2.668 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000455/0.7738, allocations: 35.92 kB / 0.6453 GB, free: 2.633 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.135e-05/0.7739, allocations: 0 / 0.6453 GB, free: 2.633 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.505e-05/0.7739, allocations: 15.98 kB / 0.6453 GB, free: 2.617 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.546e-06/0.774, allocations: 0 / 0.6453 GB, free: 2.617 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.288e-05/0.774, allocations: 4 kB / 0.6453 GB, free: 2.613 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001844/0.7759, allocations: 0.4996 MB / 0.6458 GB, free: 2.098 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001584/0.7761, allocations: 108.7 kB / 0.6459 GB, free: 1.973 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001257/0.7762, allocations: 8 kB / 0.6459 GB, free: 1.965 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005721/0.7768, allocations: 35.97 kB / 0.6459 GB, free: 1.93 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003334/0.7772, allocations: 64.34 kB / 0.646 GB, free: 1.867 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.209e-05/0.7773, allocations: 19.98 kB / 0.646 GB, free: 1.848 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.0004694/0.7778, allocations: 140.2 kB / 0.6461 GB, free: 1.711 MB / 0.5105 GB Notification: Performance of sort global known variables: time 6.31e-07/0.7778, allocations: 0 / 0.6461 GB, free: 1.711 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.001174/0.779, allocations: 115.5 kB / 0.6462 GB, free: 1.598 MB / 0.5105 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) * 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.0004622/0.7795, allocations: 139.2 kB / 0.6464 GB, free: 1.449 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.002133/0.7817, allocations: 441.5 kB / 0.6468 GB, free: 1.016 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 7.805e-06/0.7817, allocations: 0 / 0.6468 GB, free: 1.016 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.001059/0.7828, allocations: 222.3 kB / 0.647 GB, free: 0.8008 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006418/0.7835, allocations: 34.42 kB / 0.647 GB, free: 0.7695 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002734/0.7862, allocations: 0.8337 MB / 0.6479 GB, free: 15.91 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005871/0.7869, allocations: 0.835 MB / 0.6487 GB, free: 15.05 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.0004512/0.7873, allocations: 63.25 kB / 0.6487 GB, free: 14.99 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002014/0.7876, allocations: 39.42 kB / 0.6488 GB, free: 14.95 MB / 0.5261 GB Notification: Performance of SimCode: time 1.333e-06/0.7876, allocations: 0 / 0.6488 GB, free: 14.95 MB / 0.5261 GB Notification: Performance of Templates: time 0.01374/0.8013, allocations: 3.75 MB / 0.6524 GB, free: 11.22 MB / 0.5261 GB