Running command: "" <> buildModelFMU(ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97OnePhase_ph,fileNamePrefix="ModelicaTest_3_2_2_cs_ModelicaTest_Media_TestsWithFluid_MediaTestModels_Water_WaterIF97OnePhase_ph",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.589/2.589, allocations: 235 MB / 242 MB, free: 9.777 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2021/2.791, allocations: 57.22 MB / 299.2 MB, free: 448 kB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.318/3.109, allocations: 54.85 MB / 354.1 MB, free: 13.39 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.457/10.57, allocations: 2.626 GB / 2.972 GB, free: 67.89 MB / 474.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003506/10.57, allocations: 86.83 kB / 2.972 GB, free: 67.85 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: 160 * Number of variables: 160 Notification: Performance of Generate backend data structure: time 3.086/13.65, allocations: 0.4886 GB / 3.46 GB, free: 50.2 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.903e-05/13.65, allocations: 13.22 kB / 3.46 GB, free: 50.2 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01552/13.67, allocations: 341.6 kB / 3.461 GB, free: 50.16 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003162/13.67, allocations: 0.6155 MB / 3.461 GB, free: 49.9 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001989/13.67, allocations: 90.81 kB / 3.461 GB, free: 49.84 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00319/13.68, allocations: 33.91 kB / 3.462 GB, free: 49.84 MB / 490.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003105/13.68, allocations: 0.6618 MB / 3.462 GB, free: 49.83 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002794/13.68, allocations: 0.8927 MB / 3.463 GB, free: 49.55 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.417e-05/13.68, allocations: 2.531 kB / 3.463 GB, free: 49.55 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001852/13.68, allocations: 3.969 kB / 3.463 GB, free: 49.55 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.357e-05/13.68, allocations: 47.73 kB / 3.463 GB, free: 49.55 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4071/14.09, allocations: 83.07 MB / 3.544 GB, free: 29.8 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006231/14.09, allocations: 235.9 kB / 3.544 GB, free: 29.78 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000387/14.09, allocations: 170 kB / 3.545 GB, free: 29.77 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1502/14.24, allocations: 34.04 MB / 3.578 GB, free: 21.84 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.363e-05/14.24, allocations: 42.47 kB / 3.578 GB, free: 21.79 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=33): time 3.516e-06/14.24, allocations: 0 / 3.578 GB, free: 21.79 MB / 0.5261 GB Notification: Performance of matching and sorting (n=37): time 0.00768/14.25, allocations: 1.348 MB / 3.579 GB, free: 20.84 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001069/14.25, allocations: 140.3 kB / 3.579 GB, free: 20.67 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001081/14.25, allocations: 0.4912 MB / 3.58 GB, free: 20.33 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0001171/14.25, allocations: 29.55 kB / 3.58 GB, free: 20.3 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003112/14.25, allocations: 380.6 kB / 3.58 GB, free: 20 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001583/14.25, allocations: 132.6 kB / 3.58 GB, free: 19.9 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.712e-05/14.25, allocations: 0 / 3.58 GB, free: 19.9 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0002242/14.25, allocations: 372.5 kB / 3.581 GB, free: 19.57 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006595/14.25, allocations: 214.8 kB / 3.581 GB, free: 19.45 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001239/14.25, allocations: 0.5846 MB / 3.581 GB, free: 18.84 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001335/14.25, allocations: 340 kB / 3.582 GB, free: 18.66 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.536e-06/14.25, allocations: 4 kB / 3.582 GB, free: 18.65 MB / 0.5261 GB Notification: Performance of matching and sorting (n=100) (initialization): time 0.004671/14.26, allocations: 1.021 MB / 3.583 GB, free: 18.04 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 3.611e-05/14.26, allocations: 12.22 kB / 3.583 GB, free: 18.03 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.739e-05/14.26, allocations: 15.84 kB / 3.583 GB, free: 18.02 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005469/14.26, allocations: 59.88 kB / 3.583 GB, free: 17.98 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004445/14.26, allocations: 277 kB / 3.583 GB, free: 17.77 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004446/14.27, allocations: 1.982 MB / 3.585 GB, free: 15.81 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002336/14.27, allocations: 47.62 kB / 3.585 GB, free: 15.77 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002555/14.27, allocations: 47.03 kB / 3.585 GB, free: 15.74 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 54 * Number of states: 0 () * Number of discrete variables: 10 (ambient.medium.phase,fixedMassFlowRate.medium.phase,volume.medium.phase,volume.regularFlow[1],volume.regularFlow[2],volume.inFlow[2],volume.inFlow[1],shortPipe.flowModel.states[2].phase,shortPipe.flowModel.states[1].phase,ambient.state.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (99): * 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): 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: 0 * Non-linear torn systems: 1 {1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0005002/14.27, allocations: 142.7 kB / 3.585 GB, free: 15.61 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001703/14.27, allocations: 267.9 kB / 3.586 GB, free: 15.46 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003952/14.28, allocations: 1.77 MB / 3.587 GB, free: 14.43 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.647e-05/14.28, allocations: 22.75 kB / 3.587 GB, free: 14.43 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.308e-06/14.28, allocations: 0 / 3.587 GB, free: 14.43 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.159e-05/14.28, allocations: 3.609 kB / 3.587 GB, free: 14.43 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005474/14.28, allocations: 2.658 MB / 3.59 GB, free: 12.91 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.004e-05/14.28, allocations: 0 / 3.59 GB, free: 12.91 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002206/14.28, allocations: 172.2 kB / 3.59 GB, free: 12.79 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005125/14.29, allocations: 73.8 kB / 3.59 GB, free: 12.74 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.097e-05/14.29, allocations: 18.53 kB / 3.59 GB, free: 12.73 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002811/14.29, allocations: 2.014 MB / 3.592 GB, free: 10.77 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.054e-06/14.29, allocations: 0 / 3.592 GB, free: 10.77 MB / 0.5261 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.004767/14.29, allocations: 2.053 MB / 3.594 GB, free: 9.562 MB / 0.5261 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.006206/14.3, allocations: 2.991 MB / 3.597 GB, free: 7.758 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007744/14.3, allocations: 232.1 kB / 3.597 GB, free: 7.578 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002487/14.3, allocations: 0 / 3.597 GB, free: 7.578 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001316/14.3, allocations: 47.22 kB / 3.597 GB, free: 7.543 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001211/14.3, allocations: 21.55 kB / 3.597 GB, free: 7.535 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.443e-05/14.3, allocations: 30.8 kB / 3.597 GB, free: 7.516 MB / 0.5261 GB Notification: Performance of sort global known variables: time 0.0008254/14.3, allocations: 359.7 kB / 3.598 GB, free: 7.281 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.008279/14.31, allocations: 1.238 MB / 3.599 GB, free: 6.242 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (volume.medium.p,volume.medium.h) * Number of discrete variables: 12 ($cse1.phase,$cse1.region,$cse2.phase,$cse2.region,$cse3.phase,$cse3.region,$cse4.phase,$cse4.region,$cse5.phase,$cse5.region,$cse6.phase,$cse6.region) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (42): * Single equations (assignments): 34 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 6 * 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: 0 * Non-linear torn systems: 1 {1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.0124/14.32, allocations: 1.723 MB / 3.601 GB, free: 4.914 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.005373/14.33, allocations: 1.126 MB / 3.602 GB, free: 4.273 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 9.097e-06/14.33, allocations: 1.25 kB / 3.602 GB, free: 4.273 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.003579/14.33, allocations: 0.9021 MB / 3.603 GB, free: 3.828 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003261/14.34, allocations: 260.5 kB / 3.603 GB, free: 3.688 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004857/14.34, allocations: 1.609 MB / 3.604 GB, free: 2.582 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.2567/14.6, allocations: 1.157 MB / 3.606 GB, free: 133.8 MB / 0.5261 GB Notification: Performance of SimCode: time 1.733e-06/14.6, allocations: 0 / 3.606 GB, free: 133.8 MB / 0.5261 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cs_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97OnePhase_ph_res.mat does not exist to compare? outputFormat=mat