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_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes18") Notification: Performance of loadModel(ModelicaTest): time 2.178/2.178, allocations: 235 MB / 247.6 MB, free: 14.39 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.027e-05/3.048e-05, allocations: 4 kB / 304.9 MB, free: 5.656 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3235/0.3236, allocations: 54.85 MB / 359.8 MB, free: 2.652 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.294/6.618, allocations: 2.678 GB / 3.029 GB, free: 98.93 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002243/6.618, allocations: 79.64 kB / 3.029 GB, free: 98.89 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.587/11.2, allocations: 1.008 GB / 4.037 GB, free: 25.49 MB / 0.5105 GB Notification: Performance of FrontEnd: time 2.103e-06/11.21, allocations: 0 / 4.037 GB, free: 25.49 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 0.000311/11.21, allocations: 68.45 kB / 4.037 GB, free: 25.48 MB / 0.5105 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.01729/11.22, allocations: 4.235 MB / 4.041 GB, free: 23.2 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 4.723e-05/11.22, allocations: 12.88 kB / 4.041 GB, free: 23.2 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009242/11.23, allocations: 0.9445 MB / 4.042 GB, free: 22.96 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0081/11.24, allocations: 2.187 MB / 4.044 GB, free: 21.96 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003791/11.24, allocations: 203.8 kB / 4.044 GB, free: 21.88 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001061/11.24, allocations: 224.9 kB / 4.044 GB, free: 21.8 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01223/11.25, allocations: 3.844 MB / 4.048 GB, free: 20.13 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.826e-05/11.25, allocations: 14.98 kB / 4.048 GB, free: 20.12 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006116/11.25, allocations: 97.34 kB / 4.048 GB, free: 20.06 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002573/11.25, allocations: 175.3 kB / 4.048 GB, free: 20.03 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01143/11.27, allocations: 3.399 MB / 4.052 GB, free: 17.92 MB / 0.5105 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.02677/11.29, allocations: 16.73 MB / 4.068 GB, free: 1.98 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.009911/11.3, allocations: 3.073 MB / 4.071 GB, free: 15.43 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002999/11.31, allocations: 1.237 MB / 4.072 GB, free: 14.3 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.4047/11.71, allocations: 18.62 MB / 4.09 GB, free: 38.89 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.006684/11.72, allocations: 1.844 MB / 4.092 GB, free: 38.77 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=192): time 6.645e-06/11.72, allocations: 0 / 4.092 GB, free: 38.77 MB / 0.5261 GB Notification: Performance of matching and sorting (n=212): time 0.03448/11.75, allocations: 8.636 MB / 4.101 GB, free: 37.94 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.632e-05/11.75, allocations: 257.4 kB / 4.101 GB, free: 37.66 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003121/11.76, allocations: 1.434 MB / 4.102 GB, free: 37.43 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0005653/11.76, allocations: 68.73 kB / 4.102 GB, free: 37.39 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009206/11.76, allocations: 0.9848 MB / 4.103 GB, free: 37 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.001015/11.76, allocations: 0.7056 MB / 4.104 GB, free: 36.65 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002451/11.76, allocations: 48.81 kB / 4.104 GB, free: 36.65 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0001731/11.76, allocations: 403.4 kB / 4.104 GB, free: 36.34 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002757/11.76, allocations: 1.122 MB / 4.105 GB, free: 36.33 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003472/11.76, allocations: 1.663 MB / 4.107 GB, free: 35.78 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003413/11.77, allocations: 1.4 MB / 4.108 GB, free: 35.7 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.068e-05/11.77, allocations: 7.328 kB / 4.108 GB, free: 35.69 MB / 0.5261 GB Notification: Performance of matching and sorting (n=309) (initialization): time 0.009544/11.78, allocations: 3.286 MB / 4.112 GB, free: 35.46 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.001132/11.78, allocations: 5.469 MB / 4.117 GB, free: 29.78 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.571e-05/11.78, allocations: 14.12 kB / 4.117 GB, free: 29.78 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001649/11.78, allocations: 331.5 kB / 4.117 GB, free: 29.74 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003991/11.78, allocations: 0.6009 MB / 4.118 GB, free: 29.74 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002091/11.79, allocations: 3.087 MB / 4.121 GB, free: 27.15 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0044/11.79, allocations: 338.4 kB / 4.121 GB, free: 27.14 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007678/11.79, allocations: 120.4 kB / 4.121 GB, free: 27.14 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.709e-05/11.79, allocations: 3.406 kB / 4.121 GB, free: 27.14 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.009037/11.8, allocations: 3.132 MB / 4.124 GB, free: 26.98 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.988e-05/11.8, allocations: 15.06 kB / 4.124 GB, free: 26.98 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001621/11.8, allocations: 324.9 kB / 4.125 GB, free: 26.95 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003865/11.81, allocations: 0.5932 MB / 4.125 GB, free: 26.95 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002092/11.81, allocations: 3.088 MB / 4.128 GB, free: 24.36 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003556/11.81, allocations: 333.2 kB / 4.129 GB, free: 24.34 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000632/11.81, allocations: 118.7 kB / 4.129 GB, free: 24.34 MB / 0.5261 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.0008979/11.81, allocations: 329.6 kB / 4.129 GB, free: 24.18 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006966/11.81, allocations: 225.7 kB / 4.129 GB, free: 24.06 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01495/11.83, allocations: 8.11 MB / 4.137 GB, free: 23.26 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.399e-05/11.83, allocations: 96.39 kB / 4.137 GB, free: 23.26 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.222e-05/11.83, allocations: 2.188 kB / 4.137 GB, free: 23.26 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01207/11.84, allocations: 7.017 MB / 4.144 GB, free: 22.3 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02642/11.87, allocations: 13.01 MB / 4.157 GB, free: 20.66 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.926e-05/11.87, allocations: 3.875 kB / 4.157 GB, free: 20.66 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002935/11.87, allocations: 485.9 kB / 4.157 GB, free: 20.66 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002355/11.87, allocations: 451.1 kB / 4.158 GB, free: 20.61 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005302/11.87, allocations: 79.41 kB / 4.158 GB, free: 20.61 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002166/11.88, allocations: 3.217 MB / 4.161 GB, free: 18.02 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.297e-06/11.88, allocations: 4.688 kB / 4.161 GB, free: 18.02 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01483/11.89, allocations: 8.098 MB / 4.169 GB, free: 16.59 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0023/11.89, allocations: 0.7985 MB / 4.17 GB, free: 16.24 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009247/11.9, allocations: 69.56 kB / 4.17 GB, free: 16.23 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003123/11.9, allocations: 239 kB / 4.17 GB, free: 16.22 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006415/11.9, allocations: 197.1 kB / 4.17 GB, free: 16.21 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003314/11.9, allocations: 91.33 kB / 4.17 GB, free: 16.21 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.00255/11.9, allocations: 1.181 MB / 4.171 GB, free: 16.05 MB / 0.5261 GB Notification: Performance of sort global known variables: time 1.183e-06/11.9, allocations: 0 / 4.171 GB, free: 16.05 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.01252/11.91, allocations: 2.917 MB / 4.174 GB, free: 15.94 MB / 0.5261 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.01301/11.93, allocations: 3.057 MB / 4.177 GB, free: 15.6 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.01252/11.94, allocations: 5.483 MB / 4.183 GB, free: 15.28 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.487e-05/11.94, allocations: 2.781 kB / 4.183 GB, free: 15.28 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.006051/11.95, allocations: 2.92 MB / 4.185 GB, free: 15.14 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007888/11.95, allocations: 1.132 MB / 4.187 GB, free: 15.11 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.6826/12.64, allocations: 128.5 MB / 4.312 GB, free: 72.09 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002834/12.64, allocations: 2.336 MB / 4.314 GB, free: 71.34 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001521/12.64, allocations: 242.2 kB / 4.314 GB, free: 71.34 MB / 0.5573 GB Notification: Performance of SimCode: time 2.069e-06/12.64, allocations: 1.031 kB / 4.314 GB, free: 71.34 MB / 0.5573 GB Notification: Performance of Templates: time 0.1901/12.83, allocations: 137.5 MB / 4.449 GB, free: 39.86 MB / 0.5573 GB