Running command: translateModel(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes2,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_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes2") Notification: Performance of loadModel(ModelicaTest): time 2.217/2.217, allocations: 249.5 MB / 261.6 MB, free: 2.164 MB / 202.8 MB Notification: Performance of FrontEnd - loaded program: time 3.411e-05/3.425e-05, allocations: 4 kB / 323.4 MB, free: 4.32 MB / 266.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3192/0.3192, allocations: 58.84 MB / 382.2 MB, free: 10.32 MB / 314.8 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.409/6.728, allocations: 2.842 GB / 3.215 GB, free: 162.1 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002264/6.728, allocations: 78.69 kB / 3.215 GB, free: 162.1 MB / 0.5105 GB Notification: Performance of FrontEnd - DAE generated: time 3.712/10.44, allocations: 0.8032 GB / 4.019 GB, free: 45.69 MB / 0.5418 GB Notification: Performance of FrontEnd: time 1.958e-06/10.44, allocations: 0.5938 kB / 4.019 GB, free: 45.69 MB / 0.5418 GB Notification: Performance of Transformations before backend: time 0.0003039/10.44, allocations: 59.98 kB / 4.019 GB, free: 45.69 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: 467 * Number of variables: 467 Notification: Performance of Generate backend data structure: time 0.0152/10.46, allocations: 3.661 MB / 4.022 GB, free: 44.74 MB / 0.5418 GB Notification: Performance of prepare preOptimizeDAE: time 4.455e-05/10.46, allocations: 9.469 kB / 4.022 GB, free: 44.74 MB / 0.5418 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007656/10.46, allocations: 0.7845 MB / 4.023 GB, free: 44.61 MB / 0.5418 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006678/10.47, allocations: 1.984 MB / 4.025 GB, free: 44.2 MB / 0.5418 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002324/10.47, allocations: 163 kB / 4.025 GB, free: 44.2 MB / 0.5418 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005331/10.47, allocations: 180 kB / 4.025 GB, free: 44.2 MB / 0.5418 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009733/10.48, allocations: 3.326 MB / 4.028 GB, free: 43.71 MB / 0.5418 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.028e-05/10.48, allocations: 7.719 kB / 4.028 GB, free: 43.71 MB / 0.5418 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003634/10.48, allocations: 81.97 kB / 4.029 GB, free: 43.71 MB / 0.5418 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002257/10.48, allocations: 142.4 kB / 4.029 GB, free: 43.71 MB / 0.5418 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009012/10.49, allocations: 3.039 MB / 4.032 GB, free: 43.7 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.02075/10.51, allocations: 13.83 MB / 4.045 GB, free: 35.47 MB / 0.5418 GB Notification: Performance of preOpt comSubExp (simulation): time 0.006091/10.52, allocations: 1.984 MB / 4.047 GB, free: 35.43 MB / 0.5418 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00198/10.52, allocations: 1.062 MB / 4.048 GB, free: 35.43 MB / 0.5418 GB Notification: Performance of preOpt evalFunc (simulation): time 0.05603/10.58, allocations: 24.68 MB / 4.072 GB, free: 20.31 MB / 0.5418 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005481/10.58, allocations: 1.635 MB / 4.074 GB, free: 20.19 MB / 0.5418 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001512/10.58, allocations: 178.1 kB / 4.074 GB, free: 20.11 MB / 0.5418 GB Notification: Performance of pre-optimization done (n=155): time 5.917e-06/10.58, allocations: 0 / 4.074 GB, free: 20.11 MB / 0.5418 GB Notification: Performance of matching and sorting (n=167): time 0.02351/10.61, allocations: 7.029 MB / 4.081 GB, free: 19.18 MB / 0.5418 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.082e-05/10.61, allocations: 251.7 kB / 4.081 GB, free: 18.9 MB / 0.5418 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002429/10.61, allocations: 1.319 MB / 4.082 GB, free: 18.72 MB / 0.5418 GB Notification: Performance of collectPreVariables (initialization): time 0.000421/10.61, allocations: 59.8 kB / 4.082 GB, free: 18.69 MB / 0.5418 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008045/10.61, allocations: 0.8743 MB / 4.083 GB, free: 18.37 MB / 0.5418 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005754/10.61, allocations: 0.5501 MB / 4.084 GB, free: 18.02 MB / 0.5418 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001808/10.61, allocations: 36.91 kB / 4.084 GB, free: 18.02 MB / 0.5418 GB Notification: Performance of setup shared object (initialization): time 0.0001286/10.61, allocations: 379.5 kB / 4.084 GB, free: 17.71 MB / 0.5418 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002013/10.61, allocations: 0.9339 MB / 4.085 GB, free: 17.7 MB / 0.5418 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002298/10.62, allocations: 1.326 MB / 4.086 GB, free: 17.32 MB / 0.5418 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002296/10.62, allocations: 1.16 MB / 4.088 GB, free: 17.23 MB / 0.5418 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.45e-06/10.62, allocations: 4.656 kB / 4.088 GB, free: 17.23 MB / 0.5418 GB Notification: Performance of matching and sorting (n=230) (initialization): time 0.007433/10.63, allocations: 2.958 MB / 4.09 GB, free: 16.96 MB / 0.5418 GB Notification: Performance of prepare postOptimizeDAE: time 0.001608/10.63, allocations: 3.849 MB / 4.094 GB, free: 28.93 MB / 0.5574 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.213e-05/10.63, allocations: 11.66 kB / 4.094 GB, free: 28.93 MB / 0.5574 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003064/10.63, allocations: 0.5075 MB / 4.095 GB, free: 28.89 MB / 0.5574 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00257/10.63, allocations: 450.4 kB / 4.095 GB, free: 28.89 MB / 0.5574 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00278/10.64, allocations: 2.706 MB / 4.098 GB, free: 26.82 MB / 0.5574 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003422/10.64, allocations: 265.6 kB / 4.098 GB, free: 26.8 MB / 0.5574 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004091/10.64, allocations: 99.42 kB / 4.098 GB, free: 26.8 MB / 0.5574 GB Notification: Performance of prepare postOptimizeDAE: time 1.431e-05/10.64, allocations: 3.094 kB / 4.098 GB, free: 26.8 MB / 0.5574 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00601/10.65, allocations: 2.588 MB / 4.101 GB, free: 26.66 MB / 0.5574 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.334e-05/10.65, allocations: 11.41 kB / 4.101 GB, free: 26.66 MB / 0.5574 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008969/10.65, allocations: 197.8 kB / 4.101 GB, free: 26.64 MB / 0.5574 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002804/10.65, allocations: 461 kB / 4.101 GB, free: 26.64 MB / 0.5574 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001666/10.65, allocations: 1.869 MB / 4.103 GB, free: 25.09 MB / 0.5574 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003042/10.65, allocations: 251.9 kB / 4.103 GB, free: 25.08 MB / 0.5574 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002899/10.65, allocations: 93.11 kB / 4.103 GB, free: 25.08 MB / 0.5574 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.0007278/10.66, allocations: 298.3 kB / 4.104 GB, free: 24.89 MB / 0.5574 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004716/10.66, allocations: 199.8 kB / 4.104 GB, free: 24.79 MB / 0.5574 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01201/10.67, allocations: 7.45 MB / 4.111 GB, free: 24.02 MB / 0.5574 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.912e-05/10.67, allocations: 83.42 kB / 4.111 GB, free: 24.02 MB / 0.5574 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.19e-05/10.67, allocations: 2.766 kB / 4.111 GB, free: 24.02 MB / 0.5574 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.009759/10.68, allocations: 6.513 MB / 4.118 GB, free: 23.07 MB / 0.5574 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02005/10.7, allocations: 11.22 MB / 4.129 GB, free: 21.94 MB / 0.5574 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.861e-05/10.7, allocations: 7.094 kB / 4.129 GB, free: 21.94 MB / 0.5574 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002123/10.7, allocations: 366.8 kB / 4.129 GB, free: 21.94 MB / 0.5574 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003621/10.7, allocations: 1.298 MB / 4.13 GB, free: 21.87 MB / 0.5574 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004215/10.7, allocations: 68.73 kB / 4.13 GB, free: 21.87 MB / 0.5574 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003207/10.71, allocations: 3.183 MB / 4.133 GB, free: 19.77 MB / 0.5574 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.863e-06/10.71, allocations: 5.656 kB / 4.133 GB, free: 19.77 MB / 0.5574 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0116/10.72, allocations: 7.285 MB / 4.141 GB, free: 18.52 MB / 0.5574 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001973/10.72, allocations: 0.7386 MB / 4.141 GB, free: 18.19 MB / 0.5574 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005304/10.72, allocations: 54.12 kB / 4.141 GB, free: 18.19 MB / 0.5574 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002248/10.72, allocations: 189 kB / 4.141 GB, free: 18.18 MB / 0.5574 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003666/10.72, allocations: 157.6 kB / 4.142 GB, free: 18.18 MB / 0.5574 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002349/10.72, allocations: 76.05 kB / 4.142 GB, free: 18.18 MB / 0.5574 GB Notification: Performance of sorting global known variables: time 0.002263/10.73, allocations: 1.2 MB / 4.143 GB, free: 18.02 MB / 0.5574 GB Notification: Performance of sort global known variables: time 9.63e-07/10.73, allocations: 0 / 4.143 GB, free: 18.02 MB / 0.5574 GB Notification: Performance of remove unused functions: time 0.009907/10.74, allocations: 2.59 MB / 4.145 GB, free: 17.68 MB / 0.5574 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,$cse17.phase,$cse17.region,$cse18.phase,$cse18.region,$cse20.phase,$cse20.region,$cse21.phase,$cse21.region,$cse26.phase,$cse26.region,$cse27.phase,$cse27.region,$cse29.phase,$cse29.region,$cse32.phase,$cse32.region,$cse34.region3boundary,$cse35.region3boundary,$cse36.phase,$cse36.region,$cse38.phase,$cse38.region,$cse40.region3boundary,$cse41.region3boundary,$cse42.phase,$cse42.region,$cse44.phase,$cse44.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.01174/10.75, allocations: 2.731 MB / 4.148 GB, free: 17.16 MB / 0.5574 GB Notification: Performance of simCode: created initialization part: time 0.009541/10.76, allocations: 4.619 MB / 4.153 GB, free: 16.84 MB / 0.5574 GB Notification: Performance of simCode: created event and clocks part: time 9.822e-06/10.76, allocations: 0 / 4.153 GB, free: 16.84 MB / 0.5574 GB Notification: Performance of simCode: created simulation system equations: time 0.004419/10.76, allocations: 2.422 MB / 4.155 GB, free: 16.71 MB / 0.5574 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00595/10.77, allocations: 0.9138 MB / 4.156 GB, free: 16.68 MB / 0.5574 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01064/10.78, allocations: 5.625 MB / 4.161 GB, free: 15.5 MB / 0.5574 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002243/10.78, allocations: 2.182 MB / 4.163 GB, free: 14.74 MB / 0.5574 GB Notification: Performance of simCode: alias equations: time 0.006435/10.79, allocations: 2.471 MB / 4.166 GB, free: 14.7 MB / 0.5574 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007503/10.79, allocations: 152.9 kB / 4.166 GB, free: 14.69 MB / 0.5574 GB Notification: Performance of SimCode: time 1.722e-06/10.79, allocations: 0 / 4.166 GB, free: 14.69 MB / 0.5574 GB Notification: Performance of Templates: time 0.5275/11.32, allocations: 86.53 MB / 4.251 GB, free: 74.21 MB / 0.573 GB