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_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes18") Notification: Performance of loadModel(ModelicaTest): time 1.814/1.814, allocations: 209.3 MB / 221.5 MB, free: 7.73 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.206e-05/3.22e-05, allocations: 4 kB / 273.1 MB, free: 3.172 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08514/0.08519, allocations: 48.68 MB / 321.8 MB, free: 2.395 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.462/6.548, allocations: 2.567 GB / 2.881 GB, free: 81.85 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002233/6.548, allocations: 73.97 kB / 2.881 GB, free: 81.82 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.609/11.16, allocations: 0.982 GB / 3.863 GB, free: 32.55 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.389e-06/11.16, allocations: 1.219 kB / 3.863 GB, free: 32.55 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0003016/11.16, allocations: 69.77 kB / 3.863 GB, free: 32.54 MB / 490.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 571 * Number of variables: 571 Notification: Performance of Generate backend data structure: time 0.01605/11.17, allocations: 4.102 MB / 3.867 GB, free: 30.75 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.851e-05/11.17, allocations: 10.72 kB / 3.867 GB, free: 30.75 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009108/11.18, allocations: 0.9155 MB / 3.868 GB, free: 30.59 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007415/11.19, allocations: 2.182 MB / 3.87 GB, free: 30.14 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003106/11.19, allocations: 199.2 kB / 3.871 GB, free: 30.13 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008638/11.19, allocations: 226.4 kB / 3.871 GB, free: 30.12 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01107/11.2, allocations: 3.836 MB / 3.875 GB, free: 29.53 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.602e-05/11.2, allocations: 6.625 kB / 3.875 GB, free: 29.53 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000421/11.2, allocations: 102.3 kB / 3.875 GB, free: 29.52 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002636/11.2, allocations: 170.3 kB / 3.875 GB, free: 29.52 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01092/11.21, allocations: 3.393 MB / 3.878 GB, free: 29.5 MB / 490.7 MB 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.02675/11.24, allocations: 16.71 MB / 3.894 GB, free: 19.4 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007905/11.25, allocations: 3.007 MB / 3.897 GB, free: 18.8 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002739/11.25, allocations: 1.228 MB / 3.899 GB, free: 18.79 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0437/11.3, allocations: 18.59 MB / 3.917 GB, free: 23.23 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.006339/11.3, allocations: 1.825 MB / 3.919 GB, free: 23.1 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=188): time 6.702e-06/11.3, allocations: 0 / 3.919 GB, free: 23.1 MB / 0.4948 GB Warning: Some equations could not be differentiated for following variables having attribute stateSelect=StateSelect.prefer. They will be treated as if they had stateSelect=StateSelect.default ======================================== 1: junctionVolume.medium.h Please use -d=bltdump for more information. Notification: Performance of matching and sorting (n=208): time 0.0416/11.34, allocations: 10.89 MB / 3.929 GB, free: 21.91 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002027/11.34, allocations: 261.5 kB / 3.929 GB, free: 21.62 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002902/11.35, allocations: 1.422 MB / 3.931 GB, free: 21.38 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.000555/11.35, allocations: 68.08 kB / 3.931 GB, free: 21.35 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009701/11.35, allocations: 1.049 MB / 3.932 GB, free: 20.93 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0008492/11.35, allocations: 0.6953 MB / 3.933 GB, free: 20.48 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002417/11.35, allocations: 53.53 kB / 3.933 GB, free: 20.48 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.000272/11.35, allocations: 404.8 kB / 3.933 GB, free: 20.17 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002511/11.35, allocations: 1.116 MB / 3.934 GB, free: 20.16 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003066/11.35, allocations: 1.644 MB / 3.936 GB, free: 19.62 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003067/11.36, allocations: 1.393 MB / 3.937 GB, free: 19.53 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.752e-05/11.36, allocations: 5.719 kB / 3.937 GB, free: 19.53 MB / 0.4948 GB Notification: Performance of matching and sorting (n=305) (initialization): time 0.008787/11.37, allocations: 3.425 MB / 3.94 GB, free: 19.23 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.002765/11.37, allocations: 5.65 MB / 3.946 GB, free: 13.3 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.81e-05/11.37, allocations: 12.72 kB / 3.946 GB, free: 13.3 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001668/11.37, allocations: 329.6 kB / 3.946 GB, free: 13.27 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003635/11.38, allocations: 0.6022 MB / 3.947 GB, free: 13.27 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002907/11.38, allocations: 3.083 MB / 3.95 GB, free: 10.68 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004351/11.38, allocations: 339.6 kB / 3.95 GB, free: 10.66 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006432/11.38, allocations: 124.3 kB / 3.95 GB, free: 10.66 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 1.465e-05/11.38, allocations: 4.156 kB / 3.95 GB, free: 10.66 MB / 0.4948 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.007625/11.39, allocations: 3.139 MB / 3.953 GB, free: 10.5 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.94e-05/11.39, allocations: 15.62 kB / 3.953 GB, free: 10.5 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001527/11.39, allocations: 334.9 kB / 3.954 GB, free: 10.46 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003718/11.4, allocations: 0.5973 MB / 3.954 GB, free: 10.46 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002855/11.4, allocations: 3.094 MB / 3.957 GB, free: 7.871 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003801/11.4, allocations: 326.8 kB / 3.958 GB, free: 7.855 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005241/11.4, allocations: 120.3 kB / 3.958 GB, free: 7.855 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 62 * Number of states: 0 () * Number of discrete variables: 29 (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,valveOpening2.a,valveOpening2.b,valveOpening2.last,$PRE.valveOpening2.nextEvent,valveOpening2.nextEvent,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 (287): * Single equations (assignments): 280 * 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.0008682/11.4, allocations: 330.8 kB / 3.958 GB, free: 7.668 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005829/11.4, allocations: 222.3 kB / 3.958 GB, free: 7.555 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01389/11.42, allocations: 8.12 MB / 3.966 GB, free: 6.738 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.321e-05/11.42, allocations: 88.02 kB / 3.966 GB, free: 6.738 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.349e-05/11.42, allocations: 3.609 kB / 3.966 GB, free: 6.738 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01151/11.43, allocations: 7.032 MB / 3.973 GB, free: 5.777 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02491/11.46, allocations: 12.99 MB / 3.986 GB, free: 20.14 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.1e-05/11.46, allocations: 3.312 kB / 3.986 GB, free: 20.14 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002848/11.46, allocations: 487.1 kB / 3.986 GB, free: 20.14 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002283/11.46, allocations: 456.2 kB / 3.987 GB, free: 20.09 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004779/11.46, allocations: 78.5 kB / 3.987 GB, free: 20.09 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002898/11.46, allocations: 3.215 MB / 3.99 GB, free: 17.5 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.065e-05/11.46, allocations: 13.92 kB / 3.99 GB, free: 17.49 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01368/11.48, allocations: 8.078 MB / 3.998 GB, free: 16.07 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002256/11.48, allocations: 0.8036 MB / 3.999 GB, free: 15.71 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007651/11.48, allocations: 62.06 kB / 3.999 GB, free: 15.71 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003093/11.48, allocations: 236.2 kB / 3.999 GB, free: 15.7 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005679/11.48, allocations: 191.9 kB / 3.999 GB, free: 15.7 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002929/11.49, allocations: 88.64 kB / 3.999 GB, free: 15.7 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.002425/11.49, allocations: 1.178 MB / 4 GB, free: 15.54 MB / 0.5105 GB Notification: Performance of sort global known variables: time 1.221e-06/11.49, allocations: 0 / 4 GB, free: 15.54 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.01263/11.5, allocations: 2.881 MB / 4.003 GB, free: 15.19 MB / 0.5105 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: 57 ($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,valveOpening2.a,valveOpening2.b,valveOpening2.last,valveOpening2.nextEvent,junctionIdeal.medium.phase,junctionVolume.medium.phase) * Number of discrete states: 10 (valveOpening2.last,valveOpening2.nextEvent,valveOpening2.b,valveOpening2.a,$whenCondition2,valveOpening1.last,valveOpening1.nextEvent,valveOpening1.b,valveOpening1.a,$whenCondition1) * Top-level inputs: 0 Notification: Strong component statistics for simulation (237): * Single equations (assignments): 206 * 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.01301/11.51, allocations: 3.039 MB / 4.006 GB, free: 14.55 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.01205/11.53, allocations: 5.458 MB / 4.011 GB, free: 13.55 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.441e-05/11.53, allocations: 5.938 kB / 4.011 GB, free: 13.55 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.005767/11.53, allocations: 2.879 MB / 4.014 GB, free: 12.32 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006808/11.54, allocations: 1.119 MB / 4.015 GB, free: 12.07 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.6289/12.17, allocations: 126.5 MB / 4.139 GB, free: 49.9 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002359/12.17, allocations: 2.386 MB / 4.141 GB, free: 49.09 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.008107/12.18, allocations: 2.695 MB / 4.144 GB, free: 48.99 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001104/12.18, allocations: 199 kB / 4.144 GB, free: 48.99 MB / 0.5105 GB Notification: Performance of SimCode: time 1.853e-06/12.18, allocations: 0 / 4.144 GB, free: 48.99 MB / 0.5105 GB Notification: Performance of Templates: time 0.5252/12.7, allocations: 98.01 MB / 4.24 GB, free: 56.76 MB / 0.5105 GB