Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Vessels.TestTankWithTopPorts,fileNamePrefix="ModelicaTest_3_2_1_ModelicaTest_Fluid_TestComponents_Vessels_TestTankWithTopPorts",fmuType="me",version="2.0",platforms={"static"}) [: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(ModelicaTest): time 1.849/1.849, allocations: 209.3 MB / 216.3 MB, free: 6.805 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2462/2.096, allocations: 51.05 MB / 267.3 MB, free: 5.145 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1252/2.221, allocations: 48.68 MB / 316 MB, free: 4.359 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.342/8.563, allocations: 2.485 GB / 2.794 GB, free: 95.07 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0005015/8.563, allocations: 88.91 kB / 2.794 GB, free: 95.07 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 212 * Number of variables: 212 Notification: Performance of Generate backend data structure: time 2.793/11.36, allocations: 0.5348 GB / 3.329 GB, free: 41.14 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.326e-05/11.36, allocations: 11.12 kB / 3.329 GB, free: 41.14 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006351/11.36, allocations: 330.6 kB / 3.329 GB, free: 41.08 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0033/11.37, allocations: 0.6978 MB / 3.33 GB, free: 40.81 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003729/11.37, allocations: 271.2 kB / 3.33 GB, free: 40.56 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004515/11.37, allocations: 53.25 kB / 3.33 GB, free: 40.55 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00422/11.37, allocations: 1 MB / 3.331 GB, free: 40.55 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004436/11.38, allocations: 1.163 MB / 3.332 GB, free: 40.29 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.98e-05/11.38, allocations: 4.297 kB / 3.332 GB, free: 40.29 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002484/11.38, allocations: 3.594 kB / 3.332 GB, free: 40.29 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001149/11.38, allocations: 37.09 kB / 3.332 GB, free: 40.29 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09935/11.48, allocations: 27.2 MB / 3.359 GB, free: 22.97 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009855/11.48, allocations: 393.2 kB / 3.359 GB, free: 22.95 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007451/11.48, allocations: 334 kB / 3.36 GB, free: 22.94 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003692/11.48, allocations: 402.1 kB / 3.36 GB, free: 22.57 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.482e-05/11.48, allocations: 38.34 kB / 3.36 GB, free: 22.53 MB / 442.7 MB Notification: Performance of pre-optimization done (n=54): time 3.136e-06/11.48, allocations: 0 / 3.36 GB, free: 22.53 MB / 442.7 MB Notification: Performance of matching and sorting (n=59): time 0.007026/11.49, allocations: 1.867 MB / 3.362 GB, free: 22.08 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.567e-05/11.49, allocations: 132.8 kB / 3.362 GB, free: 21.92 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009682/11.49, allocations: 0.539 MB / 3.362 GB, free: 21.79 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001611/11.49, allocations: 32.7 kB / 3.363 GB, free: 21.76 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003179/11.49, allocations: 417.4 kB / 3.363 GB, free: 21.49 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002213/11.49, allocations: 196.1 kB / 3.363 GB, free: 21.37 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.043e-05/11.49, allocations: 0 / 3.363 GB, free: 21.37 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001315/11.49, allocations: 389.2 kB / 3.363 GB, free: 21.05 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001152/11.49, allocations: 380.2 kB / 3.364 GB, free: 21.05 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001162/11.49, allocations: 0.6538 MB / 3.364 GB, free: 20.72 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001318/11.49, allocations: 422.5 kB / 3.365 GB, free: 20.71 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.436e-06/11.49, allocations: 10.17 kB / 3.365 GB, free: 20.7 MB / 442.7 MB Notification: Performance of matching and sorting (n=116) (initialization): time 0.004686/11.5, allocations: 1.325 MB / 3.366 GB, free: 20.61 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.638e-05/11.5, allocations: 3.469 kB / 3.366 GB, free: 20.61 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.368e-05/11.5, allocations: 8.094 kB / 3.366 GB, free: 20.61 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005655/11.5, allocations: 95.38 kB / 3.366 GB, free: 20.6 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008444/11.5, allocations: 429.9 kB / 3.367 GB, free: 20.59 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008696/11.51, allocations: 6.244 MB / 3.373 GB, free: 15.02 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00232/11.52, allocations: 142.3 kB / 3.373 GB, free: 15 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001825/11.52, allocations: 48.41 kB / 3.373 GB, free: 15 MB / 442.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: tank.Wb_flow:VARIABLE(unit = "W" ) "Work flow across boundaries or source term" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 36 * Number of states: 0 () * Number of discrete variables: 21 (tank.heatTransfer.states[1].phase,$PRE.tank.ports_m_flow_out[1],tank.ports_m_flow_out[1],$PRE.tank.ports_m_flow_out[2],tank.ports_m_flow_out[2],$PRE.tank.ports_m_flow_out[3],tank.ports_m_flow_out[3],$PRE.tank.ports_m_flow_out[4],tank.ports_m_flow_out[4],$PRE.tank.aboveLevel[1],tank.aboveLevel[1],$PRE.tank.aboveLevel[2],tank.aboveLevel[2],$PRE.tank.aboveLevel[3],tank.aboveLevel[3],$PRE.tank.aboveLevel[4],tank.aboveLevel[4],massFlowRate[1].medium.phase,massFlowRate[2].medium.phase,Boundary_fixed.medium.phase,Boundary_fixed.state.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (111): * Single equations (assignments): 106 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 4 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 4 {1,1,1,1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 4} Notification: Performance of prepare postOptimizeDAE: time 0.0004398/11.52, allocations: 148.5 kB / 3.373 GB, free: 14.88 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001148/11.52, allocations: 254.5 kB / 3.373 GB, free: 14.85 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003697/11.52, allocations: 1.654 MB / 3.375 GB, free: 30.69 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.626e-05/11.52, allocations: 18.22 kB / 3.375 GB, free: 30.69 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.419e-06/11.52, allocations: 0 / 3.375 GB, free: 30.69 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.137e-05/11.52, allocations: 0 / 3.375 GB, free: 30.69 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006972/11.53, allocations: 2.892 MB / 3.378 GB, free: 30.28 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.125e-05/11.53, allocations: 3.406 kB / 3.378 GB, free: 30.28 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.007642/11.54, allocations: 337.9 kB / 3.378 GB, free: 30.27 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005324/11.54, allocations: 97.39 kB / 3.378 GB, free: 30.26 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001742/11.54, allocations: 14.27 kB / 3.378 GB, free: 30.26 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01004/11.55, allocations: 6.218 MB / 3.384 GB, free: 24.69 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.091e-05/11.55, allocations: 7.75 kB / 3.384 GB, free: 24.69 MB / 458.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.005834/11.55, allocations: 2.255 MB / 3.387 GB, free: 24.19 MB / 458.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.00855/11.56, allocations: 3.289 MB / 3.39 GB, free: 23.32 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005504/11.56, allocations: 195.9 kB / 3.39 GB, free: 23.18 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005338/11.56, allocations: 23.28 kB / 3.39 GB, free: 23.18 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002166/11.57, allocations: 110.3 kB / 3.39 GB, free: 23.16 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005335/11.57, allocations: 119 kB / 3.39 GB, free: 23.16 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001494/11.57, allocations: 35.64 kB / 3.39 GB, free: 23.16 MB / 458.7 MB Notification: Performance of sort global known variables: time 0.001234/11.57, allocations: 470.5 kB / 3.391 GB, free: 23.05 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.009577/11.58, allocations: 1.403 MB / 3.392 GB, free: 22.89 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 2 (tank.medium.h,tank.level) * Number of discrete variables: 17 ($cse2.phase,$cse2.region,$cse3.phase,$cse3.region,$cse4.phase,$cse4.region,tank.heatTransfer.states[1].phase,tank.ports_m_flow_out[1],tank.ports_m_flow_out[2],tank.ports_m_flow_out[3],tank.ports_m_flow_out[4],tank.aboveLevel[1],tank.aboveLevel[2],tank.aboveLevel[3],tank.aboveLevel[4],massFlowRate[2].medium.phase,massFlowRate[1].medium.phase) * Number of discrete states: 8 (tank.aboveLevel[1],tank.ports_m_flow_out[1],tank.aboveLevel[2],tank.ports_m_flow_out[2],tank.aboveLevel[3],tank.ports_m_flow_out[3],tank.aboveLevel[4],tank.ports_m_flow_out[4]) * Top-level inputs: 0 Notification: Strong component statistics for simulation (56): * Single equations (assignments): 48 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 4 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 4 {1,1,1,1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 4} Notification: Performance of Backend phase and start with SimCode phase: time 0.01767/11.59, allocations: 2.088 MB / 3.394 GB, free: 22.44 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.01367/11.61, allocations: 1.447 MB / 3.395 GB, free: 22.43 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 9.879e-06/11.61, allocations: 0 / 3.395 GB, free: 22.43 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0165/11.62, allocations: 1.196 MB / 3.397 GB, free: 22.42 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005925/11.63, allocations: 321.5 kB / 3.397 GB, free: 22.39 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005666/11.64, allocations: 1.803 MB / 3.399 GB, free: 21.9 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001737/11.64, allocations: 1.243 MB / 3.4 GB, free: 21.17 MB / 458.7 MB Notification: Performance of SimCode: time 1.563e-06/11.64, allocations: 4.312 kB / 3.4 GB, free: 21.17 MB / 458.7 MB