Running command: translateModel(ModelicaTest.Fluid.TestOverdeterminedInitial.DynamicPipeLumpedPressureInitialization,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|pipe.mediums.1..h|pipe.mediums.1..p|pipe.mediums.2..h|pipe.mediums.3..h|pipe.mediums.4..h|pipe.mediums.5..h|m_flow_initial",fileNamePrefix="ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestOverdeterminedInitial.DynamicPipeLumpedPressureInitialization") Notification: Performance of loadModel(ModelicaTest): time 1.842/1.842, allocations: 209.3 MB / 221.9 MB, free: 7.727 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.501e-05/3.514e-05, allocations: 4 kB / 273.1 MB, free: 3.656 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08892/0.08898, allocations: 48.7 MB / 321.8 MB, free: 2.859 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.237/6.326, allocations: 2.553 GB / 2.867 GB, free: 95.67 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002751/6.326, allocations: 78.2 kB / 2.868 GB, free: 95.63 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.182/8.508, allocations: 483.1 MB / 3.339 GB, free: 34.83 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.805e-06/8.508, allocations: 0 / 3.339 GB, free: 34.83 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0001284/8.508, allocations: 34.19 kB / 3.339 GB, free: 34.83 MB / 442.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 0.01067/8.519, allocations: 2.823 MB / 3.342 GB, free: 33.71 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.106e-05/8.519, allocations: 10.44 kB / 3.342 GB, free: 33.71 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006542/8.526, allocations: 0.5616 MB / 3.343 GB, free: 33.62 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004964/8.531, allocations: 1.475 MB / 3.344 GB, free: 33.27 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003172/8.531, allocations: 132.2 kB / 3.344 GB, free: 33.27 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006105/8.532, allocations: 139.2 kB / 3.344 GB, free: 33.27 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007587/8.539, allocations: 2.678 MB / 3.347 GB, free: 32.87 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.075e-05/8.539, allocations: 15.91 kB / 3.347 GB, free: 32.86 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002893/8.54, allocations: 59.59 kB / 3.347 GB, free: 32.86 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001443/8.54, allocations: 110.9 kB / 3.347 GB, free: 32.86 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007903/8.548, allocations: 2.492 MB / 3.35 GB, free: 32.85 MB / 442.7 MB Warning: The model contains alias variables with conflicting start and/or nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01703/8.565, allocations: 10.92 MB / 3.36 GB, free: 26.39 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005151/8.57, allocations: 1.745 MB / 3.362 GB, free: 26.27 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001672/8.572, allocations: 0.8487 MB / 3.363 GB, free: 26.23 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1629/8.735, allocations: 61.94 MB / 3.423 GB, free: 23.61 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004704/8.739, allocations: 1.396 MB / 3.425 GB, free: 23.48 MB / 474.7 MB Notification: Performance of pre-optimization done (n=127): time 5.921e-06/8.739, allocations: 0 / 3.425 GB, free: 23.48 MB / 474.7 MB Notification: Performance of matching and sorting (n=151): time 0.02077/8.76, allocations: 6.981 MB / 3.431 GB, free: 22.12 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001957/8.76, allocations: 279.1 kB / 3.432 GB, free: 21.81 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001588/8.762, allocations: 0.8844 MB / 3.433 GB, free: 21.64 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002835/8.762, allocations: 57.48 kB / 3.433 GB, free: 21.61 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005227/8.763, allocations: 0.6697 MB / 3.433 GB, free: 21.21 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000504/8.763, allocations: 0.5172 MB / 3.434 GB, free: 20.88 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000157/8.764, allocations: 39.69 kB / 3.434 GB, free: 20.88 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.000229/8.764, allocations: 384.2 kB / 3.434 GB, free: 20.56 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001717/8.766, allocations: 0.8831 MB / 3.435 GB, free: 20.56 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002052/8.768, allocations: 1.364 MB / 3.436 GB, free: 20 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.039/13.81, allocations: 0.5696 GB / 4.006 GB, free: 77.88 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.797e-05/13.81, allocations: 4.719 kB / 4.006 GB, free: 77.88 MB / 490.7 MB Notification: Performance of matching and sorting (n=230) (initialization): time 0.00679/13.81, allocations: 2.992 MB / 4.009 GB, free: 77.81 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0011/13.81, allocations: 5.672 MB / 4.014 GB, free: 71.93 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.772e-05/13.81, allocations: 14.91 kB / 4.014 GB, free: 71.93 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01354/13.83, allocations: 2.382 MB / 4.017 GB, free: 71.9 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001449/13.83, allocations: 274.4 kB / 4.017 GB, free: 71.9 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005335/13.84, allocations: 3.029 MB / 4.02 GB, free: 71.35 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002638/13.84, allocations: 209.8 kB / 4.02 GB, free: 71.35 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003465/13.84, allocations: 89.36 kB / 4.02 GB, free: 71.35 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.44e-05/13.84, allocations: 6.406 kB / 4.02 GB, free: 71.35 MB / 490.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006686/13.85, allocations: 2.878 MB / 4.023 GB, free: 71.31 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.294e-05/13.85, allocations: 17.33 kB / 4.023 GB, free: 71.31 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009009/13.85, allocations: 1.762 MB / 4.025 GB, free: 71.29 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001508/13.86, allocations: 300.6 kB / 4.025 GB, free: 71.29 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004406/13.86, allocations: 2.742 MB / 4.028 GB, free: 70.75 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002115/13.86, allocations: 210 kB / 4.028 GB, free: 70.75 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002412/13.86, allocations: 92 kB / 4.028 GB, free: 70.75 MB / 490.7 MB Warning: Assuming fixed start value for the following 1 variables: m_flow_initial:DISCRETE(unit = "kg/s" fixed = false ) type: Real Warning: The initial conditions are over specified. The following 4 initial equations are redundant, so they are removed from the initialization sytem: $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 (source.medium.phase,$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,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.0006065/13.86, allocations: 233 kB / 4.028 GB, free: 70.63 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004044/13.86, allocations: 143.7 kB / 4.028 GB, free: 70.63 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008799/13.87, allocations: 5.727 MB / 4.034 GB, free: 70.32 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.588e-05/13.87, allocations: 56.38 kB / 4.034 GB, free: 70.32 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.04e-05/13.87, allocations: 3.531 kB / 4.034 GB, free: 70.32 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.006544/13.88, allocations: 4.643 MB / 4.039 GB, free: 69.66 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01405/13.89, allocations: 7.984 MB / 4.046 GB, free: 68.88 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.073e-05/13.89, allocations: 2.125 kB / 4.046 GB, free: 68.88 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001533/13.89, allocations: 256.5 kB / 4.047 GB, free: 68.88 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005248/13.9, allocations: 1.222 MB / 4.048 GB, free: 68.86 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000275/13.9, allocations: 53.92 kB / 4.048 GB, free: 68.86 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003166/13.9, allocations: 2.186 MB / 4.05 GB, free: 68.3 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.471e-06/13.9, allocations: 4.219 kB / 4.05 GB, free: 68.3 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008482/13.91, allocations: 5.417 MB / 4.055 GB, free: 67.64 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001533/13.91, allocations: 0.6101 MB / 4.056 GB, free: 67.43 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004082/13.91, allocations: 41.84 kB / 4.056 GB, free: 67.43 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001708/13.92, allocations: 179.1 kB / 4.056 GB, free: 67.43 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003605/13.92, allocations: 155.7 kB / 4.056 GB, free: 67.42 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001718/13.92, allocations: 55.89 kB / 4.056 GB, free: 67.42 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.00169/13.92, allocations: 0.9453 MB / 4.057 GB, free: 67.3 MB / 490.7 MB Notification: Performance of sort global known variables: time 8.15e-07/13.92, allocations: 0 / 4.057 GB, free: 67.3 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.008047/13.93, allocations: 2.119 MB / 4.059 GB, free: 67.28 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * 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: 31 ($cse4.region3boundary,$cse5.region3boundary,$cse6.phase,$cse6.region,$cse7.phase,$cse7.region,$cse8.phase,$cse8.region,$cse9.phase,$cse9.region,$cse10.phase,$cse10.region,$cse13.phase,$cse13.region,$cse19.phase,$cse19.region,$cse23.phase,$cse23.region,$cse24.phase,$cse24.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,$cse3.phase,$cse3.region,source.medium.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (124): * Single equations (assignments): 110 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 12 * 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.01001/13.94, allocations: 1.993 MB / 4.061 GB, free: 67.07 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.008606/13.94, allocations: 3.913 MB / 4.065 GB, free: 67 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.061e-05/13.94, allocations: 0 / 4.065 GB, free: 67 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003588/13.95, allocations: 1.788 MB / 4.067 GB, free: 66.98 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00451/13.95, allocations: 0.6772 MB / 4.068 GB, free: 66.96 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1497/14.1, allocations: 58.58 MB / 4.125 GB, free: 48.32 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001395/14.1, allocations: 1.734 MB / 4.126 GB, free: 46.9 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006515/14.1, allocations: 124.1 kB / 4.127 GB, free: 46.79 MB / 490.7 MB Notification: Performance of SimCode: time 1.838e-06/14.1, allocations: 0 / 4.127 GB, free: 46.79 MB / 490.7 MB Notification: Performance of Templates: time 0.4583/14.56, allocations: 57.19 MB / 4.182 GB, free: 66.68 MB / 490.7 MB