Running command: translateModel(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes13,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.BranchingPipes13") Notification: Performance of loadModel(ModelicaTest): time 2.247/2.247, allocations: 249.5 MB / 261.6 MB, free: 2.156 MB / 202.8 MB Notification: Performance of FrontEnd - loaded program: time 3.204e-05/3.214e-05, allocations: 4 kB / 323.4 MB, free: 4.316 MB / 266.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3193/0.3194, allocations: 58.83 MB / 382.2 MB, free: 10.32 MB / 314.8 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.683/7.002, allocations: 2.826 GB / 3.199 GB, free: 115 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001946/7.003, allocations: 74.97 kB / 3.199 GB, free: 114.9 MB / 0.5105 GB Notification: Performance of FrontEnd - DAE generated: time 3.727/10.73, allocations: 0.8678 GB / 4.067 GB, free: 31.44 MB / 0.5261 GB Notification: Performance of FrontEnd: time 2.577e-06/10.73, allocations: 4 kB / 4.067 GB, free: 31.44 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 0.0002425/10.73, allocations: 58.06 kB / 4.067 GB, free: 31.43 MB / 0.5261 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.0141/10.74, allocations: 3.822 MB / 4.071 GB, free: 29.3 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 4.258e-05/10.74, allocations: 15.53 kB / 4.071 GB, free: 29.3 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008006/10.75, allocations: 0.7818 MB / 4.071 GB, free: 29.1 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006067/10.76, allocations: 1.936 MB / 4.073 GB, free: 27.98 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002466/10.76, allocations: 169.5 kB / 4.073 GB, free: 27.82 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006444/10.76, allocations: 180.7 kB / 4.074 GB, free: 27.66 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008699/10.77, allocations: 3.275 MB / 4.077 GB, free: 24.85 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.812e-05/10.77, allocations: 8 kB / 4.077 GB, free: 24.84 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003165/10.77, allocations: 76.44 kB / 4.077 GB, free: 24.77 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000221/10.77, allocations: 150.7 kB / 4.077 GB, free: 24.65 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007944/10.78, allocations: 2.894 MB / 4.08 GB, free: 22.18 MB / 0.5261 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.0225/10.8, allocations: 14.22 MB / 4.094 GB, free: 8.164 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005594/10.8, allocations: 1.973 MB / 4.096 GB, free: 6.195 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00195/10.81, allocations: 0.9865 MB / 4.097 GB, free: 5.215 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.4431/11.25, allocations: 24.61 MB / 4.121 GB, free: 45.56 MB / 0.5418 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005149/11.26, allocations: 1.586 MB / 4.122 GB, free: 45.45 MB / 0.5418 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.00142/11.26, allocations: 169.8 kB / 4.122 GB, free: 45.45 MB / 0.5418 GB Notification: Performance of pre-optimization done (n=146): time 7.22e-06/11.26, allocations: 0 / 4.122 GB, free: 45.45 MB / 0.5418 GB Notification: Performance of matching and sorting (n=158): time 0.02408/11.28, allocations: 6.915 MB / 4.129 GB, free: 44.67 MB / 0.5418 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.437e-05/11.28, allocations: 251 kB / 4.129 GB, free: 44.39 MB / 0.5418 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002791/11.28, allocations: 1.398 MB / 4.131 GB, free: 44.21 MB / 0.5418 GB Notification: Performance of collectPreVariables (initialization): time 0.0004246/11.28, allocations: 57.3 kB / 4.131 GB, free: 44.18 MB / 0.5418 GB Notification: Performance of collectInitialEqns (initialization): time 0.000816/11.29, allocations: 0.8874 MB / 4.132 GB, free: 43.92 MB / 0.5418 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006377/11.29, allocations: 0.526 MB / 4.132 GB, free: 43.66 MB / 0.5418 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001901/11.29, allocations: 35.91 kB / 4.132 GB, free: 43.66 MB / 0.5418 GB Notification: Performance of setup shared object (initialization): time 0.0001358/11.29, allocations: 381 kB / 4.133 GB, free: 43.35 MB / 0.5418 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00194/11.29, allocations: 0.9293 MB / 4.134 GB, free: 43.35 MB / 0.5418 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002324/11.29, allocations: 1.298 MB / 4.135 GB, free: 42.96 MB / 0.5418 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002583/11.29, allocations: 1.154 MB / 4.136 GB, free: 42.88 MB / 0.5418 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.508e-05/11.29, allocations: 3.25 kB / 4.136 GB, free: 42.88 MB / 0.5418 GB Notification: Performance of matching and sorting (n=224) (initialization): time 0.007916/11.3, allocations: 2.963 MB / 4.139 GB, free: 42.61 MB / 0.5418 GB Notification: Performance of prepare postOptimizeDAE: time 0.0008153/11.3, allocations: 3.851 MB / 4.143 GB, free: 38.57 MB / 0.5418 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.292e-05/11.3, allocations: 10.44 kB / 4.143 GB, free: 38.57 MB / 0.5418 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003755/11.31, allocations: 0.5899 MB / 4.143 GB, free: 38.54 MB / 0.5418 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002787/11.31, allocations: 430.3 kB / 4.144 GB, free: 38.54 MB / 0.5418 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002519/11.31, allocations: 2.823 MB / 4.146 GB, free: 36.46 MB / 0.5418 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003025/11.31, allocations: 238.6 kB / 4.147 GB, free: 36.45 MB / 0.5418 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004037/11.31, allocations: 91.38 kB / 4.147 GB, free: 36.45 MB / 0.5418 GB Notification: Performance of prepare postOptimizeDAE: time 1.365e-05/11.31, allocations: 3.938 kB / 4.147 GB, free: 36.45 MB / 0.5418 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006038/11.32, allocations: 2.573 MB / 4.149 GB, free: 36.31 MB / 0.5418 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.9e-05/11.32, allocations: 6.75 kB / 4.149 GB, free: 36.31 MB / 0.5418 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007811/11.32, allocations: 196.4 kB / 4.149 GB, free: 36.29 MB / 0.5418 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002582/11.32, allocations: 455.9 kB / 4.15 GB, free: 36.29 MB / 0.5418 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001162/11.33, allocations: 1.868 MB / 4.152 GB, free: 34.74 MB / 0.5418 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002814/11.33, allocations: 237.2 kB / 4.152 GB, free: 34.73 MB / 0.5418 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003079/11.33, allocations: 94.81 kB / 4.152 GB, free: 34.73 MB / 0.5418 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 (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_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,pipe1.state_b.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (201): * Single equations (assignments): 195 * 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 9} Notification: Performance of prepare postOptimizeDAE: time 0.000667/11.33, allocations: 285.3 kB / 4.152 GB, free: 34.55 MB / 0.5418 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005084/11.33, allocations: 200.7 kB / 4.152 GB, free: 34.45 MB / 0.5418 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01181/11.34, allocations: 7.448 MB / 4.16 GB, free: 33.82 MB / 0.5418 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.475e-05/11.34, allocations: 82.92 kB / 4.16 GB, free: 33.82 MB / 0.5418 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.105e-05/11.34, allocations: 0 / 4.16 GB, free: 33.82 MB / 0.5418 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.009738/11.35, allocations: 6.522 MB / 4.166 GB, free: 32.95 MB / 0.5418 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01755/11.37, allocations: 10.39 MB / 4.176 GB, free: 32.31 MB / 0.5418 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.447e-05/11.37, allocations: 3.812 kB / 4.176 GB, free: 32.31 MB / 0.5418 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002109/11.37, allocations: 338.8 kB / 4.177 GB, free: 32.31 MB / 0.5418 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004407/11.38, allocations: 1.583 MB / 4.178 GB, free: 32.24 MB / 0.5418 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004021/11.38, allocations: 57.81 kB / 4.178 GB, free: 32.24 MB / 0.5418 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002904/11.38, allocations: 3.472 MB / 4.182 GB, free: 30.14 MB / 0.5418 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.559e-06/11.38, allocations: 0 / 4.182 GB, free: 30.14 MB / 0.5418 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01157/11.39, allocations: 7.064 MB / 4.188 GB, free: 29.56 MB / 0.5418 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002001/11.39, allocations: 0.7405 MB / 4.189 GB, free: 29.25 MB / 0.5418 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000541/11.39, allocations: 47.42 kB / 4.189 GB, free: 29.25 MB / 0.5418 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002169/11.4, allocations: 194.3 kB / 4.189 GB, free: 29.23 MB / 0.5418 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000344/11.4, allocations: 134.6 kB / 4.19 GB, free: 29.23 MB / 0.5418 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002289/11.4, allocations: 72.94 kB / 4.19 GB, free: 29.23 MB / 0.5418 GB Notification: Performance of sorting global known variables: time 0.002346/11.4, allocations: 1.256 MB / 4.191 GB, free: 29.07 MB / 0.5418 GB Notification: Performance of sort global known variables: time 8.92e-07/11.4, allocations: 3 kB / 4.191 GB, free: 29.07 MB / 0.5418 GB Notification: Performance of remove unused functions: time 0.009717/11.41, allocations: 2.729 MB / 4.194 GB, free: 28.95 MB / 0.5418 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 (166): * Single equations (assignments): 140 * 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 16} Notification: Performance of Backend phase and start with SimCode phase: time 0.01182/11.42, allocations: 2.912 MB / 4.196 GB, free: 28.64 MB / 0.5418 GB Notification: Performance of simCode: created initialization part: time 0.0092/11.43, allocations: 4.621 MB / 4.201 GB, free: 28.33 MB / 0.5418 GB Notification: Performance of simCode: created event and clocks part: time 8.78e-06/11.43, allocations: 2.312 kB / 4.201 GB, free: 28.33 MB / 0.5418 GB Notification: Performance of simCode: created simulation system equations: time 0.004153/11.43, allocations: 2.229 MB / 4.203 GB, free: 28.2 MB / 0.5418 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005796/11.44, allocations: 0.9625 MB / 4.204 GB, free: 28.18 MB / 0.5418 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0106/11.45, allocations: 5.513 MB / 4.209 GB, free: 27.13 MB / 0.5418 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001933/11.45, allocations: 2.182 MB / 4.212 GB, free: 26.36 MB / 0.5418 GB Notification: Performance of simCode: alias equations: time 0.006417/11.46, allocations: 2.4 MB / 4.214 GB, free: 26.32 MB / 0.5418 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008593/11.46, allocations: 151.8 kB / 4.214 GB, free: 26.31 MB / 0.5418 GB Notification: Performance of SimCode: time 1.646e-06/11.46, allocations: 0 / 4.214 GB, free: 26.31 MB / 0.5418 GB Notification: Performance of Templates: time 0.1691/11.63, allocations: 89.6 MB / 4.302 GB, free: 13.09 MB / 0.5574 GB