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_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3") Notification: Performance of loadModel(ModelicaTest): time 2.248/2.248, allocations: 270 MB / 283.6 MB, free: 3.043 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.394e-05/3.401e-05, allocations: 4 kB / 348.4 MB, free: 10.81 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1139/0.1139, allocations: 61.89 MB / 410.3 MB, free: 13 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.075/7.189, allocations: 2.847 GB / 3.248 GB, free: 79.01 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002165/7.19, allocations: 79.95 kB / 3.248 GB, free: 78.93 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 3.829/11.02, allocations: 0.8825 GB / 4.131 GB, free: 11.38 MB / 0.5417 GB Notification: Performance of FrontEnd: time 2.446e-06/11.02, allocations: 0 / 4.131 GB, free: 11.38 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 0.0002328/11.02, allocations: 59.92 kB / 4.131 GB, free: 11.32 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.01363/11.03, allocations: 3.757 MB / 4.134 GB, free: 7.492 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 4.099e-05/11.03, allocations: 8.031 kB / 4.134 GB, free: 7.484 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007324/11.04, allocations: 0.7896 MB / 4.135 GB, free: 6.691 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00603/11.05, allocations: 1.96 MB / 4.137 GB, free: 4.676 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001994/11.05, allocations: 163.5 kB / 4.137 GB, free: 4.516 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005775/11.05, allocations: 199.8 kB / 4.137 GB, free: 4.32 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008204/11.06, allocations: 3.236 MB / 4.141 GB, free: 0.918 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.405e-05/11.06, allocations: 7.938 kB / 4.141 GB, free: 0.9102 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003074/11.06, allocations: 75.97 kB / 4.141 GB, free: 0.8359 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002269/11.06, allocations: 159.2 kB / 4.141 GB, free: 0.6797 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008861/11.06, allocations: 2.809 MB / 4.144 GB, free: 13.86 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.02614/11.09, allocations: 14.06 MB / 4.157 GB, free: 14.63 MB / 0.573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.006353/11.1, allocations: 1.985 MB / 4.159 GB, free: 12.63 MB / 0.573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00236/11.1, allocations: 1.058 MB / 4.16 GB, free: 11.57 MB / 0.573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.4233/11.52, allocations: 24.67 MB / 4.184 GB, free: 45.33 MB / 0.573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005534/11.53, allocations: 1.621 MB / 4.186 GB, free: 45.21 MB / 0.573 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001398/11.53, allocations: 174.9 kB / 4.186 GB, free: 45.21 MB / 0.573 GB Notification: Performance of pre-optimization done (n=155): time 5.814e-06/11.53, allocations: 0.9375 kB / 4.186 GB, free: 45.21 MB / 0.573 GB Notification: Performance of matching and sorting (n=167): time 0.02634/11.56, allocations: 7.039 MB / 4.193 GB, free: 44.43 MB / 0.573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.674e-05/11.56, allocations: 257.3 kB / 4.193 GB, free: 44.14 MB / 0.573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002825/11.56, allocations: 1.32 MB / 4.195 GB, free: 43.97 MB / 0.573 GB Notification: Performance of collectPreVariables (initialization): time 0.0004327/11.56, allocations: 57.52 kB / 4.195 GB, free: 43.94 MB / 0.573 GB Notification: Performance of collectInitialEqns (initialization): time 0.000871/11.56, allocations: 0.885 MB / 4.195 GB, free: 43.68 MB / 0.573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006798/11.56, allocations: 0.5546 MB / 4.196 GB, free: 43.4 MB / 0.573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001796/11.56, allocations: 34.03 kB / 4.196 GB, free: 43.4 MB / 0.573 GB Notification: Performance of setup shared object (initialization): time 0.0001399/11.56, allocations: 381.5 kB / 4.196 GB, free: 43.1 MB / 0.573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002059/11.56, allocations: 0.9279 MB / 4.197 GB, free: 43.09 MB / 0.573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002365/11.57, allocations: 1.331 MB / 4.199 GB, free: 42.71 MB / 0.573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002217/11.57, allocations: 1.163 MB / 4.2 GB, free: 42.63 MB / 0.573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.129e-05/11.57, allocations: 2.406 kB / 4.2 GB, free: 42.63 MB / 0.573 GB Notification: Performance of matching and sorting (n=230) (initialization): time 0.007262/11.58, allocations: 2.964 MB / 4.203 GB, free: 42.35 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 0.0007923/11.58, allocations: 3.842 MB / 4.206 GB, free: 38.31 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.132e-05/11.58, allocations: 7.781 kB / 4.206 GB, free: 38.31 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00304/11.58, allocations: 0.5206 MB / 4.207 GB, free: 38.28 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002697/11.58, allocations: 450.4 kB / 4.207 GB, free: 38.28 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002148/11.58, allocations: 2.703 MB / 4.21 GB, free: 36.2 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003456/11.59, allocations: 265.1 kB / 4.21 GB, free: 36.2 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003477/11.59, allocations: 95.66 kB / 4.21 GB, free: 36.2 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 1.317e-05/11.59, allocations: 5.25 kB / 4.21 GB, free: 36.2 MB / 0.573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00613/11.59, allocations: 2.596 MB / 4.213 GB, free: 36.06 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.058e-05/11.59, allocations: 7.438 kB / 4.213 GB, free: 36.06 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009136/11.6, allocations: 198 kB / 4.213 GB, free: 36.04 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002797/11.6, allocations: 459.5 kB / 4.214 GB, free: 36.04 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001246/11.6, allocations: 1.875 MB / 4.215 GB, free: 34.48 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003555/11.6, allocations: 261.8 kB / 4.216 GB, free: 34.47 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006206/11.6, allocations: 88.77 kB / 4.216 GB, free: 34.47 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.0008632/11.6, allocations: 296.9 kB / 4.216 GB, free: 34.3 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006186/11.61, allocations: 203.1 kB / 4.216 GB, free: 34.2 MB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01252/11.62, allocations: 7.453 MB / 4.223 GB, free: 33.5 MB / 0.573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.006e-05/11.62, allocations: 80.58 kB / 4.224 GB, free: 33.5 MB / 0.573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.199e-05/11.62, allocations: 0 / 4.224 GB, free: 33.5 MB / 0.573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01002/11.63, allocations: 6.51 MB / 4.23 GB, free: 32.56 MB / 0.573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02097/11.65, allocations: 11.26 MB / 4.241 GB, free: 31.49 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.123e-05/11.65, allocations: 8.125 kB / 4.241 GB, free: 31.49 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002144/11.65, allocations: 359.9 kB / 4.241 GB, free: 31.49 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003642/11.66, allocations: 1.306 MB / 4.242 GB, free: 31.41 MB / 0.573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004301/11.66, allocations: 71.48 kB / 4.243 GB, free: 31.41 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002658/11.66, allocations: 3.199 MB / 4.246 GB, free: 29.32 MB / 0.573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.013e-06/11.66, allocations: 4.625 kB / 4.246 GB, free: 29.32 MB / 0.573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01198/11.67, allocations: 7.279 MB / 4.253 GB, free: 28.07 MB / 0.573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001975/11.67, allocations: 0.7355 MB / 4.254 GB, free: 27.79 MB / 0.573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007087/11.67, allocations: 58.27 kB / 4.254 GB, free: 27.79 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002519/11.68, allocations: 185.1 kB / 4.254 GB, free: 27.78 MB / 0.573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004134/11.68, allocations: 162.1 kB / 4.254 GB, free: 27.78 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002568/11.68, allocations: 80.34 kB / 4.254 GB, free: 27.78 MB / 0.573 GB Notification: Performance of sorting global known variables: time 0.002358/11.68, allocations: 1.197 MB / 4.255 GB, free: 27.62 MB / 0.573 GB Notification: Performance of sort global known variables: time 1.085e-06/11.68, allocations: 0 / 4.255 GB, free: 27.62 MB / 0.573 GB Notification: Performance of remove unused functions: time 0.01088/11.69, allocations: 2.634 MB / 4.258 GB, free: 27.51 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.01248/11.7, allocations: 2.805 MB / 4.26 GB, free: 27.2 MB / 0.573 GB Notification: Performance of simCode: created initialization part: time 0.009449/11.71, allocations: 4.572 MB / 4.265 GB, free: 26.88 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 1.18e-05/11.71, allocations: 0 / 4.265 GB, free: 26.88 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 0.004818/11.72, allocations: 2.439 MB / 4.267 GB, free: 26.74 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006214/11.72, allocations: 0.9896 MB / 4.268 GB, free: 26.71 MB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01157/11.73, allocations: 5.657 MB / 4.274 GB, free: 25.52 MB / 0.573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00212/11.74, allocations: 2.195 MB / 4.276 GB, free: 24.75 MB / 0.573 GB Notification: Performance of simCode: alias equations: time 0.007024/11.74, allocations: 2.484 MB / 4.278 GB, free: 24.7 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008551/11.74, allocations: 159.5 kB / 4.279 GB, free: 24.7 MB / 0.573 GB Notification: Performance of SimCode: time 1.853e-06/11.74, allocations: 0 / 4.279 GB, free: 24.7 MB / 0.573 GB Notification: Performance of Templates: time 0.171/11.92, allocations: 88.8 MB / 4.365 GB, free: 3.973 MB / 0.573 GB