Running command: "" <> buildModelFMU(ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition,fileNamePrefix="ModelicaTest_3_2_2_cs_ModelicaTest_Media_TestsWithFluid_MediaTestModels_IdealGases_SimpleNaturalGasFixedComposition",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.598/2.598, allocations: 235 MB / 242 MB, free: 9.758 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1672/2.765, allocations: 57.21 MB / 299.2 MB, free: 436 kB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3093/3.074, allocations: 54.86 MB / 354.1 MB, free: 13.4 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 2.51/5.584, allocations: 0.8214 GB / 1.167 GB, free: 109.8 MB / 474.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004605/5.585, allocations: 94.77 kB / 1.167 GB, free: 109.8 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: 192 * Number of variables: 192 Notification: Performance of Generate backend data structure: time 4.333/9.918, allocations: 0.7357 GB / 1.903 GB, free: 74.08 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.238e-05/9.918, allocations: 13.41 kB / 1.903 GB, free: 74.08 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003005/9.921, allocations: 287.4 kB / 1.903 GB, free: 74.03 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003142/9.924, allocations: 0.6915 MB / 1.904 GB, free: 73.8 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001861/9.924, allocations: 95.39 kB / 1.904 GB, free: 73.73 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004317/9.925, allocations: 42.62 kB / 1.904 GB, free: 73.73 MB / 490.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.004106/9.929, allocations: 0.8841 MB / 1.905 GB, free: 73.73 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004666/9.933, allocations: 1.136 MB / 1.906 GB, free: 73.5 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.418e-05/9.934, allocations: 3.75 kB / 1.906 GB, free: 73.5 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003278/9.934, allocations: 3.844 kB / 1.906 GB, free: 73.5 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00015/9.934, allocations: 82.23 kB / 1.906 GB, free: 73.5 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01618/9.95, allocations: 4.881 MB / 1.911 GB, free: 70.74 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001096/9.952, allocations: 203.8 kB / 1.911 GB, free: 70.72 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004585/9.952, allocations: 127.8 kB / 1.911 GB, free: 70.71 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005409/9.953, allocations: 243.2 kB / 1.911 GB, free: 70.52 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.497e-05/9.953, allocations: 40.45 kB / 1.912 GB, free: 70.48 MB / 490.7 MB Notification: Performance of pre-optimization done (n=27): time 5.16e-06/9.953, allocations: 0 / 1.912 GB, free: 70.48 MB / 490.7 MB Notification: Performance of matching and sorting (n=32): time 0.01254/9.965, allocations: 1.506 MB / 1.913 GB, free: 69.86 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.943e-05/9.965, allocations: 131.5 kB / 1.913 GB, free: 69.7 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00152/9.967, allocations: 0.6977 MB / 1.914 GB, free: 69.57 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 9.511e-05/9.967, allocations: 25.7 kB / 1.914 GB, free: 69.54 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003899/9.967, allocations: 0.5293 MB / 1.914 GB, free: 69.23 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001542/9.968, allocations: 124.7 kB / 1.914 GB, free: 69.16 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.887e-05/9.968, allocations: 0 / 1.914 GB, free: 69.16 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0001718/9.968, allocations: 390.1 kB / 1.915 GB, free: 68.84 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007668/9.969, allocations: 269.4 kB / 1.915 GB, free: 68.84 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001157/9.97, allocations: 0.8929 MB / 1.916 GB, free: 68.02 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001309/9.971, allocations: 469.9 kB / 1.916 GB, free: 68.02 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.465e-05/9.971, allocations: 7 kB / 1.916 GB, free: 68.02 MB / 490.7 MB Notification: Performance of matching and sorting (n=139) (initialization): time 0.003604/9.975, allocations: 1.138 MB / 1.918 GB, free: 67.87 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.675e-05/9.975, allocations: 7.781 kB / 1.918 GB, free: 67.87 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.063e-05/9.975, allocations: 26 kB / 1.918 GB, free: 67.87 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002314/9.977, allocations: 259 kB / 1.918 GB, free: 67.86 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001884/9.979, allocations: 236.9 kB / 1.918 GB, free: 67.84 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002732/9.982, allocations: 0.9108 MB / 1.919 GB, free: 67.3 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002587/9.985, allocations: 49.97 kB / 1.919 GB, free: 67.3 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000276/9.985, allocations: 94.38 kB / 1.919 GB, free: 67.3 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 99 * Number of states: 0 () * Number of discrete variables: 4 (volume.regularFlow[1],volume.regularFlow[2],volume.inFlow[2],volume.inFlow[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (122): * Single equations (assignments): 121 * 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 16} Notification: Performance of prepare postOptimizeDAE: time 0.0003529/9.985, allocations: 156.8 kB / 1.919 GB, free: 67.16 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002683/9.986, allocations: 87.16 kB / 1.919 GB, free: 67.12 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002315/9.988, allocations: 454.6 kB / 1.92 GB, free: 67.05 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.129e-05/9.988, allocations: 3.562 kB / 1.92 GB, free: 67.05 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.001e-05/9.988, allocations: 0 / 1.92 GB, free: 67.05 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.011e-05/9.988, allocations: 7.406 kB / 1.92 GB, free: 67.05 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003478/9.992, allocations: 1.008 MB / 1.921 GB, free: 66.75 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.171e-06/9.992, allocations: 1.219 kB / 1.921 GB, free: 66.75 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002241/9.994, allocations: 176.4 kB / 1.921 GB, free: 66.75 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001419/9.994, allocations: 18.25 kB / 1.921 GB, free: 66.74 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.582e-05/9.994, allocations: 9.719 kB / 1.921 GB, free: 66.74 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003738/9.998, allocations: 2.565 MB / 1.923 GB, free: 64.28 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.506e-06/9.998, allocations: 0 / 1.923 GB, free: 64.28 MB / 490.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.00296/10, allocations: 0.6568 MB / 1.924 GB, free: 64.07 MB / 490.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.004185/10.01, allocations: 1.267 MB / 1.925 GB, free: 63.48 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008834/10.01, allocations: 191.8 kB / 1.925 GB, free: 63.34 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000496/10.01, allocations: 8.312 kB / 1.925 GB, free: 63.34 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00178/10.01, allocations: 18.25 kB / 1.926 GB, free: 63.34 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001663/10.01, allocations: 29.64 kB / 1.926 GB, free: 63.33 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001119/10.01, allocations: 28.3 kB / 1.926 GB, free: 63.33 MB / 490.7 MB Notification: Performance of sort global known variables: time 0.001739/10.01, allocations: 0.5031 MB / 1.926 GB, free: 63.23 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.006859/10.02, allocations: 0.5688 MB / 1.927 GB, free: 63.18 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (volume.medium.p,volume.medium.T) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (32): * Single equations (assignments): 30 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * 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: 1 {1} * Without analytic Jacobian: 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.009499/10.03, allocations: 1.634 MB / 1.928 GB, free: 62.92 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.003278/10.03, allocations: 0.6417 MB / 1.929 GB, free: 62.86 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.522e-05/10.03, allocations: 7.109 kB / 1.929 GB, free: 62.86 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003453/10.03, allocations: 388.7 kB / 1.929 GB, free: 62.75 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003761/10.04, allocations: 275.2 kB / 1.929 GB, free: 62.75 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004423/10.04, allocations: 1.143 MB / 1.931 GB, free: 62.45 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002113/10.04, allocations: 1.197 MB / 1.932 GB, free: 61.74 MB / 490.7 MB Notification: Performance of SimCode: time 1.734e-06/10.04, allocations: 0 / 1.932 GB, free: 61.74 MB / 490.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cs_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition_res.mat does not exist to compare? outputFormat=mat