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_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes1") Notification: Performance of loadModel(ModelicaTest): time 2.306/2.306, allocations: 270.1 MB / 283.6 MB, free: 3.098 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.235e-05/3.247e-05, allocations: 4 kB / 348.4 MB, free: 10.8 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1101/0.1102, allocations: 61.89 MB / 410.3 MB, free: 12.98 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.751/6.861, allocations: 2.83 GB / 3.231 GB, free: 97.5 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002331/6.861, allocations: 78.52 kB / 3.231 GB, free: 97.46 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 3.771/10.63, allocations: 0.8082 GB / 4.039 GB, free: 41.41 MB / 0.5573 GB Notification: Performance of FrontEnd: time 3.693e-06/10.63, allocations: 0 / 4.039 GB, free: 41.41 MB / 0.5573 GB Notification: Performance of Transformations before backend: time 0.0002733/10.63, allocations: 66.83 kB / 4.039 GB, free: 41.39 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: 518 * Number of variables: 518 Notification: Performance of Generate backend data structure: time 0.01588/10.65, allocations: 3.963 MB / 4.043 GB, free: 39.44 MB / 0.5573 GB Notification: Performance of prepare preOptimizeDAE: time 4.173e-05/10.65, allocations: 10.06 kB / 4.043 GB, free: 39.44 MB / 0.5573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008307/10.66, allocations: 0.8395 MB / 4.044 GB, free: 39.3 MB / 0.5573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006892/10.66, allocations: 2.087 MB / 4.046 GB, free: 38.84 MB / 0.5573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003041/10.66, allocations: 172.4 kB / 4.046 GB, free: 38.84 MB / 0.5573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009766/10.66, allocations: 199.9 kB / 4.046 GB, free: 38.84 MB / 0.5573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01133/10.68, allocations: 3.692 MB / 4.05 GB, free: 38.29 MB / 0.5573 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.778e-05/10.68, allocations: 6.844 kB / 4.05 GB, free: 38.29 MB / 0.5573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003918/10.68, allocations: 94.59 kB / 4.05 GB, free: 38.29 MB / 0.5573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002495/10.68, allocations: 169.9 kB / 4.05 GB, free: 38.29 MB / 0.5573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01048/10.69, allocations: 3.398 MB / 4.053 GB, free: 38.28 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.02489/10.71, allocations: 14.94 MB / 4.068 GB, free: 29.67 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.006298/10.72, allocations: 2.141 MB / 4.07 GB, free: 29.64 MB / 0.5573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002113/10.72, allocations: 1.09 MB / 4.071 GB, free: 29.63 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.05952/10.78, allocations: 24.62 MB / 4.095 GB, free: 14.46 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005193/10.79, allocations: 1.703 MB / 4.097 GB, free: 14.33 MB / 0.5573 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001566/10.79, allocations: 198.2 kB / 4.097 GB, free: 14.23 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=162): time 6.71e-06/10.79, allocations: 0 / 4.097 GB, free: 14.23 MB / 0.5573 GB Notification: Performance of matching and sorting (n=174): time 0.026/10.81, allocations: 7.508 MB / 4.104 GB, free: 29.2 MB / 0.573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002915/10.81, allocations: 417.1 kB / 4.105 GB, free: 28.73 MB / 0.573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003136/10.82, allocations: 1.544 MB / 4.106 GB, free: 28.49 MB / 0.573 GB Notification: Performance of collectPreVariables (initialization): time 0.0005007/10.82, allocations: 61.73 kB / 4.106 GB, free: 28.46 MB / 0.573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009706/10.82, allocations: 0.98 MB / 4.107 GB, free: 28.09 MB / 0.573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0008126/10.82, allocations: 0.5845 MB / 4.108 GB, free: 27.72 MB / 0.573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002299/10.82, allocations: 38.41 kB / 4.108 GB, free: 27.72 MB / 0.573 GB Notification: Performance of setup shared object (initialization): time 0.0002674/10.82, allocations: 395.4 kB / 4.108 GB, free: 27.41 MB / 0.573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002338/10.82, allocations: 1.071 MB / 4.109 GB, free: 27.4 MB / 0.573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002774/10.82, allocations: 1.5 MB / 4.111 GB, free: 26.94 MB / 0.573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002838/10.83, allocations: 1.319 MB / 4.112 GB, free: 26.84 MB / 0.573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.538e-05/10.83, allocations: 7.562 kB / 4.112 GB, free: 26.83 MB / 0.573 GB Notification: Performance of matching and sorting (n=257) (initialization): time 0.008366/10.84, allocations: 3.35 MB / 4.115 GB, free: 26.54 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 0.002/10.84, allocations: 4.062 MB / 4.119 GB, free: 22.27 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.919e-05/10.84, allocations: 18.38 kB / 4.119 GB, free: 22.27 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006869/10.85, allocations: 0.9515 MB / 4.12 GB, free: 22.22 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003114/10.85, allocations: 467 kB / 4.121 GB, free: 22.21 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003897/10.85, allocations: 3.161 MB / 4.124 GB, free: 20.12 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003327/10.86, allocations: 230.6 kB / 4.124 GB, free: 20.1 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005234/10.86, allocations: 105.8 kB / 4.124 GB, free: 20.1 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 1.278e-05/10.86, allocations: 3.094 kB / 4.124 GB, free: 20.1 MB / 0.573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.007606/10.86, allocations: 3.018 MB / 4.127 GB, free: 19.94 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.878e-05/10.86, allocations: 23.11 kB / 4.127 GB, free: 19.94 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0018/10.87, allocations: 346.9 kB / 4.127 GB, free: 19.91 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003228/10.87, allocations: 490.7 kB / 4.128 GB, free: 19.9 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005133/10.87, allocations: 4.058 MB / 4.132 GB, free: 17.06 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003255/10.88, allocations: 243.1 kB / 4.132 GB, free: 17.02 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005427/10.88, allocations: 102.2 kB / 4.132 GB, free: 17.02 MB / 0.573 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 44 * Number of states: 0 () * Number of discrete variables: 29 (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,valveOpening1.nextEventScaled,valveOpening2.a,valveOpening2.b,valveOpening2.last,$PRE.valveOpening2.nextEvent,valveOpening2.nextEvent,valveOpening2.nextEventScaled,pipe3.state_b.phase,pipe2.state_b.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (219): * Single equations (assignments): 209 * 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.0008029/10.88, allocations: 293.8 kB / 4.132 GB, free: 16.84 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006056/10.88, allocations: 223.2 kB / 4.133 GB, free: 16.73 MB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01318/10.89, allocations: 7.862 MB / 4.14 GB, free: 14.4 MB / 0.573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.136e-05/10.89, allocations: 80.91 kB / 4.14 GB, free: 14.38 MB / 0.573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.011e-06/10.89, allocations: 0 / 4.14 GB, free: 14.38 MB / 0.573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01077/10.9, allocations: 6.868 MB / 4.147 GB, free: 11.06 MB / 0.573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01918/10.92, allocations: 10.96 MB / 4.158 GB, free: 4.645 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.986e-05/10.92, allocations: 4 kB / 4.158 GB, free: 4.641 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002347/10.93, allocations: 345.4 kB / 4.158 GB, free: 4.375 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.007307/10.93, allocations: 2.525 MB / 4.161 GB, free: 2.301 MB / 0.573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004912/10.93, allocations: 74.5 kB / 4.161 GB, free: 2.238 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00523/10.94, allocations: 4.103 MB / 4.165 GB, free: 14.32 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.107e-06/10.94, allocations: 3 kB / 4.165 GB, free: 14.32 MB / 0.5886 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01507/10.95, allocations: 7.81 MB / 4.172 GB, free: 7.129 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002253/10.96, allocations: 0.7824 MB / 4.173 GB, free: 6.434 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006267/10.96, allocations: 51.19 kB / 4.173 GB, free: 6.387 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002355/10.96, allocations: 204.2 kB / 4.173 GB, free: 6.23 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000398/10.96, allocations: 142.7 kB / 4.173 GB, free: 6.148 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002658/10.96, allocations: 81.77 kB / 4.173 GB, free: 6.082 MB / 0.5886 GB Notification: Performance of sorting global known variables: time 0.003027/10.96, allocations: 1.367 MB / 4.175 GB, free: 4.82 MB / 0.5886 GB Notification: Performance of sort global known variables: time 1.04e-06/10.96, allocations: 0 / 4.175 GB, free: 4.82 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.01135/10.97, allocations: 2.863 MB / 4.178 GB, free: 2.02 MB / 0.5886 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: 55 ($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,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 (170): * Single equations (assignments): 145 * 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.4212/11.4, allocations: 2.884 MB / 4.18 GB, free: 70.82 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.01243/11.41, allocations: 5.279 MB / 4.186 GB, free: 70.27 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 8.173e-06/11.41, allocations: 5.219 kB / 4.186 GB, free: 70.27 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 0.005206/11.41, allocations: 2.347 MB / 4.188 GB, free: 70.13 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006999/11.42, allocations: 0.9543 MB / 4.189 GB, free: 70.12 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01319/11.43, allocations: 5.938 MB / 4.195 GB, free: 69.01 MB / 0.5886 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002699/11.44, allocations: 2.301 MB / 4.197 GB, free: 68.24 MB / 0.5886 GB Notification: Performance of simCode: alias equations: time 0.008087/11.44, allocations: 2.443 MB / 4.199 GB, free: 68.21 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008633/11.45, allocations: 160.5 kB / 4.199 GB, free: 68.2 MB / 0.5886 GB Notification: Performance of SimCode: time 1.6e-06/11.45, allocations: 0 / 4.199 GB, free: 68.2 MB / 0.5886 GB Notification: Performance of Templates: time 0.1839/11.63, allocations: 94.03 MB / 4.291 GB, free: 64.06 MB / 0.5886 GB