Running command: translateModel(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes17,tolerance=1e-07,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|junctionIdeal.medium.T|junctionIdeal.medium.p|junctionVolume.medium.T|pipe1.mediums.1..T|pipe1.mediums.1..p|pipe2.mediums.1..T|pipe2.mediums.1..p|pipe3.mediums.1..T|pipe3.mediums.1..p|valveOpening1.a|valveOpening1.b|valveOpening1.last|valveOpening1.nextEvent|valveOpening2.a|valveOpening2.b|valveOpening2.last|valveOpening2.nextEvent",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes17") Notification: Performance of loadModel(ModelicaTest): time 2.329/2.329, allocations: 270 MB / 283.6 MB, free: 1.895 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 3.274e-05/3.286e-05, allocations: 3.984 kB / 348.4 MB, free: 2.77 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3221/0.3222, allocations: 61.89 MB / 410.3 MB, free: 10.72 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.534/1.856, allocations: 0.5614 GB / 0.9621 GB, free: 121 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001875/1.857, allocations: 77.95 kB / 0.9622 GB, free: 121 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 2.829/4.686, allocations: 0.5634 GB / 1.526 GB, free: 46.23 MB / 0.5417 GB Notification: Performance of FrontEnd: time 2.265e-06/4.686, allocations: 0 / 1.526 GB, free: 46.23 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 0.0003193/4.686, allocations: 64.02 kB / 1.526 GB, free: 46.23 MB / 0.5417 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 452 * Number of variables: 452 Notification: Performance of Generate backend data structure: time 0.01033/4.696, allocations: 2.937 MB / 1.528 GB, free: 45.68 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 4.332e-05/4.696, allocations: 10.25 kB / 1.528 GB, free: 45.68 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004421/4.701, allocations: 470.2 kB / 1.529 GB, free: 45.55 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006304/4.707, allocations: 1.994 MB / 1.531 GB, free: 45.2 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001441/4.707, allocations: 137.5 kB / 1.531 GB, free: 45.2 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005089/4.708, allocations: 178.7 kB / 1.531 GB, free: 45.2 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005601/4.713, allocations: 2.703 MB / 1.534 GB, free: 44.75 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.22e-05/4.714, allocations: 7.5 kB / 1.534 GB, free: 44.75 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003481/4.714, allocations: 74.95 kB / 1.534 GB, free: 44.75 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002415/4.714, allocations: 154.9 kB / 1.534 GB, free: 44.75 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005328/4.72, allocations: 2.255 MB / 1.536 GB, free: 44.74 MB / 0.5417 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.01919/4.739, allocations: 11.61 MB / 1.548 GB, free: 38.59 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003765/4.743, allocations: 1.835 MB / 1.549 GB, free: 38.27 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002093/4.745, allocations: 1.111 MB / 1.55 GB, free: 38.25 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001033/4.746, allocations: 0.5085 MB / 1.551 GB, free: 37.79 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002587/4.748, allocations: 1.327 MB / 1.552 GB, free: 37.62 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=172): time 5.948e-06/4.748, allocations: 0 / 1.552 GB, free: 37.62 MB / 0.5417 GB Warning: Some equations could not be differentiated for following variables having attribute stateSelect=StateSelect.prefer. They will be treated as if they had stateSelect=StateSelect.default ======================================== 1: pipe1.mediums[1].T 2: pipe2.mediums[1].T 3: pipe3.mediums[1].T 4: junctionVolume.medium.T Please use -d=bltdump for more information. Notification: Performance of matching and sorting (n=200): time 0.0329/4.781, allocations: 9.682 MB / 1.562 GB, free: 36.45 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001063/4.781, allocations: 362.4 kB / 1.562 GB, free: 36.04 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002556/4.784, allocations: 1.467 MB / 1.564 GB, free: 35.82 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 0.0004265/4.784, allocations: 64.08 kB / 1.564 GB, free: 35.79 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008136/4.785, allocations: 0.9212 MB / 1.564 GB, free: 35.53 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007041/4.786, allocations: 0.6739 MB / 1.565 GB, free: 35.11 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002579/4.786, allocations: 41.22 kB / 1.565 GB, free: 35.11 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0001438/4.786, allocations: 391.2 kB / 1.566 GB, free: 34.81 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002327/4.789, allocations: 1.054 MB / 1.567 GB, free: 34.8 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002559/4.791, allocations: 1.527 MB / 1.568 GB, free: 34.34 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00279/4.794, allocations: 1.333 MB / 1.569 GB, free: 34.25 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.099e-05/4.794, allocations: 4.875 kB / 1.569 GB, free: 34.25 MB / 0.5417 GB Notification: Performance of matching and sorting (n=282) (initialization): time 0.007696/4.802, allocations: 3.285 MB / 1.573 GB, free: 33.95 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.0008772/4.803, allocations: 4.337 MB / 1.577 GB, free: 29.44 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.319e-05/4.803, allocations: 13.11 kB / 1.577 GB, free: 29.44 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009886/4.804, allocations: 303.8 kB / 1.577 GB, free: 29.4 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003496/4.807, allocations: 0.5678 MB / 1.578 GB, free: 29.4 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001979/4.809, allocations: 2.996 MB / 1.581 GB, free: 26.81 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00367/4.813, allocations: 231 kB / 1.581 GB, free: 26.79 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005399/4.814, allocations: 209 kB / 1.581 GB, free: 26.79 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 1.256e-05/4.814, allocations: 3.875 kB / 1.581 GB, free: 26.79 MB / 0.5417 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.007022/4.821, allocations: 3.001 MB / 1.584 GB, free: 26.64 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.256e-05/4.821, allocations: 11.56 kB / 1.584 GB, free: 26.64 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009706/4.822, allocations: 307.3 kB / 1.584 GB, free: 26.6 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003308/4.825, allocations: 0.5543 MB / 1.585 GB, free: 26.6 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00316/4.828, allocations: 2.998 MB / 1.588 GB, free: 40.01 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003324/4.832, allocations: 223.2 kB / 1.588 GB, free: 40 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000522/4.832, allocations: 207.7 kB / 1.588 GB, free: 39.99 MB / 0.5573 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 47 * Number of states: 0 () * Number of discrete variables: 14 ($whenCondition1,$whenCondition2,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) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (261): * Single equations (assignments): 254 * 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: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 5 {1 1,1 1,1 1,1 7,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0008365/4.833, allocations: 308.1 kB / 1.588 GB, free: 39.82 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005658/4.834, allocations: 226.6 kB / 1.589 GB, free: 39.7 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01202/4.846, allocations: 4.783 MB / 1.593 GB, free: 39.41 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.253e-05/4.846, allocations: 23.25 kB / 1.593 GB, free: 39.41 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.131e-05/4.846, allocations: 3.906 kB / 1.593 GB, free: 39.41 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.006275/4.852, allocations: 2.982 MB / 1.596 GB, free: 38.82 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01643/4.868, allocations: 7.224 MB / 1.603 GB, free: 37.41 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.817e-05/4.869, allocations: 7.219 kB / 1.603 GB, free: 37.41 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002863/4.871, allocations: 463 kB / 1.604 GB, free: 37.41 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00116/4.873, allocations: 324.6 kB / 1.604 GB, free: 37.37 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000319/4.873, allocations: 107.6 kB / 1.604 GB, free: 37.37 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003554/4.877, allocations: 3.747 MB / 1.608 GB, free: 34.04 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.427e-06/4.877, allocations: 11.66 kB / 1.608 GB, free: 34.04 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009439/4.886, allocations: 5.051 MB / 1.613 GB, free: 32.73 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001722/4.888, allocations: 0.5649 MB / 1.613 GB, free: 32.51 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00069/4.888, allocations: 62.38 kB / 1.613 GB, free: 32.51 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002095/4.891, allocations: 138.8 kB / 1.614 GB, free: 32.5 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003921/4.891, allocations: 191.6 kB / 1.614 GB, free: 32.49 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004185/4.891, allocations: 190.9 kB / 1.614 GB, free: 32.49 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.002047/4.893, allocations: 1.12 MB / 1.615 GB, free: 32.33 MB / 0.5573 GB Notification: Performance of sort global known variables: time 1.024e-06/4.894, allocations: 0 / 1.615 GB, free: 32.33 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.006633/4.9, allocations: 1.901 MB / 1.617 GB, free: 32.13 MB / 0.5573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 27 * Number of states: 9 (pipe1.mediums[1].p,pipe1.mediums[1].T,pipe2.mediums[1].p,pipe2.mediums[1].T,pipe3.mediums[1].p,pipe3.mediums[1].T,junctionIdeal.medium.p,junctionIdeal.medium.T,junctionVolume.medium.T) * Number of discrete variables: 12 ($whenCondition1,$whenCondition2,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 (206): * 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: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 4 {1 6,1 1,1 1,1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.005416/4.906, allocations: 2.302 MB / 1.619 GB, free: 31.61 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.009453/4.915, allocations: 4.538 MB / 1.624 GB, free: 31.31 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 1.081e-05/4.915, allocations: 0 / 1.624 GB, free: 31.31 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.003215/4.918, allocations: 1.606 MB / 1.625 GB, free: 31.09 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006031/4.924, allocations: 1.131 MB / 1.626 GB, free: 31.06 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009885/4.934, allocations: 4.326 MB / 1.63 GB, free: 30.05 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001782/4.936, allocations: 1.773 MB / 1.632 GB, free: 29.31 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 0.01075/4.947, allocations: 3.308 MB / 1.635 GB, free: 29.23 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001959/4.949, allocations: 350.2 kB / 1.636 GB, free: 29.23 MB / 0.5573 GB Notification: Performance of SimCode: time 1.761e-06/4.949, allocations: 2.5 kB / 1.636 GB, free: 29.23 MB / 0.5573 GB Notification: Performance of Templates: time 0.1909/5.14, allocations: 85.18 MB / 1.719 GB, free: 11.95 MB / 0.573 GB