Running command: "" <> buildModelFMU(ModelicaTestOverdetermined.ConsistentInitialization.Fluid.DynamicPipeLumpedPressureInitialization,fileNamePrefix="ModelicaTestOverdetermined_3_2_2_ModelicaTestOverdetermined_ConsistentInitialization_Fluid_DynamicPipeLumpedPressureInitialization",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(ModelicaTestOverdetermined): time 1.638/1.638, allocations: 195.4 MB / 202.4 MB, free: 13.84 MB / 178.8 MB Notification: Performance of FrontEnd - loaded program: time 0.2267/1.865, allocations: 46.98 MB / 249.4 MB, free: 13.63 MB / 210.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1102/1.975, allocations: 44.66 MB / 294 MB, free: 0.8906 MB / 242.8 MB Notification: Performance of FrontEnd - scodeFlatten: time 5.83/7.805, allocations: 2.654 GB / 2.941 GB, free: 68.8 MB / 402.8 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002719/7.806, allocations: 74.11 kB / 2.941 GB, free: 68.8 MB / 402.8 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 369 * Number of variables: 369 Notification: Performance of Generate backend data structure: time 2.279/10.09, allocations: 493.3 MB / 3.423 GB, free: 37.45 MB / 418.8 MB Notification: Performance of prepare preOptimizeDAE: time 4.445e-05/10.09, allocations: 8.062 kB / 3.423 GB, free: 37.45 MB / 418.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007539/10.09, allocations: 0.6096 MB / 3.424 GB, free: 37.36 MB / 418.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006468/10.1, allocations: 1.476 MB / 3.425 GB, free: 37 MB / 418.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000235/10.1, allocations: 78.22 kB / 3.425 GB, free: 37 MB / 418.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006113/10.1, allocations: 76.84 kB / 3.425 GB, free: 37 MB / 418.8 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.006337/10.11, allocations: 2.062 MB / 3.427 GB, free: 37 MB / 418.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005577/10.11, allocations: 2.09 MB / 3.429 GB, free: 36.59 MB / 418.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.235e-05/10.11, allocations: 6.031 kB / 3.429 GB, free: 36.59 MB / 418.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002765/10.11, allocations: 3.969 kB / 3.429 GB, free: 36.59 MB / 418.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001414/10.11, allocations: 118.1 kB / 3.43 GB, free: 36.58 MB / 418.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.7164/10.83, allocations: 134.2 MB / 3.561 GB, free: 112.9 MB / 466.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002864/10.83, allocations: 0.8711 MB / 3.561 GB, free: 112.9 MB / 466.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001811/10.83, allocations: 0.7748 MB / 3.562 GB, free: 112.9 MB / 466.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06325/10.9, allocations: 16.71 MB / 3.579 GB, free: 102.7 MB / 466.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002237/10.9, allocations: 0.8803 MB / 3.579 GB, free: 102.6 MB / 466.8 MB Notification: Performance of pre-optimization done (n=112): time 4.689e-06/10.9, allocations: 0 / 3.579 GB, free: 102.6 MB / 466.8 MB Notification: Performance of matching and sorting (n=136): time 0.02764/10.93, allocations: 6.216 MB / 3.585 GB, free: 101.9 MB / 466.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.511e-05/10.93, allocations: 196.8 kB / 3.586 GB, free: 101.7 MB / 466.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002935/10.93, allocations: 0.8529 MB / 3.587 GB, free: 101.5 MB / 466.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0005603/10.93, allocations: 25.7 kB / 3.587 GB, free: 101.5 MB / 466.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.001012/10.93, allocations: 0.6036 MB / 3.587 GB, free: 101.2 MB / 466.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.001239/10.93, allocations: 464 kB / 3.588 GB, free: 100.9 MB / 466.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003417/10.93, allocations: 0 / 3.588 GB, free: 100.9 MB / 466.8 MB Notification: Performance of setup shared object (initialization): time 0.0003931/10.93, allocations: 434.6 kB / 3.588 GB, free: 100.6 MB / 466.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003869/10.94, allocations: 0.9497 MB / 3.589 GB, free: 100.6 MB / 466.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004326/10.94, allocations: 1.435 MB / 3.59 GB, free: 100 MB / 466.8 MB Notification: The following equation is consistent and got removed from the initialization problem: $DER.pipe.mediums[2].p = 0.0 Notification: The following equation is consistent and got removed from the initialization problem: $DER.pipe.mediums[3].p = 0.0 Notification: The following equation is consistent and got removed from the initialization problem: $DER.pipe.mediums[4].p = 0.0 Notification: The following equation is consistent and got removed from the initialization problem: $DER.pipe.mediums[1].p = 0.0 Notification: Performance of analyzeInitialSystem (initialization): time 0.03361/10.98, allocations: 4.45 MB / 3.595 GB, free: 99.61 MB / 466.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.462e-05/10.98, allocations: 3.656 kB / 3.595 GB, free: 99.61 MB / 466.8 MB Notification: Performance of matching and sorting (n=230) (initialization): time 0.0227/11, allocations: 4.696 MB / 3.599 GB, free: 99.48 MB / 466.8 MB Notification: Performance of prepare postOptimizeDAE: time 0.001415/11, allocations: 5.655 MB / 3.605 GB, free: 93.59 MB / 466.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.632e-05/11, allocations: 16.31 kB / 3.605 GB, free: 93.59 MB / 466.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01619/11.02, allocations: 2.124 MB / 3.607 GB, free: 93.57 MB / 466.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002061/11.02, allocations: 283.2 kB / 3.607 GB, free: 93.57 MB / 466.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00987/11.03, allocations: 3.714 MB / 3.611 GB, free: 93 MB / 466.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003611/11.03, allocations: 195.5 kB / 3.611 GB, free: 92.98 MB / 466.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003871/11.03, allocations: 95.64 kB / 3.611 GB, free: 92.98 MB / 466.8 MB Notification: Performance of prepare postOptimizeDAE: time 1.495e-05/11.03, allocations: 4.875 kB / 3.611 GB, free: 92.98 MB / 466.8 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.02088/11.05, allocations: 4.024 MB / 3.615 GB, free: 92.95 MB / 466.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.743e-05/11.05, allocations: 21.83 kB / 3.615 GB, free: 92.95 MB / 466.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.012/11.07, allocations: 1.787 MB / 3.617 GB, free: 92.93 MB / 466.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002177/11.07, allocations: 299.7 kB / 3.617 GB, free: 92.93 MB / 466.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007468/11.08, allocations: 3.251 MB / 3.62 GB, free: 92.37 MB / 466.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003101/11.08, allocations: 174 kB / 3.62 GB, free: 92.36 MB / 466.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002896/11.08, allocations: 93.92 kB / 3.62 GB, free: 92.36 MB / 466.8 MB Warning: Assuming fixed start value for the following 1 variables: m_flow_initial:DISCRETE(unit = "kg/s" fixed = false ) type: Real Warning: Assuming redundant initial conditions for the following 4 initial equations: $DER.pipe.mediums[2].p = 0.0 $DER.pipe.mediums[3].p = 0.0 $DER.pipe.mediums[4].p = 0.0 $DER.pipe.mediums[1].p = 0.0 Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 65 * Number of states: 0 () * Number of discrete variables: 17 ($PRE.m_flow_initial,m_flow_initial,$whenCondition2,$whenCondition1,valve.state_b.phase,valve.state_a.phase,pipe.state_a.phase,pipe.mediums[1].phase,pipe.mediums[2].phase,pipe.mediums[4].phase,pipe.mediums[5].phase,pipe.statesFM[2].phase,source.medium.phase,sink.state.phase,sink.medium.phase,pipe.state_b.phase,source.state.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (146): * Single equations (assignments): 145 * 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 {6 79} Notification: Performance of prepare postOptimizeDAE: time 0.0006923/11.08, allocations: 167.3 kB / 3.621 GB, free: 92.24 MB / 466.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002208/11.08, allocations: 0.502 MB / 3.621 GB, free: 92.18 MB / 466.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0137/11.1, allocations: 4.73 MB / 3.626 GB, free: 91.89 MB / 466.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001071/11.1, allocations: 46.08 kB / 3.626 GB, free: 91.89 MB / 466.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.127e-05/11.1, allocations: 0 / 3.626 GB, free: 91.89 MB / 466.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01276/11.11, allocations: 4.318 MB / 3.63 GB, free: 91.25 MB / 466.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01958/11.13, allocations: 7.38 MB / 3.637 GB, free: 90.38 MB / 466.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.927e-05/11.13, allocations: 3.812 kB / 3.637 GB, free: 90.38 MB / 466.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002236/11.13, allocations: 221.1 kB / 3.637 GB, free: 90.38 MB / 466.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.008935/11.14, allocations: 1.189 MB / 3.639 GB, free: 90.35 MB / 466.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000653/11.14, allocations: 46.38 kB / 3.639 GB, free: 90.35 MB / 466.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00754/11.15, allocations: 2.512 MB / 3.641 GB, free: 89.79 MB / 466.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.279e-05/11.15, allocations: 3.5 kB / 3.641 GB, free: 89.79 MB / 466.8 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0158/11.16, allocations: 5.895 MB / 3.647 GB, free: 89.27 MB / 466.8 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.01941/11.18, allocations: 8.042 MB / 3.655 GB, free: 88.37 MB / 466.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001704/11.18, allocations: 472.6 kB / 3.655 GB, free: 88.19 MB / 466.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006342/11.19, allocations: 21.53 kB / 3.655 GB, free: 88.19 MB / 466.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002664/11.19, allocations: 128.2 kB / 3.655 GB, free: 88.18 MB / 466.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005059/11.19, allocations: 138.2 kB / 3.655 GB, free: 88.18 MB / 466.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001995/11.19, allocations: 56.66 kB / 3.655 GB, free: 88.18 MB / 466.8 MB Notification: Performance of sort global known variables: time 0.001496/11.19, allocations: 0.6057 MB / 3.656 GB, free: 88.07 MB / 466.8 MB Notification: Performance of remove unused functions: time 0.01487/11.21, allocations: 2.328 MB / 3.658 GB, free: 87.98 MB / 466.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 6 (pipe.mediums[1].h,pipe.mediums[2].h,pipe.mediums[3].h,pipe.mediums[4].h,pipe.mediums[5].p,pipe.mediums[5].h) * Number of discrete variables: 24 ($cse1.phase,$cse1.region,$cse2.phase,$cse2.region,$cse3.phase,$cse3.region,$cse4.phase,$cse4.region,$cse5.phase,$cse5.region,$cse7.phase,$cse7.region,$cse14.phase,$cse14.region,$cse18.phase,$cse18.region,$whenCondition2,$whenCondition1,pipe.mediums[1].phase,pipe.mediums[2].phase,pipe.mediums[4].phase,pipe.mediums[5].phase,pipe.statesFM[2].phase,m_flow_initial) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (105): * Single equations (assignments): 95 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 8 * When equations: 1 * 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 {10 39} Notification: Performance of Backend phase and start with SimCode phase: time 0.01358/11.22, allocations: 2.134 MB / 3.66 GB, free: 87.79 MB / 466.8 MB Notification: Performance of simCode: created initialization part: time 0.0111/11.23, allocations: 4.41 MB / 3.665 GB, free: 87.71 MB / 466.8 MB Notification: Performance of simCode: created event and clocks part: time 1.102e-05/11.23, allocations: 3.312 kB / 3.665 GB, free: 87.71 MB / 466.8 MB Notification: Performance of simCode: created simulation system equations: time 0.005057/11.24, allocations: 2.249 MB / 3.667 GB, free: 87.32 MB / 466.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005074/11.24, allocations: 0.4948 MB / 3.667 GB, free: 87.23 MB / 466.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01143/11.25, allocations: 4.158 MB / 3.671 GB, free: 85.58 MB / 466.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002588/11.25, allocations: 1.739 MB / 3.673 GB, free: 84.62 MB / 466.8 MB Notification: Performance of SimCode: time 1.753e-06/11.25, allocations: 0 / 3.673 GB, free: 84.62 MB / 466.8 MB