Running command: "" <> buildModelFMU(ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_pT,fileNamePrefix="ModelicaTest_3_2_2_ModelicaTest_Media_TestsWithFluid_MediaTestModels_Water_WaterIF97_pT",fmuType="me",version="2.0",platforms={"static"}) [: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.1/2.1, allocations: 235 MB / 241.9 MB, free: 9.785 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1821/2.282, allocations: 57.21 MB / 299.1 MB, free: 464 kB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3436/2.626, allocations: 54.84 MB / 354 MB, free: 13.45 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.644/9.27, allocations: 2.624 GB / 2.97 GB, free: 68.11 MB / 474.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003195/9.27, allocations: 93.89 kB / 2.97 GB, free: 68.05 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.665/11.93, allocations: 497.9 MB / 3.456 GB, free: 48.16 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.705e-05/11.93, allocations: 11.06 kB / 3.456 GB, free: 48.16 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005216/11.94, allocations: 240.3 kB / 3.457 GB, free: 48.12 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003176/11.94, allocations: 0.5977 MB / 3.457 GB, free: 47.86 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000197/11.94, allocations: 84.97 kB / 3.457 GB, free: 47.8 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002607/11.94, allocations: 35.12 kB / 3.457 GB, free: 47.8 MB / 490.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002888/11.95, allocations: 0.6395 MB / 3.458 GB, free: 47.8 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00343/11.95, allocations: 0.8807 MB / 3.459 GB, free: 47.48 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.247e-05/11.95, allocations: 9.844 kB / 3.459 GB, free: 47.48 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000194/11.95, allocations: 3.875 kB / 3.459 GB, free: 47.48 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.821e-05/11.95, allocations: 48.17 kB / 3.459 GB, free: 47.48 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2437/12.19, allocations: 67.61 MB / 3.525 GB, free: 20.97 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007826/12.2, allocations: 222.6 kB / 3.525 GB, free: 20.95 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005797/12.2, allocations: 151 kB / 3.525 GB, free: 20.94 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.2145/12.41, allocations: 53.5 MB / 3.577 GB, free: 16.28 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.399e-05/12.41, allocations: 37.41 kB / 3.578 GB, free: 16.24 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=31): time 3.497e-06/12.41, allocations: 4 kB / 3.578 GB, free: 16.23 MB / 0.5261 GB Notification: Performance of matching and sorting (n=36): time 0.005748/12.42, allocations: 1.352 MB / 3.579 GB, free: 15.28 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.364e-05/12.42, allocations: 132.5 kB / 3.579 GB, free: 15.12 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000964/12.42, allocations: 0.5052 MB / 3.579 GB, free: 14.77 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0001018/12.42, allocations: 25.7 kB / 3.58 GB, free: 14.74 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002494/12.42, allocations: 387.1 kB / 3.58 GB, free: 14.44 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001514/12.42, allocations: 128.7 kB / 3.58 GB, free: 14.34 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.222e-05/12.42, allocations: 0 / 3.58 GB, free: 14.34 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0001954/12.42, allocations: 372.6 kB / 3.58 GB, free: 14.01 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005774/12.42, allocations: 236.1 kB / 3.581 GB, free: 13.89 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007738/12.42, allocations: 0.5994 MB / 3.581 GB, free: 13.24 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001221/12.42, allocations: 353 kB / 3.581 GB, free: 13.05 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.335e-06/12.42, allocations: 4 kB / 3.582 GB, free: 13.05 MB / 0.5261 GB Notification: Performance of matching and sorting (n=100) (initialization): time 0.003598/12.42, allocations: 1.047 MB / 3.583 GB, free: 12.43 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 2.399e-05/12.42, allocations: 5.406 kB / 3.583 GB, free: 12.42 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.398e-05/12.42, allocations: 12 kB / 3.583 GB, free: 12.41 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003901/12.43, allocations: 76.3 kB / 3.583 GB, free: 12.36 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00243/12.43, allocations: 277.5 kB / 3.583 GB, free: 12.15 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003244/12.43, allocations: 2.041 MB / 3.585 GB, free: 26.16 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001421/12.43, allocations: 50.83 kB / 3.585 GB, free: 26.12 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001486/12.43, allocations: 44.94 kB / 3.585 GB, free: 26.09 MB / 0.5417 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.0003077/12.43, allocations: 152.8 kB / 3.585 GB, free: 25.96 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000867/12.43, allocations: 204.5 kB / 3.585 GB, free: 25.83 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003263/12.44, allocations: 1.675 MB / 3.587 GB, free: 24.88 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.827e-05/12.44, allocations: 20.8 kB / 3.587 GB, free: 24.87 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.14e-06/12.44, allocations: 4 kB / 3.587 GB, free: 24.87 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.166e-05/12.44, allocations: 3 kB / 3.587 GB, free: 24.87 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004478/12.44, allocations: 2.516 MB / 3.589 GB, free: 23.44 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.307e-06/12.44, allocations: 4 kB / 3.589 GB, free: 23.43 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0018/12.44, allocations: 169.4 kB / 3.59 GB, free: 23.31 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005511/12.44, allocations: 115.4 kB / 3.59 GB, free: 23.25 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.287e-05/12.44, allocations: 4 kB / 3.59 GB, free: 23.25 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002763/12.45, allocations: 2.125 MB / 3.592 GB, free: 21.23 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.58e-06/12.45, allocations: 3.562 kB / 3.592 GB, free: 21.23 MB / 0.5417 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003677/12.45, allocations: 1.961 MB / 3.594 GB, free: 20.09 MB / 0.5417 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.00487/12.46, allocations: 2.891 MB / 3.597 GB, free: 18.36 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007031/12.46, allocations: 219.2 kB / 3.597 GB, free: 18.18 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001762/12.46, allocations: 0 / 3.597 GB, free: 18.18 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007616/12.46, allocations: 23.92 kB / 3.597 GB, free: 18.16 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.502e-05/12.46, allocations: 22.86 kB / 3.597 GB, free: 18.15 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.454e-05/12.46, allocations: 14.38 kB / 3.597 GB, free: 18.14 MB / 0.5417 GB Notification: Performance of sort global known variables: time 0.0007046/12.46, allocations: 368.5 kB / 3.597 GB, free: 17.91 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.007392/12.47, allocations: 1.249 MB / 3.598 GB, free: 16.87 MB / 0.5417 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.01097/12.48, allocations: 1.737 MB / 3.6 GB, free: 15.52 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.005188/12.48, allocations: 1.107 MB / 3.601 GB, free: 14.89 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 1.031e-05/12.48, allocations: 4 kB / 3.601 GB, free: 14.89 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.002709/12.48, allocations: 0.8659 MB / 3.602 GB, free: 14.46 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002578/12.49, allocations: 251.9 kB / 3.602 GB, free: 14.32 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003881/12.49, allocations: 1.534 MB / 3.604 GB, free: 13.25 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0012/12.49, allocations: 1.139 MB / 3.605 GB, free: 12.26 MB / 0.5417 GB Notification: Performance of SimCode: time 2.425e-06/12.49, allocations: 0 / 3.605 GB, free: 12.26 MB / 0.5417 GB