Running command: "" <> buildModelFMU(Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks,fileNamePrefix="Modelica_3_2_2_cs_Modelica_Fluid_Examples_AST_BatchPlant_Test_TwoTanks",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(Modelica): time 1.712/1.712, allocations: 194.9 MB / 202.6 MB, free: 6.895 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2009/1.913, allocations: 46.84 MB / 249.4 MB, free: 5.332 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09028/2.003, allocations: 44.51 MB / 293.9 MB, free: 10.88 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.7365/2.74, allocations: 316.4 MB / 0.596 GB, free: 37.75 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003067/2.74, allocations: 88.12 kB / 0.5961 GB, free: 37.71 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 120 * Number of variables: 120 Notification: Performance of Generate backend data structure: time 0.6591/3.399, allocations: 136.6 MB / 0.7295 GB, free: 63.46 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.66e-05/3.4, allocations: 8 kB / 0.7296 GB, free: 63.46 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007356/3.4, allocations: 91.05 kB / 0.7296 GB, free: 63.37 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002123/3.402, allocations: 0.5827 MB / 0.7302 GB, free: 62.75 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.886e-05/3.403, allocations: 20 kB / 0.7302 GB, free: 62.73 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002044/3.403, allocations: 31.91 kB / 0.7303 GB, free: 62.7 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001974/3.405, allocations: 0.6189 MB / 0.7309 GB, free: 62.09 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001928/3.407, allocations: 0.6738 MB / 0.7315 GB, free: 61.38 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.556e-05/3.407, allocations: 3.938 kB / 0.7315 GB, free: 61.38 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001242/3.407, allocations: 3.984 kB / 0.7315 GB, free: 61.37 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.345e-05/3.407, allocations: 44.97 kB / 0.7316 GB, free: 61.33 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00763/3.415, allocations: 2.734 MB / 0.7342 GB, free: 58.46 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001005/3.416, allocations: 370.9 kB / 0.7346 GB, free: 58.09 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006791/3.416, allocations: 242.1 kB / 0.7348 GB, free: 57.85 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004145/3.417, allocations: 348.6 kB / 0.7352 GB, free: 57.44 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.09e-05/3.417, allocations: 39 kB / 0.7352 GB, free: 57.39 MB / 394.7 MB Notification: Performance of pre-optimization done (n=48): time 3.577e-06/3.417, allocations: 0 / 0.7352 GB, free: 57.39 MB / 394.7 MB Notification: Performance of matching and sorting (n=58): time 0.01083/3.428, allocations: 1.871 MB / 0.737 GB, free: 55.47 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.445e-05/3.428, allocations: 85.55 kB / 0.7371 GB, free: 55.37 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00095/3.429, allocations: 450.1 kB / 0.7375 GB, free: 54.93 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002007/3.429, allocations: 33.7 kB / 0.7376 GB, free: 54.89 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002117/3.429, allocations: 260.1 kB / 0.7378 GB, free: 54.62 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002779/3.43, allocations: 205 kB / 0.738 GB, free: 54.42 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.816e-05/3.43, allocations: 0 / 0.738 GB, free: 54.42 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001304/3.43, allocations: 370.8 kB / 0.7384 GB, free: 54.05 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008188/3.431, allocations: 277.5 kB / 0.7386 GB, free: 53.78 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009034/3.432, allocations: 429.4 kB / 0.739 GB, free: 53.3 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008142/3.44, allocations: 0.8967 MB / 0.7399 GB, free: 52.4 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.059e-05/3.44, allocations: 0 / 0.7399 GB, free: 52.4 MB / 394.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.009921/3.45, allocations: 1.444 MB / 0.7413 GB, free: 50.95 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003585/3.45, allocations: 1.741 MB / 0.743 GB, free: 49.07 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.696e-05/3.45, allocations: 4 kB / 0.743 GB, free: 49.06 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001044/3.451, allocations: 172.6 kB / 0.7432 GB, free: 48.89 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001423/3.453, allocations: 147.8 kB / 0.7433 GB, free: 48.75 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003163/3.456, allocations: 0.9812 MB / 0.7443 GB, free: 47.74 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001363/3.457, allocations: 35.95 kB / 0.7443 GB, free: 47.71 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001733/3.458, allocations: 35.98 kB / 0.7444 GB, free: 47.67 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.369e-05/3.458, allocations: 4 kB / 0.7444 GB, free: 47.67 MB / 394.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.009274/3.467, allocations: 1.264 MB / 0.7456 GB, free: 46.4 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.975e-05/3.467, allocations: 7.984 kB / 0.7456 GB, free: 46.39 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000748/3.468, allocations: 109.4 kB / 0.7457 GB, free: 46.28 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001459/3.469, allocations: 155.7 kB / 0.7459 GB, free: 46.13 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00228/3.472, allocations: 0.8292 MB / 0.7467 GB, free: 45.27 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001229/3.473, allocations: 31.97 kB / 0.7467 GB, free: 45.24 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001636/3.473, allocations: 32.12 kB / 0.7467 GB, free: 45.21 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * Number of states: 0 () * Number of discrete variables: 6 ($PRE.tank1.aboveLevel[1],tank1.aboveLevel[1],$PRE.tank2.aboveLevel[1],tank2.aboveLevel[1],tank2.ports_m_flow_out[1],tank1.ports_m_flow_out[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (83): * Single equations (assignments): 82 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 7} Notification: Performance of prepare postOptimizeDAE: time 0.0003106/3.473, allocations: 128.5 kB / 0.7468 GB, free: 45.08 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002532/3.474, allocations: 63.25 kB / 0.7469 GB, free: 45.02 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003885/3.477, allocations: 0.8607 MB / 0.7477 GB, free: 44.16 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.436e-05/3.478, allocations: 4 kB / 0.7478 GB, free: 44.15 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.348e-06/3.478, allocations: 4 kB / 0.7478 GB, free: 44.15 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.296e-05/3.478, allocations: 3.984 kB / 0.7478 GB, free: 44.14 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005837/3.483, allocations: 1.595 MB / 0.7493 GB, free: 42.51 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.193e-05/3.483, allocations: 4 kB / 0.7493 GB, free: 42.51 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001211/3.485, allocations: 111.8 kB / 0.7494 GB, free: 42.4 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001016/3.486, allocations: 172.8 kB / 0.7496 GB, free: 42.23 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001368/3.486, allocations: 4 kB / 0.7496 GB, free: 42.22 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002219/3.488, allocations: 0.8879 MB / 0.7505 GB, free: 41.31 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.636e-06/3.488, allocations: 0 / 0.7505 GB, free: 41.31 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.004585/3.493, allocations: 1.285 MB / 0.7517 GB, free: 39.98 MB / 394.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.005696/3.499, allocations: 2.063 MB / 0.7537 GB, free: 37.89 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003431/3.499, allocations: 144.3 kB / 0.7539 GB, free: 37.73 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000256/3.499, allocations: 3.906 kB / 0.7539 GB, free: 37.72 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001122/3.5, allocations: 31.98 kB / 0.7539 GB, free: 37.69 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002288/3.501, allocations: 52.56 kB / 0.754 GB, free: 37.64 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001143/3.501, allocations: 27.98 kB / 0.754 GB, free: 37.61 MB / 394.7 MB Notification: Performance of sort global known variables: time 0.000683/3.501, allocations: 342.9 kB / 0.7543 GB, free: 37.28 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.005256/3.507, allocations: 0.6283 MB / 0.7549 GB, free: 36.65 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (tank1.medium.T,tank1.level,tank2.medium.T,tank2.level) * Number of discrete variables: 2 (tank1.aboveLevel[1],tank2.aboveLevel[1]) * Number of discrete states: 2 (tank2.aboveLevel[1],tank1.aboveLevel[1]) * Top-level inputs: 0 Notification: Strong component statistics for simulation (54): * Single equations (assignments): 53 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.002267/3.509, allocations: 0.5956 MB / 0.7555 GB, free: 36.08 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.003741/3.513, allocations: 1.088 MB / 0.7566 GB, free: 34.99 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 9.928e-06/3.513, allocations: 3.859 kB / 0.7566 GB, free: 34.99 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001199/3.514, allocations: 367.2 kB / 0.7569 GB, free: 34.63 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003073/3.517, allocations: 277.8 kB / 0.7572 GB, free: 34.37 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004156/3.521, allocations: 1.187 MB / 0.7583 GB, free: 33.14 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001063/3.523, allocations: 1.069 MB / 0.7594 GB, free: 32.04 MB / 394.7 MB Notification: Performance of SimCode: time 1.412e-06/3.523, allocations: 0 / 0.7594 GB, free: 32.04 MB / 394.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cs_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks_res.mat does not exist to compare? outputFormat=mat