Running command: translateModel(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes18,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes18") Notification: Performance of loadModel(ModelicaTest): time 2.361/2.361, allocations: 270 MB / 282.6 MB, free: 1.781 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 3.289e-05/3.308e-05, allocations: 0 / 347 MB, free: 3.137 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3519/0.352, allocations: 61.88 MB / 408.8 MB, free: 10.76 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.048/7.4, allocations: 2.852 GB / 3.251 GB, free: 68.52 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002211/7.401, allocations: 71.41 kB / 3.251 GB, free: 68.48 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 4.682/12.08, allocations: 1.025 GB / 4.276 GB, free: 38.75 MB / 0.573 GB Notification: Performance of FrontEnd: time 2.963e-06/12.08, allocations: 2.438 kB / 4.276 GB, free: 38.75 MB / 0.573 GB Notification: Performance of Transformations before backend: time 0.0003/12.08, allocations: 72.38 kB / 4.276 GB, free: 38.74 MB / 0.573 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 575 * Number of variables: 575 Notification: Performance of Generate backend data structure: time 0.01614/12.1, allocations: 4.25 MB / 4.28 GB, free: 36.89 MB / 0.573 GB Notification: Performance of prepare preOptimizeDAE: time 4.407e-05/12.1, allocations: 6.625 kB / 4.28 GB, free: 36.89 MB / 0.573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009118/12.11, allocations: 0.9451 MB / 4.281 GB, free: 36.74 MB / 0.573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007541/12.12, allocations: 2.186 MB / 4.283 GB, free: 36.28 MB / 0.573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003731/12.12, allocations: 202.4 kB / 4.283 GB, free: 36.27 MB / 0.573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001009/12.12, allocations: 227.6 kB / 4.284 GB, free: 36.27 MB / 0.573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01222/12.13, allocations: 3.867 MB / 4.287 GB, free: 35.67 MB / 0.573 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.529e-05/12.13, allocations: 13.5 kB / 4.287 GB, free: 35.67 MB / 0.573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005592/12.13, allocations: 95.47 kB / 4.288 GB, free: 35.67 MB / 0.573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002488/12.13, allocations: 172.3 kB / 4.288 GB, free: 35.66 MB / 0.573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01135/12.14, allocations: 3.412 MB / 4.291 GB, free: 35.65 MB / 0.573 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.02882/12.17, allocations: 16.95 MB / 4.308 GB, free: 25.53 MB / 0.573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.008123/12.18, allocations: 3.055 MB / 4.311 GB, free: 24.93 MB / 0.573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002715/12.18, allocations: 1.268 MB / 4.312 GB, free: 24.91 MB / 0.573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.05646/12.24, allocations: 24.43 MB / 4.336 GB, free: 25.8 MB / 0.5886 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.006508/12.24, allocations: 1.873 MB / 4.338 GB, free: 25.66 MB / 0.5886 GB Notification: Performance of pre-optimization done (n=192): time 6.743e-06/12.24, allocations: 0 / 4.338 GB, free: 25.66 MB / 0.5886 GB Notification: Performance of matching and sorting (n=212): time 0.0344/12.28, allocations: 8.929 MB / 4.346 GB, free: 24.48 MB / 0.5886 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001998/12.28, allocations: 257.5 kB / 4.346 GB, free: 24.2 MB / 0.5886 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002925/12.28, allocations: 1.505 MB / 4.348 GB, free: 23.96 MB / 0.5886 GB Notification: Performance of collectPreVariables (initialization): time 0.0005741/12.28, allocations: 67.55 kB / 4.348 GB, free: 23.93 MB / 0.5886 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008654/12.28, allocations: 0.9634 MB / 4.349 GB, free: 23.47 MB / 0.5886 GB Notification: Performance of collectInitialBindings (initialization): time 0.0009419/12.28, allocations: 0.7036 MB / 4.35 GB, free: 23.02 MB / 0.5886 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002346/12.28, allocations: 50.88 kB / 4.35 GB, free: 23.02 MB / 0.5886 GB Notification: Performance of setup shared object (initialization): time 0.0002709/12.29, allocations: 404.1 kB / 4.35 GB, free: 22.7 MB / 0.5886 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002425/12.29, allocations: 1.142 MB / 4.351 GB, free: 22.7 MB / 0.5886 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003174/12.29, allocations: 1.642 MB / 4.353 GB, free: 22.18 MB / 0.5886 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003166/12.29, allocations: 1.402 MB / 4.354 GB, free: 22.07 MB / 0.5886 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.517e-05/12.29, allocations: 2.906 kB / 4.354 GB, free: 22.07 MB / 0.5886 GB Notification: Performance of matching and sorting (n=303) (initialization): time 0.008634/12.3, allocations: 3.362 MB / 4.357 GB, free: 21.81 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 0.002505/12.31, allocations: 4.944 MB / 4.362 GB, free: 16.62 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.558e-05/12.31, allocations: 10.66 kB / 4.362 GB, free: 16.62 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001547/12.31, allocations: 335.9 kB / 4.363 GB, free: 16.58 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003536/12.31, allocations: 0.6014 MB / 4.363 GB, free: 16.54 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002912/12.31, allocations: 3.087 MB / 4.366 GB, free: 13.84 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004156/12.32, allocations: 336.5 kB / 4.367 GB, free: 13.76 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007482/12.32, allocations: 118.8 kB / 4.367 GB, free: 13.74 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 1.458e-05/12.32, allocations: 11.88 kB / 4.367 GB, free: 13.73 MB / 0.5886 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.008878/12.33, allocations: 3.207 MB / 4.37 GB, free: 12.54 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.6e-05/12.33, allocations: 15.81 kB / 4.37 GB, free: 12.54 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001384/12.33, allocations: 332.8 kB / 4.37 GB, free: 12.43 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003411/12.33, allocations: 0.5891 MB / 4.371 GB, free: 12.37 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00281/12.34, allocations: 3.092 MB / 4.374 GB, free: 9.551 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003162/12.34, allocations: 333.4 kB / 4.374 GB, free: 9.473 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003972/12.34, allocations: 119.4 kB / 4.374 GB, free: 9.449 MB / 0.5886 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 56 * Number of states: 0 () * Number of discrete variables: 31 (valve2.state_b.phase,valve2.state_a.phase,valve1.state_b.phase,valve1.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,junctionIdeal.medium.phase,junctionVolume.medium.phase,pipe3.state_a.phase,pipe3.state_b.phase,pipe2.state_a.phase,pipe2.state_b.phase,pipe1.state_b.phase,pipe1.state_a.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (283): * Single equations (assignments): 276 * 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: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 5 {1 1,1 1,1 1,1 6,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0008643/12.34, allocations: 321.4 kB / 4.374 GB, free: 9.168 MB / 0.5886 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006662/12.34, allocations: 238.6 kB / 4.375 GB, free: 9.047 MB / 0.5886 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0143/12.35, allocations: 8.21 MB / 4.383 GB, free: 5.414 MB / 0.5886 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.757e-05/12.35, allocations: 91.58 kB / 4.383 GB, free: 5.395 MB / 0.5886 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.342e-05/12.35, allocations: 7.062 kB / 4.383 GB, free: 5.395 MB / 0.5886 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01168/12.37, allocations: 7.125 MB / 4.39 GB, free: 15.04 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02899/12.4, allocations: 13.18 MB / 4.403 GB, free: 3.496 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.171e-05/12.4, allocations: 4 kB / 4.403 GB, free: 3.492 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002904/12.4, allocations: 496.7 kB / 4.403 GB, free: 3.086 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002209/12.4, allocations: 464 kB / 4.404 GB, free: 2.723 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005439/12.4, allocations: 84.38 kB / 4.404 GB, free: 2.652 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.4032/12.8, allocations: 3.208 MB / 4.407 GB, free: 68.32 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.338e-05/12.8, allocations: 10.12 kB / 4.407 GB, free: 68.32 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01715/12.82, allocations: 8.242 MB / 4.415 GB, free: 67.14 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002507/12.82, allocations: 0.8282 MB / 4.416 GB, free: 67.05 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009366/12.83, allocations: 66.47 kB / 4.416 GB, free: 67.05 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003271/12.83, allocations: 240.2 kB / 4.416 GB, free: 67.05 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006409/12.83, allocations: 200 kB / 4.416 GB, free: 67.04 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003475/12.83, allocations: 94.05 kB / 4.416 GB, free: 67.04 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 0.002802/12.83, allocations: 1.326 MB / 4.417 GB, free: 66.88 MB / 0.6042 GB Notification: Performance of sort global known variables: time 1.132e-06/12.83, allocations: 0 / 4.417 GB, free: 66.88 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.01228/12.84, allocations: 2.955 MB / 4.42 GB, free: 66.88 MB / 0.6042 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 23 * Number of states: 9 (pipe1.mediums[1].p,pipe1.mediums[1].h,pipe2.mediums[1].p,pipe2.mediums[1].h,pipe3.mediums[1].p,pipe3.mediums[1].h,junctionIdeal.medium.p,junctionIdeal.medium.h,junctionVolume.medium.h) * Number of discrete variables: 59 ($cse3.phase,$cse3.region,$cse5.region3boundary,$cse6.region3boundary,$cse7.phase,$cse7.region,$cse12.phase,$cse12.region,$cse18.phase,$cse18.region,$cse19.phase,$cse19.region,$cse23.phase,$cse23.region,$cse24.phase,$cse24.region,$cse30.phase,$cse30.region,$cse31.phase,$cse31.region,$cse35.phase,$cse35.region,$cse38.phase,$cse38.region,$cse40.region3boundary,$cse41.region3boundary,$cse42.phase,$cse42.region,$cse44.region3boundary,$cse45.region3boundary,$cse46.phase,$cse46.region,$cse48.phase,$cse48.region,$cse49.region3boundary,$cse50.region3boundary,$cse51.phase,$cse51.region,$cse52.phase,$cse52.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,junctionIdeal.medium.phase,junctionVolume.medium.phase) * 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 (239): * Single equations (assignments): 208 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 24 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 5 {1 1,1 1,2 4,1 1,1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.01322/12.86, allocations: 3.079 MB / 4.423 GB, free: 66.66 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.01274/12.87, allocations: 5.491 MB / 4.429 GB, free: 66.34 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 1.209e-05/12.87, allocations: 3.75 kB / 4.429 GB, free: 66.34 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.005994/12.88, allocations: 2.932 MB / 4.432 GB, free: 66.2 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008143/12.89, allocations: 1.215 MB / 4.433 GB, free: 66.18 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01452/12.9, allocations: 6.663 MB / 4.439 GB, free: 64.85 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002493/12.9, allocations: 2.346 MB / 4.442 GB, free: 64.1 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001463/12.9, allocations: 242.4 kB / 4.442 GB, free: 64.09 MB / 0.6042 GB Notification: Performance of SimCode: time 2.051e-06/12.9, allocations: 0 / 4.442 GB, free: 64.09 MB / 0.6042 GB Notification: Performance of Templates: time 0.1809/13.08, allocations: 138.9 MB / 4.577 GB, free: 36.17 MB / 0.6042 GB