Running command: translateModel(Modelica.Fluid.Examples.NonCircularPipes,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|annulus_pipe.mediums.1..h|annulus_pipe.mediums.2..h|annulus_pipe.mediums.2..p|circular_pipe.mediums.1..h|circular_pipe.mediums.2..h|circular_pipe.mediums.2..p",fileNamePrefix="Modelica_3.2.2_cpp_Modelica.Fluid.Examples.NonCircularPipes") Notification: Performance of loadModel(Modelica): time 2.25/2.25, allocations: 194.9 MB / 211.2 MB, free: 8.359 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.862e-05/3.858e-05, allocations: 11.89 kB / 258.8 MB, free: 8.723 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4168/0.4168, allocations: 44.5 MB / 303.3 MB, free: 12.73 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.NonCircularPipes): time 0.08669/0.5036, allocations: 51.61 MB / 354.9 MB, free: 9.969 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.04416/0.5478, allocations: 21.01 MB / 375.9 MB, free: 4.914 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002124/0.55, allocations: 63.5 kB / 376 MB, free: 4.852 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002883/0.5529, allocations: 0.6727 MB / 376.6 MB, free: 4.176 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0117/0.5646, allocations: 2.792 MB / 379.4 MB, free: 1.375 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.02252/0.5872, allocations: 5.718 MB / 385.2 MB, free: 11.64 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.006309/0.5935, allocations: 2.195 MB / 387.3 MB, free: 9.441 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001875/0.5954, allocations: 0.7333 MB / 388.1 MB, free: 8.707 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.03252/0.628, allocations: 12.29 MB / 400.4 MB, free: 12.41 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.03044/0.6585, allocations: 12.13 MB / 412.5 MB, free: 276 kB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02426/0.6828, allocations: 8.221 MB / 420.7 MB, free: 8.039 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 0.004203/0.6871, allocations: 0.5078 MB / 421.2 MB, free: 7.531 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001429/0.6886, allocations: 0.5571 MB / 421.8 MB, free: 6.973 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0009264/0.6895, allocations: 212 kB / 422 MB, free: 6.766 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01405/0.7036, allocations: 5.044 MB / 427 MB, free: 1.711 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.849e-06/0.7037, allocations: 3.938 kB / 427 MB, free: 1.707 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.725e-06/0.7037, allocations: 0 / 427 MB, free: 1.707 MB / 362.7 MB Notification: Performance of Transformations before backend: time 9.137e-05/0.7038, allocations: 0 / 427 MB, free: 1.707 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 391 * Number of variables: 391 Notification: Performance of Generate backend data structure: time 0.2985/1.002, allocations: 2.466 MB / 429.5 MB, free: 111.9 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.428e-05/1.002, allocations: 14.53 kB / 429.5 MB, free: 111.9 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007117/1.009, allocations: 0.5905 MB / 430.1 MB, free: 111.8 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003843/1.013, allocations: 1.147 MB / 431.3 MB, free: 111.3 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002706/1.014, allocations: 139.7 kB / 431.4 MB, free: 111.3 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005323/1.014, allocations: 153.1 kB / 431.5 MB, free: 111.2 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01004/1.024, allocations: 2.791 MB / 434.3 MB, free: 109.9 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.603e-05/1.024, allocations: 7.875 kB / 434.3 MB, free: 109.9 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000295/1.025, allocations: 65.52 kB / 434.4 MB, free: 109.9 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000284/1.025, allocations: 147.4 kB / 434.6 MB, free: 109.9 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01074/1.036, allocations: 2.661 MB / 437.2 MB, free: 108.6 MB / 362.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.02222/1.058, allocations: 11.94 MB / 449.2 MB, free: 98.17 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007634/1.066, allocations: 1.748 MB / 450.9 MB, free: 96.65 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01921/1.085, allocations: 5.765 MB / 456.7 MB, free: 90.2 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.578e-05/1.085, allocations: 43.56 kB / 456.7 MB, free: 90.14 MB / 362.7 MB Notification: Performance of pre-optimization done (n=108): time 4.699e-06/1.085, allocations: 4 kB / 456.7 MB, free: 90.14 MB / 362.7 MB Notification: Performance of matching and sorting (n=124): time 0.0444/1.13, allocations: 7.017 MB / 463.7 MB, free: 83.06 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.486e-05/1.13, allocations: 153.5 kB / 463.9 MB, free: 82.88 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002535/1.132, allocations: 1.019 MB / 464.9 MB, free: 81.84 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000236/1.132, allocations: 49.7 kB / 465 MB, free: 81.79 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006738/1.133, allocations: 0.7462 MB / 465.7 MB, free: 81.04 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005489/1.134, allocations: 431.9 kB / 466.1 MB, free: 80.62 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002043/1.134, allocations: 36 kB / 466.2 MB, free: 80.58 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001683/1.134, allocations: 378.8 kB / 466.5 MB, free: 80.2 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003767/1.138, allocations: 0.8744 MB / 467.4 MB, free: 79.33 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004225/1.142, allocations: 1.331 MB / 468.7 MB, free: 77.8 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.227/5.369, allocations: 382.1 MB / 0.8309 GB, free: 22.95 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.152e-05/5.369, allocations: 4 kB / 0.8309 GB, free: 22.95 MB / 394.7 MB Notification: Performance of matching and sorting (n=208) (initialization): time 0.00871/5.378, allocations: 2.637 MB / 0.8334 GB, free: 20.34 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001031/5.379, allocations: 5.32 MB / 0.8386 GB, free: 14.61 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.866e-05/5.379, allocations: 16 kB / 0.8387 GB, free: 14.6 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002659/5.381, allocations: 0.495 MB / 0.8391 GB, free: 14.09 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00288/5.384, allocations: 399.5 kB / 0.8395 GB, free: 13.7 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002785/5.387, allocations: 2.87 MB / 0.8423 GB, free: 10.74 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00275/5.39, allocations: 206.4 kB / 0.8425 GB, free: 10.55 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002197/5.39, allocations: 83.42 kB / 0.8426 GB, free: 10.47 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.482e-05/5.39, allocations: 5.562 kB / 0.8426 GB, free: 10.47 MB / 394.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.007873/5.398, allocations: 2.526 MB / 0.8451 GB, free: 7.93 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.082e-05/5.398, allocations: 12 kB / 0.8451 GB, free: 7.918 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002137/5.4, allocations: 468.5 kB / 0.8455 GB, free: 7.449 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002753/5.403, allocations: 399.4 kB / 0.8459 GB, free: 7.059 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002643/5.406, allocations: 2.877 MB / 0.8487 GB, free: 4.086 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002285/5.408, allocations: 193.2 kB / 0.8489 GB, free: 3.906 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002043/5.408, allocations: 76.08 kB / 0.849 GB, free: 3.832 MB / 394.7 MB Warning: The initial conditions are over specified. The following 2 initial equations are redundant, so they are removed from the initialization sytem: circular_pipe.mediums[1].p = 1000000.0 annulus_pipe.mediums[1].p = 1000000.0. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 61 * Number of states: 0 () * Number of discrete variables: 11 (boundary.medium.phase,massflowsink1.medium.phase,massflowsink2.medium.phase,circular_pipe.statesFM[1].phase,circular_pipe.statesFM[2].phase,annulus_pipe.statesFM[1].phase,annulus_pipe.statesFM[2].phase,annulus_pipe.state_b.phase,annulus_pipe.state_a.phase,circular_pipe.state_b.phase,circular_pipe.state_a.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (188): * Single equations (assignments): 184 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {2 8,1 1,2 8,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.001315/5.41, allocations: 0.524 MB / 0.8495 GB, free: 3.305 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004355/5.41, allocations: 138.9 kB / 0.8496 GB, free: 3.238 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2859/5.696, allocations: 5.433 MB / 0.8549 GB, free: 138 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.591e-05/5.696, allocations: 57.5 kB / 0.855 GB, free: 138 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.448e-06/5.696, allocations: 3.781 kB / 0.855 GB, free: 138 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.009492/5.706, allocations: 4.974 MB / 0.8598 GB, free: 135.7 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01609/5.722, allocations: 7.969 MB / 0.8676 GB, free: 131 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.567e-05/5.722, allocations: 0 / 0.8676 GB, free: 131 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002171/5.724, allocations: 295.8 kB / 0.8679 GB, free: 130.7 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002962/5.727, allocations: 0.561 MB / 0.8685 GB, free: 130.2 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002605/5.727, allocations: 39.98 kB / 0.8685 GB, free: 130.1 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002649/5.73, allocations: 2.943 MB / 0.8714 GB, free: 127.1 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.387e-06/5.73, allocations: 0 / 0.8714 GB, free: 127.1 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01171/5.742, allocations: 5.294 MB / 0.8765 GB, free: 121.9 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001419/5.743, allocations: 0.503 MB / 0.877 GB, free: 121.3 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004605/5.744, allocations: 31.98 kB / 0.8771 GB, free: 121.3 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001972/5.746, allocations: 153.8 kB / 0.8772 GB, free: 121.2 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003385/5.746, allocations: 121.1 kB / 0.8773 GB, free: 121 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001398/5.746, allocations: 39.98 kB / 0.8774 GB, free: 121 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.001524/5.748, allocations: 0.8121 MB / 0.8781 GB, free: 120.2 MB / 394.7 MB Notification: Performance of sort global known variables: time 4.81e-07/5.748, allocations: 0 / 0.8781 GB, free: 120.2 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0066/5.754, allocations: 1.935 MB / 0.88 GB, free: 118.4 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (circular_pipe.mediums[1].h,circular_pipe.mediums[2].p,circular_pipe.mediums[2].h,annulus_pipe.mediums[1].h,annulus_pipe.mediums[2].p,annulus_pipe.mediums[2].h) * Number of discrete variables: 35 ($cse3.phase,$cse3.region,$cse5.region3boundary,$cse6.region3boundary,$cse7.phase,$cse7.region,$cse8.phase,$cse8.region,$cse9.region3boundary,$cse10.region3boundary,$cse11.phase,$cse11.region,$cse12.phase,$cse12.region,$cse13.phase,$cse13.region,$cse14.phase,$cse14.region,$cse16.phase,$cse16.region,$cse17.phase,$cse17.region,$cse18.phase,$cse18.region,$cse19.phase,$cse19.region,$cse21.phase,$cse21.region,boundary.medium.phase,massflowsink1.medium.phase,massflowsink2.medium.phase,circular_pipe.statesFM[1].phase,circular_pipe.statesFM[2].phase,annulus_pipe.statesFM[1].phase,annulus_pipe.statesFM[2].phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (122): * Single equations (assignments): 102 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 16 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {2 8,1 1,2 8,1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.008402/5.763, allocations: 1.644 MB / 0.8816 GB, free: 117.1 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.01176/5.775, allocations: 3.892 MB / 0.8854 GB, free: 113.2 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 8.496e-06/5.775, allocations: 0 / 0.8854 GB, free: 113.2 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004251/5.779, allocations: 1.716 MB / 0.8871 GB, free: 111.5 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005248/5.784, allocations: 0.6189 MB / 0.8877 GB, free: 111 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01225/5.796, allocations: 6.383 MB / 0.894 GB, free: 104.7 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001459/5.798, allocations: 1.786 MB / 0.8957 GB, free: 102.9 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008908/5.799, allocations: 143.3 kB / 0.8958 GB, free: 102.7 MB / 394.7 MB Notification: Performance of SimCode: time 1.432e-06/5.799, allocations: 0 / 0.8958 GB, free: 102.7 MB / 394.7 MB Notification: Performance of Templates: time 0.138/5.937, allocations: 83.52 MB / 0.9774 GB, free: 19.09 MB / 394.7 MB