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 2.057/2.057, allocations: 209.3 MB / 224.4 MB, free: 0.5195 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.406e-05/3.39e-05, allocations: 8 kB / 276.1 MB, free: 15.86 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3708/0.3709, allocations: 48.7 MB / 324.8 MB, free: 2.891 MB / 266.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestOverdeterminedInitial.DynamicPipeLumpedPressureInitialization): time 0.06943/0.4404, allocations: 38.85 MB / 363.7 MB, free: 6.895 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.04363/0.4841, allocations: 20.92 MB / 384.6 MB, free: 3.707 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001813/0.486, allocations: 35.69 kB / 384.6 MB, free: 3.672 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002265/0.4883, allocations: 477.8 kB / 385.1 MB, free: 3.203 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01905/0.5074, allocations: 4.003 MB / 389.1 MB, free: 15.19 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01456/0.522, allocations: 3.615 MB / 392.7 MB, free: 11.57 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.004611/0.5266, allocations: 1.85 MB / 394.6 MB, free: 9.715 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001517/0.5282, allocations: 0.6316 MB / 395.2 MB, free: 9.082 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.126/0.6543, allocations: 50.42 MB / 445.6 MB, free: 6.641 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.04881/0.7031, allocations: 19.71 MB / 465.3 MB, free: 2.922 MB / 394.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0236/0.7268, allocations: 7.609 MB / 473 MB, free: 11.3 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 0.003928/0.7308, allocations: 496 kB / 473.4 MB, free: 10.82 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001224/0.7321, allocations: 490.7 kB / 473.9 MB, free: 10.34 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0008088/0.7329, allocations: 196 kB / 474.1 MB, free: 10.15 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01309/0.746, allocations: 4.611 MB / 478.7 MB, free: 5.527 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.079e-06/0.746, allocations: 0 / 478.7 MB, free: 5.527 MB / 410.7 MB Notification: Performance of FrontEnd: time 3.316e-06/0.7461, allocations: 0 / 478.7 MB, free: 5.527 MB / 410.7 MB Notification: Performance of Transformations before backend: time 5.658e-05/0.7461, allocations: 0 / 478.7 MB, free: 5.527 MB / 410.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.01035/0.7565, allocations: 2.413 MB / 481.1 MB, free: 3.059 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.119e-05/0.7566, allocations: 12.03 kB / 481.1 MB, free: 3.047 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006276/0.7629, allocations: 0.56 MB / 481.7 MB, free: 2.484 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003111/0.766, allocations: 1.008 MB / 482.7 MB, free: 1.43 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002329/0.7663, allocations: 138.6 kB / 482.8 MB, free: 1.293 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004201/0.7667, allocations: 139.9 kB / 483 MB, free: 1.156 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2881/1.055, allocations: 2.712 MB / 485.7 MB, free: 136.3 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.84e-05/1.055, allocations: 7.094 kB / 485.7 MB, free: 136.3 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002774/1.055, allocations: 62.22 kB / 485.8 MB, free: 136.3 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002426/1.055, allocations: 122.3 kB / 485.9 MB, free: 136.3 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01136/1.067, allocations: 2.702 MB / 488.6 MB, free: 135.6 MB / 410.7 MB Warning: The model contains alias variables with redundant start and/or conflicting 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.02049/1.087, allocations: 10.92 MB / 499.5 MB, free: 127.5 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007327/1.095, allocations: 1.84 MB / 0.4896 GB, free: 126.9 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2141/1.309, allocations: 62.47 MB / 0.5506 GB, free: 65.63 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005569/1.315, allocations: 1.418 MB / 0.552 GB, free: 64.18 MB / 410.7 MB Notification: Performance of pre-optimization done (n=127): time 4.328e-06/1.315, allocations: 0 / 0.552 GB, free: 64.18 MB / 410.7 MB Notification: Performance of matching and sorting (n=151): time 0.03145/1.346, allocations: 8.439 MB / 0.5602 GB, free: 55.68 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.587e-05/1.346, allocations: 274.3 kB / 0.5605 GB, free: 55.36 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00156/1.348, allocations: 0.9026 MB / 0.5614 GB, free: 54.43 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000212/1.348, allocations: 57.83 kB / 0.5614 GB, free: 54.37 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004826/1.348, allocations: 0.672 MB / 0.5621 GB, free: 53.7 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004812/1.349, allocations: 0.5165 MB / 0.5626 GB, free: 53.18 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001589/1.349, allocations: 36 kB / 0.5626 GB, free: 53.15 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001258/1.349, allocations: 386.8 kB / 0.563 GB, free: 52.76 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002974/1.352, allocations: 1.011 MB / 0.564 GB, free: 51.75 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003241/1.356, allocations: 1.511 MB / 0.5654 GB, free: 50.02 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.839/8.194, allocations: 0.5845 GB / 1.15 GB, free: 103.8 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.573e-05/8.194, allocations: 4 kB / 1.15 GB, free: 103.8 MB / 426.7 MB Notification: Performance of matching and sorting (n=231) (initialization): time 0.0104/8.205, allocations: 3.37 MB / 1.153 GB, free: 100.5 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.00121/8.206, allocations: 5.751 MB / 1.159 GB, free: 94.28 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.01e-05/8.206, allocations: 16 kB / 1.159 GB, free: 94.26 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01974/8.226, allocations: 2.629 MB / 1.161 GB, free: 91.63 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001807/8.228, allocations: 283.5 kB / 1.162 GB, free: 91.35 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008028/8.236, allocations: 3.267 MB / 1.165 GB, free: 88.08 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002824/8.239, allocations: 209.3 kB / 1.165 GB, free: 87.89 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002692/8.239, allocations: 88.52 kB / 1.165 GB, free: 87.8 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.437e-05/8.239, allocations: 4 kB / 1.165 GB, free: 87.8 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01117/8.25, allocations: 3.396 MB / 1.168 GB, free: 84.4 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.523e-05/8.25, allocations: 16 kB / 1.168 GB, free: 84.38 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01191/8.262, allocations: 1.935 MB / 1.17 GB, free: 82.44 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001972/8.264, allocations: 291.5 kB / 1.171 GB, free: 82.16 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007191/8.271, allocations: 2.993 MB / 1.174 GB, free: 79.16 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002405/8.274, allocations: 202 kB / 1.174 GB, free: 78.97 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002454/8.274, allocations: 87.98 kB / 1.174 GB, free: 78.89 MB / 426.7 MB Warning: Assuming fixed start value for the following 1 variables: m_flow_initial:DISCRETE(unit = "kg/s" fixed = true ) 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: 66 * Number of states: 0 () * Number of discrete variables: 17 (source.medium.phase,$PRE.m_flow_initial,m_flow_initial,$whenCondition2,$whenCondition1,pipe.state_a.phase,valve.state_b.phase,valve.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 (147): * Single equations (assignments): 146 * 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.001316/8.276, allocations: 0.5195 MB / 1.174 GB, free: 78.37 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000386/8.276, allocations: 136.6 kB / 1.175 GB, free: 78.3 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01192/8.288, allocations: 5.833 MB / 1.18 GB, free: 72.56 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.446e-05/8.288, allocations: 55.88 kB / 1.18 GB, free: 72.51 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.143e-05/8.288, allocations: 4 kB / 1.18 GB, free: 72.5 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.008984/8.297, allocations: 4.724 MB / 1.185 GB, free: 67.67 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01678/8.314, allocations: 8.162 MB / 1.193 GB, free: 59.39 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.202e-05/8.314, allocations: 0 / 1.193 GB, free: 59.39 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001921/8.316, allocations: 255.8 kB / 1.193 GB, free: 59.14 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.007243/8.323, allocations: 1.287 MB / 1.194 GB, free: 57.85 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003327/8.323, allocations: 51.97 kB / 1.194 GB, free: 57.8 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003745/8.327, allocations: 2.196 MB / 1.197 GB, free: 55.58 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.44e-06/8.327, allocations: 4 kB / 1.197 GB, free: 55.57 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01205/8.339, allocations: 5.778 MB / 1.202 GB, free: 49.66 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001584/8.341, allocations: 0.6106 MB / 1.203 GB, free: 49.02 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005415/8.342, allocations: 43.98 kB / 1.203 GB, free: 48.98 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002277/8.344, allocations: 163.7 kB / 1.203 GB, free: 48.82 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004334/8.344, allocations: 153 kB / 1.203 GB, free: 48.67 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000166/8.344, allocations: 59.97 kB / 1.203 GB, free: 48.61 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.001797/8.346, allocations: 0.9576 MB / 1.204 GB, free: 47.65 MB / 426.7 MB Notification: Performance of sort global known variables: time 4.2e-07/8.346, allocations: 4.703 kB / 1.204 GB, free: 47.65 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.006374/8.353, allocations: 1.911 MB / 1.206 GB, free: 45.86 MB / 426.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,$cse18.phase,$cse18.region,$cse19.phase,$cse19.region,$cse22.phase,$cse22.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.007609/8.36, allocations: 1.53 MB / 1.207 GB, free: 44.59 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.01262/8.373, allocations: 4.35 MB / 1.212 GB, free: 40.25 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.038e-05/8.373, allocations: 4.125 kB / 1.212 GB, free: 40.25 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004604/8.378, allocations: 1.896 MB / 1.214 GB, free: 38.34 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005621/8.383, allocations: 0.6767 MB / 1.214 GB, free: 37.68 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01163/8.395, allocations: 6.386 MB / 1.22 GB, free: 31.24 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001352/8.396, allocations: 1.738 MB / 1.222 GB, free: 29.47 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006872/8.397, allocations: 123.4 kB / 1.222 GB, free: 29.35 MB / 426.7 MB Notification: Performance of SimCode: time 1.142e-06/8.397, allocations: 4 kB / 1.222 GB, free: 29.34 MB / 426.7 MB Notification: Performance of Templates: time 0.3838/8.781, allocations: 55.05 MB / 1.276 GB, free: 127.7 MB / 426.7 MB