Running command: "" <> buildModelFMU(ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.ConstantPropertyLiquidWater,fileNamePrefix="ModelicaTest_3_2_2_cs_ModelicaTest_Media_TestsWithFluid_MediaTestModels_Water_ConstantPropertyLiquidWater",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.57/2.57, allocations: 235 MB / 242 MB, free: 9.75 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.217/2.787, allocations: 57.21 MB / 299.2 MB, free: 424 kB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2865/3.074, allocations: 54.85 MB / 354.1 MB, free: 13.39 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.075/4.149, allocations: 347.1 MB / 0.6847 GB, free: 97.43 MB / 474.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004533/4.15, allocations: 100.4 kB / 0.6848 GB, free: 97.39 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: 130 * Number of variables: 130 Notification: Performance of Generate backend data structure: time 0.8382/4.988, allocations: 129.8 MB / 0.8115 GB, free: 116.7 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.256e-05/4.988, allocations: 7.812 kB / 0.8115 GB, free: 116.7 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007007/4.989, allocations: 88.05 kB / 0.8116 GB, free: 116.7 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001905/4.991, allocations: 0.5521 MB / 0.8122 GB, free: 116.4 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001351/4.991, allocations: 79.91 kB / 0.8122 GB, free: 116.4 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001325/4.991, allocations: 34.25 kB / 0.8123 GB, free: 116.4 MB / 474.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001867/4.993, allocations: 0.5381 MB / 0.8128 GB, free: 116.4 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001961/4.995, allocations: 0.7483 MB / 0.8135 GB, free: 116.1 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.525e-05/4.995, allocations: 3.281 kB / 0.8135 GB, free: 116.1 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001266/4.995, allocations: 7.219 kB / 0.8135 GB, free: 116.1 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.598e-05/4.995, allocations: 38.22 kB / 0.8136 GB, free: 116.1 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007747/5.003, allocations: 4.191 MB / 0.8177 GB, free: 113.2 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006852/5.004, allocations: 208.9 kB / 0.8179 GB, free: 113.2 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004116/5.004, allocations: 142.7 kB / 0.818 GB, free: 113.2 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002962/5.007, allocations: 1.488 MB / 0.8195 GB, free: 112.1 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.052e-05/5.007, allocations: 43.14 kB / 0.8195 GB, free: 112 MB / 474.7 MB Notification: Performance of pre-optimization done (n=14): time 2.765e-06/5.007, allocations: 0 / 0.8195 GB, free: 112 MB / 474.7 MB Notification: Performance of matching and sorting (n=20): time 0.003401/5.011, allocations: 0.756 MB / 0.8202 GB, free: 111.6 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.969e-05/5.011, allocations: 132.2 kB / 0.8204 GB, free: 111.5 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001194/5.012, allocations: 0.5227 MB / 0.8209 GB, free: 111.3 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 6.47e-05/5.012, allocations: 25.7 kB / 0.8209 GB, free: 111.3 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002792/5.012, allocations: 397 kB / 0.8213 GB, free: 111 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.233e-05/5.013, allocations: 79.98 kB / 0.8214 GB, free: 111 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.499e-05/5.013, allocations: 0 / 0.8214 GB, free: 111 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0001419/5.013, allocations: 374.6 kB / 0.8217 GB, free: 110.7 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004734/5.013, allocations: 144 kB / 0.8219 GB, free: 110.7 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007077/5.014, allocations: 0.538 MB / 0.8224 GB, free: 110.2 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009563/5.015, allocations: 260 kB / 0.8226 GB, free: 110.2 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.057e-06/5.015, allocations: 8.406 kB / 0.8226 GB, free: 110.2 MB / 474.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.002136/5.017, allocations: 0.637 MB / 0.8233 GB, free: 110.1 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.131e-05/5.017, allocations: 7.031 kB / 0.8233 GB, free: 110.1 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.345e-05/5.017, allocations: 14.28 kB / 0.8233 GB, free: 110.1 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.768e-05/5.017, allocations: 18.88 kB / 0.8233 GB, free: 110.1 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001944/5.019, allocations: 209 kB / 0.8235 GB, free: 110.1 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.843e-05/5.019, allocations: 26.88 kB / 0.8235 GB, free: 110.1 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001415/5.021, allocations: 37.39 kB / 0.8236 GB, free: 110.1 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.525e-05/5.021, allocations: 44.91 kB / 0.8236 GB, free: 110.1 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 60 * 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 (91): * Single equations (assignments): 91 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002253/5.021, allocations: 137.9 kB / 0.8237 GB, free: 110 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001628/5.021, allocations: 62.69 kB / 0.8238 GB, free: 110 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001103/5.022, allocations: 259.6 kB / 0.824 GB, free: 109.9 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.686e-06/5.022, allocations: 3.812 kB / 0.824 GB, free: 109.9 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.776e-06/5.022, allocations: 6.75 kB / 0.824 GB, free: 109.9 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.937e-06/5.022, allocations: 3.703 kB / 0.8241 GB, free: 109.9 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002179/5.025, allocations: 0.7811 MB / 0.8248 GB, free: 109.6 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.254e-06/5.025, allocations: 2.812 kB / 0.8248 GB, free: 109.6 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004349/5.025, allocations: 43.16 kB / 0.8249 GB, free: 109.6 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001787/5.025, allocations: 22.92 kB / 0.8249 GB, free: 109.6 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.051e-05/5.025, allocations: 11.17 kB / 0.8249 GB, free: 109.6 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005686/5.026, allocations: 0.5652 MB / 0.8254 GB, free: 109.1 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.981e-06/5.026, allocations: 2.812 kB / 0.8254 GB, free: 109.1 MB / 474.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001216/5.027, allocations: 0.5042 MB / 0.8259 GB, free: 108.8 MB / 474.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001474/5.029, allocations: 0.9745 MB / 0.8269 GB, free: 108.1 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004174/5.029, allocations: 171.6 kB / 0.8271 GB, free: 108 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001829/5.029, allocations: 6.625 kB / 0.8271 GB, free: 108 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00083/5.03, allocations: 18.69 kB / 0.8271 GB, free: 108 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.984e-05/5.03, allocations: 18.91 kB / 0.8271 GB, free: 108 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.467e-05/5.03, allocations: 14.84 kB / 0.8271 GB, free: 108 MB / 474.7 MB Notification: Performance of sort global known variables: time 0.0008496/5.031, allocations: 388.6 kB / 0.8275 GB, free: 107.9 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.003412/5.035, allocations: 218.7 kB / 0.8277 GB, free: 107.9 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 1 (volume.medium.T) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (22): * Single equations (assignments): 21 * 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 {1 2} Notification: Performance of Backend phase and start with SimCode phase: time 0.0009694/5.036, allocations: 328.5 kB / 0.828 GB, free: 107.8 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.001207/5.037, allocations: 370.3 kB / 0.8284 GB, free: 107.8 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 5.941e-06/5.037, allocations: 3.875 kB / 0.8284 GB, free: 107.8 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003353/5.037, allocations: 86.67 kB / 0.8284 GB, free: 107.8 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002465/5.04, allocations: 213 kB / 0.8286 GB, free: 107.8 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002595/5.042, allocations: 0.7668 MB / 0.8294 GB, free: 107.5 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008655/5.043, allocations: 1.001 MB / 0.8304 GB, free: 106.8 MB / 474.7 MB Notification: Performance of SimCode: time 1.723e-06/5.043, allocations: 0 / 0.8304 GB, free: 106.8 MB / 474.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cs_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.ConstantPropertyLiquidWater_res.mat does not exist to compare? outputFormat=mat