Running command: translateModel(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14") Notification: Performance of loadModel(ModelicaTest): time 2.396/2.396, allocations: 270 MB / 282.7 MB, free: 1.844 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 2.863e-05/2.878e-05, allocations: 4 kB / 347 MB, free: 3.242 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3239/0.324, allocations: 61.87 MB / 408.8 MB, free: 10.81 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.893/7.217, allocations: 2.851 GB / 3.25 GB, free: 69.36 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002167/7.217, allocations: 75.34 kB / 3.251 GB, free: 69.32 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 4.029/11.25, allocations: 0.9176 GB / 4.168 GB, free: 14.77 MB / 0.573 GB Notification: Performance of FrontEnd: time 2.434e-06/11.25, allocations: 0 / 4.168 GB, free: 14.77 MB / 0.573 GB Notification: Performance of Transformations before backend: time 0.0002382/11.25, allocations: 63.92 kB / 4.168 GB, free: 14.7 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: 536 * Number of variables: 536 Notification: Performance of Generate backend data structure: time 0.01524/11.26, allocations: 3.961 MB / 4.172 GB, free: 10.67 MB / 0.573 GB Notification: Performance of prepare preOptimizeDAE: time 4.29e-05/11.26, allocations: 8.031 kB / 4.172 GB, free: 10.66 MB / 0.573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008376/11.27, allocations: 0.8827 MB / 4.173 GB, free: 9.777 MB / 0.573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007117/11.28, allocations: 2.093 MB / 4.175 GB, free: 7.629 MB / 0.573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002974/11.28, allocations: 179.9 kB / 4.175 GB, free: 7.453 MB / 0.573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006826/11.28, allocations: 211.9 kB / 4.175 GB, free: 7.246 MB / 0.573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01074/11.29, allocations: 3.62 MB / 4.179 GB, free: 3.426 MB / 0.573 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.351e-05/11.29, allocations: 7.938 kB / 4.179 GB, free: 3.418 MB / 0.573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003943/11.29, allocations: 95.95 kB / 4.179 GB, free: 3.324 MB / 0.573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003094/11.29, allocations: 175.6 kB / 4.179 GB, free: 3.152 MB / 0.573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.387/11.68, allocations: 3.176 MB / 4.182 GB, free: 42.23 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.026/11.7, allocations: 15.62 MB / 4.197 GB, free: 32.97 MB / 0.573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.007309/11.71, allocations: 2.711 MB / 4.2 GB, free: 32.38 MB / 0.573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002572/11.71, allocations: 1.165 MB / 4.201 GB, free: 32.36 MB / 0.573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.05742/11.77, allocations: 24.57 MB / 4.225 GB, free: 33.35 MB / 0.5886 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005921/11.78, allocations: 1.728 MB / 4.227 GB, free: 33.23 MB / 0.5886 GB Notification: Performance of pre-optimization done (n=173): time 6.651e-06/11.78, allocations: 3.281 kB / 4.227 GB, free: 33.23 MB / 0.5886 GB Notification: Performance of matching and sorting (n=189): time 0.02808/11.8, allocations: 7.867 MB / 4.235 GB, free: 32.26 MB / 0.5886 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001969/11.8, allocations: 263.5 kB / 4.235 GB, free: 31.98 MB / 0.5886 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002683/11.81, allocations: 1.4 MB / 4.236 GB, free: 31.8 MB / 0.5886 GB Notification: Performance of collectPreVariables (initialization): time 0.0005395/11.81, allocations: 61.02 kB / 4.236 GB, free: 31.77 MB / 0.5886 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008171/11.81, allocations: 0.9098 MB / 4.237 GB, free: 31.42 MB / 0.5886 GB Notification: Performance of collectInitialBindings (initialization): time 0.0008876/11.81, allocations: 0.62 MB / 4.238 GB, free: 31.11 MB / 0.5886 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002244/11.81, allocations: 40.97 kB / 4.238 GB, free: 31.11 MB / 0.5886 GB Notification: Performance of setup shared object (initialization): time 0.0002575/11.81, allocations: 395.6 kB / 4.238 GB, free: 30.79 MB / 0.5886 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002259/11.81, allocations: 1.036 MB / 4.239 GB, free: 30.78 MB / 0.5886 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002723/11.82, allocations: 1.482 MB / 4.241 GB, free: 30.33 MB / 0.5886 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002748/11.82, allocations: 1.279 MB / 4.242 GB, free: 30.25 MB / 0.5886 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.368e-05/11.82, allocations: 2.281 kB / 4.242 GB, free: 30.25 MB / 0.5886 GB Notification: Performance of matching and sorting (n=264) (initialization): time 0.007292/11.83, allocations: 2.99 MB / 4.245 GB, free: 30.03 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 0.002167/11.83, allocations: 4.338 MB / 4.249 GB, free: 25.53 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.241e-05/11.83, allocations: 11.22 kB / 4.249 GB, free: 25.53 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001134/11.83, allocations: 232.3 kB / 4.249 GB, free: 25.5 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003215/11.83, allocations: 0.5227 MB / 4.25 GB, free: 25.5 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002167/11.83, allocations: 2.428 MB / 4.252 GB, free: 23.43 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003615/11.84, allocations: 307.2 kB / 4.252 GB, free: 23.42 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003934/11.84, allocations: 103.1 kB / 4.253 GB, free: 23.42 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 1.544e-05/11.84, allocations: 11.55 kB / 4.253 GB, free: 23.41 MB / 0.5886 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006577/11.84, allocations: 2.847 MB / 4.255 GB, free: 23.27 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.27e-05/11.84, allocations: 13.78 kB / 4.255 GB, free: 23.27 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009874/11.85, allocations: 232.1 kB / 4.256 GB, free: 23.24 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003378/11.85, allocations: 0.5112 MB / 4.256 GB, free: 23.24 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00215/11.85, allocations: 2.427 MB / 4.258 GB, free: 21.17 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003186/11.85, allocations: 315.6 kB / 4.259 GB, free: 21.16 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004782/11.86, allocations: 102.3 kB / 4.259 GB, free: 21.16 MB / 0.5886 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 49 * Number of states: 0 () * Number of discrete variables: 30 (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,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 (250): * Single equations (assignments): 244 * 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,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0008242/11.86, allocations: 316.5 kB / 4.259 GB, free: 20.98 MB / 0.5886 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006229/11.86, allocations: 210.3 kB / 4.259 GB, free: 20.88 MB / 0.5886 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01298/11.87, allocations: 7.562 MB / 4.267 GB, free: 20.18 MB / 0.5886 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.983e-05/11.87, allocations: 83.19 kB / 4.267 GB, free: 20.18 MB / 0.5886 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.163e-05/11.87, allocations: 6.188 kB / 4.267 GB, free: 20.18 MB / 0.5886 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01077/11.88, allocations: 6.564 MB / 4.273 GB, free: 19.25 MB / 0.5886 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02293/11.9, allocations: 12.24 MB / 4.285 GB, free: 17.65 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.003e-05/11.9, allocations: 3.969 kB / 4.285 GB, free: 17.65 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002688/11.91, allocations: 442.8 kB / 4.286 GB, free: 17.65 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00183/11.91, allocations: 341.9 kB / 4.286 GB, free: 17.61 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004094/11.91, allocations: 77.58 kB / 4.286 GB, free: 17.61 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0022/11.91, allocations: 2.53 MB / 4.289 GB, free: 15.53 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.306e-06/11.91, allocations: 11 kB / 4.289 GB, free: 15.53 MB / 0.5886 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01302/11.92, allocations: 7.564 MB / 4.296 GB, free: 30.12 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002172/11.93, allocations: 0.7778 MB / 4.297 GB, free: 29.79 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006383/11.93, allocations: 60.34 kB / 4.297 GB, free: 29.79 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002439/11.93, allocations: 225.4 kB / 4.297 GB, free: 29.77 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004012/11.93, allocations: 179 kB / 4.297 GB, free: 29.77 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002554/11.93, allocations: 86.52 kB / 4.297 GB, free: 29.77 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 0.002299/11.93, allocations: 1.258 MB / 4.298 GB, free: 29.61 MB / 0.6042 GB Notification: Performance of sort global known variables: time 1.635e-06/11.93, allocations: 3.562 kB / 4.298 GB, free: 29.61 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.01051/11.94, allocations: 2.78 MB / 4.301 GB, free: 29.5 MB / 0.6042 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 23 * Number of states: 8 (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) * Number of discrete variables: 56 ($cse3.phase,$cse3.region,$cse5.region3boundary,$cse6.region3boundary,$cse7.phase,$cse7.region,$cse12.phase,$cse12.region,$cse17.phase,$cse17.region,$cse18.phase,$cse18.region,$cse20.phase,$cse20.region,$cse21.phase,$cse21.region,$cse26.phase,$cse26.region,$cse27.phase,$cse27.region,$cse29.phase,$cse29.region,$cse32.phase,$cse32.region,$cse34.region3boundary,$cse35.region3boundary,$cse36.phase,$cse36.region,$cse38.region3boundary,$cse39.region3boundary,$cse40.phase,$cse40.region,$cse42.phase,$cse42.region,$cse43.region3boundary,$cse44.region3boundary,$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,junctionIdeal.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 (214): * Single equations (assignments): 185 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 23 * 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,1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.01197/11.95, allocations: 2.888 MB / 4.304 GB, free: 29.18 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.01141/11.97, allocations: 5.03 MB / 4.309 GB, free: 28.86 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 1.297e-05/11.97, allocations: 2.516 kB / 4.309 GB, free: 28.86 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.005062/11.97, allocations: 2.647 MB / 4.311 GB, free: 28.72 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007198/11.98, allocations: 1.056 MB / 4.312 GB, free: 28.7 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01269/11.99, allocations: 6.222 MB / 4.319 GB, free: 27.37 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002414/11.99, allocations: 2.249 MB / 4.321 GB, free: 26.62 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001263/12, allocations: 221.9 kB / 4.321 GB, free: 26.61 MB / 0.6042 GB Notification: Performance of SimCode: time 2.249e-06/12, allocations: 3.656 kB / 4.321 GB, free: 26.61 MB / 0.6042 GB Notification: Performance of Templates: time 0.5431/12.54, allocations: 118.5 MB / 4.437 GB, free: 73.31 MB / 0.6042 GB