Running command: translateModel(ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|pipe1.mediums.1..h|pipe1.mediums.1..p|pipe3.mediums.1..h|pipe3.mediums.1..p|valveIncompressible1.filter.x.1.|valveIncompressible1.filter.x.2.|valveOpening1.a|valveOpening1.b|valveOpening1.last|valveOpening1.nextEvent",fileNamePrefix="ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2") Notification: Performance of loadModel(ModelicaTest): time 2.163/2.163, allocations: 235 MB / 247.2 MB, free: 14.37 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.71e-05/2.725e-05, allocations: 0 / 304.9 MB, free: 5.172 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3275/0.3276, allocations: 54.85 MB / 359.8 MB, free: 3.141 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 5.923/6.251, allocations: 2.655 GB / 3.007 GB, free: 17.77 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002013/6.251, allocations: 79.95 kB / 3.007 GB, free: 17.69 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.645/8.897, allocations: 0.5733 GB / 3.58 GB, free: 2.391 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.279e-06/8.897, allocations: 4 kB / 3.58 GB, free: 2.387 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0001453/8.897, allocations: 43.92 kB / 3.58 GB, free: 2.344 MB / 490.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 322 * Number of variables: 322 Notification: Performance of Generate backend data structure: time 0.009691/8.907, allocations: 2.841 MB / 3.583 GB, free: 15.45 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 4.576e-05/8.907, allocations: 8.031 kB / 3.583 GB, free: 15.44 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005256/8.912, allocations: 0.5439 MB / 3.584 GB, free: 14.89 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004889/8.917, allocations: 1.446 MB / 3.585 GB, free: 13.41 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001887/8.917, allocations: 106.4 kB / 3.585 GB, free: 13.3 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004037/8.918, allocations: 132 kB / 3.585 GB, free: 13.17 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009982/8.928, allocations: 2.239 MB / 3.587 GB, free: 10.79 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.727e-05/8.928, allocations: 4 kB / 3.587 GB, free: 10.79 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003871/8.928, allocations: 60.48 kB / 3.587 GB, free: 10.73 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002938/8.928, allocations: 102.2 kB / 3.588 GB, free: 10.62 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01022/8.939, allocations: 1.945 MB / 3.589 GB, free: 8.676 MB / 0.4948 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.3472/9.286, allocations: 9.642 MB / 3.599 GB, free: 39.83 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004071/9.29, allocations: 1.306 MB / 3.6 GB, free: 39.81 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001296/9.291, allocations: 0.6096 MB / 3.601 GB, free: 39.8 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.05717/9.349, allocations: 18.85 MB / 3.619 GB, free: 28.07 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.006366/9.355, allocations: 1.034 MB / 3.62 GB, free: 28 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=96): time 8.621e-06/9.355, allocations: 0.9844 kB / 3.62 GB, free: 28 MB / 0.4948 GB Notification: Performance of matching and sorting (n=104): time 0.02704/9.382, allocations: 4.374 MB / 3.624 GB, free: 27.43 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001318/9.382, allocations: 274.8 kB / 3.625 GB, free: 27.12 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003332/9.386, allocations: 0.9709 MB / 3.626 GB, free: 26.96 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.0002389/9.386, allocations: 46.14 kB / 3.626 GB, free: 26.93 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.001022/9.387, allocations: 0.6568 MB / 3.626 GB, free: 26.71 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006138/9.388, allocations: 355.8 kB / 3.627 GB, free: 26.53 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000215/9.388, allocations: 26.12 kB / 3.627 GB, free: 26.53 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0001746/9.388, allocations: 361 kB / 3.627 GB, free: 26.23 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002396/9.39, allocations: 0.6135 MB / 3.628 GB, free: 26.23 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002674/9.393, allocations: 0.9333 MB / 3.629 GB, free: 25.87 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002769/9.396, allocations: 0.7681 MB / 3.629 GB, free: 25.82 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.468e-05/9.396, allocations: 1.219 kB / 3.629 GB, free: 25.82 MB / 0.4948 GB Notification: Performance of matching and sorting (n=162) (initialization): time 0.007634/9.404, allocations: 1.838 MB / 3.631 GB, free: 25.65 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.001099/9.405, allocations: 3.27 MB / 3.634 GB, free: 22.27 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.755e-05/9.405, allocations: 12.66 kB / 3.634 GB, free: 22.27 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001228/9.406, allocations: 133 kB / 3.634 GB, free: 22.25 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001771/9.408, allocations: 322.8 kB / 3.635 GB, free: 22.25 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008151/9.409, allocations: 1.26 MB / 3.636 GB, free: 21.21 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001691/9.41, allocations: 153.8 kB / 3.636 GB, free: 21.21 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001923/9.411, allocations: 65.36 kB / 3.636 GB, free: 21.21 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 1.156e-05/9.411, allocations: 4.875 kB / 3.636 GB, free: 21.21 MB / 0.4948 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003614/9.414, allocations: 1.665 MB / 3.638 GB, free: 21.14 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.879e-05/9.414, allocations: 19.36 kB / 3.638 GB, free: 21.14 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005929/9.415, allocations: 126 kB / 3.638 GB, free: 21.12 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001772/9.417, allocations: 326.6 kB / 3.638 GB, free: 21.12 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007664/9.418, allocations: 1.241 MB / 3.639 GB, free: 20.09 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001685/9.419, allocations: 165.3 kB / 3.64 GB, free: 20.08 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001839/9.419, allocations: 69 kB / 3.64 GB, free: 20.08 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 37 * Number of states: 0 () * Number of discrete variables: 17 (pipe3.state_a.phase,valveIncompressible1.state_b.phase,valveIncompressible1.state_a.phase,pipe1.state_a.phase,$whenCondition1,source.medium.phase,pipe1.statesFM[2].phase,sink.medium.phase,pipe3.statesFM[2].phase,valveOpening1.a,valveOpening1.b,valveOpening1.last,$PRE.valveOpening1.nextEvent,valveOpening1.nextEvent,valveOpening1.nextEventScaled,pipe3.state_b.phase,pipe1.state_b.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (152): * Single equations (assignments): 147 * Array equations: 1 * Algorithm blocks: 1 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 1,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0004272/9.42, allocations: 222.7 kB / 3.64 GB, free: 19.94 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002936/9.42, allocations: 133.9 kB / 3.64 GB, free: 19.88 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006961/9.427, allocations: 4.675 MB / 3.645 GB, free: 19.41 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.257e-05/9.427, allocations: 55.8 kB / 3.645 GB, free: 19.41 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.147e-06/9.427, allocations: 2.625 kB / 3.645 GB, free: 19.41 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.005371/9.433, allocations: 3.905 MB / 3.648 GB, free: 18.95 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01001/9.443, allocations: 6.65 MB / 3.655 GB, free: 18.43 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.056e-05/9.443, allocations: 3.953 kB / 3.655 GB, free: 18.43 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001411/9.444, allocations: 244.7 kB / 3.655 GB, free: 18.43 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008396/9.445, allocations: 173.8 kB / 3.655 GB, free: 18.41 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001246/9.445, allocations: 41.66 kB / 3.655 GB, free: 18.41 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007565/9.446, allocations: 1.289 MB / 3.657 GB, free: 17.37 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.609e-06/9.446, allocations: 5.094 kB / 3.657 GB, free: 17.37 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00619/9.452, allocations: 4.15 MB / 3.661 GB, free: 16.95 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00112/9.453, allocations: 0.5295 MB / 3.661 GB, free: 16.73 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002941/9.454, allocations: 40.5 kB / 3.661 GB, free: 16.73 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001179/9.455, allocations: 123.5 kB / 3.661 GB, free: 16.73 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002096/9.455, allocations: 84.97 kB / 3.661 GB, free: 16.72 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001295/9.455, allocations: 38.06 kB / 3.661 GB, free: 16.72 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.001487/9.457, allocations: 0.8602 MB / 3.662 GB, free: 16.61 MB / 0.4948 GB Notification: Performance of sort global known variables: time 8.37e-07/9.457, allocations: 0 / 3.662 GB, free: 16.61 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.007655/9.464, allocations: 2.185 MB / 3.664 GB, free: 16.56 MB / 0.4948 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,valveIncompressible1.filter.x[1],valveIncompressible1.filter.x[2],pipe3.mediums[1].p,pipe3.mediums[1].h) * Number of discrete variables: 36 ($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,$cse22.phase,$cse22.region,$cse24.region3boundary,$cse25.region3boundary,$cse26.phase,$cse26.region,$cse28.phase,$cse28.region,$whenCondition1,source.medium.phase,pipe1.statesFM[2].phase,sink.medium.phase,pipe3.statesFM[2].phase,valveOpening1.a,valveOpening1.b,valveOpening1.last,valveOpening1.nextEvent,valveOpening1.nextEventScaled) * Number of discrete states: 6 (valveOpening1.nextEvent,valveOpening1.last,valveOpening1.nextEventScaled,valveOpening1.b,valveOpening1.a,$whenCondition1) * Top-level inputs: 0 Notification: Strong component statistics for simulation (118): * Single equations (assignments): 100 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 15 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 1,1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.01056/9.475, allocations: 2.4 MB / 3.667 GB, free: 16.32 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.006052/9.481, allocations: 3.051 MB / 3.67 GB, free: 16.08 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 7.361e-06/9.481, allocations: 3.438 kB / 3.67 GB, free: 16.08 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.002382/9.484, allocations: 1.41 MB / 3.671 GB, free: 16.01 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003593/9.487, allocations: 0.5709 MB / 3.672 GB, free: 16 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2899/9.777, allocations: 125.6 MB / 3.794 GB, free: 6.816 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001819/9.779, allocations: 1.731 MB / 3.796 GB, free: 5.406 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.004383/9.783, allocations: 1.684 MB / 3.798 GB, free: 4.41 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004414/9.784, allocations: 111 kB / 3.798 GB, free: 4.309 MB / 0.5261 GB Notification: Performance of SimCode: time 1.92e-06/9.784, allocations: 0 / 3.798 GB, free: 4.309 MB / 0.5261 GB Notification: Performance of Templates: time 0.4442/10.23, allocations: 65.67 MB / 3.862 GB, free: 69.89 MB / 0.5261 GB