Running command: translateModel(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes2,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.2_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes2") Notification: Performance of loadModel(ModelicaTest): time 2.225/2.225, allocations: 235 MB / 247.2 MB, free: 14.38 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.974e-05/2.997e-05, allocations: 4 kB / 304.9 MB, free: 5.164 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3242/0.3243, allocations: 54.85 MB / 359.8 MB, free: 3.156 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.261/6.585, allocations: 2.673 GB / 3.024 GB, free: 126.6 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002639/6.585, allocations: 75.45 kB / 3.024 GB, free: 126.6 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.527/10.11, allocations: 0.7984 GB / 3.822 GB, free: 41.89 MB / 0.5105 GB Notification: Performance of FrontEnd: time 2.932e-06/10.11, allocations: 0 / 3.822 GB, free: 41.89 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 0.0002391/10.11, allocations: 61.23 kB / 3.823 GB, free: 41.88 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: 467 * Number of variables: 467 Notification: Performance of Generate backend data structure: time 0.01562/10.13, allocations: 3.654 MB / 3.826 GB, free: 40.31 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 4.385e-05/10.13, allocations: 9.531 kB / 3.826 GB, free: 40.31 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008666/10.14, allocations: 0.7781 MB / 3.827 GB, free: 40.18 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006433/10.14, allocations: 1.997 MB / 3.829 GB, free: 39.75 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000222/10.14, allocations: 161.6 kB / 3.829 GB, free: 39.74 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006213/10.14, allocations: 178.4 kB / 3.829 GB, free: 39.74 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009918/10.15, allocations: 3.298 MB / 3.832 GB, free: 39.27 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.084e-05/10.15, allocations: 13.5 kB / 3.832 GB, free: 39.27 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003516/10.15, allocations: 81 kB / 3.832 GB, free: 39.27 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002179/10.15, allocations: 148 kB / 3.833 GB, free: 39.26 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009902/10.16, allocations: 3.023 MB / 3.836 GB, free: 39.25 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.02108/10.19, allocations: 13.66 MB / 3.849 GB, free: 31.02 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005817/10.19, allocations: 1.954 MB / 3.851 GB, free: 30.98 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002095/10.19, allocations: 1.037 MB / 3.852 GB, free: 30.97 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0415/10.24, allocations: 18.87 MB / 3.87 GB, free: 19.14 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005459/10.24, allocations: 1.595 MB / 3.872 GB, free: 19.02 MB / 0.5105 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001502/10.24, allocations: 175.3 kB / 3.872 GB, free: 18.94 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=155): time 6.052e-06/10.24, allocations: 1.688 kB / 3.872 GB, free: 18.94 MB / 0.5105 GB Notification: Performance of matching and sorting (n=167): time 0.02469/10.27, allocations: 6.859 MB / 3.879 GB, free: 18 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.601e-05/10.27, allocations: 260.2 kB / 3.879 GB, free: 17.72 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002426/10.27, allocations: 1.256 MB / 3.88 GB, free: 17.54 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.000464/10.27, allocations: 55.42 kB / 3.88 GB, free: 17.5 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008417/10.27, allocations: 0.8831 MB / 3.881 GB, free: 17.15 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.000729/10.27, allocations: 0.5564 MB / 3.882 GB, free: 16.8 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001858/10.27, allocations: 32.22 kB / 3.882 GB, free: 16.8 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0001463/10.27, allocations: 383.6 kB / 3.882 GB, free: 16.5 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002026/10.27, allocations: 0.9185 MB / 3.883 GB, free: 16.49 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002305/10.28, allocations: 1.346 MB / 3.884 GB, free: 16.05 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00251/10.28, allocations: 1.163 MB / 3.885 GB, free: 15.96 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.321e-05/10.28, allocations: 3.969 kB / 3.885 GB, free: 15.96 MB / 0.5105 GB Notification: Performance of matching and sorting (n=236) (initialization): time 0.007713/10.29, allocations: 2.886 MB / 3.888 GB, free: 15.69 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0009046/10.29, allocations: 4.355 MB / 3.892 GB, free: 11.09 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.186e-05/10.29, allocations: 9.281 kB / 3.892 GB, free: 11.09 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003121/10.29, allocations: 0.5219 MB / 3.893 GB, free: 11.06 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002619/10.29, allocations: 457.1 kB / 3.893 GB, free: 11.06 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003178/10.3, allocations: 2.705 MB / 3.896 GB, free: 24.98 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003201/10.3, allocations: 259.2 kB / 3.896 GB, free: 24.97 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003873/10.3, allocations: 99.88 kB / 3.896 GB, free: 24.97 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.496e-05/10.3, allocations: 6.094 kB / 3.896 GB, free: 24.97 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005892/10.31, allocations: 2.514 MB / 3.899 GB, free: 24.83 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.791e-05/10.31, allocations: 11 kB / 3.899 GB, free: 24.83 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009042/10.31, allocations: 197.7 kB / 3.899 GB, free: 24.81 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002843/10.31, allocations: 470.6 kB / 3.899 GB, free: 24.81 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001695/10.31, allocations: 1.877 MB / 3.901 GB, free: 23.25 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003025/10.32, allocations: 258.3 kB / 3.902 GB, free: 23.23 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003494/10.32, allocations: 91.55 kB / 3.902 GB, free: 23.23 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 48 * Number of states: 0 () * Number of discrete variables: 29 (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,valveOpening1.nextEventScaled,valveOpening2.a,valveOpening2.b,valveOpening2.last,$PRE.valveOpening2.nextEvent,valveOpening2.nextEvent,valveOpening2.nextEventScaled,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.000756/10.32, allocations: 294.2 kB / 3.902 GB, free: 23.06 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004625/10.32, allocations: 193.6 kB / 3.902 GB, free: 22.96 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01205/10.33, allocations: 7.343 MB / 3.909 GB, free: 22.2 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.035e-05/10.33, allocations: 90.52 kB / 3.909 GB, free: 22.2 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.075e-05/10.33, allocations: 0 / 3.909 GB, free: 22.2 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.009844/10.34, allocations: 6.423 MB / 3.916 GB, free: 21.25 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01948/10.36, allocations: 11.05 MB / 3.926 GB, free: 20.11 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.812e-05/10.36, allocations: 3.531 kB / 3.926 GB, free: 20.11 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002075/10.36, allocations: 358.1 kB / 3.927 GB, free: 20.11 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003592/10.36, allocations: 1.298 MB / 3.928 GB, free: 20.05 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004262/10.36, allocations: 66.33 kB / 3.928 GB, free: 20.04 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003272/10.37, allocations: 3.201 MB / 3.931 GB, free: 17.94 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.65e-06/10.37, allocations: 5.531 kB / 3.931 GB, free: 17.94 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01183/10.38, allocations: 7.154 MB / 3.938 GB, free: 16.69 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00197/10.38, allocations: 0.7006 MB / 3.939 GB, free: 16.37 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005734/10.38, allocations: 57.23 kB / 3.939 GB, free: 16.37 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002168/10.38, allocations: 183.3 kB / 3.939 GB, free: 16.36 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003585/10.39, allocations: 159.7 kB / 3.939 GB, free: 16.36 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002243/10.39, allocations: 72.97 kB / 3.939 GB, free: 16.36 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.002039/10.39, allocations: 1.063 MB / 3.94 GB, free: 16.2 MB / 0.5261 GB Notification: Performance of sort global known variables: time 8.98e-07/10.39, allocations: 0 / 3.94 GB, free: 16.2 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.01017/10.4, allocations: 2.556 MB / 3.943 GB, free: 15.86 MB / 0.5261 GB 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: 55 ($cse3.phase,$cse3.region,$cse5.region3boundary,$cse6.region3boundary,$cse7.phase,$cse7.region,$cse9.phase,$cse9.region,$cse10.phase,$cse10.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.phase,$cse38.region,$cse40.region3boundary,$cse41.region3boundary,$cse42.phase,$cse42.region,$cse44.phase,$cse44.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) * 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 (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.01212/10.41, allocations: 2.719 MB / 3.946 GB, free: 15.32 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.009727/10.42, allocations: 4.601 MB / 3.95 GB, free: 13.96 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.24e-05/10.42, allocations: 3.203 kB / 3.95 GB, free: 13.96 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.004749/10.42, allocations: 2.435 MB / 3.952 GB, free: 12.88 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00529/10.43, allocations: 0.8493 MB / 3.953 GB, free: 12.7 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.6404/11.07, allocations: 128.3 MB / 4.079 GB, free: 64.8 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00202/11.07, allocations: 2.178 MB / 4.081 GB, free: 64 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.006586/11.08, allocations: 2.414 MB / 4.083 GB, free: 63.92 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007973/11.08, allocations: 155.6 kB / 4.083 GB, free: 63.92 MB / 0.5417 GB Notification: Performance of SimCode: time 1.607e-06/11.08, allocations: 0 / 4.083 GB, free: 63.92 MB / 0.5417 GB Notification: Performance of Templates: time 0.159/11.24, allocations: 84.16 MB / 4.165 GB, free: 42.89 MB / 0.5417 GB