Running command: translateModel(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|junctionIdeal.medium.h|junctionIdeal.medium.p|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.1_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14") Notification: Performance of loadModel(ModelicaTest): time 1.86/1.86, allocations: 209.3 MB / 221.5 MB, free: 7.734 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.934e-05/2.98e-05, allocations: 4 kB / 273.1 MB, free: 3.172 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08651/0.08656, allocations: 48.69 MB / 321.8 MB, free: 2.383 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.158/6.245, allocations: 2.566 GB / 2.881 GB, free: 62.67 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002332/6.245, allocations: 74.84 kB / 2.881 GB, free: 62.63 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.037/10.28, allocations: 0.8797 GB / 3.76 GB, free: 30.27 MB / 474.7 MB Notification: Performance of FrontEnd: time 2.26e-06/10.28, allocations: 0 / 3.76 GB, free: 30.27 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.00024/10.28, allocations: 65.58 kB / 3.76 GB, free: 30.25 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.01409/10.3, allocations: 3.822 MB / 3.764 GB, free: 28.16 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.211e-05/10.3, allocations: 11 kB / 3.764 GB, free: 28.16 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007999/10.3, allocations: 0.8512 MB / 3.765 GB, free: 27.95 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00665/10.31, allocations: 2.082 MB / 3.767 GB, free: 27 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002409/10.31, allocations: 187.2 kB / 3.767 GB, free: 26.93 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005718/10.31, allocations: 198.4 kB / 3.767 GB, free: 26.88 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01045/10.32, allocations: 3.597 MB / 3.771 GB, free: 25.34 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.143e-05/10.32, allocations: 7.75 kB / 3.771 GB, free: 25.33 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003642/10.32, allocations: 95.48 kB / 3.771 GB, free: 25.27 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002354/10.32, allocations: 170.5 kB / 3.771 GB, free: 25.25 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009827/10.33, allocations: 3.154 MB / 3.774 GB, free: 24.26 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.02273/10.36, allocations: 15.44 MB / 3.789 GB, free: 12.48 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006329/10.36, allocations: 2.674 MB / 3.792 GB, free: 10.4 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00218/10.36, allocations: 1.118 MB / 3.793 GB, free: 9.395 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04242/10.41, allocations: 18.91 MB / 3.811 GB, free: 6.609 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00575/10.41, allocations: 1.683 MB / 3.813 GB, free: 4.906 MB / 490.7 MB Notification: Performance of pre-optimization done (n=169): time 1.004e-05/10.41, allocations: 0 / 3.813 GB, free: 4.906 MB / 490.7 MB Notification: Performance of matching and sorting (n=185): time 0.3454/10.76, allocations: 7.696 MB / 3.821 GB, free: 46.55 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.14e-05/10.76, allocations: 266 kB / 3.821 GB, free: 46.27 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002726/10.76, allocations: 1.336 MB / 3.822 GB, free: 46.09 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005413/10.76, allocations: 61.98 kB / 3.822 GB, free: 46.06 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001153/10.76, allocations: 0.9783 MB / 3.823 GB, free: 45.75 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00105/10.76, allocations: 0.6192 MB / 3.824 GB, free: 45.45 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002537/10.76, allocations: 38.16 kB / 3.824 GB, free: 45.45 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.000184/10.76, allocations: 392.8 kB / 3.824 GB, free: 45.14 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002703/10.77, allocations: 1.011 MB / 3.825 GB, free: 45.13 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003317/10.77, allocations: 1.492 MB / 3.827 GB, free: 44.64 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00331/10.77, allocations: 1.267 MB / 3.828 GB, free: 44.55 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.321e-05/10.77, allocations: 6.969 kB / 3.828 GB, free: 44.55 MB / 490.7 MB Notification: Performance of matching and sorting (n=266) (initialization): time 0.00859/10.78, allocations: 3.062 MB / 3.831 GB, free: 44.28 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001089/10.78, allocations: 5.005 MB / 3.836 GB, free: 39.01 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.503e-05/10.78, allocations: 9.562 kB / 3.836 GB, free: 39.01 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001195/10.79, allocations: 233.7 kB / 3.836 GB, free: 38.98 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003374/10.79, allocations: 0.5266 MB / 3.836 GB, free: 38.98 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001658/10.79, allocations: 2.428 MB / 3.839 GB, free: 36.91 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004003/10.79, allocations: 301.6 kB / 3.839 GB, free: 36.9 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006514/10.79, allocations: 111 kB / 3.839 GB, free: 36.9 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.785e-05/10.79, allocations: 5.312 kB / 3.839 GB, free: 36.9 MB / 490.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00767/10.8, allocations: 2.796 MB / 3.842 GB, free: 36.76 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.022e-05/10.8, allocations: 13.03 kB / 3.842 GB, free: 36.76 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001183/10.8, allocations: 232 kB / 3.842 GB, free: 36.73 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003417/10.81, allocations: 0.5253 MB / 3.843 GB, free: 36.73 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001646/10.81, allocations: 2.432 MB / 3.845 GB, free: 34.66 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003788/10.81, allocations: 313.4 kB / 3.845 GB, free: 34.64 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006146/10.81, allocations: 99.08 kB / 3.845 GB, free: 34.64 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 (valve2.state_b.phase,valve2.state_a.phase,valve1.state_b.phase,valve1.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,junctionIdeal.medium.phase,pipe3.state_a.phase,pipe3.state_b.phase,pipe2.state_a.phase,pipe2.state_b.phase,pipe1.state_b.phase,pipe1.state_a.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (254): * Single equations (assignments): 248 * 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.0008404/10.81, allocations: 313 kB / 3.846 GB, free: 34.47 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006257/10.82, allocations: 201.2 kB / 3.846 GB, free: 34.37 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01331/10.83, allocations: 7.469 MB / 3.853 GB, free: 33.68 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.774e-05/10.83, allocations: 84.17 kB / 3.853 GB, free: 33.68 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.293e-05/10.83, allocations: 7.219 kB / 3.853 GB, free: 33.68 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01068/10.84, allocations: 6.484 MB / 3.86 GB, free: 32.75 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02311/10.86, allocations: 12.05 MB / 3.871 GB, free: 31.2 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.105e-05/10.86, allocations: 7.609 kB / 3.871 GB, free: 31.2 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002428/10.86, allocations: 433.9 kB / 3.872 GB, free: 31.2 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001616/10.87, allocations: 344.4 kB / 3.872 GB, free: 31.16 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004762/10.87, allocations: 73.72 kB / 3.872 GB, free: 31.16 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001557/10.87, allocations: 2.525 MB / 3.875 GB, free: 29.08 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.023e-05/10.87, allocations: 9.625 kB / 3.875 GB, free: 29.08 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01287/10.88, allocations: 7.421 MB / 3.882 GB, free: 27.68 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002159/10.88, allocations: 0.7492 MB / 3.883 GB, free: 27.35 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007945/10.88, allocations: 59.78 kB / 3.883 GB, free: 27.35 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002881/10.89, allocations: 212 kB / 3.883 GB, free: 27.34 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005626/10.89, allocations: 176.2 kB / 3.883 GB, free: 27.33 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002809/10.89, allocations: 84.02 kB / 3.883 GB, free: 27.33 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.002319/10.89, allocations: 1.121 MB / 3.884 GB, free: 27.17 MB / 490.7 MB Notification: Performance of sort global known variables: time 9.43e-07/10.89, allocations: 0 / 3.884 GB, free: 27.17 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.01113/10.9, allocations: 2.716 MB / 3.887 GB, free: 27.07 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 23 * 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,junctionIdeal.medium.p,junctionIdeal.medium.h) * Number of discrete variables: 54 ($cse3.phase,$cse3.region,$cse5.region3boundary,$cse6.region3boundary,$cse7.phase,$cse7.region,$cse12.phase,$cse12.region,$cse17.phase,$cse17.region,$cse18.phase,$cse18.region,$cse20.phase,$cse20.region,$cse21.phase,$cse21.region,$cse26.phase,$cse26.region,$cse27.phase,$cse27.region,$cse29.phase,$cse29.region,$cse32.phase,$cse32.region,$cse34.region3boundary,$cse35.region3boundary,$cse36.phase,$cse36.region,$cse38.region3boundary,$cse39.region3boundary,$cse40.phase,$cse40.region,$cse42.phase,$cse42.region,$cse43.region3boundary,$cse44.region3boundary,$cse45.phase,$cse45.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,junctionIdeal.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 (212): * Single equations (assignments): 183 * 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.01224/10.91, allocations: 2.87 MB / 3.89 GB, free: 26.75 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.01106/10.93, allocations: 4.948 MB / 3.895 GB, free: 26.41 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.344e-05/10.93, allocations: 0 / 3.895 GB, free: 26.41 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0052/10.93, allocations: 2.605 MB / 3.897 GB, free: 26.28 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00646/10.94, allocations: 0.9747 MB / 3.898 GB, free: 26.25 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.6098/11.55, allocations: 125.6 MB / 4.021 GB, free: 58.42 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002298/11.55, allocations: 2.29 MB / 4.023 GB, free: 57.65 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.007471/11.56, allocations: 2.539 MB / 4.026 GB, free: 57.61 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001045/11.56, allocations: 182.8 kB / 4.026 GB, free: 57.61 MB / 0.4948 GB Notification: Performance of SimCode: time 2.443e-06/11.56, allocations: 0 / 4.026 GB, free: 57.61 MB / 0.4948 GB Notification: Performance of Templates: time 0.1777/11.74, allocations: 89.8 MB / 4.113 GB, free: 48.84 MB / 0.4948 GB