Running command: translateModel(ModelicaTest.Fluid.TestExamplesVariants.BranchingDynamicPipes_MomentumSteadyState,tolerance=1e-05,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|pipe1.mediums.1..T|pipe1.mediums.1..Xi.1.|pipe1.mediums.1..p|pipe1.mediums.2..T|pipe1.mediums.2..Xi.1.|pipe1.mediums.2..p|pipe1.mediums.3..T|pipe1.mediums.3..Xi.1.|pipe1.mediums.3..p|pipe1.mediums.4..T|pipe1.mediums.4..Xi.1.|pipe1.mediums.4..p|pipe1.mediums.5..T|pipe1.mediums.5..Xi.1.|pipe1.mediums.5..p|pipe2.mediums.1..T|pipe2.mediums.1..Xi.1.|pipe2.mediums.1..p|pipe2.mediums.2..T|pipe2.mediums.2..Xi.1.|pipe2.mediums.2..p|pipe2.mediums.3..T|pipe2.mediums.3..Xi.1.|pipe2.mediums.3..p|pipe2.mediums.4..T|pipe2.mediums.4..Xi.1.|pipe2.mediums.4..p|pipe2.mediums.5..T|pipe2.mediums.5..Xi.1.|pipe2.mediums.5..p|pipe3.mediums.1..T|pipe3.mediums.1..Xi.1.|pipe3.mediums.1..p|pipe3.mediums.2..T|pipe3.mediums.2..Xi.1.|pipe3.mediums.2..p|pipe3.mediums.3..T|pipe3.mediums.3..Xi.1.|pipe3.mediums.3..p|pipe3.mediums.4..T|pipe3.mediums.4..Xi.1.|pipe3.mediums.4..p|pipe3.mediums.5..T|pipe3.mediums.5..Xi.1.|pipe3.mediums.5..p|pipe4.mediums.1..T|pipe4.mediums.1..Xi.1.|pipe4.mediums.1..p|pipe4.mediums.2..T|pipe4.mediums.2..Xi.1.|pipe4.mediums.2..p|pipe4.mediums.3..T|pipe4.mediums.3..Xi.1.|pipe4.mediums.3..p|pipe4.mediums.4..T|pipe4.mediums.4..Xi.1.|pipe4.mediums.4..p|pipe4.mediums.5..T|pipe4.mediums.5..Xi.1.|pipe4.mediums.5..p",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Fluid.TestExamplesVariants.BranchingDynamicPipes_MomentumSteadyState") Notification: Performance of loadModel(ModelicaTest): time 2.271/2.271, allocations: 249.5 MB / 261.6 MB, free: 2.152 MB / 202.8 MB Notification: Performance of FrontEnd - loaded program: time 3.324e-05/3.347e-05, allocations: 4 kB / 323.4 MB, free: 4.309 MB / 266.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3294/0.3294, allocations: 58.84 MB / 382.2 MB, free: 10.31 MB / 314.8 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.666/8.995, allocations: 3.627 GB / 4 GB, free: 154.5 MB / 0.4949 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001957/8.995, allocations: 78.08 kB / 4 GB, free: 154.5 MB / 0.4949 GB Notification: Performance of FrontEnd - DAE generated: time 5.12/14.12, allocations: 0.9778 GB / 4.978 GB, free: 33.94 MB / 0.5574 GB Notification: Performance of FrontEnd: time 2.939e-06/14.12, allocations: 1.125 kB / 4.978 GB, free: 33.94 MB / 0.5574 GB Notification: Performance of Transformations before backend: time 0.0005136/14.12, allocations: 161.5 kB / 4.978 GB, free: 33.93 MB / 0.5574 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2025 * Number of variables: 2025 Notification: Performance of Generate backend data structure: time 0.04425/14.16, allocations: 9.644 MB / 4.987 GB, free: 30.34 MB / 0.5574 GB Notification: Performance of prepare preOptimizeDAE: time 4.207e-05/14.16, allocations: 7.875 kB / 4.987 GB, free: 30.34 MB / 0.5574 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007845/14.17, allocations: 0.862 MB / 4.988 GB, free: 29.95 MB / 0.5574 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02138/14.19, allocations: 5.736 MB / 4.994 GB, free: 29.16 MB / 0.5574 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007732/14.19, allocations: 0.5234 MB / 4.994 GB, free: 29.14 MB / 0.5574 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004133/14.19, allocations: 0.7002 MB / 4.995 GB, free: 29.12 MB / 0.5574 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04023/14.24, allocations: 13.76 MB / 5.008 GB, free: 28.47 MB / 0.5574 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.000382/14.24, allocations: 25.66 kB / 5.008 GB, free: 28.46 MB / 0.5574 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003674/14.24, allocations: 286.7 kB / 5.009 GB, free: 28.46 MB / 0.5574 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0008545/14.24, allocations: 0.7096 MB / 5.009 GB, free: 28.45 MB / 0.5574 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0409/14.28, allocations: 16.1 MB / 5.025 GB, free: 28.42 MB / 0.5574 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.111/14.39, allocations: 47.56 MB / 5.072 GB, free: 13.56 MB / 0.5574 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02546/14.42, allocations: 10.54 MB / 5.082 GB, free: 13.47 MB / 0.5574 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0159/14.43, allocations: 7.154 MB / 5.089 GB, free: 13.32 MB / 0.5574 GB Notification: Performance of preOpt evalFunc (simulation): time 0.005144/14.44, allocations: 4.134 MB / 5.093 GB, free: 24.99 MB / 0.573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002112/14.44, allocations: 150.4 kB / 5.093 GB, free: 24.88 MB / 0.573 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.006976/14.45, allocations: 0.864 MB / 5.094 GB, free: 24.37 MB / 0.573 GB Notification: Performance of pre-optimization done (n=882): time 2.982e-05/14.45, allocations: 0 / 5.094 GB, free: 24.37 MB / 0.573 GB Notification: Performance of matching and sorting (n=1122): time 0.3905/14.84, allocations: 84.64 MB / 5.176 GB, free: 4.934 MB / 0.5886 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001843/14.84, allocations: 169 kB / 5.177 GB, free: 4.758 MB / 0.5886 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009254/14.85, allocations: 3.456 MB / 5.18 GB, free: 1.691 MB / 0.5886 GB Notification: Performance of collectPreVariables (initialization): time 0.003853/14.85, allocations: 229.7 kB / 5.18 GB, free: 1.461 MB / 0.5886 GB Notification: Performance of collectInitialEqns (initialization): time 0.4085/15.26, allocations: 2.386 MB / 5.183 GB, free: 60.65 MB / 0.5886 GB Notification: Performance of collectInitialBindings (initialization): time 0.006588/15.27, allocations: 3.899 MB / 5.186 GB, free: 58.98 MB / 0.5886 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003068/15.27, allocations: 211.5 kB / 5.187 GB, free: 58.98 MB / 0.5886 GB Notification: Performance of setup shared object (initialization): time 0.001059/15.27, allocations: 0.745 MB / 5.187 GB, free: 58.65 MB / 0.5886 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.02112/15.29, allocations: 8.791 MB / 5.196 GB, free: 58.63 MB / 0.5886 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02286/15.31, allocations: 10.11 MB / 5.206 GB, free: 57.56 MB / 0.5886 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0244/15.34, allocations: 9.852 MB / 5.215 GB, free: 57.41 MB / 0.5886 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.063e-05/15.34, allocations: 12.95 kB / 5.215 GB, free: 57.41 MB / 0.5886 GB Notification: Performance of matching and sorting (n=1368) (initialization): time 0.07812/15.42, allocations: 28.51 MB / 5.243 GB, free: 56.73 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 0.002352/15.42, allocations: 11.88 MB / 5.255 GB, free: 44.09 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001145/15.42, allocations: 28.53 kB / 5.255 GB, free: 44.09 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.3572/15.78, allocations: 77.38 MB / 5.33 GB, free: 32.6 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00698/15.78, allocations: 1.059 MB / 5.331 GB, free: 31.8 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.07558/15.86, allocations: 31.6 MB / 5.362 GB, free: 12.27 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01875/15.88, allocations: 1.788 MB / 5.364 GB, free: 11.13 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.004008/15.88, allocations: 0.5916 MB / 5.365 GB, free: 10.64 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 1.715e-05/15.88, allocations: 4 kB / 5.365 GB, free: 10.63 MB / 0.5886 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.1095/15.99, allocations: 28.88 MB / 5.393 GB, free: 9.328 MB / 0.6043 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001296/15.99, allocations: 30.02 kB / 5.393 GB, free: 9.301 MB / 0.6043 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.7799/16.77, allocations: 71.28 MB / 5.463 GB, free: 69.29 MB / 0.6043 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007947/16.78, allocations: 1.161 MB / 5.464 GB, free: 69.29 MB / 0.6043 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.06656/16.85, allocations: 28.51 MB / 5.491 GB, free: 68.48 MB / 0.6043 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01879/16.86, allocations: 1.742 MB / 5.493 GB, free: 68.48 MB / 0.6043 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003828/16.87, allocations: 0.5792 MB / 5.494 GB, free: 68.48 MB / 0.6043 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 123 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (581): * Single equations (assignments): 580 * 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 {74 714} Notification: Performance of prepare postOptimizeDAE: time 0.004732/16.87, allocations: 0.6012 MB / 5.494 GB, free: 68.37 MB / 0.6043 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003169/16.88, allocations: 0.653 MB / 5.495 GB, free: 68.37 MB / 0.6043 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.07251/16.95, allocations: 26.86 MB / 5.521 GB, free: 67.5 MB / 0.6043 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001343/16.95, allocations: 118.6 kB / 5.521 GB, free: 67.5 MB / 0.6043 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.848e-05/16.95, allocations: 0 / 5.521 GB, free: 67.5 MB / 0.6043 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0512/17, allocations: 20.5 MB / 5.541 GB, free: 65.61 MB / 0.6043 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1034/17.1, allocations: 41.47 MB / 5.582 GB, free: 38.43 MB / 0.6043 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001209/17.1, allocations: 6.203 kB / 5.582 GB, free: 38.42 MB / 0.6043 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01663/17.12, allocations: 2.137 MB / 5.584 GB, free: 36.75 MB / 0.6043 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.04915/17.17, allocations: 11.67 MB / 5.595 GB, free: 29.02 MB / 0.6043 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.003394/17.17, allocations: 0.6071 MB / 5.596 GB, free: 28.56 MB / 0.6043 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03307/17.21, allocations: 30.02 MB / 5.625 GB, free: 444 kB / 0.6043 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.086e-06/17.21, allocations: 4.906 kB / 5.625 GB, free: 444 kB / 0.6043 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.5109/17.72, allocations: 35.37 MB / 5.66 GB, free: 79.16 MB / 0.6199 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002811/17.72, allocations: 0.8032 MB / 5.661 GB, free: 79.07 MB / 0.6199 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.004784/17.72, allocations: 461 kB / 5.661 GB, free: 79.07 MB / 0.6199 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01805/17.74, allocations: 1.449 MB / 5.662 GB, free: 79.07 MB / 0.6199 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003831/17.75, allocations: 0.774 MB / 5.663 GB, free: 79.06 MB / 0.6199 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.003912/17.75, allocations: 0.5585 MB / 5.664 GB, free: 79.06 MB / 0.6199 GB Notification: Performance of sorting global known variables: time 0.005988/17.76, allocations: 2.637 MB / 5.666 GB, free: 78.9 MB / 0.6199 GB Notification: Performance of sort global known variables: time 1.138e-06/17.76, allocations: 1.641 kB / 5.666 GB, free: 78.9 MB / 0.6199 GB Notification: Performance of remove unused functions: time 0.03066/17.79, allocations: 6.964 MB / 5.673 GB, free: 78.9 MB / 0.6199 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 60 (pipe1.mediums[1].p,pipe1.mediums[1].Xi[1],pipe1.mediums[1].T,pipe1.mediums[2].p,pipe1.mediums[2].Xi[1],pipe1.mediums[2].T,pipe1.mediums[3].p,pipe1.mediums[3].Xi[1],pipe1.mediums[3].T,pipe1.mediums[4].p,pipe1.mediums[4].Xi[1],pipe1.mediums[4].T,pipe1.mediums[5].p,pipe1.mediums[5].Xi[1],pipe1.mediums[5].T,pipe2.mediums[1].p,pipe2.mediums[1].Xi[1],pipe2.mediums[1].T,pipe2.mediums[2].p,pipe2.mediums[2].Xi[1],pipe2.mediums[2].T,pipe2.mediums[3].p,pipe2.mediums[3].Xi[1],pipe2.mediums[3].T,pipe2.mediums[4].p,pipe2.mediums[4].Xi[1],pipe2.mediums[4].T,pipe2.mediums[5].p,pipe2.mediums[5].Xi[1],pipe2.mediums[5].T,pipe3.mediums[1].p,pipe3.mediums[1].Xi[1],pipe3.mediums[1].T,pipe3.mediums[2].p,pipe3.mediums[2].Xi[1],pipe3.mediums[2].T,pipe3.mediums[3].p,pipe3.mediums[3].Xi[1],pipe3.mediums[3].T,pipe3.mediums[4].p,pipe3.mediums[4].Xi[1],pipe3.mediums[4].T,pipe3.mediums[5].p,pipe3.mediums[5].Xi[1],pipe3.mediums[5].T,pipe4.mediums[1].p,pipe4.mediums[1].Xi[1],pipe4.mediums[1].T,pipe4.mediums[2].p,pipe4.mediums[2].Xi[1],pipe4.mediums[2].T,pipe4.mediums[3].p,pipe4.mediums[3].Xi[1],pipe4.mediums[3].T,pipe4.mediums[4].p,pipe4.mediums[4].Xi[1],pipe4.mediums[4].T,pipe4.mediums[5].p,pipe4.mediums[5].Xi[1],pipe4.mediums[5].T) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (1057): * Single equations (assignments): 1030 * 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: 27 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 5 {(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 22 {2 6,2 6,2 6,2 6,2 6,2 6,2 6,4 20,2 6,2 6,2 6,2 6,2 6,2 6,4 20,2 6,2 6,2 6,2 6,2 6,2 6,2 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.0161/17.8, allocations: 3.999 MB / 5.677 GB, free: 78.65 MB / 0.6199 GB Notification: Performance of simCode: created initialization part: time 0.08739/17.89, allocations: 33.02 MB / 5.709 GB, free: 78.21 MB / 0.6199 GB Notification: Performance of simCode: created event and clocks part: time 1.639e-05/17.89, allocations: 7.5 kB / 5.709 GB, free: 78.21 MB / 0.6199 GB Notification: Performance of simCode: created simulation system equations: time 0.03016/17.92, allocations: 11.43 MB / 5.72 GB, free: 77.65 MB / 0.6199 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.02208/17.94, allocations: 3.159 MB / 5.723 GB, free: 77.57 MB / 0.6199 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0745/18.02, allocations: 25.96 MB / 5.749 GB, free: 74.09 MB / 0.6199 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009724/18.03, allocations: 5.2 MB / 5.754 GB, free: 73.14 MB / 0.6199 GB Notification: Performance of simCode: alias equations: time 0.02785/18.06, allocations: 5.576 MB / 5.759 GB, free: 72.61 MB / 0.6199 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006221/18.06, allocations: 0.722 MB / 5.76 GB, free: 72.6 MB / 0.6199 GB Notification: Performance of SimCode: time 1.912e-06/18.06, allocations: 1.75 kB / 5.76 GB, free: 72.6 MB / 0.6199 GB Notification: Performance of Templates: time 2.005/20.07, allocations: 410.3 MB / 6.161 GB, free: 113.3 MB / 0.6512 GB