Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Vessels.TestTankWithTopPorts,fileNamePrefix="ModelicaTest_3_2_2_cs_ModelicaTest_Fluid_TestComponents_Vessels_TestTankWithTopPorts",fmuType="cs",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(ModelicaTest): time 2.459/2.459, allocations: 235.1 MB / 242 MB, free: 9.738 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.188/2.647, allocations: 57.19 MB / 299.2 MB, free: 436 kB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3102/2.957, allocations: 54.85 MB / 354.1 MB, free: 13.4 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.385/10.34, allocations: 2.596 GB / 2.942 GB, free: 98.65 MB / 474.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003335/10.34, allocations: 86 kB / 2.942 GB, free: 98.6 MB / 474.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 3.251/13.59, allocations: 0.5486 GB / 3.49 GB, free: 45.16 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.248e-05/13.59, allocations: 6.906 kB / 3.49 GB, free: 45.16 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005275/13.6, allocations: 340 kB / 3.491 GB, free: 45.11 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002955/13.6, allocations: 0.6974 MB / 3.491 GB, free: 44.82 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003217/13.6, allocations: 272.6 kB / 3.492 GB, free: 44.57 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003809/13.6, allocations: 46.12 kB / 3.492 GB, free: 44.57 MB / 490.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003998/13.61, allocations: 1.011 MB / 3.493 GB, free: 44.57 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004122/13.61, allocations: 1.161 MB / 3.494 GB, free: 44.3 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.103e-05/13.61, allocations: 3.906 kB / 3.494 GB, free: 44.3 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002217/13.61, allocations: 3.969 kB / 3.494 GB, free: 44.3 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.021e-05/13.61, allocations: 45.64 kB / 3.494 GB, free: 44.29 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1019/13.71, allocations: 27.33 MB / 3.521 GB, free: 26.84 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001162/13.71, allocations: 396.5 kB / 3.521 GB, free: 26.82 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008635/13.72, allocations: 336.6 kB / 3.521 GB, free: 26.81 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004837/13.72, allocations: 402.5 kB / 3.522 GB, free: 26.43 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.977e-05/13.72, allocations: 45.25 kB / 3.522 GB, free: 26.39 MB / 490.7 MB Notification: Performance of pre-optimization done (n=54): time 3.386e-06/13.72, allocations: 0 / 3.522 GB, free: 26.39 MB / 490.7 MB Notification: Performance of matching and sorting (n=59): time 0.008638/13.72, allocations: 1.877 MB / 3.523 GB, free: 25.93 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.73e-05/13.72, allocations: 137 kB / 3.524 GB, free: 25.77 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001159/13.73, allocations: 0.524 MB / 3.524 GB, free: 25.65 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002695/13.73, allocations: 40.47 kB / 3.524 GB, free: 25.62 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003911/13.73, allocations: 411.1 kB / 3.525 GB, free: 25.35 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000332/13.73, allocations: 194.4 kB / 3.525 GB, free: 25.23 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001046/13.73, allocations: 2.844 kB / 3.525 GB, free: 25.23 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0001585/13.73, allocations: 382.6 kB / 3.525 GB, free: 24.92 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001229/13.73, allocations: 388.6 kB / 3.525 GB, free: 24.92 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001369/13.73, allocations: 0.6425 MB / 3.526 GB, free: 24.59 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00157/13.73, allocations: 430.6 kB / 3.526 GB, free: 24.57 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.374e-06/13.73, allocations: 0 / 3.526 GB, free: 24.57 MB / 490.7 MB Notification: Performance of matching and sorting (n=116) (initialization): time 0.005617/13.74, allocations: 1.332 MB / 3.528 GB, free: 24.47 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.532e-05/13.74, allocations: 6.562 kB / 3.528 GB, free: 24.47 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.251e-05/13.74, allocations: 7.062 kB / 3.528 GB, free: 24.47 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005832/13.74, allocations: 96.05 kB / 3.528 GB, free: 24.46 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009766/13.75, allocations: 433.6 kB / 3.528 GB, free: 24.45 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01041/13.76, allocations: 6.231 MB / 3.534 GB, free: 18.88 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002662/13.76, allocations: 147.3 kB / 3.535 GB, free: 18.85 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002376/13.76, allocations: 43.88 kB / 3.535 GB, free: 18.85 MB / 490.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.000478/13.76, allocations: 148.5 kB / 3.535 GB, free: 18.72 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001355/13.76, allocations: 260.9 kB / 3.535 GB, free: 18.68 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004266/13.77, allocations: 1.646 MB / 3.537 GB, free: 18.52 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.965e-05/13.77, allocations: 16.58 kB / 3.537 GB, free: 18.52 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.069e-06/13.77, allocations: 0 / 3.537 GB, free: 18.52 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.398e-05/13.77, allocations: 7.703 kB / 3.537 GB, free: 18.52 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01224/13.78, allocations: 2.9 MB / 3.539 GB, free: 17.85 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.518e-05/13.78, allocations: 7.812 kB / 3.539 GB, free: 17.85 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0113/13.79, allocations: 324.4 kB / 3.54 GB, free: 17.83 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006329/13.79, allocations: 96.58 kB / 3.54 GB, free: 17.8 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002328/13.79, allocations: 18.5 kB / 3.54 GB, free: 17.8 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01083/13.8, allocations: 6.221 MB / 3.546 GB, free: 27.89 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.808e-06/13.8, allocations: 5.672 kB / 3.546 GB, free: 27.89 MB / 0.4948 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.006597/13.81, allocations: 2.247 MB / 3.548 GB, free: 26.74 MB / 0.4948 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.008624/13.82, allocations: 3.305 MB / 3.551 GB, free: 24.88 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005881/13.82, allocations: 192.1 kB / 3.552 GB, free: 24.71 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004216/13.82, allocations: 20.62 kB / 3.552 GB, free: 24.71 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002027/13.82, allocations: 101.1 kB / 3.552 GB, free: 24.7 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005107/13.82, allocations: 125.5 kB / 3.552 GB, free: 24.68 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001448/13.82, allocations: 33.97 kB / 3.552 GB, free: 24.67 MB / 0.4948 GB Notification: Performance of sort global known variables: time 0.001153/13.82, allocations: 467.3 kB / 3.552 GB, free: 24.46 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.009982/13.83, allocations: 1.407 MB / 3.554 GB, free: 24.06 MB / 0.4948 GB 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.01378/13.85, allocations: 2.106 MB / 3.556 GB, free: 22.71 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.01475/13.86, allocations: 1.455 MB / 3.557 GB, free: 21.49 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.054e-05/13.86, allocations: 0 / 3.557 GB, free: 21.49 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.01382/13.88, allocations: 1.191 MB / 3.558 GB, free: 20.53 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003854/13.88, allocations: 318.5 kB / 3.559 GB, free: 20.3 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006202/13.89, allocations: 1.807 MB / 3.56 GB, free: 18.65 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001751/13.89, allocations: 1.24 MB / 3.562 GB, free: 17.55 MB / 0.4948 GB Notification: Performance of SimCode: time 3.156e-06/13.89, allocations: 0 / 3.562 GB, free: 17.55 MB / 0.4948 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cs_ModelicaTest.Fluid.TestComponents.Vessels.TestTankWithTopPorts_res.mat does not exist to compare? outputFormat=mat