Running command: translateModel(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes13,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|valveOpening1.a|valveOpening1.b|valveOpening1.last|valveOpening1.nextEvent|valveOpening2.a|valveOpening2.b|valveOpening2.last|valveOpening2.nextEvent",fileNamePrefix="ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes13") Notification: Performance of loadModel(ModelicaTest): time 2.173/2.173, allocations: 235 MB / 247.2 MB, free: 14.56 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.401e-05/3.417e-05, allocations: 4 kB / 304.9 MB, free: 5.387 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3623/0.3623, allocations: 54.86 MB / 359.8 MB, free: 3.027 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 5.927/6.29, allocations: 2.656 GB / 3.008 GB, free: 17.26 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002116/6.29, allocations: 71.97 kB / 3.008 GB, free: 17.19 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.094/10.38, allocations: 0.8624 GB / 3.87 GB, free: 35.46 MB / 0.5105 GB Notification: Performance of FrontEnd: time 2.153e-06/10.38, allocations: 2.469 kB / 3.87 GB, free: 35.46 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 0.0002184/10.38, allocations: 63.22 kB / 3.87 GB, free: 35.45 MB / 0.5105 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 476 * Number of variables: 476 Notification: Performance of Generate backend data structure: time 0.01417/10.4, allocations: 3.822 MB / 3.874 GB, free: 33.79 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 4.093e-05/10.4, allocations: 7.875 kB / 3.874 GB, free: 33.79 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007233/10.41, allocations: 0.7811 MB / 3.875 GB, free: 33.66 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006048/10.41, allocations: 1.948 MB / 3.877 GB, free: 33.23 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002209/10.41, allocations: 161.2 kB / 3.877 GB, free: 33.22 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005006/10.41, allocations: 185.5 kB / 3.877 GB, free: 33.22 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008652/10.42, allocations: 3.251 MB / 3.88 GB, free: 32.77 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.544e-05/10.42, allocations: 11.52 kB / 3.88 GB, free: 32.77 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003175/10.42, allocations: 84.62 kB / 3.88 GB, free: 32.77 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002141/10.42, allocations: 146.5 kB / 3.88 GB, free: 32.76 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008662/10.43, allocations: 2.874 MB / 3.883 GB, free: 32.75 MB / 0.5105 GB 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.02106/10.45, allocations: 14.06 MB / 3.897 GB, free: 24.23 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005201/10.46, allocations: 1.942 MB / 3.899 GB, free: 24.2 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001805/10.46, allocations: 0.9519 MB / 3.9 GB, free: 24.19 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0432/10.5, allocations: 18.95 MB / 3.918 GB, free: 28.34 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004905/10.51, allocations: 1.556 MB / 3.92 GB, free: 28.21 MB / 0.5261 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001532/10.51, allocations: 163.3 kB / 3.92 GB, free: 28.14 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=146): time 7.606e-06/10.51, allocations: 0 / 3.92 GB, free: 28.14 MB / 0.5261 GB Notification: Performance of matching and sorting (n=158): time 0.02323/10.53, allocations: 6.737 MB / 3.927 GB, free: 27.21 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000161/10.53, allocations: 258.5 kB / 3.927 GB, free: 26.93 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002456/10.53, allocations: 1.329 MB / 3.928 GB, free: 26.75 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0003735/10.54, allocations: 58.53 kB / 3.928 GB, free: 26.72 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008289/10.54, allocations: 0.9054 MB / 3.929 GB, free: 26.35 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005681/10.54, allocations: 0.5278 MB / 3.93 GB, free: 26.02 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001683/10.54, allocations: 35.81 kB / 3.93 GB, free: 26.02 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0002346/10.54, allocations: 383.5 kB / 3.93 GB, free: 25.71 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001905/10.54, allocations: 0.9162 MB / 3.931 GB, free: 25.7 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002198/10.54, allocations: 1.322 MB / 3.932 GB, free: 25.27 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002316/10.54, allocations: 1.147 MB / 3.933 GB, free: 25.18 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.257e-05/10.54, allocations: 5.75 kB / 3.933 GB, free: 25.18 MB / 0.5261 GB Notification: Performance of matching and sorting (n=230) (initialization): time 0.0068/10.55, allocations: 2.889 MB / 3.936 GB, free: 24.91 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.00208/10.55, allocations: 4.364 MB / 3.94 GB, free: 20.3 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.913e-05/10.55, allocations: 14.19 kB / 3.94 GB, free: 20.3 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003561/10.56, allocations: 0.5894 MB / 3.941 GB, free: 20.27 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002472/10.56, allocations: 441.2 kB / 3.941 GB, free: 20.27 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003053/10.56, allocations: 2.817 MB / 3.944 GB, free: 18.2 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002859/10.56, allocations: 239.9 kB / 3.944 GB, free: 18.18 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002904/10.56, allocations: 95.36 kB / 3.944 GB, free: 18.18 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.312e-05/10.56, allocations: 3.344 kB / 3.944 GB, free: 18.18 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005424/10.57, allocations: 2.494 MB / 3.947 GB, free: 18.05 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.309e-05/10.57, allocations: 11.34 kB / 3.947 GB, free: 18.05 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008988/10.57, allocations: 196.2 kB / 3.947 GB, free: 18.02 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002696/10.57, allocations: 457.8 kB / 3.947 GB, free: 18.02 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00165/10.58, allocations: 1.882 MB / 3.949 GB, free: 16.46 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002668/10.58, allocations: 233.2 kB / 3.95 GB, free: 16.45 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002858/10.58, allocations: 91.55 kB / 3.95 GB, free: 16.45 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 48 * Number of states: 0 () * Number of discrete variables: 29 (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_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,valveOpening1.nextEventScaled,valveOpening2.a,valveOpening2.b,valveOpening2.last,$PRE.valveOpening2.nextEvent,valveOpening2.nextEvent,valveOpening2.nextEventScaled,pipe3.state_b.phase,pipe2.state_b.phase,pipe1.state_b.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (205): * Single equations (assignments): 199 * 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,2 9} Notification: Performance of prepare postOptimizeDAE: time 0.0006802/10.58, allocations: 291.9 kB / 3.95 GB, free: 16.27 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004187/10.58, allocations: 195.4 kB / 3.95 GB, free: 16.17 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01131/10.59, allocations: 7.342 MB / 3.957 GB, free: 14.17 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.581e-05/10.59, allocations: 87.44 kB / 3.957 GB, free: 14.14 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.135e-05/10.59, allocations: 0 / 3.957 GB, free: 14.14 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00931/10.6, allocations: 6.422 MB / 3.964 GB, free: 11.06 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01616/10.62, allocations: 10.2 MB / 3.974 GB, free: 6.688 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.551e-05/10.62, allocations: 2.344 kB / 3.974 GB, free: 6.688 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001819/10.62, allocations: 339.4 kB / 3.974 GB, free: 6.664 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004046/10.62, allocations: 1.587 MB / 3.975 GB, free: 6.34 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000373/10.62, allocations: 63.12 kB / 3.976 GB, free: 6.312 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003743/10.63, allocations: 3.47 MB / 3.979 GB, free: 3.648 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.441e-06/10.63, allocations: 0 / 3.979 GB, free: 3.648 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01902/10.65, allocations: 7.307 MB / 3.986 GB, free: 15.92 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002113/10.65, allocations: 0.7021 MB / 3.987 GB, free: 15.29 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005066/10.65, allocations: 47.47 kB / 3.987 GB, free: 15.25 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00195/10.65, allocations: 185 kB / 3.987 GB, free: 15.11 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003494/10.65, allocations: 128.5 kB / 3.987 GB, free: 15.03 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002394/10.65, allocations: 67.27 kB / 3.987 GB, free: 14.97 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.002431/10.65, allocations: 1.128 MB / 3.988 GB, free: 13.93 MB / 0.5417 GB Notification: Performance of sort global known variables: time 1.088e-06/10.65, allocations: 7.938 kB / 3.988 GB, free: 13.92 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.01075/10.66, allocations: 2.697 MB / 3.991 GB, free: 11.28 MB / 0.5417 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (pipe1.mediums[1].p,pipe1.mediums[1].h,pipe2.mediums[1].p,pipe2.mediums[1].h,pipe3.mediums[1].p,pipe3.mediums[1].h) * Number of discrete variables: 55 ($cse3.phase,$cse3.region,$cse5.region3boundary,$cse6.region3boundary,$cse7.phase,$cse7.region,$cse9.phase,$cse9.region,$cse10.phase,$cse10.region,$cse15.phase,$cse15.region,$cse16.phase,$cse16.region,$cse18.phase,$cse18.region,$cse19.phase,$cse19.region,$cse24.phase,$cse24.region,$cse25.phase,$cse25.region,$cse27.phase,$cse27.region,$cse30.phase,$cse30.region,$cse32.region3boundary,$cse33.region3boundary,$cse34.phase,$cse34.region,$cse36.phase,$cse36.region,$cse37.region3boundary,$cse38.region3boundary,$cse39.phase,$cse39.region,$cse41.phase,$cse41.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,valveOpening1.nextEventScaled,valveOpening2.a,valveOpening2.b,valveOpening2.last,valveOpening2.nextEvent,valveOpening2.nextEventScaled) * Number of discrete states: 12 (valveOpening2.nextEvent,valveOpening2.last,valveOpening2.nextEventScaled,valveOpening2.b,valveOpening2.a,$whenCondition2,valveOpening1.nextEvent,valveOpening1.last,valveOpening1.nextEventScaled,valveOpening1.b,valveOpening1.a,$whenCondition1) * Top-level inputs: 0 Notification: Strong component statistics for simulation (164): * Single equations (assignments): 138 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 20 * 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,2 16} Notification: Performance of Backend phase and start with SimCode phase: time 0.01304/10.68, allocations: 2.9 MB / 3.994 GB, free: 9.062 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.01068/10.69, allocations: 4.602 MB / 3.998 GB, free: 4.805 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 8.484e-06/10.69, allocations: 0 / 3.998 GB, free: 4.805 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.00465/10.69, allocations: 2.212 MB / 4 GB, free: 2.742 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005582/10.7, allocations: 0.8957 MB / 4.001 GB, free: 2.09 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.6287/11.33, allocations: 127.3 MB / 4.126 GB, free: 53.33 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00193/11.33, allocations: 2.178 MB / 4.128 GB, free: 52.53 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.005641/11.34, allocations: 2.342 MB / 4.13 GB, free: 52.43 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005941/11.34, allocations: 152.1 kB / 4.13 GB, free: 52.43 MB / 0.5417 GB Notification: Performance of SimCode: time 1.711e-06/11.34, allocations: 0 / 4.13 GB, free: 52.43 MB / 0.5417 GB Notification: Performance of Templates: time 0.5696/11.91, allocations: 87.27 MB / 4.215 GB, free: 61.58 MB / 0.5417 GB