Running command: translateModel(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes12,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|valveIncompressible.filter.x.1.|valveIncompressible.filter.x.2.|valveIncompressible1.filter.x.1.|valveIncompressible1.filter.x.2.|valveOpening1.a|valveOpening1.b|valveOpening1.last|valveOpening1.nextEvent|valveOpening2.a|valveOpening2.b|valveOpening2.last|valveOpening2.nextEvent",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes12") Notification: Performance of loadModel(ModelicaTest): time 2.294/2.294, allocations: 249.5 MB / 261.6 MB, free: 2.152 MB / 202.8 MB Notification: Performance of FrontEnd - loaded program: time 3.237e-05/3.248e-05, allocations: 8 kB / 323.4 MB, free: 4.305 MB / 266.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3162/0.3162, allocations: 58.83 MB / 382.2 MB, free: 10.32 MB / 314.8 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.348/6.664, allocations: 2.825 GB / 3.198 GB, free: 152.9 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002435/6.664, allocations: 74.22 kB / 3.199 GB, free: 152.9 MB / 0.5105 GB Notification: Performance of FrontEnd - DAE generated: time 3.315/9.979, allocations: 0.8064 GB / 4.005 GB, free: 13.82 MB / 0.5418 GB Notification: Performance of FrontEnd: time 2.42e-06/9.979, allocations: 0 / 4.005 GB, free: 13.82 MB / 0.5418 GB Notification: Performance of Transformations before backend: time 0.0002958/9.98, allocations: 71.86 kB / 4.005 GB, free: 13.75 MB / 0.5418 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.0171/9.997, allocations: 3.969 MB / 4.009 GB, free: 9.703 MB / 0.5418 GB Notification: Performance of prepare preOptimizeDAE: time 4.709e-05/9.997, allocations: 11.97 kB / 4.009 GB, free: 9.691 MB / 0.5418 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008224/10.01, allocations: 0.8359 MB / 4.01 GB, free: 8.852 MB / 0.5418 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00766/10.01, allocations: 2.157 MB / 4.012 GB, free: 6.641 MB / 0.5418 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003216/10.01, allocations: 171.7 kB / 4.012 GB, free: 6.473 MB / 0.5418 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008314/10.01, allocations: 203.9 kB / 4.012 GB, free: 6.273 MB / 0.5418 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01162/10.03, allocations: 3.695 MB / 4.016 GB, free: 2.371 MB / 0.5418 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.942e-05/10.03, allocations: 7.938 kB / 4.016 GB, free: 2.363 MB / 0.5418 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004313/10.03, allocations: 87.95 kB / 4.016 GB, free: 2.277 MB / 0.5418 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003016/10.03, allocations: 167.6 kB / 4.016 GB, free: 2.113 MB / 0.5418 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.3693/10.4, allocations: 3.397 MB / 4.019 GB, free: 40.3 MB / 0.5418 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.02525/10.42, allocations: 14.92 MB / 4.034 GB, free: 31.91 MB / 0.5418 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00624/10.43, allocations: 2.137 MB / 4.036 GB, free: 31.88 MB / 0.5418 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002064/10.43, allocations: 1.091 MB / 4.037 GB, free: 31.88 MB / 0.5418 GB Notification: Performance of preOpt evalFunc (simulation): time 0.05275/10.48, allocations: 24.61 MB / 4.061 GB, free: 32.88 MB / 0.5574 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00518/10.49, allocations: 1.702 MB / 4.063 GB, free: 32.75 MB / 0.5574 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001488/10.49, allocations: 203 kB / 4.063 GB, free: 32.7 MB / 0.5574 GB Notification: Performance of pre-optimization done (n=162): time 6.39e-06/10.49, allocations: 0 / 4.063 GB, free: 32.7 MB / 0.5574 GB Notification: Performance of matching and sorting (n=174): time 0.02379/10.51, allocations: 7.504 MB / 4.07 GB, free: 31.75 MB / 0.5574 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002726/10.51, allocations: 412.5 kB / 4.071 GB, free: 31.28 MB / 0.5574 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002937/10.52, allocations: 1.552 MB / 4.072 GB, free: 31.05 MB / 0.5574 GB Notification: Performance of collectPreVariables (initialization): time 0.0004596/10.52, allocations: 65.31 kB / 4.072 GB, free: 31.02 MB / 0.5574 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009232/10.52, allocations: 0.9732 MB / 4.073 GB, free: 30.73 MB / 0.5574 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007292/10.52, allocations: 0.5904 MB / 4.074 GB, free: 30.44 MB / 0.5574 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002029/10.52, allocations: 35.38 kB / 4.074 GB, free: 30.44 MB / 0.5574 GB Notification: Performance of setup shared object (initialization): time 0.0002676/10.52, allocations: 389.1 kB / 4.074 GB, free: 30.14 MB / 0.5574 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002171/10.52, allocations: 1.071 MB / 4.075 GB, free: 30.13 MB / 0.5574 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002565/10.52, allocations: 1.501 MB / 4.077 GB, free: 29.68 MB / 0.5574 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00261/10.53, allocations: 1.321 MB / 4.078 GB, free: 29.59 MB / 0.5574 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.127e-05/10.53, allocations: 6.094 kB / 4.078 GB, free: 29.59 MB / 0.5574 GB Notification: Performance of matching and sorting (n=257) (initialization): time 0.007505/10.53, allocations: 3.349 MB / 4.081 GB, free: 29.3 MB / 0.5574 GB Notification: Performance of prepare postOptimizeDAE: time 0.001969/10.54, allocations: 4.056 MB / 4.085 GB, free: 25.08 MB / 0.5574 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.878e-05/10.54, allocations: 19.73 kB / 4.085 GB, free: 25.08 MB / 0.5574 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006334/10.54, allocations: 0.9542 MB / 4.086 GB, free: 25.05 MB / 0.5574 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002913/10.55, allocations: 467.3 kB / 4.087 GB, free: 25.05 MB / 0.5574 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003702/10.55, allocations: 3.152 MB / 4.09 GB, free: 22.96 MB / 0.5574 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003239/10.55, allocations: 245.1 kB / 4.09 GB, free: 22.95 MB / 0.5574 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005079/10.55, allocations: 102.5 kB / 4.09 GB, free: 22.95 MB / 0.5574 GB Notification: Performance of prepare postOptimizeDAE: time 1.346e-05/10.55, allocations: 3.375 kB / 4.09 GB, free: 22.95 MB / 0.5574 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.007106/10.56, allocations: 3.025 MB / 4.093 GB, free: 22.81 MB / 0.5574 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.024e-05/10.56, allocations: 12.59 kB / 4.093 GB, free: 22.81 MB / 0.5574 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001596/10.56, allocations: 352.5 kB / 4.093 GB, free: 22.78 MB / 0.5574 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002918/10.56, allocations: 488.5 kB / 4.094 GB, free: 22.78 MB / 0.5574 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005077/10.57, allocations: 4.063 MB / 4.098 GB, free: 19.95 MB / 0.5574 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00311/10.57, allocations: 232.2 kB / 4.098 GB, free: 19.94 MB / 0.5574 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005303/10.57, allocations: 101.8 kB / 4.098 GB, free: 19.94 MB / 0.5574 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,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,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.0007974/10.57, allocations: 292.1 kB / 4.098 GB, free: 19.77 MB / 0.5574 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005761/10.57, allocations: 224.7 kB / 4.099 GB, free: 19.66 MB / 0.5574 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0123/10.59, allocations: 7.841 MB / 4.106 GB, free: 18.96 MB / 0.5574 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.79e-05/10.59, allocations: 81.97 kB / 4.106 GB, free: 18.96 MB / 0.5574 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.561e-06/10.59, allocations: 3 kB / 4.106 GB, free: 18.96 MB / 0.5574 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0102/10.6, allocations: 6.874 MB / 4.113 GB, free: 18.02 MB / 0.5574 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01719/10.61, allocations: 10.95 MB / 4.124 GB, free: 17.28 MB / 0.5574 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.226e-05/10.61, allocations: 0 / 4.124 GB, free: 17.28 MB / 0.5574 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002076/10.62, allocations: 352 kB / 4.124 GB, free: 17.28 MB / 0.5574 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006625/10.62, allocations: 2.534 MB / 4.127 GB, free: 17.19 MB / 0.5574 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004434/10.62, allocations: 70.39 kB / 4.127 GB, free: 17.19 MB / 0.5574 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004401/10.63, allocations: 4.111 MB / 4.131 GB, free: 15.08 MB / 0.5574 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.58e-06/10.63, allocations: 0 / 4.131 GB, free: 15.08 MB / 0.5574 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01248/10.64, allocations: 7.812 MB / 4.138 GB, free: 14.37 MB / 0.5574 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002064/10.64, allocations: 0.7783 MB / 4.139 GB, free: 14.04 MB / 0.5574 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007067/10.64, allocations: 53.41 kB / 4.139 GB, free: 14.04 MB / 0.5574 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002401/10.65, allocations: 201.7 kB / 4.139 GB, free: 14.03 MB / 0.5574 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003517/10.65, allocations: 142 kB / 4.139 GB, free: 14.03 MB / 0.5574 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002399/10.65, allocations: 69.8 kB / 4.139 GB, free: 14.03 MB / 0.5574 GB Notification: Performance of sorting global known variables: time 0.002526/10.65, allocations: 1.37 MB / 4.141 GB, free: 13.87 MB / 0.5574 GB Notification: Performance of sort global known variables: time 1.725e-06/10.65, allocations: 0 / 4.141 GB, free: 13.87 MB / 0.5574 GB Notification: Performance of remove unused functions: time 0.01055/10.66, allocations: 2.869 MB / 4.144 GB, free: 13.74 MB / 0.5574 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,valveIncompressible.filter.x[1],valveIncompressible.filter.x[2],valveIncompressible1.filter.x[1],valveIncompressible1.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.01222/10.67, allocations: 2.873 MB / 4.146 GB, free: 13.43 MB / 0.5574 GB Notification: Performance of simCode: created initialization part: time 0.01028/10.68, allocations: 5.288 MB / 4.152 GB, free: 12.87 MB / 0.5574 GB Notification: Performance of simCode: created event and clocks part: time 6.822e-06/10.68, allocations: 0 / 4.152 GB, free: 12.87 MB / 0.5574 GB Notification: Performance of simCode: created simulation system equations: time 0.004664/10.69, allocations: 2.342 MB / 4.154 GB, free: 28.72 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006107/10.69, allocations: 0.9641 MB / 4.155 GB, free: 28.7 MB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01085/10.7, allocations: 5.936 MB / 4.161 GB, free: 27.55 MB / 0.573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002294/10.71, allocations: 2.296 MB / 4.163 GB, free: 26.77 MB / 0.573 GB Notification: Performance of simCode: alias equations: time 0.006368/10.71, allocations: 2.437 MB / 4.165 GB, free: 26.73 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006936/10.71, allocations: 163 kB / 4.165 GB, free: 26.72 MB / 0.573 GB Notification: Performance of SimCode: time 1.726e-06/10.71, allocations: 0 / 4.165 GB, free: 26.72 MB / 0.573 GB Notification: Performance of Templates: time 0.5481/11.26, allocations: 94.07 MB / 4.257 GB, free: 71.04 MB / 0.573 GB