Running command: "" <> buildModelFMU(ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas,fileNamePrefix="ModelicaTest_3_2_2_cs_ModelicaTest_Media_TestsWithFluid_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(ModelicaTest): time 2.788/2.788, allocations: 235 MB / 242 MB, free: 9.746 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2003/2.988, allocations: 57.21 MB / 299.2 MB, free: 424 kB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2997/3.288, allocations: 54.85 MB / 354.1 MB, free: 13.38 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 2.431/5.718, allocations: 0.8206 GB / 1.166 GB, free: 109.9 MB / 474.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003654/5.719, allocations: 98.06 kB / 1.166 GB, free: 109.9 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: 276 * Number of variables: 276 Notification: Performance of Generate backend data structure: time 4.187/9.905, allocations: 0.7113 GB / 1.878 GB, free: 69.54 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.69e-05/9.906, allocations: 7.406 kB / 1.878 GB, free: 69.54 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003952/9.909, allocations: 317.7 kB / 1.878 GB, free: 69.48 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004128/9.914, allocations: 0.8311 MB / 1.879 GB, free: 69.24 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002971/9.914, allocations: 109.3 kB / 1.879 GB, free: 69.18 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008316/9.915, allocations: 58.75 kB / 1.879 GB, free: 69.18 MB / 490.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.007596/9.923, allocations: 1.494 MB / 1.881 GB, free: 69.17 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007871/9.93, allocations: 1.646 MB / 1.882 GB, free: 68.96 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.506e-05/9.931, allocations: 3.938 kB / 1.882 GB, free: 68.96 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004668/9.931, allocations: 7.469 kB / 1.882 GB, free: 68.96 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001796/9.931, allocations: 81.06 kB / 1.882 GB, free: 68.96 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02372/9.955, allocations: 6.716 MB / 1.889 GB, free: 65.53 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002288/9.957, allocations: 0.5138 MB / 1.889 GB, free: 65.51 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001342/9.959, allocations: 368.7 kB / 1.89 GB, free: 65.5 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006192/9.959, allocations: 248.3 kB / 1.89 GB, free: 65.31 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.407e-05/9.96, allocations: 45.19 kB / 1.89 GB, free: 65.27 MB / 490.7 MB Notification: Performance of pre-optimization done (n=53): time 4.809e-06/9.96, allocations: 0 / 1.89 GB, free: 65.27 MB / 490.7 MB Notification: Performance of matching and sorting (n=65): time 0.02304/9.983, allocations: 3.339 MB / 1.893 GB, free: 64.61 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.26e-05/9.983, allocations: 115.1 kB / 1.893 GB, free: 64.48 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002288/9.985, allocations: 0.5957 MB / 1.894 GB, free: 64.36 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004941/9.986, allocations: 29.67 kB / 1.894 GB, free: 64.32 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007283/9.986, allocations: 0.5096 MB / 1.894 GB, free: 64.06 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006256/9.987, allocations: 233.9 kB / 1.895 GB, free: 63.94 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002303/9.987, allocations: 0 / 1.895 GB, free: 63.94 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0002537/9.988, allocations: 387.4 kB / 1.895 GB, free: 63.63 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002223/9.99, allocations: 0.5413 MB / 1.895 GB, free: 63.63 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002751/9.993, allocations: 0.9062 MB / 1.896 GB, free: 63.18 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002049/9.995, allocations: 0.6719 MB / 1.897 GB, free: 63.18 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.49e-05/9.995, allocations: 3.5 kB / 1.897 GB, free: 63.18 MB / 490.7 MB Notification: Performance of matching and sorting (n=134) (initialization): time 0.007229/10, allocations: 1.827 MB / 1.899 GB, free: 63.09 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.012e-05/10, allocations: 10.75 kB / 1.899 GB, free: 63.09 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.816e-05/10, allocations: 9.844 kB / 1.899 GB, free: 63.09 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01149/10.01, allocations: 1.157 MB / 1.9 GB, free: 63.07 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001635/10.02, allocations: 183.9 kB / 1.9 GB, free: 63.07 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004782/10.02, allocations: 1.87 MB / 1.902 GB, free: 62.52 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002442/10.02, allocations: 88.31 kB / 1.902 GB, free: 62.52 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002495/10.02, allocations: 98.56 kB / 1.902 GB, free: 62.52 MB / 490.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: volume.m:DUMMY_STATE(min = 0.0 unit = "kg" ) "Mass of fluid" type: Real volume.mb_flow:VARIABLE(unit = "kg/s" ) "Mass flows across boundaries" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 53 * 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 (98): * Single equations (assignments): 97 * 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 {10 27} Notification: Performance of prepare postOptimizeDAE: time 0.0005036/10.02, allocations: 143.8 kB / 1.902 GB, free: 62.41 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003575/10.02, allocations: 83.84 kB / 1.902 GB, free: 62.38 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004157/10.03, allocations: 1.284 MB / 1.904 GB, free: 62.3 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.71e-05/10.03, allocations: 11.41 kB / 1.904 GB, free: 62.3 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.289e-05/10.03, allocations: 3.844 kB / 1.904 GB, free: 62.3 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.266e-05/10.03, allocations: 0 / 1.904 GB, free: 62.3 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007178/10.04, allocations: 2.388 MB / 1.906 GB, free: 61.98 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.328e-05/10.04, allocations: 0 / 1.906 GB, free: 61.98 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006323/10.04, allocations: 301.9 kB / 1.906 GB, free: 61.98 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005744/10.04, allocations: 75.7 kB / 1.906 GB, free: 61.97 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004071/10.04, allocations: 31.19 kB / 1.906 GB, free: 61.97 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004936/10.05, allocations: 2.783 MB / 1.909 GB, free: 59.52 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.196e-06/10.05, allocations: 3.688 kB / 1.909 GB, free: 59.52 MB / 490.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.00526/10.05, allocations: 1.697 MB / 1.911 GB, free: 59.29 MB / 490.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.006883/10.06, allocations: 2.761 MB / 1.913 GB, free: 58.68 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001274/10.06, allocations: 287.6 kB / 1.914 GB, free: 58.55 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004819/10.06, allocations: 21 kB / 1.914 GB, free: 58.55 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002228/10.06, allocations: 59.19 kB / 1.914 GB, free: 58.55 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002533/10.06, allocations: 45.84 kB / 1.914 GB, free: 58.55 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002395/10.06, allocations: 57.41 kB / 1.914 GB, free: 58.55 MB / 490.7 MB Notification: Performance of sort global known variables: time 0.001054/10.07, allocations: 463.9 kB / 1.914 GB, free: 58.46 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.004969/10.07, allocations: 0.6492 MB / 1.915 GB, free: 58.41 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * 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 (71): * Single equations (assignments): 69 * 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.006919/10.08, allocations: 1.673 MB / 1.917 GB, free: 58.19 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.004443/10.08, allocations: 1.37 MB / 1.918 GB, free: 58.16 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.379e-05/10.08, allocations: 8.125 kB / 1.918 GB, free: 58.16 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003776/10.09, allocations: 0.8241 MB / 1.919 GB, free: 58.06 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004229/10.09, allocations: 364.9 kB / 1.919 GB, free: 58.06 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009378/10.1, allocations: 2.219 MB / 1.921 GB, free: 57.66 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002585/10.1, allocations: 1.393 MB / 1.923 GB, free: 56.94 MB / 490.7 MB Notification: Performance of SimCode: time 1.934e-06/10.1, allocations: 0 / 1.923 GB, free: 56.94 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.SimpleNaturalGas_res.mat does not exist to compare? outputFormat=mat