Running command: translateModel(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|junctionIdeal.medium.h|junctionIdeal.medium.p|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_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14") Notification: Performance of loadModel(ModelicaTest): time 1.847/1.847, allocations: 209.3 MB / 221.9 MB, free: 7.727 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.466e-05/3.47e-05, allocations: 4 kB / 273.1 MB, free: 3.66 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08427/0.08433, allocations: 48.69 MB / 321.8 MB, free: 2.871 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.046/6.131, allocations: 2.566 GB / 2.881 GB, free: 63.94 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002163/6.131, allocations: 76.88 kB / 2.881 GB, free: 63.9 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.989/10.12, allocations: 0.8797 GB / 3.76 GB, free: 29.91 MB / 474.7 MB Notification: Performance of FrontEnd: time 2.004e-06/10.12, allocations: 0 / 3.76 GB, free: 29.91 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0002774/10.12, allocations: 67.08 kB / 3.76 GB, free: 29.89 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: 532 * Number of variables: 532 Notification: Performance of Generate backend data structure: time 0.01425/10.13, allocations: 3.821 MB / 3.764 GB, free: 27.8 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.421e-05/10.13, allocations: 10.28 kB / 3.764 GB, free: 27.8 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008307/10.14, allocations: 0.8438 MB / 3.765 GB, free: 27.59 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007083/10.15, allocations: 2.089 MB / 3.767 GB, free: 26.64 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003521/10.15, allocations: 180.5 kB / 3.767 GB, free: 26.57 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009905/10.15, allocations: 203.1 kB / 3.767 GB, free: 26.52 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01054/10.16, allocations: 3.608 MB / 3.771 GB, free: 24.98 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.82e-05/10.16, allocations: 3.938 kB / 3.771 GB, free: 24.97 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000389/10.16, allocations: 88.98 kB / 3.771 GB, free: 24.92 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002373/10.16, allocations: 163.9 kB / 3.771 GB, free: 24.9 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009528/10.17, allocations: 3.156 MB / 3.774 GB, free: 23.91 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.02493/10.2, allocations: 15.44 MB / 3.789 GB, free: 12.12 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006604/10.2, allocations: 2.679 MB / 3.792 GB, free: 10.83 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002319/10.21, allocations: 1.122 MB / 3.793 GB, free: 9.977 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04029/10.25, allocations: 18.74 MB / 3.811 GB, free: 7.488 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005911/10.25, allocations: 1.685 MB / 3.813 GB, free: 6.066 MB / 490.7 MB Notification: Performance of pre-optimization done (n=169): time 6.487e-06/10.25, allocations: 0 / 3.813 GB, free: 6.066 MB / 490.7 MB Notification: Performance of matching and sorting (n=185): time 0.3524/10.61, allocations: 7.699 MB / 3.82 GB, free: 46.18 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001169/10.61, allocations: 263.1 kB / 3.821 GB, free: 45.89 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00293/10.61, allocations: 1.34 MB / 3.822 GB, free: 45.72 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005388/10.61, allocations: 59.11 kB / 3.822 GB, free: 45.69 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009158/10.61, allocations: 0.9202 MB / 3.823 GB, free: 45.32 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009891/10.61, allocations: 0.6228 MB / 3.824 GB, free: 45 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002686/10.61, allocations: 38.31 kB / 3.824 GB, free: 45 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0001853/10.61, allocations: 399 kB / 3.824 GB, free: 44.69 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002507/10.61, allocations: 1.01 MB / 3.825 GB, free: 44.68 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003346/10.62, allocations: 1.492 MB / 3.826 GB, free: 44.19 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003234/10.62, allocations: 1.274 MB / 3.828 GB, free: 44.11 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.584e-05/10.62, allocations: 3.219 kB / 3.828 GB, free: 44.11 MB / 490.7 MB Notification: Performance of matching and sorting (n=266) (initialization): time 0.008277/10.63, allocations: 2.941 MB / 3.83 GB, free: 43.89 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.00106/10.63, allocations: 4.86 MB / 3.835 GB, free: 38.85 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.261e-05/10.63, allocations: 13.66 kB / 3.835 GB, free: 38.85 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00123/10.63, allocations: 234.1 kB / 3.835 GB, free: 38.82 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003287/10.63, allocations: 0.529 MB / 3.836 GB, free: 38.82 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001578/10.64, allocations: 2.43 MB / 3.838 GB, free: 36.75 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003724/10.64, allocations: 303.4 kB / 3.839 GB, free: 36.73 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006748/10.64, allocations: 107.3 kB / 3.839 GB, free: 36.73 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.508e-05/10.64, allocations: 3.5 kB / 3.839 GB, free: 36.73 MB / 490.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.007113/10.65, allocations: 2.798 MB / 3.841 GB, free: 36.59 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.168e-05/10.65, allocations: 15.31 kB / 3.842 GB, free: 36.59 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001158/10.65, allocations: 230.6 kB / 3.842 GB, free: 36.56 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003304/10.65, allocations: 0.5211 MB / 3.842 GB, free: 36.56 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001575/10.65, allocations: 2.431 MB / 3.845 GB, free: 34.49 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003129/10.66, allocations: 298.5 kB / 3.845 GB, free: 34.48 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005222/10.66, allocations: 109.3 kB / 3.845 GB, free: 34.48 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 55 * Number of states: 0 () * Number of discrete variables: 28 (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,valveOpening2.a,valveOpening2.b,valveOpening2.last,$PRE.valveOpening2.nextEvent,valveOpening2.nextEvent,junctionIdeal.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 (254): * Single equations (assignments): 248 * 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,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0008477/10.66, allocations: 310.3 kB / 3.845 GB, free: 34.3 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006024/10.66, allocations: 204.6 kB / 3.845 GB, free: 34.2 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0125/10.67, allocations: 7.48 MB / 3.853 GB, free: 33.52 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.295e-05/10.67, allocations: 87.28 kB / 3.853 GB, free: 33.52 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.218e-05/10.67, allocations: 3.062 kB / 3.853 GB, free: 33.52 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0099/10.68, allocations: 6.486 MB / 3.859 GB, free: 32.58 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02219/10.7, allocations: 12.05 MB / 3.871 GB, free: 31.04 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.098e-05/10.7, allocations: 3.781 kB / 3.871 GB, free: 31.04 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00226/10.71, allocations: 431.5 kB / 3.871 GB, free: 31.04 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0016/10.71, allocations: 355.6 kB / 3.872 GB, free: 31 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004095/10.71, allocations: 68.47 kB / 3.872 GB, free: 31 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001481/10.71, allocations: 2.527 MB / 3.874 GB, free: 28.93 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.609e-06/10.71, allocations: 11.66 kB / 3.874 GB, free: 28.93 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01186/10.72, allocations: 7.421 MB / 3.882 GB, free: 27.52 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002085/10.72, allocations: 0.7475 MB / 3.882 GB, free: 27.2 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006747/10.72, allocations: 57.97 kB / 3.882 GB, free: 27.2 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00255/10.73, allocations: 226.3 kB / 3.883 GB, free: 27.18 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004634/10.73, allocations: 174.5 kB / 3.883 GB, free: 27.17 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002561/10.73, allocations: 79.58 kB / 3.883 GB, free: 27.17 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.002146/10.73, allocations: 1.119 MB / 3.884 GB, free: 27.01 MB / 490.7 MB Notification: Performance of sort global known variables: time 8.46e-07/10.73, allocations: 3.406 kB / 3.884 GB, free: 27.01 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.01078/10.74, allocations: 2.716 MB / 3.887 GB, free: 26.91 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 23 * Number of states: 8 (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) * Number of discrete variables: 54 ($cse3.phase,$cse3.region,$cse5.region3boundary,$cse6.region3boundary,$cse7.phase,$cse7.region,$cse12.phase,$cse12.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.region3boundary,$cse39.region3boundary,$cse40.phase,$cse40.region,$cse42.phase,$cse42.region,$cse43.region3boundary,$cse44.region3boundary,$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,junctionIdeal.medium.phase) * 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 (212): * Single equations (assignments): 183 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 23 * 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,1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.01191/10.75, allocations: 2.86 MB / 3.889 GB, free: 26.61 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.01007/10.76, allocations: 4.878 MB / 3.894 GB, free: 26.28 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.281e-05/10.76, allocations: 3.781 kB / 3.894 GB, free: 26.28 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005107/10.77, allocations: 2.603 MB / 3.897 GB, free: 26.14 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006362/10.77, allocations: 0.984 MB / 3.898 GB, free: 26.11 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.6081/11.38, allocations: 125.7 MB / 4.02 GB, free: 58.45 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002177/11.38, allocations: 2.239 MB / 4.023 GB, free: 57.7 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001245/11.39, allocations: 213.8 kB / 4.023 GB, free: 57.7 MB / 0.4948 GB Notification: Performance of SimCode: time 2.192e-06/11.39, allocations: 0 / 4.023 GB, free: 57.7 MB / 0.4948 GB Notification: Performance of Templates: time 0.157/11.54, allocations: 116.8 MB / 4.137 GB, free: 29.96 MB / 0.4948 GB