Running command: "" <> buildModelFMU(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl,fileNamePrefix="Buildings_5_0_1_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_BatteryControl",fmuType="me",version="2.0",platforms={"dynamic"}) [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadModel(Buildings): time 4.188/4.188, allocations: 404 MB / 410.9 MB, free: 4.922 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2823/4.471, allocations: 95 MB / 0.4941 GB, free: 7.344 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5421/5.013, allocations: 92.69 MB / 0.5846 GB, free: 3.402 MB / 474.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2646/5.278, allocations: 123.5 MB / 0.7052 GB, free: 10.22 MB / 0.5886 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004417/5.278, allocations: 91.92 kB / 0.7053 GB, free: 10.13 MB / 0.5886 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.03895/5.317, allocations: 8.241 MB / 0.7133 GB, free: 1.801 MB / 0.5886 GB Notification: Performance of prepare preOptimizeDAE: time 4.997e-05/5.317, allocations: 8 kB / 0.7133 GB, free: 1.793 MB / 0.5886 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001763/5.317, allocations: 55.42 kB / 0.7134 GB, free: 1.738 MB / 0.5886 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007609/5.318, allocations: 334.6 kB / 0.7137 GB, free: 1.371 MB / 0.5886 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.707e-05/5.318, allocations: 27.98 kB / 0.7137 GB, free: 1.344 MB / 0.5886 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001202/5.318, allocations: 32 kB / 0.7138 GB, free: 1.312 MB / 0.5886 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001328/5.32, allocations: 369.9 kB / 0.7141 GB, free: 0.9531 MB / 0.5886 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001439/5.321, allocations: 485.3 kB / 0.7146 GB, free: 460 kB / 0.5886 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.307e-05/5.321, allocations: 0 / 0.7146 GB, free: 460 kB / 0.5886 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.432e-05/5.321, allocations: 11.91 kB / 0.7146 GB, free: 448 kB / 0.5886 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.753e-05/5.321, allocations: 17 kB / 0.7146 GB, free: 428 kB / 0.5886 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003932/5.325, allocations: 1.785 MB / 0.7164 GB, free: 14.57 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009238/5.326, allocations: 299.5 kB / 0.7166 GB, free: 14.26 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004917/5.327, allocations: 164.8 kB / 0.7168 GB, free: 14.1 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 8.26e-05/5.327, allocations: 8 kB / 0.7168 GB, free: 14.09 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005575/5.327, allocations: 202.4 kB / 0.717 GB, free: 13.88 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=46): time 3.566e-06/5.327, allocations: 0 / 0.717 GB, free: 13.88 MB / 0.6042 GB Notification: Performance of matching and sorting (n=46): time 0.001083/5.328, allocations: 297.9 kB / 0.7173 GB, free: 13.58 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.074e-05/5.329, allocations: 63.34 kB / 0.7173 GB, free: 13.51 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003385/5.329, allocations: 212.7 kB / 0.7175 GB, free: 13.29 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 9.961e-05/5.329, allocations: 41.7 kB / 0.7176 GB, free: 13.25 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002178/5.329, allocations: 204.7 kB / 0.7178 GB, free: 13.04 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001689/5.329, allocations: 102.7 kB / 0.7179 GB, free: 12.94 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.829e-05/5.329, allocations: 4 kB / 0.7179 GB, free: 12.93 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 0.0001917/5.33, allocations: 338.8 kB / 0.7182 GB, free: 12.59 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000482/5.33, allocations: 145.3 kB / 0.7183 GB, free: 12.45 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006213/5.331, allocations: 264.2 kB / 0.7186 GB, free: 12.14 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005435/5.331, allocations: 145.4 kB / 0.7187 GB, free: 12 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.919e-06/5.331, allocations: 0 / 0.7187 GB, free: 12 MB / 0.6042 GB Notification: Performance of matching and sorting (n=74) (initialization): time 0.001396/5.333, allocations: 444.3 kB / 0.7192 GB, free: 11.56 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 2.128e-05/5.333, allocations: 8 kB / 0.7192 GB, free: 11.55 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.435e-05/5.333, allocations: 7.938 kB / 0.7192 GB, free: 11.55 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.111e-05/5.333, allocations: 7.906 kB / 0.7192 GB, free: 11.54 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005397/5.333, allocations: 63.84 kB / 0.7192 GB, free: 11.48 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.959e-05/5.333, allocations: 11.94 kB / 0.7193 GB, free: 11.46 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004717/5.334, allocations: 39.94 kB / 0.7193 GB, free: 11.43 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.096e-05/5.334, allocations: 24 kB / 0.7193 GB, free: 11.4 MB / 0.6042 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.greaterEqualThreshold.y,con.and1.u1,con.and1.u2,con.and1.y,con.and2.u2,con.and2.y,con.lessEqualThreshold.y,con.multiSwitch1.u[1],con.multiSwitch1.u[2],con.multiSwitch1.firstActiveIndex,$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.off.active,con.stateGraphRoot.activeSteps,con.alternative.split[2].available,con.t1.enableFire,con.t1.fire,$PRE.con.t1.t_start,con.t1.t_start,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.enableFire,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.0002517/5.334, allocations: 154 kB / 0.7195 GB, free: 11.25 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001005/5.334, allocations: 31.62 kB / 0.7195 GB, free: 11.21 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001436/5.336, allocations: 366.4 kB / 0.7198 GB, free: 10.85 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.371e-05/5.336, allocations: 11.91 kB / 0.7199 GB, free: 10.84 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.873e-06/5.336, allocations: 0 / 0.7199 GB, free: 10.84 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.524e-05/5.336, allocations: 3.984 kB / 0.7199 GB, free: 10.84 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002709/5.339, allocations: 0.9248 MB / 0.7208 GB, free: 9.863 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.24e-06/5.339, allocations: 0 / 0.7208 GB, free: 9.863 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003384/5.339, allocations: 35.91 kB / 0.7208 GB, free: 9.828 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.128e-05/5.339, allocations: 3.984 kB / 0.7208 GB, free: 9.824 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.601e-05/5.339, allocations: 8 kB / 0.7208 GB, free: 9.816 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.51e-06/5.339, allocations: 4 kB / 0.7208 GB, free: 9.812 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.436e-06/5.339, allocations: 0 / 0.7208 GB, free: 9.812 MB / 0.6042 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001237/5.34, allocations: 450.7 kB / 0.7212 GB, free: 9.355 MB / 0.6042 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001355/5.342, allocations: 0.8118 MB / 0.722 GB, free: 8.527 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 9.672e-05/5.342, allocations: 100.8 kB / 0.7221 GB, free: 8.41 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.882e-05/5.342, allocations: 8 kB / 0.7221 GB, free: 8.402 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004197/5.342, allocations: 27.88 kB / 0.7222 GB, free: 8.375 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002618/5.343, allocations: 64.34 kB / 0.7222 GB, free: 8.312 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.954e-05/5.343, allocations: 23.92 kB / 0.7222 GB, free: 8.289 MB / 0.6042 GB Notification: Performance of sort global known variables: time 0.0001798/5.343, allocations: 128.3 kB / 0.7224 GB, free: 8.164 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.001737/5.345, allocations: 71.98 kB / 0.7224 GB, free: 8.094 MB / 0.6042 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.greaterEqualThreshold.y,con.and1.u1,con.and1.u2,con.and1.y,con.and2.u2,con.and2.y,con.lessEqualThreshold.y,con.multiSwitch1.u[1],con.multiSwitch1.u[2],con.multiSwitch1.firstActiveIndex,con.off.inPort[1].set,con.off.outPort[1].reset,con.off.newActive,con.off.oldActive,con.off.active,con.stateGraphRoot.activeSteps,con.alternative.split[2].available,con.t1.fire,con.t1.t_start,con.t2.fire,con.t2.t_start,con.charge.newActive,con.charge.oldActive,con.discharge.newActive,con.discharge.oldActive,con.t3.enableFire,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.0003324/5.345, allocations: 142 kB / 0.7226 GB, free: 7.945 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.001196/5.346, allocations: 396 kB / 0.723 GB, free: 7.547 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 3.216e-06/5.346, allocations: 0 / 0.723 GB, free: 7.547 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.000571/5.347, allocations: 205.6 kB / 0.7231 GB, free: 7.348 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004753/5.347, allocations: 31.83 kB / 0.7232 GB, free: 7.316 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002108/5.35, allocations: 0.5217 MB / 0.7237 GB, free: 6.777 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008863/5.35, allocations: 0.8737 MB / 0.7245 GB, free: 5.879 MB / 0.6042 GB Notification: Performance of SimCode: time 1.322e-06/5.35, allocations: 0 / 0.7245 GB, free: 5.879 MB / 0.6042 GB