Running command: "" <> buildModelFMU(Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGas,fileNamePrefix="Modelica_3_2_2_cs_Modelica_Media_Examples_Tests_MediaTestModels_IdealGases_SimpleNaturalGas",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.886/1.886, allocations: 194.9 MB / 202.6 MB, free: 6.906 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2383/2.124, allocations: 46.85 MB / 249.4 MB, free: 5.375 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09186/2.216, allocations: 44.5 MB / 293.9 MB, free: 10.88 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.762/3.978, allocations: 0.7069 GB / 0.9939 GB, free: 71.54 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000303/3.979, allocations: 82.08 kB / 0.994 GB, free: 71.49 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: 177 * Number of variables: 177 Notification: Performance of Generate backend data structure: time 2.666/6.644, allocations: 0.5563 GB / 1.55 GB, free: 70.23 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.207e-05/6.644, allocations: 9.375 kB / 1.55 GB, free: 70.23 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001555/6.646, allocations: 145.5 kB / 1.55 GB, free: 70.2 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01328/6.659, allocations: 489.5 kB / 1.551 GB, free: 69.99 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.315e-05/6.659, allocations: 23.97 kB / 1.551 GB, free: 69.99 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007489/6.66, allocations: 43.75 kB / 1.551 GB, free: 69.99 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003132/6.663, allocations: 0.8245 MB / 1.552 GB, free: 69.98 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007287/6.671, allocations: 0.8307 MB / 1.553 GB, free: 69.93 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.976e-05/6.671, allocations: 9.812 kB / 1.553 GB, free: 69.93 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002298/6.671, allocations: 0 / 1.553 GB, free: 69.93 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.809e-05/6.671, allocations: 16.59 kB / 1.553 GB, free: 69.93 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009624/6.681, allocations: 3.253 MB / 1.556 GB, free: 68.45 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00114/6.682, allocations: 434.8 kB / 1.556 GB, free: 68.43 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008242/6.683, allocations: 340.2 kB / 1.556 GB, free: 68.42 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.124e-05/6.683, allocations: 19.33 kB / 1.557 GB, free: 68.42 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.331e-05/6.683, allocations: 48.28 kB / 1.557 GB, free: 68.38 MB / 410.7 MB Notification: Performance of pre-optimization done (n=59): time 4.087e-06/6.683, allocations: 0 / 1.557 GB, free: 68.38 MB / 410.7 MB Notification: Performance of matching and sorting (n=71): time 0.01735/6.7, allocations: 3.136 MB / 1.56 GB, free: 67.73 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.324e-05/6.7, allocations: 58.72 kB / 1.56 GB, free: 67.66 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006015/6.701, allocations: 326 kB / 1.56 GB, free: 67.56 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001806/6.701, allocations: 28.55 kB / 1.56 GB, free: 67.53 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001365/6.701, allocations: 269.2 kB / 1.56 GB, free: 67.38 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000254/6.701, allocations: 239.6 kB / 1.56 GB, free: 67.25 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.73e-05/6.702, allocations: 0 / 1.56 GB, free: 67.25 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001063/6.702, allocations: 356.4 kB / 1.561 GB, free: 66.94 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001095/6.703, allocations: 434 kB / 1.561 GB, free: 66.94 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00117/6.704, allocations: 0.4994 MB / 1.562 GB, free: 66.88 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001271/6.705, allocations: 0.4966 MB / 1.562 GB, free: 66.88 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.657e-06/6.705, allocations: 0.5625 kB / 1.562 GB, free: 66.88 MB / 410.7 MB Notification: Performance of matching and sorting (n=88) (initialization): time 0.003706/6.709, allocations: 1.323 MB / 1.564 GB, free: 66.74 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.922e-05/6.709, allocations: 9.828 kB / 1.564 GB, free: 66.74 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.115e-05/6.709, allocations: 0 / 1.564 GB, free: 66.74 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001177/6.71, allocations: 324.6 kB / 1.564 GB, free: 66.68 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002088/6.712, allocations: 186.4 kB / 1.564 GB, free: 66.68 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008674/6.721, allocations: 9.803 MB / 1.574 GB, free: 57.83 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001255/6.722, allocations: 58.67 kB / 1.574 GB, free: 57.82 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001422/6.722, allocations: 47.66 kB / 1.574 GB, free: 57.82 MB / 410.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: ambient.port.Xi[1]:VARIABLE(flow=false min = 0.0 max = 1.0 unit = "kg/kg" nominal = 0.1 ) "Independent mixture mass fractions m_i/m in the connection point" type: Real [6] Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: ambient.port.Xi[2]:VARIABLE(flow=false min = 0.0 max = 1.0 unit = "kg/kg" nominal = 0.1 ) "Independent mixture mass fractions m_i/m in the connection point" type: Real [6] Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: ambient.port.Xi[3]:VARIABLE(flow=false min = 0.0 max = 1.0 unit = "kg/kg" nominal = 0.1 ) "Independent mixture mass fractions m_i/m in the connection point" type: Real [6] Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: ambient.port.Xi[4]:VARIABLE(flow=false min = 0.0 max = 1.0 unit = "kg/kg" nominal = 0.1 ) "Independent mixture mass fractions m_i/m in the connection point" type: Real [6] Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: ambient.port.Xi[5]:VARIABLE(flow=false min = 0.0 max = 1.0 unit = "kg/kg" nominal = 0.1 ) "Independent mixture mass fractions m_i/m in the connection point" type: Real [6] Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: ambient.port.Xi[6]:VARIABLE(flow=false min = 0.0 max = 1.0 unit = "kg/kg" nominal = 0.1 ) "Independent mixture mass fractions m_i/m in the connection point" type: Real [6] Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (80): * Single equations (assignments): 72 * 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: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 8 {1 1,1 1,1 1,1 1,1 1,1 1,1 1,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0004438/6.723, allocations: 147.2 kB / 1.574 GB, free: 57.71 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002173/6.723, allocations: 45.16 kB / 1.574 GB, free: 57.7 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003752/6.727, allocations: 1.286 MB / 1.575 GB, free: 57.55 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.33e-05/6.727, allocations: 9.719 kB / 1.575 GB, free: 57.55 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.284e-06/6.727, allocations: 0 / 1.575 GB, free: 57.55 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002507/6.729, allocations: 1.569 MB / 1.577 GB, free: 56.71 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005213/6.735, allocations: 2.136 MB / 1.579 GB, free: 56.38 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.654e-06/6.735, allocations: 1.906 kB / 1.579 GB, free: 56.38 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002524/6.737, allocations: 223.6 kB / 1.579 GB, free: 56.38 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003074/6.738, allocations: 73.61 kB / 1.579 GB, free: 56.37 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000124/6.738, allocations: 37.31 kB / 1.579 GB, free: 56.37 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001693/6.739, allocations: 1.423 MB / 1.58 GB, free: 55.18 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.812e-06/6.74, allocations: 3.906 kB / 1.58 GB, free: 55.18 MB / 410.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003521/6.743, allocations: 1.572 MB / 1.582 GB, free: 54.92 MB / 410.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.005013/6.748, allocations: 2.554 MB / 1.584 GB, free: 54.29 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002661/6.748, allocations: 129.1 kB / 1.585 GB, free: 54.17 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002127/6.749, allocations: 16.2 kB / 1.585 GB, free: 54.17 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001546/6.75, allocations: 60.44 kB / 1.585 GB, free: 54.17 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001393/6.75, allocations: 49.75 kB / 1.585 GB, free: 54.17 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001879/6.751, allocations: 70.25 kB / 1.585 GB, free: 54.16 MB / 410.7 MB Notification: Performance of sort global known variables: time 0.0003852/6.751, allocations: 249.7 kB / 1.585 GB, free: 54.08 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.003345/6.754, allocations: 458.4 kB / 1.585 GB, free: 54.08 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 8 (volume.medium.p,volume.medium.Xi[1],volume.medium.Xi[2],volume.medium.Xi[3],volume.medium.Xi[4],volume.medium.Xi[5],volume.medium.Xi[6],volume.medium.T) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (77): * Single equations (assignments): 76 * 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: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.004632/6.759, allocations: 1.387 MB / 1.587 GB, free: 53.89 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.003318/6.762, allocations: 1.734 MB / 1.589 GB, free: 53.19 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 7.955e-06/6.762, allocations: 3.156 kB / 1.589 GB, free: 53.19 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001516/6.764, allocations: 0.6599 MB / 1.589 GB, free: 53.08 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003194/6.767, allocations: 289.8 kB / 1.589 GB, free: 53.07 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006347/6.773, allocations: 1.849 MB / 1.591 GB, free: 52.77 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001389/6.775, allocations: 1.113 MB / 1.592 GB, free: 52.05 MB / 410.7 MB Notification: Performance of SimCode: time 1.373e-06/6.775, allocations: 0 / 1.592 GB, free: 52.05 MB / 410.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cs_Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGas_res.mat does not exist to compare? outputFormat=mat