Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestOverdeterminedInitial.DynamicPipeLumpedPressureInitialization,fileNamePrefix="ModelicaTest_3_2_1_ModelicaTest_Fluid_TestOverdeterminedInitial_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(ModelicaTest): time 1.861/1.861, allocations: 209.3 MB / 216.3 MB, free: 6.805 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2183/2.079, allocations: 51.04 MB / 267.3 MB, free: 5.152 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.119/2.198, allocations: 48.69 MB / 316 MB, free: 4.359 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.535/8.733, allocations: 2.553 GB / 2.861 GB, free: 49.14 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002767/8.733, allocations: 84.39 kB / 2.861 GB, free: 49.1 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: 369 * Number of variables: 369 Notification: Performance of Generate backend data structure: time 2.538/11.27, allocations: 482.5 MB / 3.333 GB, free: 34.21 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.811e-05/11.27, allocations: 13.42 kB / 3.333 GB, free: 34.21 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007544/11.28, allocations: 0.5913 MB / 3.333 GB, free: 34.07 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006623/11.29, allocations: 1.469 MB / 3.335 GB, free: 33.45 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002578/11.29, allocations: 77.94 kB / 3.335 GB, free: 33.44 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008371/11.29, allocations: 82.88 kB / 3.335 GB, free: 33.44 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.006706/11.29, allocations: 2.065 MB / 3.337 GB, free: 32.78 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006478/11.3, allocations: 2.081 MB / 3.339 GB, free: 31.83 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.473e-05/11.3, allocations: 9.469 kB / 3.339 GB, free: 31.83 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003138/11.3, allocations: 7.469 kB / 3.339 GB, free: 31.83 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001397/11.3, allocations: 112.7 kB / 3.339 GB, free: 31.81 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.7252/12.03, allocations: 134.1 MB / 3.47 GB, free: 52.25 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002474/12.03, allocations: 0.8662 MB / 3.471 GB, free: 52.23 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001801/12.03, allocations: 0.7669 MB / 3.471 GB, free: 52.22 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05823/12.09, allocations: 16.72 MB / 3.488 GB, free: 41.32 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002478/12.09, allocations: 0.8806 MB / 3.489 GB, free: 41.22 MB / 458.7 MB Notification: Performance of pre-optimization done (n=112): time 5.14e-06/12.09, allocations: 0 / 3.489 GB, free: 41.22 MB / 458.7 MB Notification: Performance of matching and sorting (n=136): time 0.02719/12.12, allocations: 6.212 MB / 3.495 GB, free: 40.46 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.221e-05/12.12, allocations: 198.1 kB / 3.495 GB, free: 40.23 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001988/12.12, allocations: 0.8421 MB / 3.496 GB, free: 40.07 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004585/12.12, allocations: 25.7 kB / 3.496 GB, free: 40.04 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006244/12.12, allocations: 0.6112 MB / 3.496 GB, free: 39.73 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007001/12.12, allocations: 462.4 kB / 3.497 GB, free: 39.5 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001885/12.12, allocations: 0 / 3.497 GB, free: 39.5 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0002372/12.12, allocations: 438.1 kB / 3.497 GB, free: 39.19 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00246/12.12, allocations: 0.948 MB / 3.498 GB, free: 39.19 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003075/12.13, allocations: 1.438 MB / 3.5 GB, free: 38.63 MB / 458.7 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.03261/12.16, allocations: 4.453 MB / 3.504 GB, free: 38.08 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.898e-05/12.16, allocations: 3.188 kB / 3.504 GB, free: 38.08 MB / 458.7 MB Notification: Performance of matching and sorting (n=230) (initialization): time 0.02257/12.18, allocations: 4.701 MB / 3.508 GB, free: 37.91 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001463/12.18, allocations: 5.646 MB / 3.514 GB, free: 31.97 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.389e-05/12.18, allocations: 12.75 kB / 3.514 GB, free: 31.97 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01642/12.2, allocations: 2.132 MB / 3.516 GB, free: 31.88 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002074/12.2, allocations: 279 kB / 3.516 GB, free: 31.88 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009995/12.21, allocations: 3.72 MB / 3.52 GB, free: 31.3 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003765/12.22, allocations: 190 kB / 3.52 GB, free: 31.28 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003778/12.22, allocations: 96.48 kB / 3.52 GB, free: 31.27 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.268e-05/12.22, allocations: 3.531 kB / 3.52 GB, free: 31.27 MB / 458.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.02042/12.24, allocations: 4.023 MB / 3.524 GB, free: 31.19 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.279e-05/12.24, allocations: 14.81 kB / 3.524 GB, free: 31.19 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0122/12.25, allocations: 1.796 MB / 3.526 GB, free: 31.12 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002324/12.25, allocations: 303.7 kB / 3.526 GB, free: 31.12 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008036/12.26, allocations: 3.25 MB / 3.529 GB, free: 30.55 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003373/12.26, allocations: 170.1 kB / 3.53 GB, free: 30.54 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004388/12.26, allocations: 93.97 kB / 3.53 GB, free: 30.54 MB / 458.7 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.0007148/12.27, allocations: 168.6 kB / 3.53 GB, free: 30.42 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002264/12.27, allocations: 0.496 MB / 3.53 GB, free: 30.36 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01124/12.28, allocations: 4.736 MB / 3.535 GB, free: 30.05 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.127e-05/12.28, allocations: 42.52 kB / 3.535 GB, free: 30.05 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.355e-05/12.28, allocations: 3.875 kB / 3.535 GB, free: 30.05 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.008847/12.29, allocations: 4.317 MB / 3.539 GB, free: 29.41 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0191/12.31, allocations: 7.379 MB / 3.546 GB, free: 28.52 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.309e-05/12.31, allocations: 3.844 kB / 3.546 GB, free: 28.52 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00192/12.31, allocations: 218.6 kB / 3.547 GB, free: 28.51 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.007444/12.32, allocations: 1.196 MB / 3.548 GB, free: 28.46 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004583/12.32, allocations: 35.48 kB / 3.548 GB, free: 28.46 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005127/12.32, allocations: 2.519 MB / 3.55 GB, free: 27.89 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.558e-06/12.32, allocations: 1.375 kB / 3.55 GB, free: 27.89 MB / 458.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01782/12.34, allocations: 5.894 MB / 3.556 GB, free: 27.37 MB / 458.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.02091/12.36, allocations: 8.041 MB / 3.564 GB, free: 22.7 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001854/12.36, allocations: 477.1 kB / 3.564 GB, free: 22.28 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006511/12.36, allocations: 22.11 kB / 3.564 GB, free: 22.26 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00303/12.37, allocations: 126.6 kB / 3.564 GB, free: 22.17 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006487/12.37, allocations: 133.7 kB / 3.565 GB, free: 22.1 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002108/12.37, allocations: 58.88 kB / 3.565 GB, free: 22.05 MB / 458.7 MB Notification: Performance of sort global known variables: time 0.001404/12.37, allocations: 0.6111 MB / 3.565 GB, free: 21.49 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.01479/12.38, allocations: 2.314 MB / 3.568 GB, free: 19.39 MB / 458.7 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.01427/12.4, allocations: 2.129 MB / 3.57 GB, free: 17.87 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.0124/12.41, allocations: 4.42 MB / 3.574 GB, free: 13.97 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.255e-05/12.41, allocations: 0 / 3.574 GB, free: 13.97 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00529/12.42, allocations: 2.251 MB / 3.576 GB, free: 11.98 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005442/12.42, allocations: 0.4901 MB / 3.577 GB, free: 11.62 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01218/12.43, allocations: 4.16 MB / 3.581 GB, free: 7.969 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002369/12.44, allocations: 1.732 MB / 3.582 GB, free: 6.516 MB / 458.7 MB Notification: Performance of SimCode: time 2.204e-06/12.44, allocations: 7.5 kB / 3.582 GB, free: 6.512 MB / 458.7 MB