Running command: translateModel(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_7.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl") Notification: Performance of loadModel(Buildings): time 4.44/4.44, allocations: 458.9 MB / 473.4 MB, free: 11.81 MB / 378.7 MB Notification: Performance of FrontEnd - loaded program: time 4.086e-05/4.078e-05, allocations: 4.188 kB / 0.5697 GB, free: 9.793 MB / 458.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2376/0.2377, allocations: 106.2 MB / 0.6734 GB, free: 2.617 MB / 0.5417 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl): time 0.003515/0.2412, allocations: 1.926 MB / 0.6753 GB, free: 0.6758 MB / 0.5417 GB Notification: Performance of NFInst.instExpressions: time 0.002276/0.2436, allocations: 0.8814 MB / 0.6762 GB, free: 15.79 MB / 0.5573 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001878/0.2438, allocations: 19.94 kB / 0.6762 GB, free: 15.77 MB / 0.5573 GB Notification: Performance of NFTyping.typeComponents: time 0.0002007/0.244, allocations: 39.66 kB / 0.6762 GB, free: 15.73 MB / 0.5573 GB Notification: Performance of NFTyping.typeBindings: time 0.0002356/0.2442, allocations: 35.8 kB / 0.6763 GB, free: 15.69 MB / 0.5573 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005916/0.2448, allocations: 179.7 kB / 0.6764 GB, free: 15.52 MB / 0.5573 GB Notification: Performance of NFFlatten.flatten: time 0.0005418/0.2454, allocations: 300.1 kB / 0.6767 GB, free: 15.22 MB / 0.5573 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005629/0.246, allocations: 299.3 kB / 0.677 GB, free: 14.93 MB / 0.5573 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002576/0.2463, allocations: 127.7 kB / 0.6771 GB, free: 14.8 MB / 0.5573 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00027/0.2465, allocations: 139.4 kB / 0.6773 GB, free: 14.66 MB / 0.5573 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001288/0.2467, allocations: 32 kB / 0.6773 GB, free: 14.63 MB / 0.5573 GB Notification: Performance of NFPackage.collectConstants: time 6.109e-05/0.2468, allocations: 16 kB / 0.6773 GB, free: 14.62 MB / 0.5573 GB Notification: Performance of NFScalarize.scalarize: time 0.0001623/0.2469, allocations: 91.66 kB / 0.6774 GB, free: 14.53 MB / 0.5573 GB Notification: Performance of NFVerifyModel.verify: time 7.191e-05/0.247, allocations: 24 kB / 0.6774 GB, free: 14.5 MB / 0.5573 GB Notification: Performance of NFConvertDAE.convert: time 0.0007908/0.2478, allocations: 0.534 MB / 0.678 GB, free: 13.97 MB / 0.5573 GB Notification: Performance of FrontEnd - DAE generated: time 3.466e-06/0.2478, allocations: 0 / 0.678 GB, free: 13.97 MB / 0.5573 GB Notification: Performance of FrontEnd: time 2.524e-06/0.2478, allocations: 0 / 0.678 GB, free: 13.97 MB / 0.5573 GB Notification: Performance of Transformations before backend: time 1.455e-05/0.2479, allocations: 0 / 0.678 GB, free: 13.97 MB / 0.5573 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.00144/0.2493, allocations: 0.6151 MB / 0.6786 GB, free: 13.3 MB / 0.5573 GB Notification: Performance of prepare preOptimizeDAE: time 4.891e-05/0.2494, allocations: 8.031 kB / 0.6786 GB, free: 13.29 MB / 0.5573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000164/0.2496, allocations: 55.39 kB / 0.6786 GB, free: 13.24 MB / 0.5573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005861/0.2502, allocations: 341.3 kB / 0.6789 GB, free: 12.87 MB / 0.5573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.262e-05/0.2503, allocations: 45.31 kB / 0.679 GB, free: 12.82 MB / 0.5573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001269/0.2504, allocations: 52 kB / 0.679 GB, free: 12.77 MB / 0.5573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001535/0.2519, allocations: 0.5735 MB / 0.6796 GB, free: 12.17 MB / 0.5573 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.322e-05/0.252, allocations: 0 / 0.6796 GB, free: 12.17 MB / 0.5573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.328e-05/0.2521, allocations: 20 kB / 0.6796 GB, free: 12.15 MB / 0.5573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.828e-05/0.2521, allocations: 24.95 kB / 0.6796 GB, free: 12.12 MB / 0.5573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001331/0.2535, allocations: 431.6 kB / 0.68 GB, free: 11.7 MB / 0.5573 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003704/0.2572, allocations: 1.938 MB / 0.6819 GB, free: 9.688 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009698/0.2582, allocations: 351.6 kB / 0.6823 GB, free: 9.336 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 7.773e-05/0.2583, allocations: 11.98 kB / 0.6823 GB, free: 9.324 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005858/0.2589, allocations: 222 kB / 0.6825 GB, free: 9.094 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=46): time 6.002e-06/0.2589, allocations: 3.984 kB / 0.6825 GB, free: 9.09 MB / 0.5573 GB Notification: Performance of matching and sorting (n=46): time 0.001477/0.2604, allocations: 482.6 kB / 0.683 GB, free: 8.613 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.42e-05/0.2605, allocations: 63.16 kB / 0.683 GB, free: 8.539 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003318/0.2608, allocations: 216.9 kB / 0.6832 GB, free: 8.32 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 9.207e-05/0.2609, allocations: 53.62 kB / 0.6833 GB, free: 8.262 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 0.000219/0.2612, allocations: 220.6 kB / 0.6835 GB, free: 8.039 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001499/0.2613, allocations: 114.5 kB / 0.6836 GB, free: 7.926 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.357e-05/0.2614, allocations: 8 kB / 0.6836 GB, free: 7.918 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 0.0001662/0.2616, allocations: 350.8 kB / 0.6839 GB, free: 7.566 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005071/0.2621, allocations: 161.2 kB / 0.6841 GB, free: 7.41 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006499/0.2628, allocations: 288.7 kB / 0.6844 GB, free: 7.078 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005156/0.2633, allocations: 166.2 kB / 0.6845 GB, free: 6.918 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.27e-06/0.2633, allocations: 0 / 0.6845 GB, free: 6.918 MB / 0.5573 GB Notification: Performance of matching and sorting (n=74) (initialization): time 0.001381/0.2647, allocations: 0.5061 MB / 0.685 GB, free: 6.402 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 2.504e-05/0.2647, allocations: 8 kB / 0.685 GB, free: 6.395 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.015e-05/0.2648, allocations: 0 / 0.685 GB, free: 6.395 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.193e-05/0.2648, allocations: 8 kB / 0.685 GB, free: 6.387 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004289/0.2652, allocations: 68.3 kB / 0.6851 GB, free: 6.32 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.781e-05/0.2653, allocations: 11.94 kB / 0.6851 GB, free: 6.309 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003898/0.2657, allocations: 71.52 kB / 0.6852 GB, free: 6.238 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.582e-05/0.2658, allocations: 23.98 kB / 0.6852 GB, free: 6.215 MB / 0.5573 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.0004187/0.2662, allocations: 238.8 kB / 0.6854 GB, free: 5.973 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.52e-05/0.2663, allocations: 27.7 kB / 0.6855 GB, free: 5.945 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00122/0.2675, allocations: 419.5 kB / 0.6859 GB, free: 5.531 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.077e-06/0.2675, allocations: 4 kB / 0.6859 GB, free: 5.527 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.212e-06/0.2675, allocations: 4 kB / 0.6859 GB, free: 5.523 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.009e-05/0.2676, allocations: 3.984 kB / 0.6859 GB, free: 5.52 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003358/0.2709, allocations: 1.13 MB / 0.687 GB, free: 4.32 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.819e-06/0.271, allocations: 0 / 0.687 GB, free: 4.32 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003605/0.2713, allocations: 39.86 kB / 0.687 GB, free: 4.281 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.186e-05/0.2714, allocations: 7.984 kB / 0.687 GB, free: 4.273 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.663e-05/0.2715, allocations: 16 kB / 0.687 GB, free: 4.258 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.558e-06/0.2715, allocations: 3.953 kB / 0.687 GB, free: 4.254 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.605e-06/0.2715, allocations: 4 kB / 0.687 GB, free: 4.25 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001482/0.273, allocations: 495.7 kB / 0.6875 GB, free: 3.75 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001173/0.2731, allocations: 108.7 kB / 0.6876 GB, free: 3.625 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001087/0.2733, allocations: 15.98 kB / 0.6876 GB, free: 3.609 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004288/0.2737, allocations: 23.98 kB / 0.6877 GB, free: 3.586 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002814/0.274, allocations: 72.3 kB / 0.6877 GB, free: 3.516 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.465e-05/0.2741, allocations: 15.98 kB / 0.6877 GB, free: 3.5 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.0002258/0.2743, allocations: 140.2 kB / 0.6879 GB, free: 3.363 MB / 0.5573 GB Notification: Performance of sort global known variables: time 6.01e-07/0.2743, allocations: 0 / 0.6879 GB, free: 3.363 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.0009176/0.2753, allocations: 111.6 kB / 0.688 GB, free: 3.254 MB / 0.5573 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.000337/0.2756, allocations: 151 kB / 0.6881 GB, free: 3.098 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.001666/0.2773, allocations: 446 kB / 0.6886 GB, free: 2.66 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 3.606e-06/0.2773, allocations: 0 / 0.6886 GB, free: 2.66 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.0007865/0.2781, allocations: 210.4 kB / 0.6888 GB, free: 2.457 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005549/0.2787, allocations: 34.8 kB / 0.6888 GB, free: 2.426 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002843/0.2816, allocations: 0.8524 MB / 0.6896 GB, free: 1.551 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008281/0.2824, allocations: 0.8272 MB / 0.6904 GB, free: 0.6914 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 0.0006043/0.2831, allocations: 67.19 kB / 0.6905 GB, free: 0.625 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000291/0.2834, allocations: 39.42 kB / 0.6905 GB, free: 0.5859 MB / 0.5573 GB Notification: Performance of SimCode: time 1.192e-06/0.2834, allocations: 0 / 0.6905 GB, free: 0.5859 MB / 0.5573 GB Notification: Performance of Templates: time 0.01774/0.3012, allocations: 3.742 MB / 0.6942 GB, free: 12.86 MB / 0.573 GB