Running command: "" <> buildModelFMU(Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97_pT,fileNamePrefix="Modelica_3_2_2_cs_Modelica_Media_Examples_Tests_MediaTestModels_Water_WaterIF97_pT",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.745/1.745, allocations: 194.9 MB / 202.6 MB, free: 6.887 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.226/1.971, allocations: 46.84 MB / 249.4 MB, free: 5.375 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09145/2.062, allocations: 44.51 MB / 293.9 MB, free: 10.86 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.342/9.405, allocations: 2.573 GB / 2.861 GB, free: 84.98 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0006129/9.405, allocations: 89.09 kB / 2.861 GB, free: 84.96 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: 78 * Number of variables: 78 Notification: Performance of Generate backend data structure: time 1.692/11.1, allocations: 295.9 MB / 3.15 GB, free: 47.69 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.896e-05/11.1, allocations: 13.44 kB / 3.15 GB, free: 47.69 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001394/11.1, allocations: 86.77 kB / 3.15 GB, free: 47.67 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007177/11.1, allocations: 294.8 kB / 3.15 GB, free: 47.46 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.594e-05/11.1, allocations: 12.47 kB / 3.15 GB, free: 47.46 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.243e-05/11.1, allocations: 22.59 kB / 3.15 GB, free: 47.45 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0007746/11.1, allocations: 236 kB / 3.15 GB, free: 47.45 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009195/11.1, allocations: 351.5 kB / 3.15 GB, free: 47.31 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.229e-05/11.1, allocations: 5.375 kB / 3.15 GB, free: 47.31 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.814e-05/11.1, allocations: 0 / 3.15 GB, free: 47.31 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.494e-05/11.1, allocations: 10.5 kB / 3.151 GB, free: 47.31 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06348/11.17, allocations: 17.63 MB / 3.168 GB, free: 36.21 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004344/11.17, allocations: 131.5 kB / 3.168 GB, free: 36.2 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002395/11.17, allocations: 95.38 kB / 3.168 GB, free: 36.19 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05871/11.22, allocations: 15.22 MB / 3.183 GB, free: 26.52 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.926e-05/11.22, allocations: 33.69 kB / 3.183 GB, free: 26.48 MB / 394.7 MB Notification: Performance of pre-optimization done (n=23): time 3.216e-06/11.22, allocations: 0 / 3.183 GB, free: 26.48 MB / 394.7 MB Notification: Performance of matching and sorting (n=28): time 0.004121/11.23, allocations: 0.885 MB / 3.184 GB, free: 26.14 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.751e-05/11.23, allocations: 51.41 kB / 3.184 GB, free: 26.08 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003367/11.23, allocations: 216.1 kB / 3.184 GB, free: 25.98 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 3.526e-05/11.23, allocations: 25.7 kB / 3.184 GB, free: 25.95 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.867e-05/11.23, allocations: 190.7 kB / 3.184 GB, free: 25.8 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.442e-05/11.23, allocations: 96.91 kB / 3.184 GB, free: 25.74 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.693e-05/11.23, allocations: 0 / 3.184 GB, free: 25.74 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 7.985e-05/11.23, allocations: 336.7 kB / 3.185 GB, free: 25.42 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002825/11.23, allocations: 96.02 kB / 3.185 GB, free: 25.42 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003549/11.23, allocations: 208.8 kB / 3.185 GB, free: 25.28 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006471/11.23, allocations: 141.5 kB / 3.185 GB, free: 25.27 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.697e-06/11.23, allocations: 0 / 3.185 GB, free: 25.27 MB / 394.7 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.001978/11.23, allocations: 482.9 kB / 3.185 GB, free: 25.2 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.986e-05/11.23, allocations: 7.719 kB / 3.185 GB, free: 25.2 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.319e-05/11.23, allocations: 3.969 kB / 3.185 GB, free: 25.2 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004266/11.23, allocations: 67.44 kB / 3.186 GB, free: 25.18 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006228/11.23, allocations: 80.62 kB / 3.186 GB, free: 25.18 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002084/11.24, allocations: 1.872 MB / 3.187 GB, free: 23.46 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005764/11.24, allocations: 31.52 kB / 3.187 GB, free: 23.45 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.658e-05/11.24, allocations: 22.06 kB / 3.187 GB, free: 23.44 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 17 * Number of states: 0 () * Number of discrete variables: 3 (ambient.medium.phase,fixedMassFlowRate.medium.phase,volume.medium.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (45): * Single equations (assignments): 43 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {2 1,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.000145/11.24, allocations: 108.7 kB / 3.188 GB, free: 23.34 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003918/11.24, allocations: 93.11 kB / 3.188 GB, free: 23.32 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001907/11.24, allocations: 0.9159 MB / 3.189 GB, free: 23.21 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.77e-05/11.24, allocations: 10.66 kB / 3.189 GB, free: 23.21 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.898e-06/11.24, allocations: 0 / 3.189 GB, free: 23.21 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001392/11.24, allocations: 1.099 MB / 3.19 GB, free: 22.73 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002753/11.24, allocations: 1.474 MB / 3.191 GB, free: 22.36 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.826e-06/11.24, allocations: 0 / 3.191 GB, free: 22.36 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004331/11.24, allocations: 48.69 kB / 3.191 GB, free: 22.36 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004972/11.24, allocations: 100.5 kB / 3.191 GB, free: 22.35 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.79e-05/11.24, allocations: 8 kB / 3.191 GB, free: 22.34 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008682/11.25, allocations: 0.7091 MB / 3.192 GB, free: 21.82 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.678e-06/11.25, allocations: 3.969 kB / 3.192 GB, free: 21.82 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002212/11.25, allocations: 1.122 MB / 3.193 GB, free: 21.61 MB / 394.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.002918/11.25, allocations: 1.791 MB / 3.195 GB, free: 21.04 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001702/11.25, allocations: 105.6 kB / 3.195 GB, free: 20.93 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.887e-05/11.25, allocations: 4.688 kB / 3.195 GB, free: 20.93 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004566/11.25, allocations: 15.02 kB / 3.195 GB, free: 20.92 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.233e-05/11.25, allocations: 26.58 kB / 3.195 GB, free: 20.91 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.13e-05/11.25, allocations: 12.91 kB / 3.195 GB, free: 20.91 MB / 394.7 MB Notification: Performance of sort global known variables: time 0.0002436/11.25, allocations: 157.7 kB / 3.195 GB, free: 20.84 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.004228/11.26, allocations: 0.5814 MB / 3.196 GB, free: 20.79 MB / 394.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: 4 ($cse1.phase,$cse1.region,$cse2.phase,$cse2.region) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (28): * Single equations (assignments): 25 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * 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 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.005405/11.26, allocations: 0.9603 MB / 3.197 GB, free: 20.57 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.00161/11.26, allocations: 0.5934 MB / 3.197 GB, free: 20.43 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 5.18e-06/11.26, allocations: 0 / 3.197 GB, free: 20.43 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008177/11.26, allocations: 425.3 kB / 3.198 GB, free: 20.23 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001712/11.27, allocations: 125.9 kB / 3.198 GB, free: 20.2 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002065/11.27, allocations: 0.7825 MB / 3.198 GB, free: 19.8 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004842/11.27, allocations: 0.8575 MB / 3.199 GB, free: 19.09 MB / 394.7 MB Notification: Performance of SimCode: time 1.092e-06/11.27, allocations: 0 / 3.199 GB, free: 19.09 MB / 394.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cs_Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97_pT_res.mat does not exist to compare? outputFormat=mat