Running command: translateModel(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|pipe1.mediums.1..h|pipe1.mediums.1..p|pipe2.mediums.1..h|pipe2.mediums.1..p|pipe3.mediums.1..h|pipe3.mediums.1..p|splitter.medium.h|splitter.medium.p|valveOpening1.a|valveOpening1.b|valveOpening1.last|valveOpening1.nextEvent|valveOpening2.a|valveOpening2.b|valveOpening2.last|valveOpening2.nextEvent",fileNamePrefix="ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4") Notification: Performance of loadModel(ModelicaTest): time 1.837/1.837, allocations: 209.3 MB / 221.5 MB, free: 1.855 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.534e-05/3.545e-05, allocations: 7.984 kB / 273.1 MB, free: 236 kB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08669/0.08674, allocations: 48.71 MB / 321.8 MB, free: 15.43 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.144/6.23, allocations: 2.549 GB / 2.864 GB, free: 88.61 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001879/6.231, allocations: 75.64 kB / 2.864 GB, free: 88.57 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.971/10.2, allocations: 0.876 GB / 3.74 GB, free: 29.42 MB / 474.7 MB Notification: Performance of FrontEnd: time 2.058e-06/10.2, allocations: 0 / 3.74 GB, free: 29.42 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0002791/10.2, allocations: 64.7 kB / 3.74 GB, free: 29.41 MB / 474.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 532 * Number of variables: 532 Notification: Performance of Generate backend data structure: time 0.01521/10.22, allocations: 3.898 MB / 3.744 GB, free: 27.55 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.381e-05/10.22, allocations: 10.27 kB / 3.744 GB, free: 27.55 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008821/10.23, allocations: 0.8459 MB / 3.745 GB, free: 27.42 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007311/10.23, allocations: 2.064 MB / 3.747 GB, free: 26.91 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003006/10.23, allocations: 186 kB / 3.747 GB, free: 26.9 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008422/10.23, allocations: 194.6 kB / 3.747 GB, free: 26.9 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01056/10.24, allocations: 3.636 MB / 3.75 GB, free: 26.36 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.667e-05/10.25, allocations: 9.219 kB / 3.75 GB, free: 26.36 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004185/10.25, allocations: 84.91 kB / 3.751 GB, free: 26.36 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002784/10.25, allocations: 172.9 kB / 3.751 GB, free: 26.35 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0102/10.26, allocations: 3.238 MB / 3.754 GB, free: 26.32 MB / 474.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.0236/10.28, allocations: 15.38 MB / 3.769 GB, free: 16.72 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006995/10.29, allocations: 2.161 MB / 3.771 GB, free: 16 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002067/10.29, allocations: 1.015 MB / 3.772 GB, free: 15.61 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04315/10.33, allocations: 18.93 MB / 3.79 GB, free: 18.87 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005381/10.34, allocations: 1.667 MB / 3.792 GB, free: 18.32 MB / 490.7 MB Notification: Performance of pre-optimization done (n=159): time 6.717e-06/10.34, allocations: 3.938 kB / 3.792 GB, free: 18.32 MB / 490.7 MB Notification: Performance of matching and sorting (n=175): time 0.02751/10.36, allocations: 7.52 MB / 3.799 GB, free: 14.46 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001939/10.37, allocations: 256.6 kB / 3.8 GB, free: 14.16 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002656/10.37, allocations: 1.439 MB / 3.801 GB, free: 12.88 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004491/10.37, allocations: 57.7 kB / 3.801 GB, free: 12.81 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001097/10.37, allocations: 0.9865 MB / 3.802 GB, free: 11.91 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001002/10.37, allocations: 0.5912 MB / 3.803 GB, free: 11.38 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002377/10.37, allocations: 40 kB / 3.803 GB, free: 11.34 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0002659/10.37, allocations: 392 kB / 3.803 GB, free: 10.97 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002462/10.37, allocations: 1.008 MB / 3.804 GB, free: 10.07 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003069/10.38, allocations: 1.449 MB / 3.806 GB, free: 8.559 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003236/10.38, allocations: 1.265 MB / 3.807 GB, free: 7.469 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.058e-05/10.38, allocations: 4 kB / 3.807 GB, free: 7.465 MB / 490.7 MB Notification: Performance of matching and sorting (n=259) (initialization): time 0.008636/10.39, allocations: 3.03 MB / 3.81 GB, free: 4.754 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.3235/10.71, allocations: 4.998 MB / 3.815 GB, free: 43.82 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.718e-05/10.71, allocations: 12.94 kB / 3.815 GB, free: 43.82 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001275/10.71, allocations: 232.2 kB / 3.815 GB, free: 43.79 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003445/10.72, allocations: 0.5167 MB / 3.815 GB, free: 43.79 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001689/10.72, allocations: 2.431 MB / 3.818 GB, free: 41.72 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003544/10.72, allocations: 266.2 kB / 3.818 GB, free: 41.72 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005735/10.72, allocations: 106 kB / 3.818 GB, free: 41.72 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.797e-05/10.72, allocations: 5.031 kB / 3.818 GB, free: 41.72 MB / 490.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.007589/10.73, allocations: 2.765 MB / 3.821 GB, free: 41.61 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.449e-05/10.73, allocations: 13.66 kB / 3.821 GB, free: 41.61 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001059/10.73, allocations: 235.8 kB / 3.821 GB, free: 41.57 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003301/10.73, allocations: 0.507 MB / 3.821 GB, free: 41.57 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001579/10.74, allocations: 2.432 MB / 3.824 GB, free: 39.5 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003158/10.74, allocations: 267.5 kB / 3.824 GB, free: 39.5 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003491/10.74, allocations: 104.9 kB / 3.824 GB, free: 39.5 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 55 * Number of states: 0 () * Number of discrete variables: 28 (pipe3.state_a.phase,pipe2.state_a.phase,valveIncompressible1.state_b.phase,valveIncompressible1.state_a.phase,valveIncompressible.state_b.phase,valveIncompressible.state_a.phase,pipe1.state_b.phase,pipe1.state_a.phase,$whenCondition1,$whenCondition2,source.medium.phase,pipe1.statesFM[2].phase,sink.medium.phase,pipe2.statesFM[2].phase,pipe3.statesFM[2].phase,valveOpening1.a,valveOpening1.b,valveOpening1.last,$PRE.valveOpening1.nextEvent,valveOpening1.nextEvent,valveOpening2.a,valveOpening2.b,valveOpening2.last,$PRE.valveOpening2.nextEvent,valveOpening2.nextEvent,splitter.medium.phase,pipe3.state_b.phase,pipe2.state_b.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (247): * Single equations (assignments): 241 * Array equations: 0 * Algorithm blocks: 2 * 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 {1 1,1 1,1 1,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0007459/10.74, allocations: 302.2 kB / 3.825 GB, free: 39.33 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005783/10.74, allocations: 207.1 kB / 3.825 GB, free: 39.33 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01516/10.76, allocations: 7.532 MB / 3.832 GB, free: 38.77 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001082/10.76, allocations: 83.41 kB / 3.832 GB, free: 38.77 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.303e-05/10.76, allocations: 3.312 kB / 3.832 GB, free: 38.77 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01136/10.77, allocations: 6.568 MB / 3.839 GB, free: 37.84 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01985/10.79, allocations: 10.72 MB / 3.849 GB, free: 37.21 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.652e-05/10.79, allocations: 2.312 kB / 3.849 GB, free: 37.21 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002689/10.79, allocations: 405 kB / 3.849 GB, free: 37.21 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001913/10.79, allocations: 344 kB / 3.85 GB, free: 37.18 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004904/10.79, allocations: 63.77 kB / 3.85 GB, free: 37.18 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001593/10.8, allocations: 2.516 MB / 3.852 GB, free: 35.11 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.82e-06/10.8, allocations: 1.5 kB / 3.852 GB, free: 35.11 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0127/10.81, allocations: 6.794 MB / 3.859 GB, free: 34.48 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002234/10.81, allocations: 0.7513 MB / 3.86 GB, free: 34.21 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000729/10.81, allocations: 54.53 kB / 3.86 GB, free: 34.21 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002693/10.81, allocations: 210.2 kB / 3.86 GB, free: 34.21 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004779/10.81, allocations: 141.4 kB / 3.86 GB, free: 34.21 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002565/10.81, allocations: 75.95 kB / 3.86 GB, free: 34.21 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.00252/10.82, allocations: 1.195 MB / 3.861 GB, free: 34.05 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.099e-06/10.82, allocations: 0 / 3.861 GB, free: 34.05 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.01165/10.83, allocations: 2.82 MB / 3.864 GB, free: 34.05 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 8 (pipe1.mediums[1].p,pipe1.mediums[1].h,pipe2.mediums[1].p,pipe2.mediums[1].h,pipe3.mediums[1].p,pipe3.mediums[1].h,splitter.medium.p,splitter.medium.h) * Number of discrete variables: 54 ($cse3.phase,$cse3.region,$cse5.region3boundary,$cse6.region3boundary,$cse7.phase,$cse7.region,$cse10.phase,$cse10.region,$cse11.phase,$cse11.region,$cse16.phase,$cse16.region,$cse17.phase,$cse17.region,$cse19.phase,$cse19.region,$cse20.phase,$cse20.region,$cse25.phase,$cse25.region,$cse26.phase,$cse26.region,$cse28.phase,$cse28.region,$cse31.phase,$cse31.region,$cse33.region3boundary,$cse34.region3boundary,$cse35.phase,$cse35.region,$cse37.region3boundary,$cse38.region3boundary,$cse39.phase,$cse39.region,$cse41.region3boundary,$cse42.region3boundary,$cse43.phase,$cse43.region,$whenCondition1,$whenCondition2,source.medium.phase,pipe1.statesFM[2].phase,sink.medium.phase,pipe2.statesFM[2].phase,pipe3.statesFM[2].phase,valveOpening1.a,valveOpening1.b,valveOpening1.last,valveOpening1.nextEvent,valveOpening2.a,valveOpening2.b,valveOpening2.last,valveOpening2.nextEvent,splitter.medium.phase) * Number of discrete states: 10 (valveOpening2.last,valveOpening2.nextEvent,valveOpening2.b,valveOpening2.a,$whenCondition2,valveOpening1.last,valveOpening1.nextEvent,valveOpening1.b,valveOpening1.a,$whenCondition1) * Top-level inputs: 0 Notification: Strong component statistics for simulation (200): * Single equations (assignments): 171 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 23 * 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 {1 1,1 1,1 1,1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.01298/10.84, allocations: 2.964 MB / 3.867 GB, free: 33.79 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.01037/10.85, allocations: 4.884 MB / 3.872 GB, free: 33.46 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 8.302e-06/10.85, allocations: 0 / 3.872 GB, free: 33.46 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004505/10.86, allocations: 2.333 MB / 3.874 GB, free: 33.32 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006227/10.86, allocations: 0.9566 MB / 3.875 GB, free: 33.3 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.6012/11.46, allocations: 125.5 MB / 3.997 GB, free: 57.96 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002874/11.47, allocations: 2.277 MB / 4 GB, free: 57.19 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.008399/11.48, allocations: 2.618 MB / 4.002 GB, free: 57.16 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009854/11.48, allocations: 176.4 kB / 4.002 GB, free: 57.16 MB / 0.4948 GB Notification: Performance of SimCode: time 1.683e-06/11.48, allocations: 0 / 4.002 GB, free: 57.16 MB / 0.4948 GB Notification: Performance of Templates: time 0.1773/11.65, allocations: 89.99 MB / 4.09 GB, free: 52.88 MB / 0.4948 GB