Running command: translateModel(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|junctionIdeal.medium.h|junctionIdeal.medium.p|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_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14") Notification: Performance of loadModel(ModelicaTest): time 2.215/2.215, allocations: 235 MB / 247.2 MB, free: 14.35 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 4.186e-05/4.199e-05, allocations: 8.781 kB / 304.9 MB, free: 5.176 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3474/0.3475, allocations: 54.85 MB / 359.8 MB, free: 3.145 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.325/6.672, allocations: 2.677 GB / 3.028 GB, free: 99.29 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001871/6.673, allocations: 78.7 kB / 3.028 GB, free: 99.25 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.187/10.86, allocations: 0.9021 GB / 3.93 GB, free: 31.44 MB / 0.5105 GB Notification: Performance of FrontEnd: time 1.824e-06/10.86, allocations: 3 kB / 3.931 GB, free: 31.44 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 0.0002295/10.86, allocations: 66.56 kB / 3.931 GB, free: 31.43 MB / 0.5105 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.01407/10.87, allocations: 3.952 MB / 3.934 GB, free: 29.69 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 4.085e-05/10.87, allocations: 10.78 kB / 3.934 GB, free: 29.69 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008414/10.88, allocations: 0.8748 MB / 3.935 GB, free: 29.55 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006953/10.89, allocations: 2.103 MB / 3.937 GB, free: 29.09 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002423/10.89, allocations: 185.5 kB / 3.938 GB, free: 29.09 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006384/10.89, allocations: 202.9 kB / 3.938 GB, free: 29.09 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01041/10.9, allocations: 3.602 MB / 3.941 GB, free: 28.55 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.58e-05/10.9, allocations: 10.5 kB / 3.941 GB, free: 28.55 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003751/10.9, allocations: 88.16 kB / 3.941 GB, free: 28.55 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002405/10.9, allocations: 162.6 kB / 3.941 GB, free: 28.54 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009507/10.91, allocations: 3.166 MB / 3.945 GB, free: 28.54 MB / 0.5105 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.02196/10.93, allocations: 15.46 MB / 3.96 GB, free: 19.09 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.006818/10.94, allocations: 2.674 MB / 3.962 GB, free: 18.49 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002387/10.94, allocations: 1.135 MB / 3.963 GB, free: 18.48 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.04753/10.99, allocations: 18.76 MB / 3.982 GB, free: 22.74 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005389/11, allocations: 1.701 MB / 3.983 GB, free: 22.6 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=173): time 5.639e-06/11, allocations: 0 / 3.983 GB, free: 22.6 MB / 0.5261 GB Notification: Performance of matching and sorting (n=189): time 0.02553/11.02, allocations: 7.711 MB / 3.991 GB, free: 21.54 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001777/11.02, allocations: 257.1 kB / 3.991 GB, free: 21.25 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002471/11.02, allocations: 1.342 MB / 3.992 GB, free: 21.07 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0004006/11.02, allocations: 64.77 kB / 3.993 GB, free: 21.04 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008614/11.03, allocations: 0.9825 MB / 3.993 GB, free: 20.64 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007059/11.03, allocations: 0.633 MB / 3.994 GB, free: 20.23 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001937/11.03, allocations: 44.75 kB / 3.994 GB, free: 20.23 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0002481/11.03, allocations: 392.1 kB / 3.995 GB, free: 19.93 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00227/11.03, allocations: 1.015 MB / 3.996 GB, free: 19.92 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002736/11.03, allocations: 1.507 MB / 3.997 GB, free: 19.43 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002773/11.03, allocations: 1.277 MB / 3.998 GB, free: 19.34 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.323e-05/11.03, allocations: 3.719 kB / 3.998 GB, free: 19.34 MB / 0.5261 GB Notification: Performance of matching and sorting (n=270) (initialization): time 0.007373/11.04, allocations: 3.036 MB / 4.001 GB, free: 19.06 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.00244/11.04, allocations: 5.002 MB / 4.006 GB, free: 13.79 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.201e-05/11.04, allocations: 15.16 kB / 4.006 GB, free: 13.79 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001091/11.05, allocations: 234.4 kB / 4.006 GB, free: 13.76 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003133/11.05, allocations: 0.5315 MB / 4.007 GB, free: 13.76 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002178/11.05, allocations: 2.43 MB / 4.009 GB, free: 11.69 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003596/11.05, allocations: 303.5 kB / 4.009 GB, free: 11.67 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005545/11.05, allocations: 109 kB / 4.01 GB, free: 11.67 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.459e-05/11.06, allocations: 10.45 kB / 4.01 GB, free: 11.67 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006288/11.06, allocations: 2.767 MB / 4.012 GB, free: 11.53 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.725e-05/11.06, allocations: 13.59 kB / 4.012 GB, free: 11.53 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001143/11.06, allocations: 235.2 kB / 4.013 GB, free: 11.5 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003116/11.07, allocations: 0.5197 MB / 4.013 GB, free: 11.5 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002114/11.07, allocations: 2.43 MB / 4.015 GB, free: 9.422 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003224/11.07, allocations: 311.2 kB / 4.016 GB, free: 9.398 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004695/11.07, allocations: 106.4 kB / 4.016 GB, free: 9.398 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 55 * 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 (254): * Single equations (assignments): 248 * 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.0007931/11.07, allocations: 318.5 kB / 4.016 GB, free: 9.219 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000521/11.07, allocations: 204.2 kB / 4.016 GB, free: 9.117 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01217/11.09, allocations: 7.455 MB / 4.024 GB, free: 8.344 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.025e-05/11.09, allocations: 85.42 kB / 4.024 GB, free: 8.344 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.07e-05/11.09, allocations: 3.938 kB / 4.024 GB, free: 8.344 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.009868/11.1, allocations: 6.472 MB / 4.03 GB, free: 7.406 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0213/11.12, allocations: 12.06 MB / 4.042 GB, free: 5.039 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.074e-05/11.12, allocations: 6.031 kB / 4.042 GB, free: 5.039 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002462/11.12, allocations: 434.3 kB / 4.042 GB, free: 5.023 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001648/11.12, allocations: 347.9 kB / 4.043 GB, free: 4.918 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004824/11.12, allocations: 71.44 kB / 4.043 GB, free: 4.887 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002331/11.12, allocations: 2.526 MB / 4.045 GB, free: 18.62 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.987e-06/11.12, allocations: 6.25 kB / 4.045 GB, free: 18.62 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01228/11.14, allocations: 7.433 MB / 4.052 GB, free: 14.81 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002134/11.14, allocations: 0.7482 MB / 4.053 GB, free: 14.35 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000579/11.14, allocations: 62.28 kB / 4.053 GB, free: 14.31 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002441/11.14, allocations: 227 kB / 4.053 GB, free: 14.27 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004361/11.14, allocations: 171 kB / 4.054 GB, free: 14.24 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002704/11.14, allocations: 88.33 kB / 4.054 GB, free: 14.22 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.002249/11.14, allocations: 1.126 MB / 4.055 GB, free: 13.77 MB / 0.5417 GB Notification: Performance of sort global known variables: time 9.81e-07/11.14, allocations: 0 / 4.055 GB, free: 13.77 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.0104/11.15, allocations: 2.738 MB / 4.057 GB, free: 13.22 MB / 0.5417 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 (212): * Single equations (assignments): 183 * 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.01209/11.17, allocations: 2.877 MB / 4.06 GB, free: 12.45 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.01153/11.18, allocations: 5.069 MB / 4.065 GB, free: 10.49 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 1.126e-05/11.18, allocations: 3.969 kB / 4.065 GB, free: 10.49 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.005855/11.18, allocations: 2.655 MB / 4.068 GB, free: 8.152 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006128/11.19, allocations: 0.9857 MB / 4.069 GB, free: 7.43 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.6458/11.84, allocations: 128.7 MB / 4.194 GB, free: 48.56 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002567/11.84, allocations: 2.296 MB / 4.197 GB, free: 47.75 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.007274/11.85, allocations: 2.551 MB / 4.199 GB, free: 47.66 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001528/11.85, allocations: 176.6 kB / 4.199 GB, free: 47.66 MB / 0.5417 GB Notification: Performance of SimCode: time 2.874e-06/11.85, allocations: 0 / 4.199 GB, free: 47.66 MB / 0.5417 GB Notification: Performance of Templates: time 0.5655/12.41, allocations: 90.36 MB / 4.287 GB, free: 71.65 MB / 0.5573 GB