Running command: translateModel(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_5.0.1_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl") Notification: Performance of loadModel(Buildings): time 3.767/3.767, allocations: 402 MB / 416.6 MB, free: 10.09 MB / 346.7 MB Notification: Performance of FrontEnd - loaded program: time 3.574e-05/3.578e-05, allocations: 4 kB / 0.501 GB, free: 8.211 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2019/0.2019, allocations: 92.68 MB / 0.5915 GB, free: 11.36 MB / 0.4948 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl): time 0.003537/0.2055, allocations: 1.899 MB / 0.5933 GB, free: 9.441 MB / 0.4948 GB Notification: Performance of NFInst.instExpressions: time 0.002237/0.2078, allocations: 0.862 MB / 0.5942 GB, free: 8.57 MB / 0.4948 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002393/0.2081, allocations: 12 kB / 0.5942 GB, free: 8.559 MB / 0.4948 GB Notification: Performance of NFTyping.typeComponents: time 0.0001803/0.2083, allocations: 51.58 kB / 0.5942 GB, free: 8.508 MB / 0.4948 GB Notification: Performance of NFTyping.typeBindings: time 0.0002341/0.2086, allocations: 27.89 kB / 0.5942 GB, free: 8.48 MB / 0.4948 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006255/0.2092, allocations: 171.8 kB / 0.5944 GB, free: 8.312 MB / 0.4948 GB Notification: Performance of NFFlatten.flatten: time 0.0005633/0.2098, allocations: 307.9 kB / 0.5947 GB, free: 8.012 MB / 0.4948 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005733/0.2104, allocations: 311.3 kB / 0.595 GB, free: 7.711 MB / 0.4948 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000241/0.2106, allocations: 123.7 kB / 0.5951 GB, free: 7.59 MB / 0.4948 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002719/0.2109, allocations: 139.4 kB / 0.5953 GB, free: 7.453 MB / 0.4948 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001356/0.2111, allocations: 27.98 kB / 0.5953 GB, free: 7.426 MB / 0.4948 GB Notification: Performance of NFPackage.collectConstants: time 7.009e-05/0.2112, allocations: 16 kB / 0.5953 GB, free: 7.41 MB / 0.4948 GB Notification: Performance of NFScalarize.scalarize: time 0.0001515/0.2113, allocations: 87.62 kB / 0.5954 GB, free: 7.324 MB / 0.4948 GB Notification: Performance of NFVerifyModel.verify: time 7.972e-05/0.2114, allocations: 24 kB / 0.5954 GB, free: 7.301 MB / 0.4948 GB Notification: Performance of NFConvertDAE.convert: time 0.0007891/0.2122, allocations: 0.5224 MB / 0.5959 GB, free: 6.777 MB / 0.4948 GB Notification: Performance of FrontEnd - DAE generated: time 3.606e-06/0.2122, allocations: 4 kB / 0.5959 GB, free: 6.773 MB / 0.4948 GB Notification: Performance of FrontEnd: time 2.905e-06/0.2123, allocations: 0 / 0.5959 GB, free: 6.773 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 1.713e-05/0.2123, allocations: 0 / 0.5959 GB, free: 6.773 MB / 0.4948 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.001355/0.2136, allocations: 0.6066 MB / 0.5965 GB, free: 6.117 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 4.9e-05/0.2137, allocations: 12.03 kB / 0.5965 GB, free: 6.105 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001442/0.2139, allocations: 51.44 kB / 0.5966 GB, free: 6.055 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000555/0.2144, allocations: 330.1 kB / 0.5969 GB, free: 5.695 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.875e-05/0.2145, allocations: 48.98 kB / 0.5969 GB, free: 5.648 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001214/0.2147, allocations: 55.98 kB / 0.597 GB, free: 5.594 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00141/0.2161, allocations: 0.55 MB / 0.5975 GB, free: 5.016 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.407e-05/0.2161, allocations: 0 / 0.5975 GB, free: 5.016 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.831e-05/0.2162, allocations: 35.88 kB / 0.5976 GB, free: 4.98 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.863e-05/0.2163, allocations: 17 kB / 0.5976 GB, free: 4.961 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001235/0.2175, allocations: 431.6 kB / 0.598 GB, free: 4.543 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003413/0.2209, allocations: 1.911 MB / 0.5998 GB, free: 2.551 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009296/0.2219, allocations: 363.5 kB / 0.6002 GB, free: 2.188 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 6.818e-05/0.222, allocations: 4 kB / 0.6002 GB, free: 2.184 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005798/0.2226, allocations: 234 kB / 0.6004 GB, free: 1.941 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=46): time 3.917e-06/0.2226, allocations: 0 / 0.6004 GB, free: 1.941 MB / 0.4948 GB Notification: Performance of matching and sorting (n=46): time 0.001448/0.2241, allocations: 478.5 kB / 0.6009 GB, free: 1.469 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.772e-05/0.2241, allocations: 63.14 kB / 0.6009 GB, free: 1.395 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002952/0.2245, allocations: 217.1 kB / 0.6011 GB, free: 1.176 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 8.534e-05/0.2246, allocations: 49.69 kB / 0.6012 GB, free: 1.121 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002004/0.2248, allocations: 220.7 kB / 0.6014 GB, free: 0.8984 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001389/0.2249, allocations: 106.5 kB / 0.6015 GB, free: 0.793 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.185e-05/0.225, allocations: 16 kB / 0.6015 GB, free: 0.7773 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0001464/0.2251, allocations: 346.8 kB / 0.6019 GB, free: 440 kB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000479/0.2256, allocations: 157.2 kB / 0.602 GB, free: 284 kB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.5341/0.7598, allocations: 284.8 kB / 0.6023 GB, free: 12.07 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006983/0.7605, allocations: 168.5 kB / 0.6024 GB, free: 12.07 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.883e-06/0.7605, allocations: 4.281 kB / 0.6024 GB, free: 12.07 MB / 0.4948 GB Notification: Performance of matching and sorting (n=74) (initialization): time 0.001456/0.762, allocations: 0.4992 MB / 0.6029 GB, free: 12.01 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 2.745e-05/0.7621, allocations: 5.594 kB / 0.6029 GB, free: 12.01 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.328e-05/0.7621, allocations: 3.406 kB / 0.6029 GB, free: 12.01 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.055e-05/0.7621, allocations: 7.125 kB / 0.6029 GB, free: 12.01 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004438/0.7626, allocations: 69.06 kB / 0.603 GB, free: 12 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.67e-05/0.7626, allocations: 7.234 kB / 0.603 GB, free: 12 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004185/0.7631, allocations: 70.83 kB / 0.6031 GB, free: 12 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.136e-05/0.7631, allocations: 26.84 kB / 0.6031 GB, free: 12 MB / 0.4948 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.0003909/0.7636, allocations: 229.2 kB / 0.6033 GB, free: 11.88 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.449e-05/0.7636, allocations: 32.05 kB / 0.6034 GB, free: 11.88 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00134/0.765, allocations: 432.5 kB / 0.6038 GB, free: 11.83 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.489e-05/0.765, allocations: 3.328 kB / 0.6038 GB, free: 11.83 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.737e-06/0.765, allocations: 1.094 kB / 0.6038 GB, free: 11.83 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 7.927e-05/0.7651, allocations: 112 kB / 0.6039 GB, free: 11.73 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.688e-05/0.7652, allocations: 13.06 kB / 0.6039 GB, free: 11.73 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002937/0.7655, allocations: 28.97 kB / 0.6039 GB, free: 11.73 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002284/0.7658, allocations: 58.06 kB / 0.604 GB, free: 11.73 MB / 0.4948 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.00135/0.7671, allocations: 0.4891 MB / 0.6045 GB, free: 11.62 MB / 0.4948 GB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.001115/0.7683, allocations: 0.5619 MB / 0.605 GB, free: 11.37 MB / 0.4948 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0005096/0.7688, allocations: 191.9 kB / 0.6052 GB, free: 11.3 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.0001671/0.769, allocations: 134.5 kB / 0.6053 GB, free: 11.21 MB / 0.4948 GB Notification: Performance of Backend: time 1.583e-06/0.769, allocations: 0 / 0.6053 GB, free: 11.21 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.001195/0.7702, allocations: 374.8 kB / 0.6057 GB, free: 11.04 MB / 0.4948 GB Notification: Performance of SimCode: time 0.001636/0.7719, allocations: 1.149 MB / 0.6068 GB, free: 10.12 MB / 0.4948 GB Notification: Performance of Templates: time 0.01556/0.7875, allocations: 4.022 MB / 0.6107 GB, free: 9.832 MB / 0.4948 GB