Running command: "" <> buildModelFMU(ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_pT,fileNamePrefix="ModelicaTest_3_2_2_cs_ModelicaTest_Media_TestsWithFluid_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(ModelicaTest): time 2.446/2.446, allocations: 235.1 MB / 242 MB, free: 9.746 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1682/2.614, allocations: 57.2 MB / 299.2 MB, free: 432 kB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3068/2.921, allocations: 54.86 MB / 354.1 MB, free: 13.4 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.357/10.28, allocations: 2.624 GB / 2.97 GB, free: 68.84 MB / 474.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003365/10.28, allocations: 88.88 kB / 2.97 GB, free: 68.79 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.021/13.3, allocations: 497.9 MB / 3.456 GB, free: 51.34 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.599e-05/13.3, allocations: 7.156 kB / 3.456 GB, free: 51.34 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003591/13.3, allocations: 241.4 kB / 3.457 GB, free: 51.29 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002169/13.31, allocations: 0.5889 MB / 3.457 GB, free: 51.04 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001465/13.31, allocations: 93.09 kB / 3.457 GB, free: 50.98 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001658/13.31, allocations: 33.09 kB / 3.457 GB, free: 50.98 MB / 490.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002351/13.31, allocations: 0.6359 MB / 3.458 GB, free: 50.97 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002969/13.31, allocations: 0.8877 MB / 3.459 GB, free: 50.66 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.768e-05/13.31, allocations: 1.969 kB / 3.459 GB, free: 50.66 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001844/13.31, allocations: 8.406 kB / 3.459 GB, free: 50.66 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.932e-05/13.31, allocations: 45.64 kB / 3.459 GB, free: 50.66 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2616/13.57, allocations: 67.61 MB / 3.525 GB, free: 24.18 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006272/13.57, allocations: 226.5 kB / 3.525 GB, free: 24.16 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003985/13.57, allocations: 152 kB / 3.525 GB, free: 24.16 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.2824/13.86, allocations: 53.51 MB / 3.578 GB, free: 19.77 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.658e-05/13.86, allocations: 42.28 kB / 3.578 GB, free: 19.72 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=31): time 3.327e-06/13.86, allocations: 0 / 3.578 GB, free: 19.72 MB / 0.5261 GB Notification: Performance of matching and sorting (n=36): time 0.006383/13.86, allocations: 1.348 MB / 3.579 GB, free: 18.77 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001498/13.86, allocations: 132.5 kB / 3.579 GB, free: 18.61 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001084/13.86, allocations: 0.5064 MB / 3.58 GB, free: 18.26 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 8.088e-05/13.87, allocations: 29.7 kB / 3.58 GB, free: 18.22 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.000261/13.87, allocations: 382.8 kB / 3.58 GB, free: 17.92 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001444/13.87, allocations: 129.5 kB / 3.58 GB, free: 17.82 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.731e-05/13.87, allocations: 0 / 3.58 GB, free: 17.82 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0002188/13.87, allocations: 374.5 kB / 3.58 GB, free: 17.5 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006604/13.87, allocations: 227.6 kB / 3.581 GB, free: 17.38 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009101/13.87, allocations: 0.6057 MB / 3.581 GB, free: 16.72 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001336/13.87, allocations: 355.5 kB / 3.582 GB, free: 16.54 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.017e-06/13.87, allocations: 4 kB / 3.582 GB, free: 16.53 MB / 0.5261 GB Notification: Performance of matching and sorting (n=100) (initialization): time 0.003956/13.87, allocations: 1.039 MB / 3.583 GB, free: 15.91 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 2.27e-05/13.87, allocations: 10.41 kB / 3.583 GB, free: 15.91 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.207e-05/13.87, allocations: 15.69 kB / 3.583 GB, free: 15.89 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004376/13.87, allocations: 75.12 kB / 3.583 GB, free: 15.84 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002849/13.88, allocations: 280.5 kB / 3.583 GB, free: 15.63 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003431/13.88, allocations: 2.041 MB / 3.585 GB, free: 13.65 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0015/13.88, allocations: 51.64 kB / 3.585 GB, free: 13.61 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001288/13.88, allocations: 43.38 kB / 3.585 GB, free: 13.57 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 57 * Number of states: 0 () * Number of discrete variables: 10 (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,ambient.medium.phase,fixedMassFlowRate.medium.phase,volume.medium.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (98): * Single equations (assignments): 96 * 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 {2 1} Notification: Performance of prepare postOptimizeDAE: time 0.0003319/13.88, allocations: 150.8 kB / 3.585 GB, free: 13.44 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009885/13.88, allocations: 205.5 kB / 3.585 GB, free: 13.32 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003801/13.89, allocations: 1.671 MB / 3.587 GB, free: 12.36 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.358e-05/13.89, allocations: 20.69 kB / 3.587 GB, free: 12.35 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.36e-06/13.89, allocations: 3.562 kB / 3.587 GB, free: 12.35 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.394e-05/13.89, allocations: 0 / 3.587 GB, free: 12.35 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005309/13.89, allocations: 2.519 MB / 3.59 GB, free: 10.92 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.001e-05/13.89, allocations: 0 / 3.59 GB, free: 10.92 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002065/13.89, allocations: 166 kB / 3.59 GB, free: 10.79 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005976/13.89, allocations: 116.6 kB / 3.59 GB, free: 10.73 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.084e-05/13.89, allocations: 8 kB / 3.59 GB, free: 10.72 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.274/14.17, allocations: 2.124 MB / 3.592 GB, free: 135.7 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.376e-05/14.17, allocations: 2.719 kB / 3.592 GB, free: 135.7 MB / 0.5261 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.006404/14.18, allocations: 1.962 MB / 3.594 GB, free: 135.5 MB / 0.5261 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.007073/14.18, allocations: 2.898 MB / 3.597 GB, free: 135 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006544/14.18, allocations: 210.9 kB / 3.597 GB, free: 134.9 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000192/14.18, allocations: 2.938 kB / 3.597 GB, free: 134.9 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009584/14.18, allocations: 27.88 kB / 3.597 GB, free: 134.9 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001475/14.18, allocations: 28.23 kB / 3.597 GB, free: 134.9 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001043/14.18, allocations: 18.42 kB / 3.597 GB, free: 134.9 MB / 0.5261 GB Notification: Performance of sort global known variables: time 0.001238/14.19, allocations: 367.7 kB / 3.597 GB, free: 134.8 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.01293/14.2, allocations: 1.236 MB / 3.598 GB, free: 134.8 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.T) * Number of discrete variables: 10 ($cse1.phase,$cse1.region,$cse2.phase,$cse2.region,$cse3.phase,$cse3.region,$cse4.phase,$cse4.region,$cse5.phase,$cse5.region) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (39): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 5 * 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 {2 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.01261/14.21, allocations: 1.737 MB / 3.6 GB, free: 134.7 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.00445/14.22, allocations: 1.105 MB / 3.601 GB, free: 134.7 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 7.885e-06/14.22, allocations: 2.281 kB / 3.601 GB, free: 134.7 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.003199/14.22, allocations: 0.8512 MB / 3.602 GB, free: 134.7 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003001/14.22, allocations: 264.8 kB / 3.602 GB, free: 134.7 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004661/14.23, allocations: 1.544 MB / 3.604 GB, free: 134.4 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001077/14.23, allocations: 1.13 MB / 3.605 GB, free: 133.7 MB / 0.5261 GB Notification: Performance of SimCode: time 1.433e-06/14.23, allocations: 0 / 3.605 GB, free: 133.7 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.WaterIF97_pT_res.mat does not exist to compare? outputFormat=mat