Running command: translateModel(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3") Notification: Performance of loadModel(ModelicaTest): time 2.35/2.35, allocations: 270 MB / 282.7 MB, free: 1.77 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 3.499e-05/3.509e-05, allocations: 7.938 kB / 347 MB, free: 3.141 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3166/0.3166, allocations: 61.88 MB / 408.8 MB, free: 10.77 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.871/7.188, allocations: 2.847 GB / 3.247 GB, free: 149.5 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002202/7.188, allocations: 79.84 kB / 3.247 GB, free: 149.4 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 3.874/11.06, allocations: 0.8825 GB / 4.129 GB, free: 42.42 MB / 0.5573 GB Notification: Performance of FrontEnd: time 2.173e-06/11.06, allocations: 2.062 kB / 4.129 GB, free: 42.42 MB / 0.5573 GB Notification: Performance of Transformations before backend: time 0.0002213/11.06, allocations: 65.98 kB / 4.129 GB, free: 42.41 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: 476 * Number of variables: 476 Notification: Performance of Generate backend data structure: time 0.01366/11.08, allocations: 3.763 MB / 4.133 GB, free: 40.57 MB / 0.5573 GB Notification: Performance of prepare preOptimizeDAE: time 4.583e-05/11.08, allocations: 9.156 kB / 4.133 GB, free: 40.57 MB / 0.5573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007694/11.08, allocations: 0.7856 MB / 4.134 GB, free: 40.43 MB / 0.5573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006234/11.09, allocations: 1.969 MB / 4.136 GB, free: 39.99 MB / 0.5573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002425/11.09, allocations: 158.8 kB / 4.136 GB, free: 39.98 MB / 0.5573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006718/11.09, allocations: 192.7 kB / 4.136 GB, free: 39.98 MB / 0.5573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009042/11.1, allocations: 3.24 MB / 4.139 GB, free: 39.5 MB / 0.5573 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.885e-05/11.1, allocations: 7.531 kB / 4.139 GB, free: 39.5 MB / 0.5573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003559/11.1, allocations: 86.67 kB / 4.139 GB, free: 39.5 MB / 0.5573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002291/11.1, allocations: 148.5 kB / 4.139 GB, free: 39.5 MB / 0.5573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008403/11.11, allocations: 2.816 MB / 4.142 GB, free: 39.48 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.02278/11.13, allocations: 14.07 MB / 4.156 GB, free: 30.9 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005721/11.14, allocations: 1.979 MB / 4.158 GB, free: 30.86 MB / 0.5573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002106/11.14, allocations: 1.056 MB / 4.159 GB, free: 30.85 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.05094/11.19, allocations: 24.68 MB / 4.183 GB, free: 15.27 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005055/11.2, allocations: 1.619 MB / 4.185 GB, free: 15.09 MB / 0.5573 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001452/11.2, allocations: 174.9 kB / 4.185 GB, free: 14.99 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=155): time 6.157e-06/11.2, allocations: 3.938 kB / 4.185 GB, free: 14.99 MB / 0.5573 GB Notification: Performance of matching and sorting (n=167): time 0.02331/11.22, allocations: 7.039 MB / 4.192 GB, free: 12.37 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.353e-05/11.22, allocations: 260 kB / 4.192 GB, free: 12.08 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002449/11.22, allocations: 1.318 MB / 4.193 GB, free: 11.58 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 0.0004573/11.22, allocations: 64.31 kB / 4.193 GB, free: 11.52 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006714/11.22, allocations: 0.8269 MB / 4.194 GB, free: 10.82 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006428/11.22, allocations: 0.5538 MB / 4.195 GB, free: 10.39 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001868/11.22, allocations: 31.84 kB / 4.195 GB, free: 10.37 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 0.000549/11.23, allocations: 383 kB / 4.195 GB, free: 26.02 MB / 0.573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001937/11.23, allocations: 0.9301 MB / 4.196 GB, free: 25.35 MB / 0.573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0023/11.23, allocations: 1.33 MB / 4.197 GB, free: 24.01 MB / 0.573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00239/11.23, allocations: 1.158 MB / 4.198 GB, free: 23.02 MB / 0.573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.107e-06/11.23, allocations: 4 kB / 4.198 GB, free: 23.01 MB / 0.573 GB Notification: Performance of matching and sorting (n=230) (initialization): time 0.007024/11.24, allocations: 2.85 MB / 4.201 GB, free: 20.5 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 0.001809/11.24, allocations: 3.73 MB / 4.205 GB, free: 16.49 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.47e-05/11.24, allocations: 12 kB / 4.205 GB, free: 16.48 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003104/11.24, allocations: 0.5115 MB / 4.205 GB, free: 16.09 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002712/11.25, allocations: 446.2 kB / 4.206 GB, free: 15.72 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002772/11.25, allocations: 2.707 MB / 4.208 GB, free: 13.05 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003317/11.25, allocations: 264.5 kB / 4.209 GB, free: 12.85 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005153/11.25, allocations: 95.06 kB / 4.209 GB, free: 12.77 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 1.45e-05/11.25, allocations: 4.625 kB / 4.209 GB, free: 12.76 MB / 0.573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005861/11.26, allocations: 2.589 MB / 4.211 GB, free: 10.47 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.99e-05/11.26, allocations: 15.75 kB / 4.211 GB, free: 10.46 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008529/11.26, allocations: 196.6 kB / 4.211 GB, free: 10.3 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002944/11.26, allocations: 461.4 kB / 4.212 GB, free: 9.914 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001795/11.27, allocations: 1.872 MB / 4.214 GB, free: 8.043 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00265/11.27, allocations: 258.5 kB / 4.214 GB, free: 7.844 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003639/11.27, allocations: 93.61 kB / 4.214 GB, free: 7.762 MB / 0.573 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.0007848/11.27, allocations: 292.6 kB / 4.214 GB, free: 7.461 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006295/11.27, allocations: 201.6 kB / 4.214 GB, free: 7.262 MB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01451/11.28, allocations: 7.459 MB / 4.222 GB, free: 0.5508 MB / 0.573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.35e-05/11.28, allocations: 85.23 kB / 4.222 GB, free: 0.5 MB / 0.573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.111e-05/11.28, allocations: 0 / 4.222 GB, free: 0.5 MB / 0.573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01791/11.3, allocations: 6.845 MB / 4.229 GB, free: 11.29 MB / 0.5886 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02382/11.33, allocations: 11.25 MB / 4.24 GB, free: 1.5 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.8e-05/11.33, allocations: 4 kB / 4.24 GB, free: 1.496 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002212/11.33, allocations: 360.3 kB / 4.24 GB, free: 1.203 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003698/11.33, allocations: 1.311 MB / 4.241 GB, free: 100 kB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004647/11.33, allocations: 67.69 kB / 4.241 GB, free: 40 kB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3939/11.73, allocations: 3.195 MB / 4.244 GB, free: 70.51 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.357e-05/11.73, allocations: 9.75 kB / 4.244 GB, free: 70.51 MB / 0.5886 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01299/11.74, allocations: 7.287 MB / 4.251 GB, free: 69.46 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002099/11.74, allocations: 0.7323 MB / 4.252 GB, free: 69.37 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007379/11.74, allocations: 55.48 kB / 4.252 GB, free: 69.37 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002698/11.75, allocations: 190.2 kB / 4.252 GB, free: 69.37 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000569/11.75, allocations: 155.2 kB / 4.253 GB, free: 69.36 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002783/11.75, allocations: 78.84 kB / 4.253 GB, free: 69.36 MB / 0.5886 GB Notification: Performance of sorting global known variables: time 0.002624/11.75, allocations: 1.198 MB / 4.254 GB, free: 69.2 MB / 0.5886 GB Notification: Performance of sort global known variables: time 1.449e-06/11.75, allocations: 0 / 4.254 GB, free: 69.2 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.01083/11.76, allocations: 2.635 MB / 4.256 GB, free: 69.2 MB / 0.5886 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,$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 (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.01243/11.77, allocations: 2.815 MB / 4.259 GB, free: 69.03 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.009623/11.78, allocations: 4.514 MB / 4.264 GB, free: 68.71 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 1.074e-05/11.78, allocations: 4.938 kB / 4.264 GB, free: 68.71 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 0.004715/11.79, allocations: 2.43 MB / 4.266 GB, free: 68.59 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006248/11.79, allocations: 0.9854 MB / 4.267 GB, free: 68.55 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01166/11.8, allocations: 5.685 MB / 4.272 GB, free: 67.37 MB / 0.5886 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002064/11.81, allocations: 2.149 MB / 4.275 GB, free: 66.62 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001057/11.81, allocations: 193.9 kB / 4.275 GB, free: 66.62 MB / 0.5886 GB Notification: Performance of SimCode: time 1.871e-06/11.81, allocations: 0 / 4.275 GB, free: 66.62 MB / 0.5886 GB Notification: Performance of Templates: time 0.147/11.96, allocations: 111.5 MB / 4.384 GB, free: 56.62 MB / 0.5886 GB