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_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14") Notification: Performance of loadModel(ModelicaTest): time 2.269/2.269, allocations: 270.1 MB / 283.6 MB, free: 3.016 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.977e-05/4.007e-05, allocations: 7.234 kB / 348.4 MB, free: 10.77 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1124/0.1125, allocations: 61.89 MB / 410.3 MB, free: 12.96 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.752/6.865, allocations: 2.851 GB / 3.252 GB, free: 74.57 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000193/6.865, allocations: 79.95 kB / 3.252 GB, free: 74.5 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 4.473/11.34, allocations: 0.9176 GB / 4.17 GB, free: 35.16 MB / 0.5573 GB Notification: Performance of FrontEnd: time 2.9e-06/11.34, allocations: 1.094 kB / 4.17 GB, free: 35.16 MB / 0.5573 GB Notification: Performance of Transformations before backend: time 0.0002987/11.34, allocations: 69.27 kB / 4.17 GB, free: 35.16 MB / 0.5573 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 536 * Number of variables: 536 Notification: Performance of Generate backend data structure: time 0.01575/11.35, allocations: 3.965 MB / 4.173 GB, free: 33.55 MB / 0.5573 GB Notification: Performance of prepare preOptimizeDAE: time 4.718e-05/11.35, allocations: 9.406 kB / 4.173 GB, free: 33.55 MB / 0.5573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008699/11.36, allocations: 0.8796 MB / 4.174 GB, free: 33.41 MB / 0.5573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007172/11.37, allocations: 2.092 MB / 4.176 GB, free: 32.96 MB / 0.5573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002725/11.37, allocations: 186.7 kB / 4.177 GB, free: 32.96 MB / 0.5573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007313/11.37, allocations: 205.2 kB / 4.177 GB, free: 32.96 MB / 0.5573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01038/11.38, allocations: 3.62 MB / 4.18 GB, free: 32.42 MB / 0.5573 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.82e-05/11.38, allocations: 11.03 kB / 4.18 GB, free: 32.41 MB / 0.5573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000396/11.38, allocations: 92.16 kB / 4.18 GB, free: 32.41 MB / 0.5573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002994/11.38, allocations: 169.4 kB / 4.181 GB, free: 32.41 MB / 0.5573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009671/11.39, allocations: 3.183 MB / 4.184 GB, free: 32.4 MB / 0.5573 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.02532/11.42, allocations: 15.62 MB / 4.199 GB, free: 22.97 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00696/11.42, allocations: 2.707 MB / 4.202 GB, free: 22.37 MB / 0.5573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002467/11.43, allocations: 1.166 MB / 4.203 GB, free: 22.36 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.05705/11.48, allocations: 24.56 MB / 4.227 GB, free: 23.32 MB / 0.573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005876/11.49, allocations: 1.731 MB / 4.228 GB, free: 23.2 MB / 0.573 GB Notification: Performance of pre-optimization done (n=173): time 6.86e-06/11.49, allocations: 0 / 4.228 GB, free: 23.2 MB / 0.573 GB Notification: Performance of matching and sorting (n=189): time 0.02809/11.52, allocations: 7.885 MB / 4.236 GB, free: 22.14 MB / 0.573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000185/11.52, allocations: 259.4 kB / 4.236 GB, free: 21.85 MB / 0.573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002643/11.52, allocations: 1.405 MB / 4.238 GB, free: 21.67 MB / 0.573 GB Notification: Performance of collectPreVariables (initialization): time 0.0004942/11.52, allocations: 65.27 kB / 4.238 GB, free: 21.64 MB / 0.573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009322/11.52, allocations: 0.9683 MB / 4.239 GB, free: 21.27 MB / 0.573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0008033/11.52, allocations: 0.6278 MB / 4.239 GB, free: 20.87 MB / 0.573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002119/11.52, allocations: 40.66 kB / 4.239 GB, free: 20.87 MB / 0.573 GB Notification: Performance of setup shared object (initialization): time 0.0002492/11.52, allocations: 389.2 kB / 4.24 GB, free: 20.56 MB / 0.573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002205/11.53, allocations: 1.038 MB / 4.241 GB, free: 20.56 MB / 0.573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002603/11.53, allocations: 1.481 MB / 4.242 GB, free: 20.11 MB / 0.573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002565/11.53, allocations: 1.273 MB / 4.243 GB, free: 20.02 MB / 0.573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.156e-05/11.53, allocations: 6.5 kB / 4.243 GB, free: 20.02 MB / 0.573 GB Notification: Performance of matching and sorting (n=264) (initialization): time 0.007282/11.54, allocations: 3.108 MB / 4.246 GB, free: 19.74 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 0.002183/11.54, allocations: 4.494 MB / 4.251 GB, free: 15.04 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.917e-05/11.54, allocations: 10.5 kB / 4.251 GB, free: 15.04 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001088/11.54, allocations: 235.7 kB / 4.251 GB, free: 15.01 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003471/11.55, allocations: 0.5195 MB / 4.252 GB, free: 15.01 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002163/11.55, allocations: 2.429 MB / 4.254 GB, free: 12.94 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00365/11.55, allocations: 308.4 kB / 4.254 GB, free: 12.92 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005116/11.55, allocations: 107.6 kB / 4.254 GB, free: 12.92 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 1.275e-05/11.55, allocations: 7.812 kB / 4.254 GB, free: 12.92 MB / 0.573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00641/11.56, allocations: 2.848 MB / 4.257 GB, free: 12.78 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.845e-05/11.56, allocations: 13.09 kB / 4.257 GB, free: 12.78 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001133/11.56, allocations: 226.3 kB / 4.257 GB, free: 12.75 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003079/11.56, allocations: 0.5174 MB / 4.258 GB, free: 12.75 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002165/11.56, allocations: 2.43 MB / 4.26 GB, free: 10.68 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003488/11.57, allocations: 301.1 kB / 4.261 GB, free: 10.66 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005271/11.57, allocations: 106 kB / 4.261 GB, free: 10.66 MB / 0.573 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 49 * Number of states: 0 () * Number of discrete variables: 30 (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,valveOpening1.nextEventScaled,valveOpening2.a,valveOpening2.b,valveOpening2.last,$PRE.valveOpening2.nextEvent,valveOpening2.nextEvent,valveOpening2.nextEventScaled,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 (250): * Single equations (assignments): 244 * 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.00128/11.57, allocations: 315.8 kB / 4.261 GB, free: 26.48 MB / 0.5886 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006055/11.57, allocations: 217.2 kB / 4.261 GB, free: 26.37 MB / 0.5886 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01255/11.58, allocations: 7.556 MB / 4.269 GB, free: 25.6 MB / 0.5886 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.14e-05/11.58, allocations: 87.08 kB / 4.269 GB, free: 25.59 MB / 0.5886 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.23e-05/11.58, allocations: 5.344 kB / 4.269 GB, free: 25.59 MB / 0.5886 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01024/11.59, allocations: 6.564 MB / 4.275 GB, free: 24.66 MB / 0.5886 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02174/11.62, allocations: 12.24 MB / 4.287 GB, free: 23.04 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.026e-05/11.62, allocations: 6.844 kB / 4.287 GB, free: 23.04 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002471/11.62, allocations: 440.7 kB / 4.287 GB, free: 23.04 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001734/11.62, allocations: 351.9 kB / 4.288 GB, free: 22.99 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003435/11.62, allocations: 70.84 kB / 4.288 GB, free: 22.99 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002172/11.62, allocations: 2.524 MB / 4.29 GB, free: 20.92 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.081e-05/11.62, allocations: 12.09 kB / 4.29 GB, free: 20.92 MB / 0.5886 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01235/11.63, allocations: 7.565 MB / 4.298 GB, free: 19.51 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002343/11.64, allocations: 0.7828 MB / 4.298 GB, free: 19.18 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008166/11.64, allocations: 59.39 kB / 4.298 GB, free: 19.18 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002939/11.64, allocations: 214.5 kB / 4.299 GB, free: 19.17 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004482/11.64, allocations: 189.7 kB / 4.299 GB, free: 19.16 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002627/11.64, allocations: 78.31 kB / 4.299 GB, free: 19.16 MB / 0.5886 GB Notification: Performance of sorting global known variables: time 0.002377/11.64, allocations: 1.263 MB / 4.3 GB, free: 19 MB / 0.5886 GB Notification: Performance of sort global known variables: time 9.99e-07/11.64, allocations: 0 / 4.3 GB, free: 19 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.01088/11.65, allocations: 2.783 MB / 4.303 GB, free: 18.64 MB / 0.5886 GB 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: 56 ($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,valveOpening1.nextEventScaled,valveOpening2.a,valveOpening2.b,valveOpening2.last,valveOpening2.nextEvent,valveOpening2.nextEventScaled,junctionIdeal.medium.phase) * 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 (214): * Single equations (assignments): 185 * 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.01226/11.67, allocations: 2.887 MB / 4.306 GB, free: 18.07 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.01098/11.68, allocations: 5.101 MB / 4.311 GB, free: 17.73 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 1.07e-05/11.68, allocations: 0 / 4.311 GB, free: 17.73 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 0.005062/11.68, allocations: 2.658 MB / 4.313 GB, free: 17.6 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006887/11.69, allocations: 1.056 MB / 4.314 GB, free: 17.56 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01226/11.7, allocations: 6.183 MB / 4.32 GB, free: 15.98 MB / 0.5886 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002987/11.71, allocations: 2.298 MB / 4.323 GB, free: 15.17 MB / 0.5886 GB Notification: Performance of simCode: alias equations: time 0.007674/11.71, allocations: 2.597 MB / 4.325 GB, free: 15.05 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001045/11.71, allocations: 180.4 kB / 4.325 GB, free: 15.05 MB / 0.5886 GB Notification: Performance of SimCode: time 2.605e-06/11.71, allocations: 0 / 4.325 GB, free: 15.05 MB / 0.5886 GB Notification: Performance of Templates: time 0.5675/12.28, allocations: 92.85 MB / 4.416 GB, free: 79.13 MB / 0.6042 GB