Running command: translateModel(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=10000,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|valve1.filter.x.1.|valve1.filter.x.2.|valve2.filter.x.1.|valve2.filter.x.2.|valveOpening1.a|valveOpening1.b|valveOpening1.last|valveOpening1.nextEvent|valveOpening2.a|valveOpening2.b|valveOpening2.last|valveOpening2.nextEvent",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes1") Notification: Performance of loadModel(ModelicaTest): time 2.236/2.236, allocations: 249.5 MB / 261.6 MB, free: 2.16 MB / 202.8 MB Notification: Performance of FrontEnd - loaded program: time 3.229e-05/3.248e-05, allocations: 4 kB / 323.4 MB, free: 4.32 MB / 266.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3164/0.3165, allocations: 58.83 MB / 382.2 MB, free: 10.33 MB / 314.8 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.351/6.668, allocations: 2.825 GB / 3.198 GB, free: 153.1 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000265/6.668, allocations: 82.45 kB / 3.199 GB, free: 153.1 MB / 0.5105 GB Notification: Performance of FrontEnd - DAE generated: time 3.212/9.88, allocations: 0.7995 GB / 3.998 GB, free: 4.086 MB / 0.5261 GB Notification: Performance of FrontEnd: time 3.403e-06/9.88, allocations: 0 / 3.998 GB, free: 4.086 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 0.0003771/9.881, allocations: 67.88 kB / 3.998 GB, free: 4.02 MB / 0.5261 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 518 * Number of variables: 518 Notification: Performance of Generate backend data structure: time 0.02057/9.901, allocations: 3.965 MB / 4.002 GB, free: 15.97 MB / 0.5418 GB Notification: Performance of prepare preOptimizeDAE: time 5.108e-05/9.901, allocations: 19.92 kB / 4.002 GB, free: 15.95 MB / 0.5418 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008039/9.909, allocations: 0.8358 MB / 4.003 GB, free: 15.12 MB / 0.5418 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007348/9.917, allocations: 2.091 MB / 4.005 GB, free: 12.97 MB / 0.5418 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002937/9.917, allocations: 171.7 kB / 4.005 GB, free: 12.8 MB / 0.5418 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007769/9.918, allocations: 199.9 kB / 4.005 GB, free: 12.61 MB / 0.5418 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01112/9.929, allocations: 3.691 MB / 4.009 GB, free: 8.711 MB / 0.5418 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.893e-05/9.929, allocations: 7.938 kB / 4.009 GB, free: 8.703 MB / 0.5418 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004111/9.929, allocations: 91.95 kB / 4.009 GB, free: 8.613 MB / 0.5418 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002961/9.93, allocations: 163.7 kB / 4.009 GB, free: 8.453 MB / 0.5418 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01015/9.94, allocations: 3.404 MB / 4.012 GB, free: 5.047 MB / 0.5418 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.3684/10.31, allocations: 14.92 MB / 4.027 GB, free: 34.52 MB / 0.5418 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005909/10.31, allocations: 2.138 MB / 4.029 GB, free: 34.5 MB / 0.5418 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001915/10.32, allocations: 1.092 MB / 4.03 GB, free: 34.49 MB / 0.5418 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0555/10.37, allocations: 24.61 MB / 4.054 GB, free: 19.49 MB / 0.5418 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005388/10.38, allocations: 1.709 MB / 4.056 GB, free: 19.37 MB / 0.5418 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001527/10.38, allocations: 199.2 kB / 4.056 GB, free: 19.32 MB / 0.5418 GB Notification: Performance of pre-optimization done (n=162): time 5.844e-06/10.38, allocations: 0 / 4.056 GB, free: 19.32 MB / 0.5418 GB Notification: Performance of matching and sorting (n=174): time 0.024/10.4, allocations: 7.49 MB / 4.063 GB, free: 18.37 MB / 0.5418 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001062/10.4, allocations: 423.6 kB / 4.064 GB, free: 17.89 MB / 0.5418 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002748/10.41, allocations: 1.546 MB / 4.065 GB, free: 17.67 MB / 0.5418 GB Notification: Performance of collectPreVariables (initialization): time 0.0003106/10.41, allocations: 61.67 kB / 4.065 GB, free: 17.64 MB / 0.5418 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008758/10.41, allocations: 0.9787 MB / 4.066 GB, free: 17.35 MB / 0.5418 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005841/10.41, allocations: 0.5879 MB / 4.067 GB, free: 17.06 MB / 0.5418 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002116/10.41, allocations: 39.94 kB / 4.067 GB, free: 17.06 MB / 0.5418 GB Notification: Performance of setup shared object (initialization): time 0.0007236/10.41, allocations: 383.8 kB / 4.067 GB, free: 32.75 MB / 0.5574 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002047/10.41, allocations: 1.074 MB / 4.068 GB, free: 32.75 MB / 0.5574 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002304/10.41, allocations: 1.499 MB / 4.07 GB, free: 32.29 MB / 0.5574 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002525/10.42, allocations: 1.325 MB / 4.071 GB, free: 32.2 MB / 0.5574 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.929e-06/10.42, allocations: 5.906 kB / 4.071 GB, free: 32.2 MB / 0.5574 GB Notification: Performance of matching and sorting (n=257) (initialization): time 0.00746/10.42, allocations: 3.346 MB / 4.074 GB, free: 31.92 MB / 0.5574 GB Notification: Performance of prepare postOptimizeDAE: time 0.001925/10.42, allocations: 4.058 MB / 4.078 GB, free: 27.7 MB / 0.5574 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.272e-05/10.42, allocations: 15.94 kB / 4.078 GB, free: 27.7 MB / 0.5574 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006852/10.43, allocations: 0.9576 MB / 4.079 GB, free: 27.66 MB / 0.5574 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002924/10.43, allocations: 466.4 kB / 4.08 GB, free: 27.66 MB / 0.5574 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003685/10.44, allocations: 3.161 MB / 4.083 GB, free: 25.58 MB / 0.5574 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003118/10.44, allocations: 239.5 kB / 4.083 GB, free: 25.57 MB / 0.5574 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003211/10.44, allocations: 104.8 kB / 4.083 GB, free: 25.57 MB / 0.5574 GB Notification: Performance of prepare postOptimizeDAE: time 1.359e-05/10.44, allocations: 4.156 kB / 4.083 GB, free: 25.57 MB / 0.5574 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006846/10.45, allocations: 3.017 MB / 4.086 GB, free: 25.43 MB / 0.5574 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.194e-05/10.45, allocations: 12.72 kB / 4.086 GB, free: 25.43 MB / 0.5574 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001745/10.45, allocations: 356.2 kB / 4.086 GB, free: 25.39 MB / 0.5574 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002919/10.45, allocations: 492.9 kB / 4.087 GB, free: 25.39 MB / 0.5574 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004916/10.46, allocations: 4.049 MB / 4.091 GB, free: 22.57 MB / 0.5574 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002862/10.46, allocations: 233.3 kB / 4.091 GB, free: 22.56 MB / 0.5574 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002897/10.46, allocations: 102.2 kB / 4.091 GB, free: 22.56 MB / 0.5574 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 44 * Number of states: 0 () * Number of discrete variables: 29 (pipe3.state_a.phase,pipe2.state_a.phase,valve2.state_b.phase,valve2.state_a.phase,valve1.state_b.phase,valve1.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,pipe3.state_b.phase,pipe2.state_b.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (219): * Single equations (assignments): 209 * 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.0007433/10.46, allocations: 298.2 kB / 4.091 GB, free: 22.39 MB / 0.5574 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004387/10.46, allocations: 220 kB / 4.092 GB, free: 22.28 MB / 0.5574 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0124/10.48, allocations: 7.85 MB / 4.099 GB, free: 21.58 MB / 0.5574 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.438e-05/10.48, allocations: 78.11 kB / 4.099 GB, free: 21.58 MB / 0.5574 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.175e-06/10.48, allocations: 2 kB / 4.099 GB, free: 21.58 MB / 0.5574 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01019/10.49, allocations: 6.864 MB / 4.106 GB, free: 20.64 MB / 0.5574 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01854/10.5, allocations: 10.96 MB / 4.117 GB, free: 19.91 MB / 0.5574 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.496e-05/10.5, allocations: 0 / 4.117 GB, free: 19.91 MB / 0.5574 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002234/10.51, allocations: 351.6 kB / 4.117 GB, free: 19.91 MB / 0.5574 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006967/10.51, allocations: 2.533 MB / 4.12 GB, free: 19.82 MB / 0.5574 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004537/10.51, allocations: 63.8 kB / 4.12 GB, free: 19.82 MB / 0.5574 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0045/10.52, allocations: 4.112 MB / 4.124 GB, free: 17.71 MB / 0.5574 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.374e-06/10.52, allocations: 0 / 4.124 GB, free: 17.71 MB / 0.5574 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01296/10.53, allocations: 7.807 MB / 4.131 GB, free: 17.01 MB / 0.5574 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002182/10.53, allocations: 0.7799 MB / 4.132 GB, free: 16.74 MB / 0.5574 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000635/10.53, allocations: 54.25 kB / 4.132 GB, free: 16.74 MB / 0.5574 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002585/10.54, allocations: 192.9 kB / 4.132 GB, free: 16.73 MB / 0.5574 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004054/10.54, allocations: 147.7 kB / 4.132 GB, free: 16.73 MB / 0.5574 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002567/10.54, allocations: 74.47 kB / 4.133 GB, free: 16.73 MB / 0.5574 GB Notification: Performance of sorting global known variables: time 0.002665/10.54, allocations: 1.376 MB / 4.134 GB, free: 16.57 MB / 0.5574 GB Notification: Performance of sort global known variables: time 1.164e-06/10.54, allocations: 0 / 4.134 GB, free: 16.57 MB / 0.5574 GB Notification: Performance of remove unused functions: time 0.01072/10.55, allocations: 2.863 MB / 4.137 GB, free: 16.46 MB / 0.5574 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,valve1.filter.x[1],valve1.filter.x[2],valve2.filter.x[1],valve2.filter.x[2],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,$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,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 (170): * Single equations (assignments): 145 * 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.01205/10.56, allocations: 2.868 MB / 4.139 GB, free: 16.16 MB / 0.5574 GB Notification: Performance of simCode: created initialization part: time 0.01045/10.57, allocations: 5.294 MB / 4.145 GB, free: 15.59 MB / 0.5574 GB Notification: Performance of simCode: created event and clocks part: time 7.752e-06/10.57, allocations: 3 kB / 4.145 GB, free: 15.59 MB / 0.5574 GB Notification: Performance of simCode: created simulation system equations: time 0.004256/10.58, allocations: 2.344 MB / 4.147 GB, free: 15.45 MB / 0.5574 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00628/10.58, allocations: 0.9652 MB / 4.148 GB, free: 15.42 MB / 0.5574 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0115/10.6, allocations: 5.934 MB / 4.154 GB, free: 14.27 MB / 0.5574 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00235/10.6, allocations: 2.301 MB / 4.156 GB, free: 13.49 MB / 0.5574 GB Notification: Performance of simCode: alias equations: time 0.006547/10.61, allocations: 2.442 MB / 4.158 GB, free: 13.46 MB / 0.5574 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007228/10.61, allocations: 155.4 kB / 4.158 GB, free: 13.46 MB / 0.5574 GB Notification: Performance of SimCode: time 1.987e-06/10.61, allocations: 0 / 4.158 GB, free: 13.46 MB / 0.5574 GB Notification: Performance of Templates: time 0.6121/11.22, allocations: 93.99 MB / 4.25 GB, free: 73.79 MB / 0.573 GB