Running command: translateModel(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3,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|valveOpening1.a|valveOpening1.b|valveOpening1.last|valveOpening1.nextEvent|valveOpening2.a|valveOpening2.b|valveOpening2.last|valveOpening2.nextEvent",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3") Notification: Performance of loadModel(ModelicaTest): time 2.353/2.353, allocations: 270.1 MB / 283.6 MB, free: 3.016 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 4.966e-05/4.977e-05, allocations: 10.09 kB / 348.4 MB, free: 10.8 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1587/0.1587, allocations: 61.89 MB / 410.3 MB, free: 12.98 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.903/7.062, allocations: 2.847 GB / 3.248 GB, free: 78.91 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002167/7.062, allocations: 76.56 kB / 3.248 GB, free: 78.83 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 3.907/10.97, allocations: 0.8825 GB / 4.131 GB, free: 11.41 MB / 0.5417 GB Notification: Performance of FrontEnd: time 2.875e-06/10.97, allocations: 0 / 4.131 GB, free: 11.41 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 0.0001796/10.97, allocations: 59.98 kB / 4.131 GB, free: 11.36 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: 476 * Number of variables: 476 Notification: Performance of Generate backend data structure: time 0.01245/10.98, allocations: 3.773 MB / 4.134 GB, free: 7.516 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 4.006e-05/10.98, allocations: 8.031 kB / 4.134 GB, free: 7.508 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007275/10.99, allocations: 0.7857 MB / 4.135 GB, free: 6.719 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00581/11, allocations: 1.969 MB / 4.137 GB, free: 4.703 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001898/11, allocations: 163.5 kB / 4.137 GB, free: 4.543 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004258/11, allocations: 187.9 kB / 4.137 GB, free: 4.359 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008001/11, allocations: 3.244 MB / 4.141 GB, free: 0.9492 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.59e-05/11, allocations: 7.938 kB / 4.141 GB, free: 0.9414 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003058/11, allocations: 79.97 kB / 4.141 GB, free: 0.8633 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002171/11, allocations: 147.2 kB / 4.141 GB, free: 0.7188 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008506/11.01, allocations: 2.813 MB / 4.144 GB, free: 13.9 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.0258/11.04, allocations: 14.06 MB / 4.157 GB, free: 14.67 MB / 0.573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.006334/11.05, allocations: 1.981 MB / 4.159 GB, free: 12.68 MB / 0.573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002415/11.05, allocations: 1.058 MB / 4.16 GB, free: 11.62 MB / 0.573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.4265/11.47, allocations: 24.67 MB / 4.184 GB, free: 45.39 MB / 0.573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005914/11.48, allocations: 1.626 MB / 4.186 GB, free: 45.27 MB / 0.573 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001469/11.48, allocations: 171.8 kB / 4.186 GB, free: 45.27 MB / 0.573 GB Notification: Performance of pre-optimization done (n=155): time 5.426e-06/11.48, allocations: 0 / 4.186 GB, free: 45.27 MB / 0.573 GB Notification: Performance of matching and sorting (n=167): time 0.02505/11.51, allocations: 7.039 MB / 4.193 GB, free: 44.48 MB / 0.573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.598e-05/11.51, allocations: 252.5 kB / 4.193 GB, free: 44.2 MB / 0.573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002815/11.51, allocations: 1.325 MB / 4.195 GB, free: 44.03 MB / 0.573 GB Notification: Performance of collectPreVariables (initialization): time 0.0003936/11.51, allocations: 58.42 kB / 4.195 GB, free: 44 MB / 0.573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008642/11.51, allocations: 0.8876 MB / 4.195 GB, free: 43.74 MB / 0.573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006741/11.51, allocations: 0.5513 MB / 4.196 GB, free: 43.46 MB / 0.573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000182/11.51, allocations: 38.69 kB / 4.196 GB, free: 43.46 MB / 0.573 GB Notification: Performance of setup shared object (initialization): time 0.0001423/11.51, allocations: 377.2 kB / 4.196 GB, free: 43.16 MB / 0.573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002079/11.51, allocations: 0.932 MB / 4.197 GB, free: 43.15 MB / 0.573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002479/11.52, allocations: 1.331 MB / 4.199 GB, free: 42.77 MB / 0.573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00229/11.52, allocations: 1.157 MB / 4.2 GB, free: 42.69 MB / 0.573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.064e-05/11.52, allocations: 5.469 kB / 4.2 GB, free: 42.69 MB / 0.573 GB Notification: Performance of matching and sorting (n=230) (initialization): time 0.007121/11.53, allocations: 2.967 MB / 4.203 GB, free: 42.41 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 0.0007683/11.53, allocations: 3.841 MB / 4.206 GB, free: 38.37 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.087e-05/11.53, allocations: 9.719 kB / 4.206 GB, free: 38.37 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003326/11.53, allocations: 0.5146 MB / 4.207 GB, free: 38.34 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002585/11.53, allocations: 451.5 kB / 4.207 GB, free: 38.34 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002087/11.53, allocations: 2.708 MB / 4.21 GB, free: 36.26 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003144/11.54, allocations: 260.1 kB / 4.21 GB, free: 36.25 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003608/11.54, allocations: 99.56 kB / 4.21 GB, free: 36.25 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 1.237e-05/11.54, allocations: 3.094 kB / 4.21 GB, free: 36.25 MB / 0.573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005832/11.54, allocations: 2.596 MB / 4.213 GB, free: 36.12 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.115e-05/11.54, allocations: 13.09 kB / 4.213 GB, free: 36.12 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007687/11.55, allocations: 192.4 kB / 4.213 GB, free: 36.09 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002339/11.55, allocations: 463.1 kB / 4.214 GB, free: 36.09 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001102/11.55, allocations: 1.875 MB / 4.215 GB, free: 34.54 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002792/11.55, allocations: 272.7 kB / 4.216 GB, free: 34.53 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002722/11.55, allocations: 91.19 kB / 4.216 GB, free: 34.53 MB / 0.573 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 42 * Number of states: 0 () * Number of discrete variables: 29 (valveIncompressible1.state_b.phase,valveIncompressible1.state_a.phase,valveIncompressible.state_b.phase,valveIncompressible.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_a.phase,pipe3.state_b.phase,pipe2.state_a.phase,pipe2.state_b.phase,pipe1.state_a.phase,pipe1.state_b.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (211): * Single equations (assignments): 205 * 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,2 5} Notification: Performance of prepare postOptimizeDAE: time 0.0006222/11.55, allocations: 291.6 kB / 4.216 GB, free: 34.36 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004127/11.55, allocations: 200.5 kB / 4.216 GB, free: 34.26 MB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01243/11.57, allocations: 7.454 MB / 4.223 GB, free: 33.56 MB / 0.573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.792e-05/11.57, allocations: 82.7 kB / 4.224 GB, free: 33.56 MB / 0.573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.172e-05/11.57, allocations: 0 / 4.224 GB, free: 33.56 MB / 0.573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01007/11.58, allocations: 6.506 MB / 4.23 GB, free: 32.62 MB / 0.573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02/11.6, allocations: 11.26 MB / 4.241 GB, free: 31.55 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.985e-05/11.6, allocations: 7.156 kB / 4.241 GB, free: 31.55 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002066/11.6, allocations: 363.9 kB / 4.241 GB, free: 31.55 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003561/11.6, allocations: 1.307 MB / 4.243 GB, free: 31.47 MB / 0.573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003851/11.6, allocations: 71.8 kB / 4.243 GB, free: 31.47 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002625/11.6, allocations: 3.197 MB / 4.246 GB, free: 29.38 MB / 0.573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.75e-06/11.6, allocations: 9.625 kB / 4.246 GB, free: 29.38 MB / 0.573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01159/11.62, allocations: 7.281 MB / 4.253 GB, free: 28.13 MB / 0.573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002011/11.62, allocations: 0.7345 MB / 4.254 GB, free: 27.86 MB / 0.573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006202/11.62, allocations: 50.45 kB / 4.254 GB, free: 27.86 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002479/11.62, allocations: 196.5 kB / 4.254 GB, free: 27.85 MB / 0.573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000368/11.62, allocations: 159.5 kB / 4.254 GB, free: 27.85 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002329/11.62, allocations: 78.8 kB / 4.254 GB, free: 27.85 MB / 0.573 GB Notification: Performance of sorting global known variables: time 0.002229/11.62, allocations: 1.199 MB / 4.255 GB, free: 27.69 MB / 0.573 GB Notification: Performance of sort global known variables: time 1.034e-06/11.62, allocations: 0 / 4.255 GB, free: 27.69 MB / 0.573 GB Notification: Performance of remove unused functions: time 0.0102/11.63, allocations: 2.634 MB / 4.258 GB, free: 27.58 MB / 0.573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 19 * Number of states: 6 (pipe1.mediums[1].p,pipe1.mediums[1].h,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,$cse9.phase,$cse9.region,$cse10.phase,$cse10.region,$cse15.phase,$cse15.region,$cse16.phase,$cse16.region,$cse18.phase,$cse18.region,$cse19.phase,$cse19.region,$cse24.phase,$cse24.region,$cse25.phase,$cse25.region,$cse27.phase,$cse27.region,$cse30.phase,$cse30.region,$cse32.region3boundary,$cse33.region3boundary,$cse34.phase,$cse34.region,$cse36.phase,$cse36.region,$cse37.region3boundary,$cse38.region3boundary,$cse39.phase,$cse39.region,$cse41.phase,$cse41.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 (179): * Single equations (assignments): 153 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 20 * 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,2 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.01195/11.65, allocations: 2.79 MB / 4.26 GB, free: 27.27 MB / 0.573 GB Notification: Performance of simCode: created initialization part: time 0.009276/11.66, allocations: 4.577 MB / 4.265 GB, free: 26.95 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 1.243e-05/11.66, allocations: 3.438 kB / 4.265 GB, free: 26.95 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 0.004724/11.66, allocations: 2.439 MB / 4.267 GB, free: 26.81 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006513/11.67, allocations: 0.989 MB / 4.268 GB, free: 26.78 MB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01126/11.68, allocations: 5.662 MB / 4.274 GB, free: 25.58 MB / 0.573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002029/11.68, allocations: 2.192 MB / 4.276 GB, free: 24.82 MB / 0.573 GB Notification: Performance of simCode: alias equations: time 0.006563/11.69, allocations: 2.478 MB / 4.278 GB, free: 24.77 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007891/11.69, allocations: 157.1 kB / 4.279 GB, free: 24.76 MB / 0.573 GB Notification: Performance of SimCode: time 1.697e-06/11.69, allocations: 2.219 kB / 4.279 GB, free: 24.76 MB / 0.573 GB Notification: Performance of Templates: time 0.1647/11.85, allocations: 88.81 MB / 4.365 GB, free: 4 MB / 0.573 GB