Running command: translateModel(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=10000,variableFilter="",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes1") Notification: Performance of loadModel(ModelicaTest): time 2.378/2.378, allocations: 270 MB / 282.7 MB, free: 1.797 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 4.164e-05/4.176e-05, allocations: 7.984 kB / 347 MB, free: 3.141 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3283/0.3284, allocations: 61.88 MB / 408.8 MB, free: 10.76 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.864/7.193, allocations: 2.83 GB / 3.229 GB, free: 89.27 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002133/7.193, allocations: 78.64 kB / 3.229 GB, free: 89.23 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 3.736/10.93, allocations: 0.8082 GB / 4.038 GB, free: 43.52 MB / 0.5573 GB Notification: Performance of FrontEnd: time 3.122e-06/10.93, allocations: 0 / 4.038 GB, free: 43.52 MB / 0.5573 GB Notification: Performance of Transformations before backend: time 0.0002428/10.93, allocations: 80.86 kB / 4.038 GB, free: 43.5 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.01559/10.94, allocations: 3.95 MB / 4.042 GB, free: 41.56 MB / 0.5573 GB Notification: Performance of prepare preOptimizeDAE: time 4.104e-05/10.94, allocations: 7.469 kB / 4.042 GB, free: 41.56 MB / 0.5573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007876/10.95, allocations: 0.8361 MB / 4.042 GB, free: 41.42 MB / 0.5573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006558/10.96, allocations: 2.09 MB / 4.044 GB, free: 40.95 MB / 0.5573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002668/10.96, allocations: 181 kB / 4.045 GB, free: 40.95 MB / 0.5573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007759/10.96, allocations: 195.1 kB / 4.045 GB, free: 40.95 MB / 0.5573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009544/10.97, allocations: 3.693 MB / 4.048 GB, free: 40.4 MB / 0.5573 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.728e-05/10.97, allocations: 8.344 kB / 4.048 GB, free: 40.4 MB / 0.5573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003693/10.97, allocations: 95.06 kB / 4.048 GB, free: 40.4 MB / 0.5573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002538/10.97, allocations: 162 kB / 4.049 GB, free: 40.39 MB / 0.5573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009914/10.98, allocations: 3.406 MB / 4.052 GB, free: 40.39 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.0227/11, allocations: 14.95 MB / 4.067 GB, free: 31.77 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005986/11.01, allocations: 2.134 MB / 4.069 GB, free: 31.74 MB / 0.5573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001979/11.01, allocations: 1.09 MB / 4.07 GB, free: 31.73 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.05678/11.07, allocations: 24.62 MB / 4.094 GB, free: 32.54 MB / 0.573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005345/11.07, allocations: 1.701 MB / 4.095 GB, free: 32.41 MB / 0.573 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001505/11.08, allocations: 197.5 kB / 4.096 GB, free: 32.31 MB / 0.573 GB Notification: Performance of pre-optimization done (n=162): time 6.41e-06/11.08, allocations: 0 / 4.096 GB, free: 32.31 MB / 0.573 GB Notification: Performance of matching and sorting (n=174): time 0.02402/11.1, allocations: 7.505 MB / 4.103 GB, free: 31.29 MB / 0.573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002747/11.1, allocations: 413.5 kB / 4.103 GB, free: 30.82 MB / 0.573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002805/11.1, allocations: 1.546 MB / 4.105 GB, free: 30.58 MB / 0.573 GB Notification: Performance of collectPreVariables (initialization): time 0.0002932/11.1, allocations: 63.36 kB / 4.105 GB, free: 30.55 MB / 0.573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007378/11.1, allocations: 0.9039 MB / 4.106 GB, free: 30.12 MB / 0.573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005355/11.1, allocations: 0.5863 MB / 4.106 GB, free: 29.75 MB / 0.573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001981/11.1, allocations: 43.28 kB / 4.106 GB, free: 29.75 MB / 0.573 GB Notification: Performance of setup shared object (initialization): time 0.0002393/11.1, allocations: 392.3 kB / 4.107 GB, free: 29.43 MB / 0.573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002193/11.11, allocations: 1.071 MB / 4.108 GB, free: 29.42 MB / 0.573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002475/11.11, allocations: 1.508 MB / 4.109 GB, free: 28.95 MB / 0.573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002529/11.11, allocations: 1.317 MB / 4.111 GB, free: 28.85 MB / 0.573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.096e-05/11.11, allocations: 3.312 kB / 4.111 GB, free: 28.85 MB / 0.573 GB Notification: Performance of matching and sorting (n=257) (initialization): time 0.006968/11.12, allocations: 3.227 MB / 4.114 GB, free: 28.63 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 0.001916/11.12, allocations: 3.904 MB / 4.117 GB, free: 24.54 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.184e-05/11.12, allocations: 13.72 kB / 4.118 GB, free: 24.54 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0066/11.13, allocations: 0.9562 MB / 4.118 GB, free: 24.48 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002918/11.13, allocations: 464.6 kB / 4.119 GB, free: 24.48 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00366/11.13, allocations: 3.162 MB / 4.122 GB, free: 22.38 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003353/11.14, allocations: 237.8 kB / 4.122 GB, free: 22.35 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004198/11.14, allocations: 105.1 kB / 4.122 GB, free: 22.35 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 1.334e-05/11.14, allocations: 3.844 kB / 4.122 GB, free: 22.35 MB / 0.573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00725/11.15, allocations: 3.02 MB / 4.125 GB, free: 22.2 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.4e-05/11.15, allocations: 15.5 kB / 4.125 GB, free: 22.2 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001674/11.15, allocations: 339.7 kB / 4.126 GB, free: 22.16 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003053/11.15, allocations: 493.7 kB / 4.126 GB, free: 22.16 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004996/11.16, allocations: 4.045 MB / 4.13 GB, free: 19.2 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002386/11.16, allocations: 232.7 kB / 4.13 GB, free: 19.14 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002886/11.16, allocations: 98.75 kB / 4.13 GB, free: 19.12 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,valve2.state_b.phase,valve2.state_a.phase,valve1.state_b.phase,valve1.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.0007575/11.16, allocations: 295.1 kB / 4.131 GB, free: 18.88 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005866/11.16, allocations: 221.5 kB / 4.131 GB, free: 18.77 MB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01252/11.17, allocations: 7.853 MB / 4.138 GB, free: 15.24 MB / 0.573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.885e-05/11.17, allocations: 79.95 kB / 4.139 GB, free: 15.22 MB / 0.573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.231e-06/11.17, allocations: 0 / 4.139 GB, free: 15.22 MB / 0.573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01/11.18, allocations: 6.874 MB / 4.145 GB, free: 10.1 MB / 0.573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0183/11.2, allocations: 10.96 MB / 4.156 GB, free: 0.6055 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.349e-05/11.2, allocations: 0 / 4.156 GB, free: 0.6055 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002057/11.2, allocations: 356.4 kB / 4.156 GB, free: 340 kB / 0.573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.007222/11.21, allocations: 2.53 MB / 4.159 GB, free: 14.3 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004438/11.21, allocations: 75.67 kB / 4.159 GB, free: 14.23 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00508/11.22, allocations: 4.111 MB / 4.163 GB, free: 10.3 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.374e-06/11.22, allocations: 0 / 4.163 GB, free: 10.3 MB / 0.5886 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01476/11.23, allocations: 7.811 MB / 4.171 GB, free: 3.113 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002366/11.23, allocations: 0.7909 MB / 4.171 GB, free: 2.41 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006697/11.23, allocations: 53.39 kB / 4.171 GB, free: 2.363 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002318/11.24, allocations: 198.1 kB / 4.172 GB, free: 2.211 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003868/11.24, allocations: 140 kB / 4.172 GB, free: 2.129 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002562/11.24, allocations: 75.11 kB / 4.172 GB, free: 2.066 MB / 0.5886 GB Notification: Performance of sorting global known variables: time 0.002896/11.24, allocations: 1.369 MB / 4.173 GB, free: 0.8008 MB / 0.5886 GB Notification: Performance of sort global known variables: time 9.8e-07/11.24, allocations: 0 / 4.173 GB, free: 0.8008 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.3813/11.62, allocations: 2.863 MB / 4.176 GB, free: 73.8 MB / 0.5886 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,valve1.filter.x[1],valve1.filter.x[2],valve2.filter.x[1],valve2.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.01262/11.63, allocations: 2.875 MB / 4.179 GB, free: 73.67 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.01094/11.64, allocations: 5.217 MB / 4.184 GB, free: 73.12 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 7.921e-06/11.64, allocations: 4.844 kB / 4.184 GB, free: 73.12 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 0.004462/11.65, allocations: 2.343 MB / 4.186 GB, free: 72.98 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006342/11.65, allocations: 0.9542 MB / 4.187 GB, free: 72.96 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0118/11.67, allocations: 5.982 MB / 4.193 GB, free: 71.82 MB / 0.5886 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002104/11.67, allocations: 2.255 MB / 4.195 GB, free: 71.07 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001067/11.67, allocations: 199.4 kB / 4.195 GB, free: 71.07 MB / 0.5886 GB Notification: Performance of SimCode: time 1.856e-06/11.67, allocations: 3.281 kB / 4.195 GB, free: 71.07 MB / 0.5886 GB Notification: Performance of Templates: time 0.2018/11.87, allocations: 117.7 MB / 4.31 GB, free: 60.55 MB / 0.5886 GB