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.1_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes2") Notification: Performance of loadModel(ModelicaTest): time 1.843/1.843, allocations: 209.3 MB / 221.5 MB, free: 7.738 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.823e-05/2.835e-05, allocations: 0 / 273.1 MB, free: 3.172 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08512/0.08517, allocations: 48.7 MB / 321.8 MB, free: 2.375 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.195/6.28, allocations: 2.562 GB / 2.876 GB, free: 86.57 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002157/6.28, allocations: 78.27 kB / 2.876 GB, free: 86.53 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.428/9.708, allocations: 0.7788 GB / 3.655 GB, free: 6.23 MB / 474.7 MB Notification: Performance of FrontEnd: time 2.136e-06/9.708, allocations: 0 / 3.655 GB, free: 6.23 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0002165/9.708, allocations: 67.86 kB / 3.655 GB, free: 6.164 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: 463 * Number of variables: 463 Notification: Performance of Generate backend data structure: time 0.01474/9.723, allocations: 3.531 MB / 3.659 GB, free: 2.566 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.005e-05/9.723, allocations: 12.02 kB / 3.659 GB, free: 2.555 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007672/9.731, allocations: 0.7504 MB / 3.659 GB, free: 1.801 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.3071/10.04, allocations: 1.969 MB / 3.661 GB, free: 30.3 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003214/10.04, allocations: 160.8 kB / 3.661 GB, free: 30.3 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007122/10.04, allocations: 178.8 kB / 3.662 GB, free: 30.3 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009129/10.05, allocations: 3.293 MB / 3.665 GB, free: 29.82 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.589e-05/10.05, allocations: 6.5 kB / 3.665 GB, free: 29.82 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003329/10.05, allocations: 83.8 kB / 3.665 GB, free: 29.82 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002185/10.05, allocations: 149.4 kB / 3.665 GB, free: 29.82 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01033/10.06, allocations: 3.009 MB / 3.668 GB, free: 29.81 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.02011/10.08, allocations: 13.63 MB / 3.681 GB, free: 21.74 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005686/10.08, allocations: 1.95 MB / 3.683 GB, free: 21.71 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002055/10.09, allocations: 1.02 MB / 3.684 GB, free: 21.7 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04265/10.13, allocations: 18.87 MB / 3.703 GB, free: 25.88 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005262/10.14, allocations: 1.587 MB / 3.704 GB, free: 25.76 MB / 490.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001441/10.14, allocations: 168.5 kB / 3.704 GB, free: 25.72 MB / 490.7 MB Notification: Performance of pre-optimization done (n=151): time 5.675e-06/10.14, allocations: 2.094 kB / 3.704 GB, free: 25.72 MB / 490.7 MB Notification: Performance of matching and sorting (n=163): time 0.02368/10.16, allocations: 6.859 MB / 3.711 GB, free: 24.83 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001854/10.16, allocations: 261.5 kB / 3.711 GB, free: 24.55 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002412/10.16, allocations: 1.247 MB / 3.713 GB, free: 24.38 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004335/10.16, allocations: 59.14 kB / 3.713 GB, free: 24.34 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000824/10.16, allocations: 0.8835 MB / 3.713 GB, free: 24.07 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006228/10.16, allocations: 0.5383 MB / 3.714 GB, free: 23.8 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001729/10.17, allocations: 37.31 kB / 3.714 GB, free: 23.8 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0002337/10.17, allocations: 378.5 kB / 3.714 GB, free: 23.49 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001911/10.17, allocations: 0.9115 MB / 3.715 GB, free: 23.49 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002278/10.17, allocations: 1.336 MB / 3.717 GB, free: 23.05 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002248/10.17, allocations: 1.151 MB / 3.718 GB, free: 22.96 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.076e-05/10.17, allocations: 2.719 kB / 3.718 GB, free: 22.96 MB / 490.7 MB Notification: Performance of matching and sorting (n=232) (initialization): time 0.007231/10.18, allocations: 2.905 MB / 3.721 GB, free: 22.69 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.002137/10.18, allocations: 4.354 MB / 3.725 GB, free: 18.09 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.823e-05/10.18, allocations: 16 kB / 3.725 GB, free: 18.09 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003042/10.18, allocations: 0.5173 MB / 3.725 GB, free: 18.06 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002583/10.19, allocations: 457.2 kB / 3.726 GB, free: 18.06 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002722/10.19, allocations: 2.694 MB / 3.728 GB, free: 15.98 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003138/10.19, allocations: 262.2 kB / 3.729 GB, free: 15.98 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003214/10.19, allocations: 95.72 kB / 3.729 GB, free: 15.98 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.34e-05/10.19, allocations: 6.031 kB / 3.729 GB, free: 15.98 MB / 490.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005552/10.2, allocations: 2.544 MB / 3.731 GB, free: 15.84 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.264e-05/10.2, allocations: 8.531 kB / 3.731 GB, free: 15.84 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008881/10.2, allocations: 192.4 kB / 3.731 GB, free: 15.82 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002475/10.2, allocations: 474.4 kB / 3.732 GB, free: 15.82 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001614/10.2, allocations: 1.873 MB / 3.734 GB, free: 14.26 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00283/10.21, allocations: 255 kB / 3.734 GB, free: 14.26 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002768/10.21, allocations: 95.06 kB / 3.734 GB, free: 14.26 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.001026/10.21, allocations: 291.5 kB / 3.734 GB, free: 14.08 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007338/10.21, allocations: 191.5 kB / 3.734 GB, free: 13.98 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01933/10.23, allocations: 7.357 MB / 3.742 GB, free: 13.3 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.000124/10.23, allocations: 79.78 kB / 3.742 GB, free: 13.3 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.545e-05/10.23, allocations: 0 / 3.742 GB, free: 13.3 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01557/10.24, allocations: 6.433 MB / 3.748 GB, free: 12.36 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03386/10.28, allocations: 11.05 MB / 3.759 GB, free: 11.27 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.981e-05/10.28, allocations: 10.44 kB / 3.759 GB, free: 11.27 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002014/10.28, allocations: 351.9 kB / 3.759 GB, free: 11.27 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003369/10.28, allocations: 1.276 MB / 3.76 GB, free: 11.21 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003945/10.28, allocations: 64.3 kB / 3.76 GB, free: 11.21 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003224/10.29, allocations: 3.186 MB / 3.764 GB, free: 9.117 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.906e-06/10.29, allocations: 10.31 kB / 3.764 GB, free: 9.117 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01102/10.3, allocations: 7.15 MB / 3.771 GB, free: 7.855 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001819/10.3, allocations: 0.7029 MB / 3.771 GB, free: 7.535 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004582/10.3, allocations: 55.44 kB / 3.771 GB, free: 7.535 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001954/10.3, allocations: 187.6 kB / 3.771 GB, free: 7.527 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003561/10.3, allocations: 144.6 kB / 3.772 GB, free: 7.523 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002174/10.3, allocations: 75.84 kB / 3.772 GB, free: 7.523 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.001969/10.31, allocations: 1.062 MB / 3.773 GB, free: 7.363 MB / 490.7 MB Notification: Performance of sort global known variables: time 8.64e-07/10.31, allocations: 0 / 3.773 GB, free: 7.363 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.009259/10.31, allocations: 2.533 MB / 3.775 GB, free: 7.258 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,$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,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.01192/10.33, allocations: 2.691 MB / 3.778 GB, free: 6.969 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.009093/10.34, allocations: 4.464 MB / 3.782 GB, free: 6.648 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.195e-05/10.34, allocations: 3.062 kB / 3.782 GB, free: 6.648 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004437/10.34, allocations: 2.37 MB / 3.785 GB, free: 6.504 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005366/10.35, allocations: 0.8429 MB / 3.785 GB, free: 6.469 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.593/10.94, allocations: 125.5 MB / 3.908 GB, free: 55.99 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001953/10.94, allocations: 2.18 MB / 3.91 GB, free: 55.19 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.006179/10.95, allocations: 2.418 MB / 3.912 GB, free: 55.1 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007155/10.95, allocations: 156 kB / 3.913 GB, free: 55.1 MB / 0.4948 GB Notification: Performance of SimCode: time 1.693e-06/10.95, allocations: 0 / 3.913 GB, free: 55.1 MB / 0.4948 GB Notification: Performance of Templates: time 0.1548/11.1, allocations: 83.67 MB / 3.994 GB, free: 30.61 MB / 0.4948 GB