Running command: translateModel(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=10000,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|valve1.filter.x.1.|valve1.filter.x.2.|valve2.filter.x.1.|valve2.filter.x.2.|valveOpening1.a|valveOpening1.b|valveOpening1.last|valveOpening1.nextEvent|valveOpening2.a|valveOpening2.b|valveOpening2.last|valveOpening2.nextEvent",fileNamePrefix="ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes1") Notification: Performance of loadModel(ModelicaTest): time 1.825/1.825, allocations: 209.3 MB / 221.5 MB, free: 7.73 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.075e-05/3.089e-05, allocations: 4 kB / 273.1 MB, free: 3.148 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0861/0.08615, allocations: 48.69 MB / 321.8 MB, free: 2.359 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.209/6.295, allocations: 2.545 GB / 2.859 GB, free: 102.4 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002292/6.295, allocations: 78.17 kB / 2.86 GB, free: 102.4 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.389/9.684, allocations: 0.7754 GB / 3.635 GB, free: 1.941 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.196e-06/9.684, allocations: 0 / 3.635 GB, free: 1.941 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0002728/9.684, allocations: 75.78 kB / 3.635 GB, free: 1.871 MB / 458.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 514 * Number of variables: 514 Notification: Performance of Generate backend data structure: time 0.0157/9.7, allocations: 3.82 MB / 3.639 GB, free: 14 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.343e-05/9.7, allocations: 12.03 kB / 3.639 GB, free: 13.98 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008218/9.708, allocations: 0.8104 MB / 3.64 GB, free: 13.18 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007251/9.716, allocations: 2.086 MB / 3.642 GB, free: 11.07 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002641/9.716, allocations: 175.5 kB / 3.642 GB, free: 10.91 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000579/9.717, allocations: 195 kB / 3.642 GB, free: 10.73 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01101/9.728, allocations: 3.674 MB / 3.646 GB, free: 6.875 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.083e-05/9.728, allocations: 7.938 kB / 3.646 GB, free: 6.867 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004064/9.728, allocations: 79.81 kB / 3.646 GB, free: 6.797 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000294/9.728, allocations: 163.7 kB / 3.646 GB, free: 6.637 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0109/9.739, allocations: 3.384 MB / 3.649 GB, free: 3.25 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.3336/10.07, allocations: 14.73 MB / 3.663 GB, free: 22.32 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006296/10.08, allocations: 2.105 MB / 3.666 GB, free: 22.29 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002417/10.08, allocations: 1.043 MB / 3.667 GB, free: 22.28 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04283/10.12, allocations: 18.91 MB / 3.685 GB, free: 26.46 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005388/10.13, allocations: 1.663 MB / 3.687 GB, free: 26.34 MB / 490.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001528/10.13, allocations: 192.8 kB / 3.687 GB, free: 26.29 MB / 490.7 MB Notification: Performance of pre-optimization done (n=158): time 6.16e-06/10.13, allocations: 1.875 kB / 3.687 GB, free: 26.29 MB / 490.7 MB Notification: Performance of matching and sorting (n=170): time 0.02434/10.16, allocations: 7.336 MB / 3.694 GB, free: 25.36 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002817/10.16, allocations: 415.6 kB / 3.694 GB, free: 24.89 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002777/10.16, allocations: 1.487 MB / 3.696 GB, free: 24.71 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004517/10.16, allocations: 62.08 kB / 3.696 GB, free: 24.68 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009041/10.16, allocations: 0.9879 MB / 3.697 GB, free: 24.38 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006581/10.16, allocations: 0.5781 MB / 3.697 GB, free: 24.09 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001962/10.16, allocations: 38.25 kB / 3.697 GB, free: 24.09 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0002448/10.16, allocations: 381.1 kB / 3.698 GB, free: 23.79 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002198/10.16, allocations: 1.05 MB / 3.699 GB, free: 23.78 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002513/10.17, allocations: 1.51 MB / 3.7 GB, free: 23.28 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002615/10.17, allocations: 1.31 MB / 3.702 GB, free: 23.2 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.387e-05/10.17, allocations: 2.531 kB / 3.702 GB, free: 23.2 MB / 490.7 MB Notification: Performance of matching and sorting (n=259) (initialization): time 0.007275/10.18, allocations: 3.299 MB / 3.705 GB, free: 22.91 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.002201/10.18, allocations: 4.582 MB / 3.709 GB, free: 18.12 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.346e-05/10.18, allocations: 17.91 kB / 3.709 GB, free: 18.12 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006776/10.19, allocations: 0.956 MB / 3.71 GB, free: 18.09 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003028/10.19, allocations: 466.8 kB / 3.711 GB, free: 18.09 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003645/10.19, allocations: 3.17 MB / 3.714 GB, free: 16 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002998/10.2, allocations: 230.6 kB / 3.714 GB, free: 15.99 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003172/10.2, allocations: 104.9 kB / 3.714 GB, free: 15.99 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.392e-05/10.2, allocations: 10.05 kB / 3.714 GB, free: 15.99 MB / 490.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00688/10.2, allocations: 2.962 MB / 3.717 GB, free: 15.84 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.882e-05/10.2, allocations: 21.11 kB / 3.717 GB, free: 15.84 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001758/10.2, allocations: 352.3 kB / 3.717 GB, free: 15.81 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002752/10.21, allocations: 496.8 kB / 3.718 GB, free: 15.81 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004941/10.21, allocations: 4.051 MB / 3.722 GB, free: 12.98 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002861/10.22, allocations: 234.5 kB / 3.722 GB, free: 12.98 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002995/10.22, allocations: 102.2 kB / 3.722 GB, free: 12.98 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 50 * Number of states: 0 () * Number of discrete variables: 27 (pipe3.state_a.phase,pipe2.state_a.phase,valve2.state_b.phase,valve2.state_a.phase,valve1.state_b.phase,valve1.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,pipe3.state_b.phase,pipe2.state_b.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (223): * Single equations (assignments): 213 * Array equations: 2 * Algorithm blocks: 2 * Record equations: 2 * 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,3 19} Notification: Performance of prepare postOptimizeDAE: time 0.0007407/10.22, allocations: 299.4 kB / 3.722 GB, free: 12.8 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004279/10.22, allocations: 211 kB / 3.723 GB, free: 12.7 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01214/10.23, allocations: 7.765 MB / 3.73 GB, free: 12.01 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.133e-05/10.23, allocations: 80.23 kB / 3.73 GB, free: 12.01 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.98e-06/10.23, allocations: 0 / 3.73 GB, free: 12.01 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01011/10.24, allocations: 6.786 MB / 3.737 GB, free: 11.08 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01729/10.26, allocations: 10.78 MB / 3.747 GB, free: 10.35 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.288e-05/10.26, allocations: 0 / 3.747 GB, free: 10.35 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002186/10.26, allocations: 340.2 kB / 3.748 GB, free: 10.35 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006558/10.27, allocations: 2.5 MB / 3.75 GB, free: 10.25 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004045/10.27, allocations: 63.34 kB / 3.75 GB, free: 10.25 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004753/10.27, allocations: 4.115 MB / 3.754 GB, free: 24.13 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.334e-06/10.27, allocations: 6.375 kB / 3.754 GB, free: 24.13 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01259/10.28, allocations: 7.643 MB / 3.762 GB, free: 23.47 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001941/10.29, allocations: 0.746 MB / 3.762 GB, free: 23.14 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00047/10.29, allocations: 54.89 kB / 3.763 GB, free: 23.14 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001936/10.29, allocations: 196.4 kB / 3.763 GB, free: 23.12 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003452/10.29, allocations: 139.2 kB / 3.763 GB, free: 23.12 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002213/10.29, allocations: 65.56 kB / 3.763 GB, free: 23.12 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.002265/10.29, allocations: 1.241 MB / 3.764 GB, free: 22.96 MB / 0.4948 GB Notification: Performance of sort global known variables: time 1.082e-06/10.29, allocations: 0 / 3.764 GB, free: 22.96 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.00977/10.3, allocations: 2.805 MB / 3.767 GB, free: 22.84 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 10 (pipe1.mediums[1].p,pipe1.mediums[1].h,valve1.filter.x[1],valve1.filter.x[2],valve2.filter.x[1],valve2.filter.x[2],pipe2.mediums[1].p,pipe2.mediums[1].h,pipe3.mediums[1].p,pipe3.mediums[1].h) * Number of discrete variables: 53 ($cse3.phase,$cse3.region,$cse5.region3boundary,$cse6.region3boundary,$cse7.phase,$cse7.region,$cse10.phase,$cse10.region,$cse11.phase,$cse11.region,$cse18.phase,$cse18.region,$cse19.phase,$cse19.region,$cse21.phase,$cse21.region,$cse22.phase,$cse22.region,$cse27.phase,$cse27.region,$cse28.phase,$cse28.region,$cse30.phase,$cse30.region,$cse33.phase,$cse33.region,$cse35.region3boundary,$cse36.region3boundary,$cse37.phase,$cse37.region,$cse39.phase,$cse39.region,$cse41.region3boundary,$cse42.region3boundary,$cse43.phase,$cse43.region,$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) * 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 (168): * Single equations (assignments): 143 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 19 * 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,3 28} Notification: Performance of Backend phase and start with SimCode phase: time 0.01219/10.31, allocations: 2.859 MB / 3.77 GB, free: 22.52 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.01034/10.32, allocations: 5.165 MB / 3.775 GB, free: 21.95 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 7.546e-06/10.32, allocations: 2.469 kB / 3.775 GB, free: 21.95 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.004237/10.33, allocations: 2.289 MB / 3.777 GB, free: 21.8 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005638/10.33, allocations: 0.8768 MB / 3.778 GB, free: 21.79 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.6068/10.94, allocations: 125.7 MB / 3.901 GB, free: 57.96 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004046/10.94, allocations: 2.296 MB / 3.903 GB, free: 57.16 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.01211/10.96, allocations: 2.385 MB / 3.905 GB, free: 57.07 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00126/10.96, allocations: 150.8 kB / 3.905 GB, free: 57.07 MB / 0.4948 GB Notification: Performance of SimCode: time 3.03e-06/10.96, allocations: 0 / 3.905 GB, free: 57.07 MB / 0.4948 GB Notification: Performance of Templates: time 0.1861/11.14, allocations: 91.07 MB / 3.994 GB, free: 19.09 MB / 0.4948 GB