Running command: translateModel(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes18,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|junctionIdeal.medium.h|junctionIdeal.medium.p|junctionVolume.medium.h|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.BranchingPipes18") Notification: Performance of loadModel(ModelicaTest): time 2.23/2.23, allocations: 235 MB / 247.2 MB, free: 14.37 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.389e-05/3.396e-05, allocations: 7.984 kB / 304.9 MB, free: 5.156 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3264/0.3264, allocations: 54.84 MB / 359.8 MB, free: 3.129 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.438/6.765, allocations: 2.678 GB / 3.029 GB, free: 131.2 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002434/6.765, allocations: 75.03 kB / 3.029 GB, free: 131.2 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.666/11.43, allocations: 1.008 GB / 4.037 GB, free: 38.1 MB / 0.5261 GB Notification: Performance of FrontEnd: time 2.241e-06/11.43, allocations: 2.156 kB / 4.037 GB, free: 38.1 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 0.0002936/11.43, allocations: 70.56 kB / 4.037 GB, free: 38.09 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: 575 * Number of variables: 575 Notification: Performance of Generate backend data structure: time 0.01668/11.45, allocations: 4.236 MB / 4.041 GB, free: 36.31 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 4.199e-05/11.45, allocations: 8.781 kB / 4.041 GB, free: 36.31 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009476/11.46, allocations: 0.9355 MB / 4.042 GB, free: 36.16 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00752/11.47, allocations: 2.198 MB / 4.044 GB, free: 35.7 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000342/11.47, allocations: 199.9 kB / 4.044 GB, free: 35.69 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009506/11.47, allocations: 224.8 kB / 4.044 GB, free: 35.69 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01205/11.48, allocations: 3.841 MB / 4.048 GB, free: 35.09 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.82e-05/11.48, allocations: 10.12 kB / 4.048 GB, free: 35.09 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004271/11.48, allocations: 96.97 kB / 4.048 GB, free: 35.09 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002613/11.48, allocations: 172.7 kB / 4.048 GB, free: 35.09 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01127/11.49, allocations: 3.4 MB / 4.052 GB, free: 35.07 MB / 0.5261 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.02785/11.52, allocations: 16.73 MB / 4.068 GB, free: 24.97 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.008083/11.53, allocations: 3.017 MB / 4.071 GB, free: 24.37 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002835/11.53, allocations: 1.24 MB / 4.072 GB, free: 24.36 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.04213/11.57, allocations: 18.62 MB / 4.09 GB, free: 12.8 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.006462/11.58, allocations: 1.837 MB / 4.092 GB, free: 12.67 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=192): time 6.807e-06/11.58, allocations: 2.5 kB / 4.092 GB, free: 12.67 MB / 0.5261 GB Notification: Performance of matching and sorting (n=212): time 0.03294/11.61, allocations: 8.662 MB / 4.1 GB, free: 27.55 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002039/11.61, allocations: 262.8 kB / 4.101 GB, free: 27.26 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003006/11.61, allocations: 1.426 MB / 4.102 GB, free: 27.02 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 0.000583/11.62, allocations: 68.27 kB / 4.102 GB, free: 26.99 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.001013/11.62, allocations: 1.053 MB / 4.103 GB, free: 26.57 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.0009848/11.62, allocations: 0.7089 MB / 4.104 GB, free: 26.12 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002516/11.62, allocations: 45.53 kB / 4.104 GB, free: 26.12 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0002728/11.62, allocations: 403.1 kB / 4.104 GB, free: 25.81 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002802/11.62, allocations: 1.121 MB / 4.105 GB, free: 25.8 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003562/11.62, allocations: 1.665 MB / 4.107 GB, free: 25.26 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00341/11.63, allocations: 1.396 MB / 4.108 GB, free: 25.17 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.151e-05/11.63, allocations: 3.625 kB / 4.108 GB, free: 25.17 MB / 0.5417 GB Notification: Performance of matching and sorting (n=309) (initialization): time 0.009714/11.64, allocations: 3.4 MB / 4.112 GB, free: 24.87 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.002725/11.64, allocations: 5.659 MB / 4.117 GB, free: 18.95 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.85e-05/11.64, allocations: 15.72 kB / 4.117 GB, free: 18.95 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001622/11.64, allocations: 325.5 kB / 4.118 GB, free: 18.91 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003989/11.65, allocations: 0.5988 MB / 4.118 GB, free: 18.91 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002945/11.65, allocations: 3.099 MB / 4.121 GB, free: 16.31 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004306/11.65, allocations: 333.9 kB / 4.122 GB, free: 16.3 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007269/11.65, allocations: 125 kB / 4.122 GB, free: 16.3 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 1.397e-05/11.65, allocations: 2.844 kB / 4.122 GB, free: 16.3 MB / 0.5417 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.008314/11.66, allocations: 3.121 MB / 4.125 GB, free: 16.14 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.149e-05/11.66, allocations: 12.03 kB / 4.125 GB, free: 16.14 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001566/11.66, allocations: 334.7 kB / 4.125 GB, free: 16.11 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003884/11.67, allocations: 0.593 MB / 4.126 GB, free: 16.11 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002888/11.67, allocations: 3.091 MB / 4.129 GB, free: 13.51 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004253/11.68, allocations: 331.2 kB / 4.129 GB, free: 13.5 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007058/11.68, allocations: 120.9 kB / 4.129 GB, free: 13.5 MB / 0.5417 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 62 * Number of states: 0 () * Number of discrete variables: 31 (valve2.state_b.phase,valve2.state_a.phase,valve1.state_b.phase,valve1.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,junctionIdeal.medium.phase,junctionVolume.medium.phase,pipe3.state_a.phase,pipe3.state_b.phase,pipe2.state_a.phase,pipe2.state_b.phase,pipe1.state_b.phase,pipe1.state_a.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (287): * Single equations (assignments): 280 * 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: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 5 {1 1,1 1,1 1,1 6,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0009291/11.68, allocations: 325.3 kB / 4.129 GB, free: 13.32 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006658/11.68, allocations: 233.6 kB / 4.13 GB, free: 13.2 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0149/11.69, allocations: 8.104 MB / 4.137 GB, free: 12.39 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.03e-05/11.69, allocations: 90.7 kB / 4.138 GB, free: 12.39 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.263e-05/11.69, allocations: 2.953 kB / 4.138 GB, free: 12.39 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01219/11.71, allocations: 7.019 MB / 4.144 GB, free: 11.43 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02548/11.73, allocations: 13.01 MB / 4.157 GB, free: 9.781 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.418e-05/11.73, allocations: 7.922 kB / 4.157 GB, free: 9.777 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002828/11.73, allocations: 481.6 kB / 4.158 GB, free: 9.777 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002172/11.74, allocations: 453.9 kB / 4.158 GB, free: 9.73 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000532/11.74, allocations: 84.25 kB / 4.158 GB, free: 9.73 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002904/11.74, allocations: 3.22 MB / 4.161 GB, free: 7.129 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.807e-06/11.74, allocations: 9.406 kB / 4.161 GB, free: 7.129 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01416/11.75, allocations: 8.093 MB / 4.169 GB, free: 5.695 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002296/11.76, allocations: 0.8007 MB / 4.17 GB, free: 5.348 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008195/11.76, allocations: 67.95 kB / 4.17 GB, free: 5.348 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003012/11.76, allocations: 236.4 kB / 4.17 GB, free: 5.332 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005468/11.76, allocations: 193.1 kB / 4.17 GB, free: 5.328 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000293/11.76, allocations: 93.8 kB / 4.171 GB, free: 5.328 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.002438/11.76, allocations: 1.181 MB / 4.172 GB, free: 5.168 MB / 0.5417 GB Notification: Performance of sort global known variables: time 8.75e-07/11.76, allocations: 0 / 4.172 GB, free: 5.168 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.01212/11.78, allocations: 2.911 MB / 4.175 GB, free: 4.812 MB / 0.5417 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 23 * Number of states: 9 (pipe1.mediums[1].p,pipe1.mediums[1].h,pipe2.mediums[1].p,pipe2.mediums[1].h,pipe3.mediums[1].p,pipe3.mediums[1].h,junctionIdeal.medium.p,junctionIdeal.medium.h,junctionVolume.medium.h) * Number of discrete variables: 59 ($cse3.phase,$cse3.region,$cse5.region3boundary,$cse6.region3boundary,$cse7.phase,$cse7.region,$cse12.phase,$cse12.region,$cse18.phase,$cse18.region,$cse19.phase,$cse19.region,$cse23.phase,$cse23.region,$cse24.phase,$cse24.region,$cse30.phase,$cse30.region,$cse31.phase,$cse31.region,$cse35.phase,$cse35.region,$cse38.phase,$cse38.region,$cse40.region3boundary,$cse41.region3boundary,$cse42.phase,$cse42.region,$cse44.region3boundary,$cse45.region3boundary,$cse46.phase,$cse46.region,$cse48.phase,$cse48.region,$cse49.region3boundary,$cse50.region3boundary,$cse51.phase,$cse51.region,$cse52.phase,$cse52.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,junctionIdeal.medium.phase,junctionVolume.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 (237): * Single equations (assignments): 206 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 24 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 5 {1 1,1 1,2 4,1 1,1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.01309/11.79, allocations: 3.066 MB / 4.178 GB, free: 4.012 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.01214/11.8, allocations: 5.548 MB / 4.183 GB, free: 1.887 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 1.277e-05/11.8, allocations: 3.531 kB / 4.183 GB, free: 1.887 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.006082/11.81, allocations: 2.931 MB / 4.186 GB, free: 0.6289 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007198/11.81, allocations: 1.137 MB / 4.187 GB, free: 372 kB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.6798/12.49, allocations: 129.1 MB / 4.313 GB, free: 55.74 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002418/12.5, allocations: 2.39 MB / 4.315 GB, free: 54.93 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 0.008084/12.5, allocations: 2.697 MB / 4.318 GB, free: 54.83 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001216/12.51, allocations: 200.3 kB / 4.318 GB, free: 54.82 MB / 0.5573 GB Notification: Performance of SimCode: time 1.793e-06/12.51, allocations: 0.5625 kB / 4.318 GB, free: 54.82 MB / 0.5573 GB Notification: Performance of Templates: time 0.185/12.69, allocations: 98.64 MB / 4.414 GB, free: 3.094 MB / 0.5573 GB