Running command: translateModel(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|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.BranchingPipes3") Notification: Performance of loadModel(ModelicaTest): time 1.809/1.809, allocations: 209.3 MB / 221.5 MB, free: 7.734 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.392e-05/3.398e-05, allocations: 4 kB / 273.1 MB, free: 3.184 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08763/0.08768, allocations: 48.7 MB / 321.8 MB, free: 2.391 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.206/6.294, allocations: 2.563 GB / 2.877 GB, free: 66.48 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002202/6.294, allocations: 74.66 kB / 2.877 GB, free: 66.45 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.836/10.13, allocations: 0.8461 GB / 3.723 GB, free: 32.88 MB / 474.7 MB Notification: Performance of FrontEnd: time 2.414e-06/10.13, allocations: 2.031 kB / 3.723 GB, free: 32.88 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0002058/10.13, allocations: 66.36 kB / 3.723 GB, free: 32.87 MB / 474.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 472 * Number of variables: 472 Notification: Performance of Generate backend data structure: time 0.01278/10.14, allocations: 3.623 MB / 3.727 GB, free: 31.13 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.224e-05/10.14, allocations: 15.14 kB / 3.727 GB, free: 31.13 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007208/10.15, allocations: 0.7493 MB / 3.727 GB, free: 31 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006157/10.16, allocations: 1.97 MB / 3.729 GB, free: 30.56 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002071/10.16, allocations: 162.4 kB / 3.729 GB, free: 30.55 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000526/10.16, allocations: 176.7 kB / 3.73 GB, free: 30.55 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008854/10.17, allocations: 3.225 MB / 3.733 GB, free: 30.07 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.568e-05/10.17, allocations: 9.969 kB / 3.733 GB, free: 30.07 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003375/10.17, allocations: 81.48 kB / 3.733 GB, free: 30.07 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002393/10.17, allocations: 145.5 kB / 3.733 GB, free: 30.07 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008678/10.18, allocations: 2.787 MB / 3.736 GB, free: 30.06 MB / 474.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.01925/10.19, allocations: 13.88 MB / 3.749 GB, free: 21.53 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005935/10.2, allocations: 1.941 MB / 3.751 GB, free: 21.5 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001937/10.2, allocations: 1.024 MB / 3.752 GB, free: 21.48 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03957/10.24, allocations: 18.85 MB / 3.771 GB, free: 9.512 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005106/10.25, allocations: 1.571 MB / 3.772 GB, free: 9.387 MB / 474.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001557/10.25, allocations: 173.5 kB / 3.772 GB, free: 9.305 MB / 474.7 MB Notification: Performance of pre-optimization done (n=151): time 7.317e-06/10.25, allocations: 0 / 3.772 GB, free: 9.305 MB / 474.7 MB Notification: Performance of matching and sorting (n=163): time 0.02452/10.27, allocations: 6.867 MB / 3.779 GB, free: 7.293 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.8e-05/10.27, allocations: 260.7 kB / 3.779 GB, free: 7.008 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002378/10.28, allocations: 1.254 MB / 3.78 GB, free: 6.523 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004481/10.28, allocations: 56.64 kB / 3.781 GB, free: 6.473 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001022/10.28, allocations: 0.8939 MB / 3.781 GB, free: 21.78 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006488/10.28, allocations: 0.545 MB / 3.782 GB, free: 21.36 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001907/10.28, allocations: 37.16 kB / 3.782 GB, free: 21.33 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0002419/10.28, allocations: 380.2 kB / 3.782 GB, free: 20.99 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001934/10.28, allocations: 0.9128 MB / 3.783 GB, free: 20.66 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00232/10.28, allocations: 1.327 MB / 3.784 GB, free: 19.85 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002422/10.29, allocations: 1.157 MB / 3.786 GB, free: 19.38 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.135e-05/10.29, allocations: 7.969 kB / 3.786 GB, free: 19.37 MB / 490.7 MB Notification: Performance of matching and sorting (n=232) (initialization): time 0.007267/10.29, allocations: 2.901 MB / 3.788 GB, free: 18.28 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.002165/10.3, allocations: 4.359 MB / 3.793 GB, free: 13.55 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.932e-05/10.3, allocations: 15.78 kB / 3.793 GB, free: 13.55 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003383/10.3, allocations: 0.5168 MB / 3.793 GB, free: 13.43 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002943/10.3, allocations: 450.7 kB / 3.794 GB, free: 13.39 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00289/10.3, allocations: 2.703 MB / 3.796 GB, free: 11.06 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003279/10.31, allocations: 265.4 kB / 3.797 GB, free: 11 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003834/10.31, allocations: 99.17 kB / 3.797 GB, free: 10.98 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.47e-05/10.31, allocations: 3.531 kB / 3.797 GB, free: 10.98 MB / 490.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006047/10.31, allocations: 2.534 MB / 3.799 GB, free: 9.633 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.242e-05/10.31, allocations: 8 kB / 3.799 GB, free: 9.625 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008704/10.32, allocations: 198 kB / 3.799 GB, free: 9.461 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002906/10.32, allocations: 470.3 kB / 3.8 GB, free: 9.07 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001856/10.32, allocations: 1.867 MB / 3.802 GB, free: 7.203 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003193/10.32, allocations: 263.6 kB / 3.802 GB, free: 7 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003876/10.32, allocations: 91.12 kB / 3.802 GB, free: 6.918 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 48 * Number of states: 0 () * Number of discrete variables: 27 (valveIncompressible1.state_b.phase,valveIncompressible1.state_a.phase,valveIncompressible.state_b.phase,valveIncompressible.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,pipe3.state_a.phase,pipe3.state_b.phase,pipe2.state_a.phase,pipe2.state_b.phase,pipe1.state_a.phase,pipe1.state_b.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (215): * Single equations (assignments): 209 * 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,2 5} Notification: Performance of prepare postOptimizeDAE: time 0.0008158/10.32, allocations: 305.8 kB / 3.802 GB, free: 6.609 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006137/10.33, allocations: 189.7 kB / 3.802 GB, free: 6.422 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.3314/10.66, allocations: 7.366 MB / 3.81 GB, free: 46.43 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001219/10.66, allocations: 80.7 kB / 3.81 GB, free: 46.43 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.621e-05/10.66, allocations: 3.188 kB / 3.81 GB, free: 46.43 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01107/10.67, allocations: 6.438 MB / 3.816 GB, free: 45.52 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02191/10.69, allocations: 11.09 MB / 3.827 GB, free: 44.52 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.962e-05/10.69, allocations: 3.375 kB / 3.827 GB, free: 44.52 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002178/10.69, allocations: 357.2 kB / 3.827 GB, free: 44.52 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003459/10.7, allocations: 1.283 MB / 3.828 GB, free: 44.47 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003819/10.7, allocations: 61.89 kB / 3.828 GB, free: 44.47 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002501/10.7, allocations: 3.186 MB / 3.832 GB, free: 42.39 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.683e-06/10.7, allocations: 7.312 kB / 3.832 GB, free: 42.39 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01115/10.71, allocations: 7.171 MB / 3.839 GB, free: 41.29 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001872/10.71, allocations: 0.6941 MB / 3.839 GB, free: 41.12 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004988/10.71, allocations: 60.55 kB / 3.839 GB, free: 41.12 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00207/10.71, allocations: 184 kB / 3.839 GB, free: 41.11 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003401/10.71, allocations: 152 kB / 3.84 GB, free: 41.11 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002164/10.71, allocations: 75.5 kB / 3.84 GB, free: 41.11 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.00206/10.72, allocations: 1.066 MB / 3.841 GB, free: 40.95 MB / 490.7 MB Notification: Performance of sort global known variables: time 8.7e-07/10.72, allocations: 3.312 kB / 3.841 GB, free: 40.95 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.01039/10.73, allocations: 2.574 MB / 3.843 GB, free: 40.95 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 19 * Number of states: 6 (pipe1.mediums[1].p,pipe1.mediums[1].h,pipe2.mediums[1].p,pipe2.mediums[1].h,pipe3.mediums[1].p,pipe3.mediums[1].h) * Number of discrete variables: 53 ($cse3.phase,$cse3.region,$cse5.region3boundary,$cse6.region3boundary,$cse7.phase,$cse7.region,$cse9.phase,$cse9.region,$cse10.phase,$cse10.region,$cse15.phase,$cse15.region,$cse16.phase,$cse16.region,$cse18.phase,$cse18.region,$cse19.phase,$cse19.region,$cse24.phase,$cse24.region,$cse25.phase,$cse25.region,$cse27.phase,$cse27.region,$cse30.phase,$cse30.region,$cse32.region3boundary,$cse33.region3boundary,$cse34.phase,$cse34.region,$cse36.phase,$cse36.region,$cse37.region3boundary,$cse38.region3boundary,$cse39.phase,$cse39.region,$cse41.phase,$cse41.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) * 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 (177): * Single equations (assignments): 151 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 20 * 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,2 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.01198/10.74, allocations: 2.784 MB / 3.846 GB, free: 40.76 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.008837/10.75, allocations: 4.466 MB / 3.85 GB, free: 40.45 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 8.824e-06/10.75, allocations: 1.5 kB / 3.85 GB, free: 40.45 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004295/10.75, allocations: 2.361 MB / 3.853 GB, free: 40.3 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005693/10.76, allocations: 0.9028 MB / 3.854 GB, free: 40.28 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2932/11.05, allocations: 125.1 MB / 3.976 GB, free: 7.668 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001963/11.05, allocations: 2.183 MB / 3.978 GB, free: 5.949 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.006383/11.06, allocations: 2.43 MB / 3.98 GB, free: 4.492 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008254/11.06, allocations: 154.1 kB / 3.98 GB, free: 4.355 MB / 490.7 MB Notification: Performance of SimCode: time 2.601e-06/11.06, allocations: 0 / 3.98 GB, free: 4.355 MB / 490.7 MB Notification: Performance of Templates: time 0.5325/11.59, allocations: 86 MB / 4.064 GB, free: 56.44 MB / 0.4948 GB