Running command: "" <> buildModelFMU(Modelica.Media.Examples.WaterIF97,fileNamePrefix="Modelica_3_2_2_cs_Modelica_Media_Examples_WaterIF97",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.819/1.819, allocations: 194.9 MB / 202.6 MB, free: 6.887 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2679/2.087, allocations: 46.81 MB / 249.4 MB, free: 5.332 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09623/2.184, allocations: 44.5 MB / 293.9 MB, free: 10.88 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.019/8.202, allocations: 2.614 GB / 2.901 GB, free: 46.66 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002384/8.203, allocations: 62.34 kB / 2.901 GB, free: 46.63 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: 34 * Number of variables: 34 Notification: Performance of Generate backend data structure: time 0.7184/8.921, allocations: 105.2 MB / 3.003 GB, free: 74.62 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.616e-05/8.921, allocations: 11.75 kB / 3.003 GB, free: 74.62 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008563/8.922, allocations: 50.58 kB / 3.003 GB, free: 74.62 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003403/8.922, allocations: 222.8 kB / 3.004 GB, free: 74.4 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.452e-05/8.922, allocations: 6.75 kB / 3.004 GB, free: 74.4 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.233e-05/8.923, allocations: 11.88 kB / 3.004 GB, free: 74.4 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0007174/8.923, allocations: 211.3 kB / 3.004 GB, free: 74.32 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004225/8.924, allocations: 201.1 kB / 3.004 GB, free: 74.19 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.082e-05/8.924, allocations: 7.828 kB / 3.004 GB, free: 74.19 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.882e-05/8.924, allocations: 4 kB / 3.004 GB, free: 74.19 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.937e-06/8.924, allocations: 3.875 kB / 3.004 GB, free: 74.19 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001895/8.926, allocations: 1.176 MB / 3.005 GB, free: 73.12 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002696/8.926, allocations: 126.8 kB / 3.005 GB, free: 73.03 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002123/8.926, allocations: 87.7 kB / 3.005 GB, free: 72.97 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1854/9.112, allocations: 47.21 MB / 3.052 GB, free: 34.68 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.675e-05/9.112, allocations: 46.25 kB / 3.052 GB, free: 34.64 MB / 394.7 MB Notification: Performance of pre-optimization done (n=23): time 3.025e-06/9.112, allocations: 0 / 3.052 GB, free: 34.64 MB / 394.7 MB Notification: Performance of matching and sorting (n=33): time 0.006376/9.118, allocations: 1.078 MB / 3.053 GB, free: 33.65 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.872e-05/9.118, allocations: 114 kB / 3.053 GB, free: 33.52 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001023/9.118, allocations: 111.6 kB / 3.053 GB, free: 33.4 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 4.351e-05/9.118, allocations: 25.7 kB / 3.053 GB, free: 33.37 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.46e-05/9.118, allocations: 106.9 kB / 3.053 GB, free: 33.27 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000107/9.118, allocations: 113.8 kB / 3.053 GB, free: 33.16 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.963e-05/9.119, allocations: 0 / 3.053 GB, free: 33.16 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 7.087e-05/9.119, allocations: 323 kB / 3.053 GB, free: 32.84 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003445/9.119, allocations: 110.2 kB / 3.054 GB, free: 32.74 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003754/9.119, allocations: 174.5 kB / 3.054 GB, free: 32.55 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006285/9.12, allocations: 124.1 kB / 3.054 GB, free: 32.44 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.625e-06/9.12, allocations: 0 / 3.054 GB, free: 32.44 MB / 394.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001868/9.122, allocations: 437.3 kB / 3.054 GB, free: 32.06 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.559e-05/9.122, allocations: 4 kB / 3.054 GB, free: 32.05 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.055e-05/9.122, allocations: 7.891 kB / 3.054 GB, free: 32.05 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002757/9.122, allocations: 28.61 kB / 3.054 GB, free: 32.02 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001048/9.123, allocations: 103 kB / 3.054 GB, free: 31.94 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004729/9.124, allocations: 0.5533 MB / 3.055 GB, free: 31.37 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006206/9.124, allocations: 26.31 kB / 3.055 GB, free: 31.35 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.589e-05/9.125, allocations: 19.8 kB / 3.055 GB, free: 31.33 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 3 (medium.phase,state.phase,state2.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (40): * Single equations (assignments): 39 * 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 1} Notification: Performance of prepare postOptimizeDAE: time 0.0001421/9.125, allocations: 108.8 kB / 3.055 GB, free: 31.22 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005438/9.125, allocations: 94.67 kB / 3.055 GB, free: 31.15 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003143/9.128, allocations: 1.37 MB / 3.057 GB, free: 29.91 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.609e-05/9.128, allocations: 27.48 kB / 3.057 GB, free: 29.89 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.752e-06/9.128, allocations: 0 / 3.057 GB, free: 29.89 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.989e-06/9.128, allocations: 3.797 kB / 3.057 GB, free: 29.89 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00367/9.132, allocations: 1.703 MB / 3.058 GB, free: 28.33 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.678e-06/9.132, allocations: 3.906 kB / 3.058 GB, free: 28.32 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009816/9.133, allocations: 83.22 kB / 3.058 GB, free: 28.26 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004096/9.134, allocations: 64.92 kB / 3.058 GB, free: 28.21 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.171e-05/9.134, allocations: 11.66 kB / 3.058 GB, free: 28.2 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004769/9.134, allocations: 0.6159 MB / 3.059 GB, free: 27.57 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.42e-06/9.134, allocations: 4.031 kB / 3.059 GB, free: 27.57 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003046/9.137, allocations: 1.792 MB / 3.061 GB, free: 25.84 MB / 394.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.003834/9.141, allocations: 2.575 MB / 3.063 GB, free: 23.34 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.967e-05/9.141, allocations: 109 kB / 3.063 GB, free: 23.22 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.086e-05/9.141, allocations: 0 / 3.063 GB, free: 23.22 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008388/9.142, allocations: 35.38 kB / 3.063 GB, free: 23.2 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.513e-05/9.142, allocations: 30.27 kB / 3.063 GB, free: 23.18 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.391e-05/9.142, allocations: 27.88 kB / 3.063 GB, free: 23.15 MB / 394.7 MB Notification: Performance of sort global known variables: time 5.295e-05/9.142, allocations: 86.84 kB / 3.063 GB, free: 23.07 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.006557/9.149, allocations: 1.052 MB / 3.065 GB, free: 22.04 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 3 (medium.p,medium.h,V) * Number of discrete variables: 9 ($cse2.phase,$cse2.region,$cse3.phase,$cse3.region,$cse4.phase,$cse4.region,medium.phase,$cse1.phase,$cse1.region) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (36): * Single equations (assignments): 31 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * 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 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.009784/9.159, allocations: 1.351 MB / 3.066 GB, free: 20.85 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.00173/9.161, allocations: 0.6738 MB / 3.066 GB, free: 20.22 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 5.25e-06/9.161, allocations: 0 / 3.066 GB, free: 20.22 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001089/9.162, allocations: 0.6124 MB / 3.067 GB, free: 19.65 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00112/9.163, allocations: 63.89 kB / 3.067 GB, free: 19.6 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003248/9.166, allocations: 1.011 MB / 3.068 GB, free: 18.65 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006072/9.167, allocations: 0.8474 MB / 3.069 GB, free: 17.83 MB / 394.7 MB Notification: Performance of SimCode: time 1.593e-06/9.167, allocations: 4 kB / 3.069 GB, free: 17.83 MB / 394.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cs_Modelica.Media.Examples.WaterIF97_res.mat does not exist to compare? outputFormat=mat