Running command: "" <> buildModelFMU(ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_ph,fileNamePrefix="ModelicaTest_3_2_2_cs_ModelicaTest_Media_TestsWithFluid_MediaTestModels_Water_WaterIF97_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.486/2.486, allocations: 235 MB / 242 MB, free: 9.668 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1885/2.675, allocations: 57.2 MB / 299.2 MB, free: 348 kB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.336/3.011, allocations: 54.87 MB / 354.1 MB, free: 13.39 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.306/10.32, allocations: 2.626 GB / 2.972 GB, free: 66.93 MB / 474.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000451/10.32, allocations: 92.11 kB / 2.972 GB, free: 66.88 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 2.966/13.28, allocations: 0.4886 GB / 3.46 GB, free: 50.31 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.641e-05/13.28, allocations: 7.938 kB / 3.46 GB, free: 50.31 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00675/13.29, allocations: 348.5 kB / 3.461 GB, free: 50.27 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01124/13.3, allocations: 0.6008 MB / 3.461 GB, free: 50.02 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002438/13.3, allocations: 101.9 kB / 3.461 GB, free: 49.95 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002409/13.3, allocations: 32.34 kB / 3.461 GB, free: 49.95 MB / 490.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.007488/13.31, allocations: 0.7156 MB / 3.462 GB, free: 49.95 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007623/13.32, allocations: 0.8978 MB / 3.463 GB, free: 49.66 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.948e-05/13.32, allocations: 3.656 kB / 3.463 GB, free: 49.66 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002011/13.32, allocations: 3.875 kB / 3.463 GB, free: 49.66 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001105/13.32, allocations: 49.69 kB / 3.463 GB, free: 49.66 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.257/13.57, allocations: 52.85 MB / 3.515 GB, free: 32.72 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007946/13.58, allocations: 252.6 kB / 3.515 GB, free: 32.7 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005202/13.58, allocations: 188.5 kB / 3.515 GB, free: 32.7 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01308/13.59, allocations: 3.691 MB / 3.519 GB, free: 29.97 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.155e-05/13.59, allocations: 38.59 kB / 3.519 GB, free: 29.93 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=37): time 3.346e-06/13.59, allocations: 0 / 3.519 GB, free: 29.93 MB / 0.4948 GB Notification: Performance of matching and sorting (n=41): time 0.007413/13.6, allocations: 1.448 MB / 3.52 GB, free: 29.52 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001119/13.6, allocations: 136.4 kB / 3.52 GB, free: 29.36 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001087/13.6, allocations: 499.9 kB / 3.521 GB, free: 29.23 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 8.901e-05/13.6, allocations: 25.7 kB / 3.521 GB, free: 29.2 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002607/13.6, allocations: 372.7 kB / 3.521 GB, free: 28.95 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001723/13.6, allocations: 144.8 kB / 3.521 GB, free: 28.85 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.724e-05/13.6, allocations: 3.562 kB / 3.521 GB, free: 28.85 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0002732/13.6, allocations: 368 kB / 3.522 GB, free: 28.54 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007576/13.6, allocations: 247.4 kB / 3.522 GB, free: 28.54 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009819/13.6, allocations: 0.5869 MB / 3.522 GB, free: 28.09 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001391/13.6, allocations: 350.9 kB / 3.523 GB, free: 28.07 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.706e-06/13.6, allocations: 3.938 kB / 3.523 GB, free: 28.07 MB / 0.4948 GB Notification: Performance of matching and sorting (n=100) (initialization): time 0.004881/13.61, allocations: 1.116 MB / 3.524 GB, free: 27.98 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 2.474e-05/13.61, allocations: 7.25 kB / 3.524 GB, free: 27.98 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.481e-05/13.61, allocations: 13.44 kB / 3.524 GB, free: 27.98 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004022/13.61, allocations: 69.52 kB / 3.524 GB, free: 27.97 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003379/13.61, allocations: 311.8 kB / 3.524 GB, free: 27.97 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003224/13.61, allocations: 1.985 MB / 3.526 GB, free: 26.19 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002094/13.62, allocations: 84.33 kB / 3.526 GB, free: 26.18 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002068/13.62, allocations: 48.41 kB / 3.526 GB, free: 26.18 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 51 * Number of states: 0 () * Number of discrete variables: 10 (volume.regularFlow[1],volume.regularFlow[2],volume.heatTransfer.states[1].phase,fixedMassFlowRate.medium.phase,ambient.medium.phase,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.0003714/13.62, allocations: 149.9 kB / 3.526 GB, free: 26.05 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001436/13.62, allocations: 268.7 kB / 3.527 GB, free: 26.02 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004147/13.62, allocations: 1.805 MB / 3.529 GB, free: 25.87 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.011e-05/13.62, allocations: 19.88 kB / 3.529 GB, free: 25.87 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.408e-06/13.62, allocations: 3.031 kB / 3.529 GB, free: 25.87 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.354e-05/13.62, allocations: 2.766 kB / 3.529 GB, free: 25.87 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006253/13.63, allocations: 2.752 MB / 3.531 GB, free: 25.45 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.161e-05/13.63, allocations: 6.906 kB / 3.531 GB, free: 25.45 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002518/13.63, allocations: 195 kB / 3.531 GB, free: 25.45 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005181/13.63, allocations: 73.56 kB / 3.531 GB, free: 25.44 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.531e-05/13.63, allocations: 13.27 kB / 3.531 GB, free: 25.44 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002915/13.64, allocations: 2.018 MB / 3.533 GB, free: 23.64 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.743e-06/13.64, allocations: 3.625 kB / 3.533 GB, free: 23.64 MB / 0.4948 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.005432/13.64, allocations: 2.157 MB / 3.536 GB, free: 23.37 MB / 0.4948 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.006914/13.65, allocations: 3.138 MB / 3.539 GB, free: 22.7 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007367/13.65, allocations: 232.6 kB / 3.539 GB, free: 22.56 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002052/13.65, allocations: 7.156 kB / 3.539 GB, free: 22.56 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001206/13.65, allocations: 49.52 kB / 3.539 GB, free: 22.55 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000204/13.65, allocations: 43.17 kB / 3.539 GB, free: 22.55 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001036/13.65, allocations: 22.83 kB / 3.539 GB, free: 22.55 MB / 0.4948 GB Notification: Performance of sort global known variables: time 0.000862/13.65, allocations: 356.6 kB / 3.539 GB, free: 22.46 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.008711/13.66, allocations: 1.248 MB / 3.541 GB, free: 22.3 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (volume.medium.p,volume.medium.h) * Number of discrete variables: 14 ($cse1.phase,$cse1.region,$cse2.phase,$cse2.region,$cse3.phase,$cse3.region,$cse4.phase,$cse4.region,$cse5.phase,$cse5.region,$cse6.phase,$cse6.region,volume.heatTransfer.states[1].phase,fixedMassFlowRate.medium.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (46): * Single equations (assignments): 38 * 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.01253/13.67, allocations: 1.711 MB / 3.542 GB, free: 21.95 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.004438/13.68, allocations: 1.166 MB / 3.543 GB, free: 21.93 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 8.827e-06/13.68, allocations: 0 / 3.543 GB, free: 21.93 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.003462/13.68, allocations: 0.9316 MB / 3.544 GB, free: 21.93 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003259/13.68, allocations: 269.2 kB / 3.545 GB, free: 21.91 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004949/13.69, allocations: 1.659 MB / 3.546 GB, free: 21.52 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001462/13.69, allocations: 1.158 MB / 3.547 GB, free: 20.8 MB / 0.4948 GB Notification: Performance of SimCode: time 2.295e-06/13.69, allocations: 5.188 kB / 3.547 GB, free: 20.8 MB / 0.4948 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cs_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_ph_res.mat does not exist to compare? outputFormat=mat