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 1.967/1.967, allocations: 195 MB / 203.2 MB, free: 13.79 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.399e-05/2.411e-05, allocations: 4 kB / 249.6 MB, free: 15.3 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2989/0.299, allocations: 44.5 MB / 294.1 MB, free: 14.3 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.263/6.562, allocations: 2.627 GB / 2.914 GB, free: 43.39 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001858/6.562, allocations: 72.09 kB / 2.914 GB, free: 43.36 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.606/9.168, allocations: 0.541 GB / 3.455 GB, free: 34.3 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.657e-06/9.168, allocations: 3.906 kB / 3.455 GB, free: 34.3 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0001863/9.168, allocations: 47.08 kB / 3.455 GB, free: 34.3 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: 391 * Number of variables: 391 Notification: Performance of Generate backend data structure: time 0.01104/9.179, allocations: 2.79 MB / 3.458 GB, free: 33.27 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.14e-05/9.179, allocations: 10.09 kB / 3.458 GB, free: 33.27 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005929/9.185, allocations: 0.5984 MB / 3.459 GB, free: 33.18 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004679/9.19, allocations: 1.46 MB / 3.46 GB, free: 32.81 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002019/9.19, allocations: 79.58 kB / 3.46 GB, free: 32.81 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000587/9.191, allocations: 87.56 kB / 3.46 GB, free: 32.81 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.004908/9.196, allocations: 1.96 MB / 3.462 GB, free: 32.8 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005456/9.201, allocations: 2.161 MB / 3.464 GB, free: 32.36 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.849e-05/9.202, allocations: 12.66 kB / 3.464 GB, free: 32.36 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002788/9.202, allocations: 3.875 kB / 3.464 GB, free: 32.36 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001886/9.202, allocations: 129.7 kB / 3.464 GB, free: 32.36 MB / 426.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.2101/9.412, allocations: 75.62 MB / 3.538 GB, free: 25.34 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002341/9.415, allocations: 1.111 MB / 3.539 GB, free: 25.3 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001342/9.416, allocations: 0.6626 MB / 3.54 GB, free: 25.29 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009047/9.425, allocations: 4.33 MB / 3.544 GB, free: 22.02 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.67e-05/9.425, allocations: 53.78 kB / 3.544 GB, free: 21.97 MB / 458.7 MB Notification: Performance of pre-optimization done (n=102): time 4.765e-06/9.425, allocations: 0 / 3.544 GB, free: 21.97 MB / 458.7 MB Notification: Performance of matching and sorting (n=118): time 0.0188/9.444, allocations: 4.893 MB / 3.549 GB, free: 21.27 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001109/9.444, allocations: 144 kB / 3.549 GB, free: 21.12 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001703/9.446, allocations: 0.8444 MB / 3.55 GB, free: 20.95 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003235/9.446, allocations: 25.7 kB / 3.55 GB, free: 20.92 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005589/9.447, allocations: 0.7901 MB / 3.551 GB, free: 20.45 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005356/9.447, allocations: 394.8 kB / 3.551 GB, free: 20.19 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001502/9.447, allocations: 0 / 3.551 GB, free: 20.19 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0002486/9.448, allocations: 381.7 kB / 3.552 GB, free: 19.87 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001531/9.449, allocations: 0.7379 MB / 3.552 GB, free: 19.87 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001878/9.451, allocations: 1.169 MB / 3.553 GB, free: 19.35 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02078/9.472, allocations: 4.165 MB / 3.558 GB, free: 19.04 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.47e-05/9.472, allocations: 6.656 kB / 3.558 GB, free: 19.04 MB / 458.7 MB Notification: Performance of matching and sorting (n=206) (initialization): time 0.01823/9.49, allocations: 4.157 MB / 3.562 GB, free: 18.86 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.002643/9.493, allocations: 5.141 MB / 3.567 GB, free: 13.47 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.991e-05/9.493, allocations: 16.17 kB / 3.567 GB, free: 13.46 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002131/9.495, allocations: 476.4 kB / 3.567 GB, free: 13.43 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002313/9.498, allocations: 395.6 kB / 3.567 GB, free: 13.43 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003466/9.501, allocations: 2.914 MB / 3.57 GB, free: 11.34 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002572/9.504, allocations: 190.2 kB / 3.571 GB, free: 11.31 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004058/9.504, allocations: 82.23 kB / 3.571 GB, free: 11.31 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.464e-05/9.504, allocations: 3.75 kB / 3.571 GB, free: 11.31 MB / 458.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01773/9.522, allocations: 3.962 MB / 3.574 GB, free: 11.19 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.551e-05/9.522, allocations: 13.56 kB / 3.574 GB, free: 11.19 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001586/9.524, allocations: 463.6 kB / 3.575 GB, free: 11.15 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002127/9.526, allocations: 391.6 kB / 3.575 GB, free: 11.15 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003373/9.529, allocations: 2.912 MB / 3.578 GB, free: 9.062 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002204/9.531, allocations: 178.3 kB / 3.578 GB, free: 9.039 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003064/9.532, allocations: 79.17 kB / 3.578 GB, free: 9.039 MB / 458.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: 59 * Number of states: 0 () * Number of discrete variables: 11 (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,boundary.medium.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 (186): * Single equations (assignments): 182 * 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.0006033/9.532, allocations: 162.3 kB / 3.579 GB, free: 8.918 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004126/9.533, allocations: 129.9 kB / 3.579 GB, free: 8.852 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008326/9.541, allocations: 4.709 MB / 3.583 GB, free: 8.375 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.258e-05/9.541, allocations: 51.97 kB / 3.583 GB, free: 8.375 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.945e-06/9.541, allocations: 0 / 3.583 GB, free: 8.375 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.007218/9.549, allocations: 4.325 MB / 3.588 GB, free: 7.641 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0142/9.563, allocations: 6.975 MB / 3.594 GB, free: 22.99 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.83e-05/9.563, allocations: 0 / 3.594 GB, free: 22.99 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001521/9.564, allocations: 270.8 kB / 3.595 GB, free: 22.8 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002094/9.567, allocations: 0.5232 MB / 3.595 GB, free: 22.5 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002686/9.567, allocations: 24.84 kB / 3.595 GB, free: 22.49 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003473/9.57, allocations: 3.067 MB / 3.598 GB, free: 19.88 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.817e-06/9.57, allocations: 1.312 kB / 3.598 GB, free: 19.88 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008934/9.579, allocations: 4.66 MB / 3.603 GB, free: 17.29 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001425/9.581, allocations: 0.4896 MB / 3.603 GB, free: 16.92 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004802/9.581, allocations: 10.53 kB / 3.603 GB, free: 16.91 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001861/9.583, allocations: 133 kB / 3.603 GB, free: 16.82 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003897/9.584, allocations: 110 kB / 3.603 GB, free: 16.77 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000153/9.584, allocations: 44.27 kB / 3.603 GB, free: 16.74 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.001375/9.585, allocations: 0.6906 MB / 3.604 GB, free: 16.31 MB / 474.7 MB Notification: Performance of sort global known variables: time 9.34e-07/9.585, allocations: 0 / 3.604 GB, free: 16.31 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.009285/9.595, allocations: 2.066 MB / 3.606 GB, free: 14.37 MB / 474.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: 30 ($cse2.region3boundary,$cse3.region3boundary,$cse4.phase,$cse4.region,$cse5.phase,$cse5.region,$cse6.region3boundary,$cse7.region3boundary,$cse8.phase,$cse8.region,$cse9.phase,$cse9.region,$cse12.phase,$cse12.region,$cse13.phase,$cse13.region,$cse15.phase,$cse15.region,$cse16.phase,$cse16.region,$cse17.phase,$cse17.region,$cse19.phase,$cse19.region,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 (114): * Single equations (assignments): 96 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 14 * 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.0116/9.606, allocations: 2.34 MB / 3.608 GB, free: 12.57 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.007995/9.614, allocations: 3.299 MB / 3.612 GB, free: 10.74 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 9.501e-06/9.614, allocations: 1.125 kB / 3.612 GB, free: 10.74 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003434/9.618, allocations: 1.489 MB / 3.613 GB, free: 10 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004046/9.622, allocations: 0.5529 MB / 3.614 GB, free: 9.691 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4445/10.07, allocations: 57.61 MB / 3.67 GB, free: 73.92 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001568/10.07, allocations: 1.746 MB / 3.672 GB, free: 73.17 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007645/10.07, allocations: 135 kB / 3.672 GB, free: 73.16 MB / 474.7 MB Notification: Performance of SimCode: time 1.968e-06/10.07, allocations: 0 / 3.672 GB, free: 73.16 MB / 474.7 MB Notification: Performance of Templates: time 0.1199/10.19, allocations: 85.26 MB / 3.755 GB, free: 56.32 MB / 474.7 MB