Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestExamplesVariants.BranchingDynamicPipes_StandardWater,fileNamePrefix="ModelicaTest_3_2_1_ModelicaTest_Fluid_TestExamplesVariants_BranchingDynamicPipes_StandardWater",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.234/2.234, allocations: 209.3 MB / 216.3 MB, free: 6.797 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2452/2.48, allocations: 51.03 MB / 267.3 MB, free: 5.16 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1421/2.622, allocations: 48.69 MB / 316 MB, free: 4.371 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 14.73/17.35, allocations: 6.07 GB / 6.379 GB, free: 92.13 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002932/17.35, allocations: 74.22 kB / 6.379 GB, free: 92.13 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1897 * Number of variables: 1897 Notification: Performance of Generate backend data structure: time 5.125/22.47, allocations: 0.935 GB / 7.314 GB, free: 24.89 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.3e-05/22.47, allocations: 8.219 kB / 7.314 GB, free: 24.89 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04026/22.52, allocations: 2.399 MB / 7.316 GB, free: 24.48 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03127/22.55, allocations: 5.435 MB / 7.322 GB, free: 23.46 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001307/22.55, allocations: 361.9 kB / 7.322 GB, free: 23.44 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005017/22.55, allocations: 387.1 kB / 7.322 GB, free: 23.42 MB / 474.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.04337/22.6, allocations: 13.06 MB / 7.335 GB, free: 16.68 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04363/22.64, allocations: 11.69 MB / 7.347 GB, free: 6.613 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004955/22.64, allocations: 19.88 kB / 7.347 GB, free: 6.594 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004475/22.64, allocations: 16 kB / 7.347 GB, free: 6.578 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0008099/22.65, allocations: 0.7184 MB / 7.347 GB, free: 5.969 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5332/23.18, allocations: 86.01 MB / 7.431 GB, free: 38.68 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01621/23.2, allocations: 5.343 MB / 7.437 GB, free: 38.65 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01412/23.21, allocations: 4.976 MB / 7.441 GB, free: 38.6 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01531/23.22, allocations: 5.888 MB / 7.447 GB, free: 33.9 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001721/23.23, allocations: 105.9 kB / 7.447 GB, free: 33.86 MB / 490.7 MB Notification: Performance of pre-optimization done (n=627): time 9.918e-06/23.23, allocations: 0 / 7.447 GB, free: 33.86 MB / 490.7 MB Notification: Performance of matching and sorting (n=729): time 0.1749/23.4, allocations: 32.82 MB / 7.479 GB, free: 31.78 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001487/23.4, allocations: 177.9 kB / 7.479 GB, free: 31.65 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01065/23.41, allocations: 2.515 MB / 7.482 GB, free: 31.4 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.003353/23.41, allocations: 25.7 kB / 7.482 GB, free: 31.37 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002957/23.42, allocations: 2.236 MB / 7.484 GB, free: 30.17 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.007078/23.42, allocations: 2.421 MB / 7.487 GB, free: 28.56 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003745/23.43, allocations: 0 / 7.487 GB, free: 28.56 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.001344/23.43, allocations: 0.631 MB / 7.487 GB, free: 28.23 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01969/23.45, allocations: 5.477 MB / 7.492 GB, free: 28.21 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01851/23.47, allocations: 6.938 MB / 7.499 GB, free: 26.71 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.05795/23.53, allocations: 9.329 MB / 7.508 GB, free: 26.56 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001044/23.53, allocations: 10.38 kB / 7.508 GB, free: 26.56 MB / 490.7 MB Notification: Performance of matching and sorting (n=1024) (initialization): time 0.1014/23.63, allocations: 21.88 MB / 7.53 GB, free: 22.59 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.2765/23.9, allocations: 16.17 MB / 7.546 GB, free: 53.82 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002406/23.9, allocations: 38.44 kB / 7.546 GB, free: 53.82 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.163/24.07, allocations: 22.99 MB / 7.568 GB, free: 53.19 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007332/24.07, allocations: 0.8987 MB / 7.569 GB, free: 53.19 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.09804/24.17, allocations: 22.77 MB / 7.591 GB, free: 52.4 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01702/24.19, allocations: 0.8257 MB / 7.592 GB, free: 52.4 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.004019/24.19, allocations: 373.4 kB / 7.592 GB, free: 52.4 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.815e-05/24.19, allocations: 6.125 kB / 7.592 GB, free: 52.4 MB / 490.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0912/24.29, allocations: 18.72 MB / 7.611 GB, free: 52.21 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002048/24.29, allocations: 37.06 kB / 7.611 GB, free: 52.21 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.1548/24.44, allocations: 19.74 MB / 7.63 GB, free: 51.89 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01215/24.45, allocations: 0.9866 MB / 7.631 GB, free: 51.89 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.09759/24.55, allocations: 19.06 MB / 7.649 GB, free: 51.21 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01555/24.57, allocations: 0.7941 MB / 7.65 GB, free: 51.21 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0032/24.57, allocations: 360.5 kB / 7.651 GB, free: 51.21 MB / 490.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: pipe2.vs[1]:VARIABLE(unit = "m/s" ) "mean velocities in flow segments" type: Real [5] pipe2.vs[2]:VARIABLE(unit = "m/s" ) "mean velocities in flow segments" type: Real [5] pipe2.vs[4]:VARIABLE(unit = "m/s" ) "mean velocities in flow segments" type: Real [5] Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 177 * Number of states: 0 () * Number of discrete variables: 30 (pipe4.state_b.phase,pipe4.state_a.phase,pipe3.state_b.phase,pipe3.state_a.phase,pipe1.state_b.phase,pipe1.state_a.phase,pipe1.statesFM[2].phase,pipe1.statesFM[3].phase,pipe1.statesFM[4].phase,pipe1.statesFM[5].phase,pipe1.statesFM[6].phase,pipe2.statesFM[1].phase,pipe2.statesFM[2].phase,pipe2.statesFM[3].phase,pipe2.statesFM[4].phase,pipe2.statesFM[5].phase,pipe3.statesFM[2].phase,pipe3.statesFM[3].phase,pipe3.statesFM[4].phase,pipe3.statesFM[5].phase,pipe3.statesFM[6].phase,pipe4.statesFM[2].phase,pipe4.statesFM[3].phase,pipe4.statesFM[4].phase,pipe4.statesFM[5].phase,pipe4.statesFM[6].phase,boundary4.medium.phase,boundary1.medium.phase,pipe2.state_b.phase,pipe2.state_a.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (505): * Single equations (assignments): 504 * 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 {69 451} Notification: Performance of prepare postOptimizeDAE: time 0.005043/24.57, allocations: 259.7 kB / 7.651 GB, free: 51.1 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00875/24.58, allocations: 1.418 MB / 7.652 GB, free: 51.1 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.08165/24.66, allocations: 22.93 MB / 7.675 GB, free: 42.17 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0002486/24.67, allocations: 164.2 kB / 7.675 GB, free: 42.05 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.059e-05/24.67, allocations: 7.391 kB / 7.675 GB, free: 42.05 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.05533/24.72, allocations: 18.76 MB / 7.693 GB, free: 25.5 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3729/25.09, allocations: 32.5 MB / 7.725 GB, free: 64.52 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001404/25.09, allocations: 0 / 7.725 GB, free: 64.52 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.03165/25.13, allocations: 2.519 MB / 7.727 GB, free: 64.52 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.009084/25.13, allocations: 1.853 MB / 7.729 GB, free: 64.32 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002737/25.14, allocations: 202.1 kB / 7.729 GB, free: 64.32 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03348/25.17, allocations: 35.15 MB / 7.764 GB, free: 51.33 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.686e-06/25.17, allocations: 6.75 kB / 7.764 GB, free: 51.33 MB / 0.4948 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.08539/25.26, allocations: 27.03 MB / 7.79 GB, free: 50.26 MB / 0.4948 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.1148/25.37, allocations: 36.94 MB / 7.826 GB, free: 44.68 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003148/25.37, allocations: 0.673 MB / 7.827 GB, free: 44.21 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.004334/25.38, allocations: 88.67 kB / 7.827 GB, free: 44.19 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01411/25.39, allocations: 0.6169 MB / 7.827 GB, free: 44.16 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003618/25.4, allocations: 0.6094 MB / 7.828 GB, free: 44.09 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.002227/25.4, allocations: 273.8 kB / 7.828 GB, free: 44.03 MB / 0.4948 GB Notification: Performance of sort global known variables: time 0.00525/25.4, allocations: 1.828 MB / 7.83 GB, free: 43.3 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.03712/25.44, allocations: 5.978 MB / 7.836 GB, free: 42.44 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 62 (pipe1.mediums[1].p,pipe1.mediums[1].h,pipe1.mediums[2].p,pipe1.mediums[2].h,pipe1.mediums[3].p,pipe1.mediums[3].h,pipe1.mediums[4].p,pipe1.mediums[4].h,pipe1.mediums[5].p,pipe1.mediums[5].h,pipe1.flowModel.m_flows[1],pipe1.flowModel.m_flows[2],pipe1.flowModel.m_flows[3],pipe1.flowModel.m_flows[4],pipe1.flowModel.m_flows[5],pipe1.flowModel.m_flows[6],pipe2.mediums[1].p,pipe2.mediums[1].h,pipe2.mediums[2].p,pipe2.mediums[2].h,pipe2.mediums[3].p,pipe2.mediums[3].h,pipe2.mediums[4].p,pipe2.mediums[4].h,pipe2.mediums[5].p,pipe2.mediums[5].h,pipe2.flowModel.m_flows[1],pipe2.flowModel.m_flows[2],pipe2.flowModel.m_flows[3],pipe2.flowModel.m_flows[4],pipe3.mediums[1].p,pipe3.mediums[1].h,pipe3.mediums[2].p,pipe3.mediums[2].h,pipe3.mediums[3].p,pipe3.mediums[3].h,pipe3.mediums[4].p,pipe3.mediums[4].h,pipe3.mediums[5].p,pipe3.mediums[5].h,pipe3.flowModel.m_flows[1],pipe3.flowModel.m_flows[2],pipe3.flowModel.m_flows[3],pipe3.flowModel.m_flows[4],pipe3.flowModel.m_flows[5],pipe3.flowModel.m_flows[6],pipe4.mediums[1].p,pipe4.mediums[1].h,pipe4.mediums[2].p,pipe4.mediums[2].h,pipe4.mediums[3].p,pipe4.mediums[3].h,pipe4.mediums[4].p,pipe4.mediums[4].h,pipe4.mediums[5].p,pipe4.mediums[5].h,pipe4.flowModel.m_flows[1],pipe4.flowModel.m_flows[2],pipe4.flowModel.m_flows[3],pipe4.flowModel.m_flows[4],pipe4.flowModel.m_flows[5],pipe4.flowModel.m_flows[6]) * Number of discrete variables: 79 ($cse2.phase,$cse2.region,$cse3.phase,$cse3.region,$cse4.phase,$cse4.region,$cse5.phase,$cse5.region,$cse6.phase,$cse6.region,$cse13.phase,$cse13.region,$cse16.phase,$cse16.region,$cse17.phase,$cse17.region,$cse18.phase,$cse18.region,$cse19.phase,$cse19.region,$cse20.phase,$cse20.region,$cse35.phase,$cse35.region,$cse37.phase,$cse37.region,$cse40.phase,$cse40.region,$cse41.phase,$cse41.region,$cse42.phase,$cse42.region,$cse43.phase,$cse43.region,$cse44.phase,$cse44.region,$cse51.phase,$cse51.region,$cse52.phase,$cse52.region,$cse54.phase,$cse54.region,$cse55.phase,$cse55.region,$cse56.phase,$cse56.region,$cse57.phase,$cse57.region,$cse58.phase,$cse58.region,$cse65.phase,$cse65.region,$cse66.phase,$cse66.region,$cse67.phase,$cse67.region,$cse68.phase,$cse68.region,pipe1.statesFM[2].phase,pipe1.statesFM[3].phase,pipe1.statesFM[4].phase,pipe1.statesFM[5].phase,pipe1.statesFM[6].phase,pipe2.statesFM[1].phase,pipe2.statesFM[2].phase,pipe2.statesFM[3].phase,pipe2.statesFM[4].phase,pipe2.statesFM[5].phase,pipe3.statesFM[2].phase,pipe3.statesFM[3].phase,pipe3.statesFM[4].phase,pipe3.statesFM[5].phase,pipe3.statesFM[6].phase,pipe4.statesFM[2].phase,pipe4.statesFM[3].phase,pipe4.statesFM[4].phase,pipe4.statesFM[5].phase,pipe4.statesFM[6].phase,boundary4.medium.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (769): * Single equations (assignments): 693 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 29 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 22 * Torn equation systems: 25 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 22 {1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 5 {(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 20 {1 1,1 1,1 1,1 1,1 1,1 1,1 1,1 1,1 1,1 1,1 1,1 1,1 1,1 1,1 1,1 1,1 1,1 1,1 1,1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.02235/25.46, allocations: 4.056 MB / 7.84 GB, free: 41.88 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.08799/25.55, allocations: 24.36 MB / 7.864 GB, free: 33.44 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.33e-05/25.55, allocations: 4.359 kB / 7.864 GB, free: 33.43 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.0494/25.6, allocations: 12.04 MB / 7.875 GB, free: 22.93 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.03035/25.63, allocations: 1.76 MB / 7.877 GB, free: 21.76 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4331/26.06, allocations: 35.67 MB / 7.912 GB, free: 73.34 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01843/26.08, allocations: 5.754 MB / 7.918 GB, free: 72.41 MB / 0.4948 GB Notification: Performance of SimCode: time 2.084e-06/26.08, allocations: 0 / 7.918 GB, free: 72.41 MB / 0.4948 GB