Running command: translateModel(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes18,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|junctionIdeal.medium.h|junctionIdeal.medium.p|junctionVolume.medium.h|pipe1.mediums.1..h|pipe1.mediums.1..p|pipe2.mediums.1..h|pipe2.mediums.1..p|pipe3.mediums.1..h|pipe3.mediums.1..p|valveOpening1.a|valveOpening1.b|valveOpening1.last|valveOpening1.nextEvent|valveOpening2.a|valveOpening2.b|valveOpening2.last|valveOpening2.nextEvent",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes18") Notification: Performance of loadModel(ModelicaTest): time 2.356/2.356, allocations: 270.1 MB / 283.6 MB, free: 3.039 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.927e-05/3.945e-05, allocations: 7.219 kB / 348.4 MB, free: 10.82 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1105/0.1106, allocations: 61.89 MB / 410.3 MB, free: 12.99 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.004/7.115, allocations: 2.852 GB / 3.252 GB, free: 74.29 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002239/7.115, allocations: 85.17 kB / 3.253 GB, free: 74.21 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 4.711/11.83, allocations: 1.025 GB / 4.277 GB, free: 31.33 MB / 0.5573 GB Notification: Performance of FrontEnd: time 1.893e-06/11.83, allocations: 3.812 kB / 4.277 GB, free: 31.33 MB / 0.5573 GB Notification: Performance of Transformations before backend: time 0.0003016/11.83, allocations: 71.28 kB / 4.277 GB, free: 31.32 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: 575 * Number of variables: 575 Notification: Performance of Generate backend data structure: time 0.01633/11.84, allocations: 4.25 MB / 4.282 GB, free: 29.35 MB / 0.5573 GB Notification: Performance of prepare preOptimizeDAE: time 4.248e-05/11.84, allocations: 9.969 kB / 4.282 GB, free: 29.35 MB / 0.5573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009174/11.85, allocations: 0.94 MB / 4.283 GB, free: 29.2 MB / 0.5573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007454/11.86, allocations: 2.197 MB / 4.285 GB, free: 28.68 MB / 0.5573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003517/11.86, allocations: 198.1 kB / 4.285 GB, free: 28.67 MB / 0.5573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001045/11.86, allocations: 224.9 kB / 4.285 GB, free: 28.66 MB / 0.5573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01222/11.87, allocations: 3.865 MB / 4.289 GB, free: 28.05 MB / 0.5573 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.991e-05/11.87, allocations: 7.75 kB / 4.289 GB, free: 28.04 MB / 0.5573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005083/11.87, allocations: 97.34 kB / 4.289 GB, free: 28.04 MB / 0.5573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00026/11.87, allocations: 175.5 kB / 4.289 GB, free: 28.04 MB / 0.5573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01094/11.88, allocations: 3.421 MB / 4.292 GB, free: 27.98 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.02826/11.91, allocations: 16.96 MB / 4.309 GB, free: 17.73 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00858/11.92, allocations: 3.054 MB / 4.312 GB, free: 17.13 MB / 0.5573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002886/11.92, allocations: 1.264 MB / 4.313 GB, free: 16.83 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.05637/11.98, allocations: 24.42 MB / 4.337 GB, free: 16.75 MB / 0.573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.006675/11.99, allocations: 1.874 MB / 4.339 GB, free: 16.13 MB / 0.573 GB Notification: Performance of pre-optimization done (n=192): time 6.986e-06/11.99, allocations: 4 kB / 4.339 GB, free: 16.12 MB / 0.573 GB Notification: Performance of matching and sorting (n=212): time 0.0354/12.02, allocations: 8.923 MB / 4.348 GB, free: 12.18 MB / 0.573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001983/12.02, allocations: 257.3 kB / 4.348 GB, free: 11.87 MB / 0.573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003108/12.03, allocations: 1.502 MB / 4.349 GB, free: 10.47 MB / 0.573 GB Notification: Performance of collectPreVariables (initialization): time 0.0006073/12.03, allocations: 65.7 kB / 4.349 GB, free: 10.4 MB / 0.573 GB Notification: Performance of collectInitialEqns (initialization): time 0.001058/12.03, allocations: 1.037 MB / 4.35 GB, free: 9.457 MB / 0.573 GB Notification: Performance of collectInitialBindings (initialization): time 0.001051/12.03, allocations: 0.7075 MB / 4.351 GB, free: 8.816 MB / 0.573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003048/12.03, allocations: 48 kB / 4.351 GB, free: 8.77 MB / 0.573 GB Notification: Performance of setup shared object (initialization): time 0.0002845/12.03, allocations: 403.4 kB / 4.352 GB, free: 8.398 MB / 0.573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002758/12.03, allocations: 1.141 MB / 4.353 GB, free: 7.367 MB / 0.573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003946/12.04, allocations: 1.65 MB / 4.354 GB, free: 5.672 MB / 0.573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003742/12.04, allocations: 1.396 MB / 4.356 GB, free: 4.461 MB / 0.573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.1e-05/12.04, allocations: 4 kB / 4.356 GB, free: 4.457 MB / 0.573 GB Notification: Performance of matching and sorting (n=303) (initialization): time 0.01074/12.05, allocations: 3.491 MB / 4.359 GB, free: 1.332 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 0.002858/12.05, allocations: 5.142 MB / 4.364 GB, free: 11.79 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.615e-05/12.05, allocations: 12 kB / 4.364 GB, free: 11.78 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001693/12.06, allocations: 339 kB / 4.364 GB, free: 11.5 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003928/12.06, allocations: 0.5871 MB / 4.365 GB, free: 11 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003154/12.06, allocations: 3.097 MB / 4.368 GB, free: 7.883 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004332/12.07, allocations: 336.3 kB / 4.368 GB, free: 7.625 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008197/12.07, allocations: 122 kB / 4.368 GB, free: 7.52 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 1.636e-05/12.07, allocations: 8 kB / 4.368 GB, free: 7.512 MB / 0.5886 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.009592/12.08, allocations: 3.206 MB / 4.372 GB, free: 4.664 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.467e-05/12.08, allocations: 15.94 kB / 4.372 GB, free: 4.648 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001599/12.08, allocations: 344.8 kB / 4.372 GB, free: 4.363 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003803/12.08, allocations: 0.5863 MB / 4.372 GB, free: 3.871 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003188/12.09, allocations: 3.087 MB / 4.376 GB, free: 0.7617 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004256/12.09, allocations: 339.5 kB / 4.376 GB, free: 0.5 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007696/12.09, allocations: 118.3 kB / 4.376 GB, free: 404 kB / 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.000941/12.09, allocations: 317.6 kB / 4.376 GB, free: 76 kB / 0.5886 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.4022/12.49, allocations: 234.5 kB / 4.376 GB, free: 62.43 MB / 0.5886 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01823/12.51, allocations: 8.208 MB / 4.384 GB, free: 61.86 MB / 0.5886 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001232/12.51, allocations: 91.72 kB / 4.385 GB, free: 61.86 MB / 0.5886 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.625e-05/12.51, allocations: 3.75 kB / 4.385 GB, free: 61.86 MB / 0.5886 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01373/12.53, allocations: 7.115 MB / 4.392 GB, free: 60.91 MB / 0.5886 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02782/12.55, allocations: 13.21 MB / 4.404 GB, free: 59.45 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.278e-05/12.56, allocations: 10.8 kB / 4.404 GB, free: 59.45 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002776/12.56, allocations: 491.9 kB / 4.405 GB, free: 59.45 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00204/12.56, allocations: 457.7 kB / 4.405 GB, free: 59.41 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005592/12.56, allocations: 84 kB / 4.405 GB, free: 59.41 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002194/12.56, allocations: 3.222 MB / 4.409 GB, free: 56.82 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.216e-06/12.56, allocations: 8.375 kB / 4.409 GB, free: 56.82 MB / 0.5886 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01451/12.58, allocations: 8.24 MB / 4.417 GB, free: 55.41 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002455/12.58, allocations: 0.8344 MB / 4.417 GB, free: 55.12 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007865/12.58, allocations: 64.45 kB / 4.417 GB, free: 55.12 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002961/12.58, allocations: 240.5 kB / 4.418 GB, free: 55.11 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005715/12.58, allocations: 194.8 kB / 4.418 GB, free: 55.11 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003122/12.58, allocations: 97.56 kB / 4.418 GB, free: 55.11 MB / 0.5886 GB Notification: Performance of sorting global known variables: time 0.002612/12.59, allocations: 1.326 MB / 4.419 GB, free: 54.95 MB / 0.5886 GB Notification: Performance of sort global known variables: time 1.054e-06/12.59, allocations: 1.625 kB / 4.419 GB, free: 54.95 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.01213/12.6, allocations: 2.946 MB / 4.422 GB, free: 54.95 MB / 0.5886 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.01297/12.61, allocations: 3.076 MB / 4.425 GB, free: 54.69 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.01223/12.62, allocations: 5.557 MB / 4.431 GB, free: 54.35 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 1.297e-05/12.62, allocations: 2.812 kB / 4.431 GB, free: 54.35 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 0.006076/12.63, allocations: 2.944 MB / 4.433 GB, free: 54.21 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007769/12.64, allocations: 1.228 MB / 4.435 GB, free: 54.18 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01348/12.65, allocations: 6.631 MB / 4.441 GB, free: 52.82 MB / 0.5886 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002398/12.65, allocations: 2.388 MB / 4.443 GB, free: 52.04 MB / 0.5886 GB Notification: Performance of simCode: alias equations: time 0.008102/12.66, allocations: 2.769 MB / 4.446 GB, free: 51.98 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001206/12.66, allocations: 209.4 kB / 4.446 GB, free: 51.98 MB / 0.5886 GB Notification: Performance of SimCode: time 1.8e-06/12.66, allocations: 0.875 kB / 4.446 GB, free: 51.98 MB / 0.5886 GB Notification: Performance of Templates: time 0.197/12.86, allocations: 101.6 MB / 4.546 GB, free: 36.16 MB / 0.5886 GB