Running command: translateModel(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes12,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|valveIncompressible.filter.x.1.|valveIncompressible.filter.x.2.|valveIncompressible1.filter.x.1.|valveIncompressible1.filter.x.2.|valveOpening1.a|valveOpening1.b|valveOpening1.last|valveOpening1.nextEvent|valveOpening2.a|valveOpening2.b|valveOpening2.last|valveOpening2.nextEvent",fileNamePrefix="ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes12") Notification: Performance of loadModel(ModelicaTest): time 1.84/1.84, allocations: 209.3 MB / 221.5 MB, free: 7.742 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 4.256e-05/4.275e-05, allocations: 0 / 273.1 MB, free: 3.164 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.118/0.118, allocations: 48.69 MB / 321.8 MB, free: 2.379 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.267/6.385, allocations: 2.545 GB / 2.859 GB, free: 102.5 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002096/6.385, allocations: 73.38 kB / 2.86 GB, free: 102.5 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.442/9.827, allocations: 0.782 GB / 3.642 GB, free: 12.17 MB / 474.7 MB Notification: Performance of FrontEnd: time 2.213e-06/9.827, allocations: 0 / 3.642 GB, free: 12.17 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0002594/9.827, allocations: 67.84 kB / 3.642 GB, free: 12.11 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: 514 * Number of variables: 514 Notification: Performance of Generate backend data structure: time 0.01592/9.843, allocations: 3.835 MB / 3.645 GB, free: 8.223 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.894e-05/9.843, allocations: 8.031 kB / 3.645 GB, free: 8.215 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008017/9.851, allocations: 0.8215 MB / 3.646 GB, free: 7.395 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007588/9.859, allocations: 2.154 MB / 3.648 GB, free: 5.223 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000275/9.859, allocations: 173 kB / 3.648 GB, free: 5.062 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006058/9.86, allocations: 200.2 kB / 3.649 GB, free: 4.875 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01103/9.871, allocations: 3.662 MB / 3.652 GB, free: 1.031 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.708e-05/9.871, allocations: 7.938 kB / 3.652 GB, free: 1.023 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004001/9.872, allocations: 89.14 kB / 3.652 GB, free: 0.9453 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003098/9.872, allocations: 163.6 kB / 3.652 GB, free: 0.7852 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.3323/10.2, allocations: 3.374 MB / 3.656 GB, free: 29.7 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.02596/10.23, allocations: 14.73 MB / 3.67 GB, free: 21.31 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006332/10.24, allocations: 2.104 MB / 3.672 GB, free: 21.28 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002255/10.24, allocations: 1.042 MB / 3.673 GB, free: 21.27 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04255/10.28, allocations: 18.94 MB / 3.692 GB, free: 25.45 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.006241/10.29, allocations: 1.661 MB / 3.693 GB, free: 25.32 MB / 490.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.00152/10.29, allocations: 189 kB / 3.693 GB, free: 25.28 MB / 490.7 MB Notification: Performance of pre-optimization done (n=158): time 5.85e-06/10.29, allocations: 0.75 kB / 3.693 GB, free: 25.28 MB / 490.7 MB Notification: Performance of matching and sorting (n=170): time 0.02484/10.31, allocations: 7.341 MB / 3.701 GB, free: 24.34 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002784/10.31, allocations: 410.7 kB / 3.701 GB, free: 23.88 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00295/10.32, allocations: 1.482 MB / 3.702 GB, free: 23.7 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004968/10.32, allocations: 58.14 kB / 3.703 GB, free: 23.67 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009646/10.32, allocations: 0.995 MB / 3.703 GB, free: 23.37 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007008/10.32, allocations: 0.5681 MB / 3.704 GB, free: 23.08 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002107/10.32, allocations: 47.12 kB / 3.704 GB, free: 23.08 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0002462/10.32, allocations: 385.6 kB / 3.704 GB, free: 22.78 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002318/10.32, allocations: 1.049 MB / 3.705 GB, free: 22.77 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002697/10.33, allocations: 1.508 MB / 3.707 GB, free: 22.27 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00273/10.33, allocations: 1.312 MB / 3.708 GB, free: 22.18 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.672e-05/10.33, allocations: 8.141 kB / 3.708 GB, free: 22.18 MB / 490.7 MB Notification: Performance of matching and sorting (n=259) (initialization): time 0.007888/10.34, allocations: 3.291 MB / 3.711 GB, free: 21.9 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.002226/10.34, allocations: 4.58 MB / 3.716 GB, free: 17.11 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.498e-05/10.34, allocations: 14.69 kB / 3.716 GB, free: 17.11 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006489/10.34, allocations: 0.9558 MB / 3.717 GB, free: 17.07 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002789/10.35, allocations: 472.2 kB / 3.717 GB, free: 17.07 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003836/10.35, allocations: 3.166 MB / 3.72 GB, free: 14.98 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003299/10.35, allocations: 232.6 kB / 3.721 GB, free: 14.97 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004858/10.36, allocations: 107.1 kB / 3.721 GB, free: 14.97 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.406e-05/10.36, allocations: 3.438 kB / 3.721 GB, free: 14.97 MB / 490.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.007366/10.36, allocations: 2.966 MB / 3.724 GB, free: 14.83 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.738e-05/10.36, allocations: 13.72 kB / 3.724 GB, free: 14.83 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001579/10.36, allocations: 353.5 kB / 3.724 GB, free: 14.8 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002899/10.37, allocations: 496.5 kB / 3.724 GB, free: 14.8 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005058/10.37, allocations: 4.048 MB / 3.728 GB, free: 11.97 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003098/10.38, allocations: 239.7 kB / 3.729 GB, free: 11.96 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003663/10.38, allocations: 97.16 kB / 3.729 GB, free: 11.96 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 50 * Number of states: 0 () * Number of discrete variables: 27 (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,valveOpening2.a,valveOpening2.b,valveOpening2.last,$PRE.valveOpening2.nextEvent,valveOpening2.nextEvent,pipe3.state_b.phase,pipe2.state_b.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (223): * Single equations (assignments): 213 * Array equations: 2 * Algorithm blocks: 2 * Record equations: 2 * 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,3 19} Notification: Performance of prepare postOptimizeDAE: time 0.0007701/10.38, allocations: 305.2 kB / 3.729 GB, free: 11.79 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005167/10.38, allocations: 210.3 kB / 3.729 GB, free: 11.69 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0129/10.39, allocations: 7.76 MB / 3.737 GB, free: 11 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.472e-05/10.39, allocations: 85.73 kB / 3.737 GB, free: 10.99 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.096e-06/10.39, allocations: 0.6562 kB / 3.737 GB, free: 10.99 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01068/10.4, allocations: 6.792 MB / 3.744 GB, free: 10.05 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01853/10.42, allocations: 10.77 MB / 3.754 GB, free: 9.305 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.966e-05/10.42, allocations: 2.875 kB / 3.754 GB, free: 9.305 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002043/10.42, allocations: 342.4 kB / 3.754 GB, free: 9.305 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006819/10.43, allocations: 2.494 MB / 3.757 GB, free: 9.203 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004718/10.43, allocations: 68.33 kB / 3.757 GB, free: 9.203 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004952/10.43, allocations: 4.108 MB / 3.761 GB, free: 23.09 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.602e-06/10.43, allocations: 0 / 3.761 GB, free: 23.09 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01379/10.45, allocations: 7.659 MB / 3.768 GB, free: 22.41 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002135/10.45, allocations: 0.7469 MB / 3.769 GB, free: 22.08 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008146/10.45, allocations: 53.97 kB / 3.769 GB, free: 22.08 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002866/10.45, allocations: 200.2 kB / 3.769 GB, free: 22.07 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004729/10.45, allocations: 133.3 kB / 3.769 GB, free: 22.07 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002497/10.45, allocations: 75.34 kB / 3.77 GB, free: 22.07 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.002594/10.46, allocations: 1.228 MB / 3.771 GB, free: 21.91 MB / 0.4948 GB Notification: Performance of sort global known variables: time 1.216e-06/10.46, allocations: 0 / 3.771 GB, free: 21.91 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.01093/10.47, allocations: 2.804 MB / 3.773 GB, free: 21.79 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 10 (pipe1.mediums[1].p,pipe1.mediums[1].h,valveIncompressible.filter.x[1],valveIncompressible.filter.x[2],valveIncompressible1.filter.x[1],valveIncompressible1.filter.x[2],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,$cse10.phase,$cse10.region,$cse11.phase,$cse11.region,$cse18.phase,$cse18.region,$cse19.phase,$cse19.region,$cse21.phase,$cse21.region,$cse22.phase,$cse22.region,$cse27.phase,$cse27.region,$cse28.phase,$cse28.region,$cse30.phase,$cse30.region,$cse33.phase,$cse33.region,$cse35.region3boundary,$cse36.region3boundary,$cse37.phase,$cse37.region,$cse39.phase,$cse39.region,$cse41.region3boundary,$cse42.region3boundary,$cse43.phase,$cse43.region,$cse45.phase,$cse45.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 (168): * Single equations (assignments): 143 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 19 * 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,3 28} Notification: Performance of Backend phase and start with SimCode phase: time 0.01248/10.48, allocations: 2.856 MB / 3.776 GB, free: 21.47 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.01119/10.49, allocations: 5.17 MB / 3.781 GB, free: 20.74 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 7.495e-06/10.49, allocations: 0 / 3.781 GB, free: 20.74 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.004576/10.5, allocations: 2.29 MB / 3.784 GB, free: 19.71 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005614/10.5, allocations: 0.8872 MB / 3.784 GB, free: 19.52 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.6039/11.11, allocations: 125.8 MB / 3.907 GB, free: 54.91 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002284/11.11, allocations: 2.298 MB / 3.91 GB, free: 54.11 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.006961/11.12, allocations: 2.38 MB / 3.912 GB, free: 54.02 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008536/11.12, allocations: 155.9 kB / 3.912 GB, free: 54.02 MB / 0.4948 GB Notification: Performance of SimCode: time 2.029e-06/11.12, allocations: 4 kB / 3.912 GB, free: 54.02 MB / 0.4948 GB Notification: Performance of Templates: time 0.1695/11.29, allocations: 91.16 MB / 4.001 GB, free: 13.26 MB / 0.4948 GB