Running command: translateModel(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes12,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes12") Notification: Performance of loadModel(ModelicaTest): time 2.321/2.321, allocations: 270 MB / 282.7 MB, free: 1.773 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 3.079e-05/3.086e-05, allocations: 4 kB / 347 MB, free: 3.129 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3234/0.3235, allocations: 61.88 MB / 408.8 MB, free: 10.76 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.854/7.177, allocations: 2.83 GB / 3.229 GB, free: 163.9 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002034/7.178, allocations: 79.08 kB / 3.229 GB, free: 163.8 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 3.756/10.93, allocations: 0.8151 GB / 4.044 GB, free: 45.49 MB / 0.5573 GB Notification: Performance of FrontEnd: time 1.892e-06/10.93, allocations: 3 kB / 4.044 GB, free: 45.49 MB / 0.5573 GB Notification: Performance of Transformations before backend: time 0.0002627/10.93, allocations: 69.94 kB / 4.045 GB, free: 45.48 MB / 0.5573 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.0152/10.95, allocations: 3.961 MB / 4.048 GB, free: 43.59 MB / 0.5573 GB Notification: Performance of prepare preOptimizeDAE: time 4.261e-05/10.95, allocations: 9.312 kB / 4.048 GB, free: 43.59 MB / 0.5573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007954/10.96, allocations: 0.8448 MB / 4.049 GB, free: 43.45 MB / 0.5573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00671/10.96, allocations: 2.159 MB / 4.051 GB, free: 42.98 MB / 0.5573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002397/10.96, allocations: 178.1 kB / 4.052 GB, free: 42.98 MB / 0.5573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000724/10.96, allocations: 197.6 kB / 4.052 GB, free: 42.98 MB / 0.5573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01007/10.97, allocations: 3.692 MB / 4.055 GB, free: 42.43 MB / 0.5573 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.957e-05/10.97, allocations: 6.625 kB / 4.055 GB, free: 42.43 MB / 0.5573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003881/10.98, allocations: 91.14 kB / 4.055 GB, free: 42.43 MB / 0.5573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000242/10.98, allocations: 169.1 kB / 4.056 GB, free: 42.43 MB / 0.5573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01063/10.99, allocations: 3.399 MB / 4.059 GB, free: 42.42 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.02516/11.01, allocations: 14.94 MB / 4.073 GB, free: 33.82 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.006716/11.02, allocations: 2.149 MB / 4.076 GB, free: 33.78 MB / 0.5573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002282/11.02, allocations: 1.085 MB / 4.077 GB, free: 33.77 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.05557/11.08, allocations: 24.61 MB / 4.101 GB, free: 18.75 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005762/11.08, allocations: 1.703 MB / 4.102 GB, free: 18.62 MB / 0.5573 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001519/11.08, allocations: 203.5 kB / 4.103 GB, free: 18.53 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=162): time 7.518e-06/11.08, allocations: 3.719 kB / 4.103 GB, free: 18.53 MB / 0.5573 GB Notification: Performance of matching and sorting (n=174): time 0.02574/11.11, allocations: 7.503 MB / 4.11 GB, free: 17.54 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001122/11.11, allocations: 414.9 kB / 4.11 GB, free: 17.07 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003022/11.11, allocations: 1.551 MB / 4.112 GB, free: 16.83 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 0.0004774/11.11, allocations: 58.64 kB / 4.112 GB, free: 16.8 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008052/11.11, allocations: 0.9025 MB / 4.113 GB, free: 16.37 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007946/11.11, allocations: 0.5845 MB / 4.113 GB, free: 16 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002314/11.11, allocations: 40.22 kB / 4.113 GB, free: 16 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 0.0001592/11.11, allocations: 391.6 kB / 4.114 GB, free: 15.68 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002408/11.12, allocations: 1.074 MB / 4.115 GB, free: 15.68 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002809/11.12, allocations: 1.5 MB / 4.116 GB, free: 15.22 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002849/11.12, allocations: 1.32 MB / 4.117 GB, free: 15.13 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.341e-05/11.12, allocations: 0 / 4.117 GB, free: 15.13 MB / 0.5573 GB Notification: Performance of matching and sorting (n=257) (initialization): time 0.00791/11.13, allocations: 3.23 MB / 4.121 GB, free: 14.92 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 0.001943/11.13, allocations: 3.902 MB / 4.124 GB, free: 26.86 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.353e-05/11.13, allocations: 18.59 kB / 4.124 GB, free: 26.86 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006504/11.14, allocations: 0.9617 MB / 4.125 GB, free: 26.82 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002977/11.14, allocations: 465.8 kB / 4.126 GB, free: 26.82 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00381/11.15, allocations: 3.16 MB / 4.129 GB, free: 24.73 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003178/11.15, allocations: 241.7 kB / 4.129 GB, free: 24.71 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004874/11.15, allocations: 101.8 kB / 4.129 GB, free: 24.71 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 1.367e-05/11.15, allocations: 6.969 kB / 4.129 GB, free: 24.71 MB / 0.573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.007433/11.16, allocations: 3.021 MB / 4.132 GB, free: 24.57 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.34e-05/11.16, allocations: 13.98 kB / 4.132 GB, free: 24.57 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001679/11.16, allocations: 337.5 kB / 4.133 GB, free: 24.54 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003099/11.16, allocations: 493 kB / 4.133 GB, free: 24.54 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004972/11.17, allocations: 4.042 MB / 4.137 GB, free: 21.72 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0024/11.17, allocations: 235.8 kB / 4.137 GB, free: 21.71 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003723/11.17, allocations: 95.58 kB / 4.137 GB, free: 21.71 MB / 0.573 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.0007814/11.17, allocations: 300.4 kB / 4.138 GB, free: 21.53 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005854/11.17, allocations: 215.8 kB / 4.138 GB, free: 21.42 MB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01265/11.18, allocations: 7.853 MB / 4.145 GB, free: 20.64 MB / 0.573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.841e-05/11.18, allocations: 85.84 kB / 4.146 GB, free: 20.64 MB / 0.573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.162e-06/11.18, allocations: 0 / 4.146 GB, free: 20.64 MB / 0.573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01062/11.2, allocations: 6.869 MB / 4.152 GB, free: 19.7 MB / 0.573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0182/11.21, allocations: 10.96 MB / 4.163 GB, free: 18.9 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.497e-05/11.21, allocations: 0 / 4.163 GB, free: 18.9 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002252/11.22, allocations: 351.3 kB / 4.163 GB, free: 18.9 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.007005/11.22, allocations: 2.534 MB / 4.166 GB, free: 18.81 MB / 0.573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004636/11.22, allocations: 72.25 kB / 4.166 GB, free: 18.8 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004461/11.23, allocations: 4.101 MB / 4.17 GB, free: 16.27 MB / 0.573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.578e-06/11.23, allocations: 0 / 4.17 GB, free: 16.27 MB / 0.573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01291/11.24, allocations: 7.808 MB / 4.177 GB, free: 12.76 MB / 0.573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002053/11.24, allocations: 0.7768 MB / 4.178 GB, free: 12.29 MB / 0.573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007156/11.24, allocations: 55.47 kB / 4.178 GB, free: 12.25 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002416/11.25, allocations: 202.2 kB / 4.178 GB, free: 12.21 MB / 0.573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003792/11.25, allocations: 138 kB / 4.179 GB, free: 12.2 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000246/11.25, allocations: 80.45 kB / 4.179 GB, free: 12.18 MB / 0.573 GB Notification: Performance of sorting global known variables: time 0.002597/11.25, allocations: 1.363 MB / 4.18 GB, free: 11.64 MB / 0.573 GB Notification: Performance of sort global known variables: time 1.308e-06/11.25, allocations: 0 / 4.18 GB, free: 11.64 MB / 0.573 GB Notification: Performance of remove unused functions: time 0.01079/11.26, allocations: 2.86 MB / 4.183 GB, free: 11.04 MB / 0.573 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.01248/11.27, allocations: 2.907 MB / 4.186 GB, free: 10.34 MB / 0.573 GB Notification: Performance of simCode: created initialization part: time 0.01051/11.28, allocations: 5.218 MB / 4.191 GB, free: 8.195 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 7.494e-06/11.28, allocations: 0 / 4.191 GB, free: 8.195 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 0.004398/11.29, allocations: 2.344 MB / 4.193 GB, free: 6.5 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006739/11.29, allocations: 0.9514 MB / 4.194 GB, free: 5.836 MB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01515/11.31, allocations: 5.98 MB / 4.2 GB, free: 0.5781 MB / 0.573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003425/11.31, allocations: 2.257 MB / 4.202 GB, free: 14.82 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00117/11.31, allocations: 199.8 kB / 4.202 GB, free: 14.64 MB / 0.5886 GB Notification: Performance of SimCode: time 1.872e-06/11.31, allocations: 1.031 kB / 4.202 GB, free: 14.64 MB / 0.5886 GB Notification: Performance of Templates: time 0.5411/11.86, allocations: 117.8 MB / 4.317 GB, free: 62.07 MB / 0.5886 GB