Running command: translateModel(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4,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|splitter.medium.h|splitter.medium.p|valveOpening1.a|valveOpening1.b|valveOpening1.last|valveOpening1.nextEvent|valveOpening2.a|valveOpening2.b|valveOpening2.last|valveOpening2.nextEvent",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4") Notification: Performance of loadModel(ModelicaTest): time 2.317/2.317, allocations: 270 MB / 283.6 MB, free: 3.133 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 4.164e-05/4.183e-05, allocations: 5.828 kB / 348.4 MB, free: 10.85 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.111/0.1111, allocations: 61.89 MB / 410.3 MB, free: 13.02 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.91/7.021, allocations: 2.834 GB / 3.235 GB, free: 26.59 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000191/7.022, allocations: 80.58 kB / 3.235 GB, free: 26.55 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 4.257/11.28, allocations: 0.914 GB / 4.149 GB, free: 38.94 MB / 0.5573 GB Notification: Performance of FrontEnd: time 2.217e-06/11.28, allocations: 0 / 4.149 GB, free: 38.94 MB / 0.5573 GB Notification: Performance of Transformations before backend: time 0.0002411/11.28, allocations: 64.28 kB / 4.149 GB, free: 38.93 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: 536 * Number of variables: 536 Notification: Performance of Generate backend data structure: time 0.01496/11.29, allocations: 4.037 MB / 4.153 GB, free: 37.14 MB / 0.5573 GB Notification: Performance of prepare preOptimizeDAE: time 4.241e-05/11.29, allocations: 10.69 kB / 4.153 GB, free: 37.14 MB / 0.5573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008128/11.3, allocations: 0.8704 MB / 4.154 GB, free: 37.01 MB / 0.5573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007015/11.31, allocations: 2.078 MB / 4.156 GB, free: 36.56 MB / 0.5573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002877/11.31, allocations: 179.3 kB / 4.156 GB, free: 36.56 MB / 0.5573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007668/11.31, allocations: 205.6 kB / 4.156 GB, free: 36.55 MB / 0.5573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01102/11.32, allocations: 3.661 MB / 4.16 GB, free: 36.04 MB / 0.5573 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.824e-05/11.32, allocations: 6.75 kB / 4.16 GB, free: 36.04 MB / 0.5573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003951/11.32, allocations: 91.66 kB / 4.16 GB, free: 36.04 MB / 0.5573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002555/11.32, allocations: 164.9 kB / 4.16 GB, free: 36.04 MB / 0.5573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01056/11.33, allocations: 3.274 MB / 4.163 GB, free: 36.02 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.02572/11.36, allocations: 15.58 MB / 4.179 GB, free: 26.7 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.006619/11.37, allocations: 2.188 MB / 4.181 GB, free: 26.66 MB / 0.5573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002215/11.37, allocations: 1.064 MB / 4.182 GB, free: 26.65 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.05792/11.43, allocations: 24.61 MB / 4.206 GB, free: 27.63 MB / 0.573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00596/11.43, allocations: 1.716 MB / 4.207 GB, free: 27.5 MB / 0.573 GB Notification: Performance of pre-optimization done (n=163): time 6.575e-06/11.43, allocations: 0 / 4.207 GB, free: 27.5 MB / 0.573 GB Notification: Performance of matching and sorting (n=179): time 0.02743/11.46, allocations: 7.664 MB / 4.215 GB, free: 26.43 MB / 0.573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001886/11.46, allocations: 258.9 kB / 4.215 GB, free: 26.15 MB / 0.573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002829/11.46, allocations: 1.499 MB / 4.217 GB, free: 25.96 MB / 0.573 GB Notification: Performance of collectPreVariables (initialization): time 0.0004407/11.46, allocations: 56.17 kB / 4.217 GB, free: 25.93 MB / 0.573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009188/11.46, allocations: 0.9792 MB / 4.218 GB, free: 25.55 MB / 0.573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007533/11.46, allocations: 0.595 MB / 4.218 GB, free: 25.17 MB / 0.573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002092/11.46, allocations: 43.22 kB / 4.218 GB, free: 25.17 MB / 0.573 GB Notification: Performance of setup shared object (initialization): time 0.0002473/11.46, allocations: 392.8 kB / 4.219 GB, free: 24.86 MB / 0.573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002138/11.47, allocations: 1.031 MB / 4.22 GB, free: 24.86 MB / 0.573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002533/11.47, allocations: 1.434 MB / 4.221 GB, free: 24.4 MB / 0.573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002485/11.47, allocations: 1.272 MB / 4.222 GB, free: 24.29 MB / 0.573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.156e-05/11.47, allocations: 3.938 kB / 4.222 GB, free: 24.29 MB / 0.573 GB Notification: Performance of matching and sorting (n=257) (initialization): time 0.0076/11.48, allocations: 3.094 MB / 4.225 GB, free: 24 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 0.00219/11.48, allocations: 4.483 MB / 4.23 GB, free: 19.27 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.195e-05/11.48, allocations: 14.38 kB / 4.23 GB, free: 19.27 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001112/11.48, allocations: 235.4 kB / 4.23 GB, free: 19.23 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003335/11.49, allocations: 0.5185 MB / 4.23 GB, free: 19.22 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002222/11.49, allocations: 2.423 MB / 4.233 GB, free: 17.15 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003409/11.49, allocations: 271.2 kB / 4.233 GB, free: 17.12 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005223/11.49, allocations: 100.8 kB / 4.233 GB, free: 17.12 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 1.374e-05/11.49, allocations: 4.5 kB / 4.233 GB, free: 17.12 MB / 0.573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00676/11.5, allocations: 2.817 MB / 4.236 GB, free: 16.97 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.296e-05/11.5, allocations: 17.2 kB / 4.236 GB, free: 16.96 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001161/11.5, allocations: 234.3 kB / 4.236 GB, free: 16.93 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00323/11.5, allocations: 0.5061 MB / 4.237 GB, free: 16.93 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002179/11.51, allocations: 2.419 MB / 4.239 GB, free: 14.85 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003432/11.51, allocations: 274.6 kB / 4.239 GB, free: 14.82 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004959/11.51, allocations: 99.48 kB / 4.239 GB, free: 14.82 MB / 0.573 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 49 * Number of states: 0 () * Number of discrete variables: 30 (pipe3.state_a.phase,pipe2.state_a.phase,valveIncompressible1.state_b.phase,valveIncompressible1.state_a.phase,valveIncompressible.state_b.phase,valveIncompressible.state_a.phase,pipe1.state_b.phase,pipe1.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,splitter.medium.phase,pipe3.state_b.phase,pipe2.state_b.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (243): * Single equations (assignments): 237 * 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.000826/11.51, allocations: 306.2 kB / 4.24 GB, free: 14.63 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005772/11.51, allocations: 212.6 kB / 4.24 GB, free: 14.53 MB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01278/11.52, allocations: 7.643 MB / 4.247 GB, free: 13.71 MB / 0.573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.066e-05/11.52, allocations: 86.31 kB / 4.247 GB, free: 13.71 MB / 0.573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.095e-05/11.52, allocations: 0 / 4.247 GB, free: 13.71 MB / 0.573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01049/11.53, allocations: 6.65 MB / 4.254 GB, free: 12.76 MB / 0.573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01846/11.55, allocations: 10.9 MB / 4.265 GB, free: 8.281 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.415e-05/11.55, allocations: 4 kB / 4.265 GB, free: 8.277 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002529/11.56, allocations: 416.5 kB / 4.265 GB, free: 8.258 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001819/11.56, allocations: 339.9 kB / 4.265 GB, free: 8.145 MB / 0.573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003375/11.56, allocations: 73.44 kB / 4.265 GB, free: 8.113 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002149/11.56, allocations: 2.513 MB / 4.268 GB, free: 5.844 MB / 0.573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.778e-06/11.56, allocations: 0 / 4.268 GB, free: 5.844 MB / 0.573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01172/11.57, allocations: 6.929 MB / 4.275 GB, free: 2.785 MB / 0.573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00209/11.57, allocations: 0.7775 MB / 4.275 GB, free: 2.305 MB / 0.573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007906/11.58, allocations: 53.06 kB / 4.275 GB, free: 2.273 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002909/11.58, allocations: 207.9 kB / 4.276 GB, free: 2.223 MB / 0.573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005451/11.58, allocations: 163 kB / 4.276 GB, free: 2.195 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002786/11.58, allocations: 78.33 kB / 4.276 GB, free: 2.176 MB / 0.573 GB Notification: Performance of sorting global known variables: time 0.002685/11.58, allocations: 1.327 MB / 4.277 GB, free: 1.645 MB / 0.573 GB Notification: Performance of sort global known variables: time 9.29e-07/11.58, allocations: 0 / 4.277 GB, free: 1.645 MB / 0.573 GB Notification: Performance of remove unused functions: time 0.0109/11.59, allocations: 2.875 MB / 4.28 GB, free: 0.8477 MB / 0.573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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,splitter.medium.p,splitter.medium.h) * Number of discrete variables: 56 ($cse3.phase,$cse3.region,$cse5.region3boundary,$cse6.region3boundary,$cse7.phase,$cse7.region,$cse10.phase,$cse10.region,$cse11.phase,$cse11.region,$cse16.phase,$cse16.region,$cse17.phase,$cse17.region,$cse19.phase,$cse19.region,$cse20.phase,$cse20.region,$cse25.phase,$cse25.region,$cse26.phase,$cse26.region,$cse28.phase,$cse28.region,$cse31.phase,$cse31.region,$cse33.region3boundary,$cse34.region3boundary,$cse35.phase,$cse35.region,$cse37.region3boundary,$cse38.region3boundary,$cse39.phase,$cse39.region,$cse41.region3boundary,$cse42.region3boundary,$cse43.phase,$cse43.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,splitter.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 (202): * Single equations (assignments): 173 * 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.01352/11.61, allocations: 2.993 MB / 4.283 GB, free: 14.59 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.01232/11.62, allocations: 5.058 MB / 4.288 GB, free: 9.961 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 9.127e-06/11.62, allocations: 3.938 kB / 4.288 GB, free: 9.957 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 0.00493/11.62, allocations: 2.374 MB / 4.29 GB, free: 7.766 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006756/11.63, allocations: 1.035 MB / 4.291 GB, free: 7.02 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01546/11.65, allocations: 6.002 MB / 4.297 GB, free: 1.707 MB / 0.5886 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005658/11.65, allocations: 2.3 MB / 4.299 GB, free: 15.96 MB / 0.6042 GB Notification: Performance of simCode: alias equations: time 0.01336/11.66, allocations: 2.682 MB / 4.302 GB, free: 14.35 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001556/11.67, allocations: 179.7 kB / 4.302 GB, free: 14.18 MB / 0.6042 GB Notification: Performance of SimCode: time 2.692e-06/11.67, allocations: 0 / 4.302 GB, free: 14.18 MB / 0.6042 GB Notification: Performance of Templates: time 0.6348/12.3, allocations: 93.18 MB / 4.393 GB, free: 78.38 MB / 0.6042 GB