Running command: translateModel(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,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|splitter.medium.h|splitter.medium.p|valveOpening1.a|valveOpening1.b|valveOpening1.last|valveOpening1.nextEvent|valveOpening2.a|valveOpening2.b|valveOpening2.last|valveOpening2.nextEvent",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4") Notification: Performance of loadModel(ModelicaTest): time 2.367/2.367, allocations: 270 MB / 283.6 MB, free: 1.891 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 3.105e-05/3.128e-05, allocations: 4 kB / 348.4 MB, free: 2.793 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3184/0.3184, allocations: 61.87 MB / 410.3 MB, free: 10.73 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.014/7.333, allocations: 2.834 GB / 3.235 GB, free: 85.01 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002318/7.333, allocations: 77.66 kB / 3.235 GB, free: 84.97 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 4.04/11.37, allocations: 0.9141 GB / 4.149 GB, free: 15.56 MB / 0.5573 GB Notification: Performance of FrontEnd: time 2.178e-06/11.37, allocations: 0 / 4.149 GB, free: 15.56 MB / 0.5573 GB Notification: Performance of Transformations before backend: time 0.0002391/11.37, allocations: 71.86 kB / 4.149 GB, free: 15.49 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.01404/11.39, allocations: 4.027 MB / 4.153 GB, free: 11.39 MB / 0.5573 GB Notification: Performance of prepare preOptimizeDAE: time 4.152e-05/11.39, allocations: 8.031 kB / 4.153 GB, free: 11.39 MB / 0.5573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00819/11.4, allocations: 0.8787 MB / 4.154 GB, free: 10.5 MB / 0.5573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006673/11.4, allocations: 2.065 MB / 4.156 GB, free: 8.391 MB / 0.5573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002575/11.4, allocations: 175.9 kB / 4.156 GB, free: 8.219 MB / 0.5573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006955/11.4, allocations: 204 kB / 4.156 GB, free: 8.02 MB / 0.5573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009102/11.41, allocations: 3.662 MB / 4.16 GB, free: 4.168 MB / 0.5573 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.806e-05/11.41, allocations: 11.89 kB / 4.16 GB, free: 4.156 MB / 0.5573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00037/11.41, allocations: 87.97 kB / 4.16 GB, free: 4.07 MB / 0.5573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002275/11.41, allocations: 163.7 kB / 4.16 GB, free: 3.91 MB / 0.5573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008761/11.42, allocations: 3.271 MB / 4.163 GB, free: 0.6367 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.4103/11.83, allocations: 15.58 MB / 4.179 GB, free: 45.69 MB / 0.573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.007297/11.84, allocations: 2.184 MB / 4.181 GB, free: 45.66 MB / 0.573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002144/11.84, allocations: 1.062 MB / 4.182 GB, free: 45.64 MB / 0.573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.05327/11.89, allocations: 24.61 MB / 4.206 GB, free: 30.64 MB / 0.573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00566/11.9, allocations: 1.713 MB / 4.207 GB, free: 30.53 MB / 0.573 GB Notification: Performance of pre-optimization done (n=163): time 7.171e-06/11.9, allocations: 7.188 kB / 4.207 GB, free: 30.53 MB / 0.573 GB Notification: Performance of matching and sorting (n=179): time 0.02755/11.93, allocations: 7.667 MB / 4.215 GB, free: 29.71 MB / 0.573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.868e-05/11.93, allocations: 258 kB / 4.215 GB, free: 29.43 MB / 0.573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003068/11.93, allocations: 1.499 MB / 4.217 GB, free: 29.26 MB / 0.573 GB Notification: Performance of collectPreVariables (initialization): time 0.0004724/11.93, allocations: 56.7 kB / 4.217 GB, free: 29.23 MB / 0.573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009694/11.93, allocations: 0.9834 MB / 4.218 GB, free: 28.93 MB / 0.573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0008563/11.93, allocations: 0.6032 MB / 4.218 GB, free: 28.63 MB / 0.573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002294/11.93, allocations: 41.09 kB / 4.218 GB, free: 28.63 MB / 0.573 GB Notification: Performance of setup shared object (initialization): time 0.0001598/11.93, allocations: 383.5 kB / 4.219 GB, free: 28.33 MB / 0.573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002286/11.94, allocations: 1.028 MB / 4.22 GB, free: 28.32 MB / 0.573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002632/11.94, allocations: 1.445 MB / 4.221 GB, free: 27.87 MB / 0.573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002793/11.94, allocations: 1.265 MB / 4.222 GB, free: 27.79 MB / 0.573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.365e-05/11.94, allocations: 3.688 kB / 4.222 GB, free: 27.79 MB / 0.573 GB Notification: Performance of matching and sorting (n=257) (initialization): time 0.0077/11.95, allocations: 3.09 MB / 4.225 GB, free: 27.51 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 0.000932/11.95, allocations: 4.497 MB / 4.23 GB, free: 22.81 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.702e-05/11.95, allocations: 13.47 kB / 4.23 GB, free: 22.81 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001203/11.95, allocations: 228.6 kB / 4.23 GB, free: 22.78 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003124/11.96, allocations: 0.5128 MB / 4.23 GB, free: 22.78 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001557/11.96, allocations: 2.426 MB / 4.233 GB, free: 20.7 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003655/11.96, allocations: 277.8 kB / 4.233 GB, free: 20.7 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005294/11.96, allocations: 106.7 kB / 4.233 GB, free: 20.7 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 2.624e-05/11.96, allocations: 7.219 kB / 4.233 GB, free: 20.7 MB / 0.573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006519/11.97, allocations: 2.817 MB / 4.236 GB, free: 20.55 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.246e-05/11.97, allocations: 10.12 kB / 4.236 GB, free: 20.55 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001126/11.97, allocations: 231.9 kB / 4.236 GB, free: 20.52 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002871/11.97, allocations: 0.5028 MB / 4.237 GB, free: 20.52 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00148/11.97, allocations: 2.43 MB / 4.239 GB, free: 18.45 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003231/11.98, allocations: 272.2 kB / 4.239 GB, free: 18.44 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005242/11.98, allocations: 101 kB / 4.239 GB, free: 18.44 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 (pipe3.state_a.phase,pipe2.state_a.phase,valveIncompressible1.state_b.phase,valveIncompressible1.state_a.phase,valveIncompressible.state_b.phase,valveIncompressible.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,valveOpening1.nextEventScaled,valveOpening2.a,valveOpening2.b,valveOpening2.last,$PRE.valveOpening2.nextEvent,valveOpening2.nextEvent,valveOpening2.nextEventScaled,splitter.medium.phase,pipe3.state_b.phase,pipe2.state_b.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (243): * Single equations (assignments): 237 * 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.0007794/11.98, allocations: 301.6 kB / 4.24 GB, free: 18.27 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006121/11.98, allocations: 214.3 kB / 4.24 GB, free: 18.16 MB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0128/11.99, allocations: 7.634 MB / 4.247 GB, free: 17.46 MB / 0.573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.913e-05/11.99, allocations: 84.36 kB / 4.247 GB, free: 17.46 MB / 0.573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.213e-05/11.99, allocations: 1.625 kB / 4.247 GB, free: 17.46 MB / 0.573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01029/12, allocations: 6.649 MB / 4.254 GB, free: 16.52 MB / 0.573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01877/12.02, allocations: 10.9 MB / 4.265 GB, free: 15.8 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.666e-05/12.02, allocations: 0 / 4.265 GB, free: 15.8 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002509/12.02, allocations: 419.1 kB / 4.265 GB, free: 15.8 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001813/12.03, allocations: 335.9 kB / 4.265 GB, free: 15.77 MB / 0.573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004176/12.03, allocations: 65.3 kB / 4.265 GB, free: 15.77 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002537/12.03, allocations: 2.519 MB / 4.268 GB, free: 29.69 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.291e-06/12.03, allocations: 2.531 kB / 4.268 GB, free: 29.69 MB / 0.5886 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01191/12.04, allocations: 6.928 MB / 4.275 GB, free: 29.03 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002051/12.04, allocations: 0.7845 MB / 4.275 GB, free: 28.72 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006912/12.04, allocations: 53.92 kB / 4.275 GB, free: 28.72 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002705/12.05, allocations: 210.6 kB / 4.276 GB, free: 28.71 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000454/12.05, allocations: 150.8 kB / 4.276 GB, free: 28.71 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003563/12.05, allocations: 78.42 kB / 4.276 GB, free: 28.71 MB / 0.5886 GB Notification: Performance of sorting global known variables: time 0.002711/12.05, allocations: 1.326 MB / 4.277 GB, free: 28.55 MB / 0.5886 GB Notification: Performance of sort global known variables: time 1.64e-06/12.05, allocations: 2.75 kB / 4.277 GB, free: 28.55 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.0108/12.06, allocations: 2.883 MB / 4.28 GB, free: 28.43 MB / 0.5886 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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,splitter.medium.p,splitter.medium.h) * Number of discrete variables: 56 ($cse3.phase,$cse3.region,$cse5.region3boundary,$cse6.region3boundary,$cse7.phase,$cse7.region,$cse10.phase,$cse10.region,$cse11.phase,$cse11.region,$cse16.phase,$cse16.region,$cse17.phase,$cse17.region,$cse19.phase,$cse19.region,$cse20.phase,$cse20.region,$cse25.phase,$cse25.region,$cse26.phase,$cse26.region,$cse28.phase,$cse28.region,$cse31.phase,$cse31.region,$cse33.region3boundary,$cse34.region3boundary,$cse35.phase,$cse35.region,$cse37.region3boundary,$cse38.region3boundary,$cse39.phase,$cse39.region,$cse41.region3boundary,$cse42.region3boundary,$cse43.phase,$cse43.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,splitter.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 (202): * Single equations (assignments): 173 * 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.01238/12.07, allocations: 2.999 MB / 4.283 GB, free: 28.09 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.01064/12.08, allocations: 5.06 MB / 4.288 GB, free: 27.76 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 9.927e-06/12.08, allocations: 2.562 kB / 4.288 GB, free: 27.76 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 0.004114/12.09, allocations: 2.365 MB / 4.29 GB, free: 27.62 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006441/12.09, allocations: 1.033 MB / 4.291 GB, free: 27.6 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01188/12.11, allocations: 5.993 MB / 4.297 GB, free: 26.47 MB / 0.5886 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002368/12.11, allocations: 2.285 MB / 4.299 GB, free: 25.7 MB / 0.5886 GB Notification: Performance of simCode: alias equations: time 0.007539/12.12, allocations: 2.679 MB / 4.302 GB, free: 25.66 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009433/12.12, allocations: 182 kB / 4.302 GB, free: 25.65 MB / 0.5886 GB Notification: Performance of SimCode: time 1.705e-06/12.12, allocations: 0 / 4.302 GB, free: 25.65 MB / 0.5886 GB Notification: Performance of Templates: time 0.1796/12.3, allocations: 92.94 MB / 4.393 GB, free: 11.69 MB / 0.6042 GB