Running command: translateModel(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes13,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|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.BranchingPipes13") Notification: Performance of loadModel(ModelicaTest): time 2.124/2.124, allocations: 235 MB / 247.6 MB, free: 14.38 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.405e-05/3.413e-05, allocations: 4 kB / 304.9 MB, free: 5.656 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3209/0.321, allocations: 54.85 MB / 359.8 MB, free: 2.68 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 5.823/6.144, allocations: 2.656 GB / 3.008 GB, free: 17.28 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001941/6.144, allocations: 75.97 kB / 3.008 GB, free: 17.21 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.027/10.17, allocations: 0.8624 GB / 3.87 GB, free: 34.95 MB / 0.5105 GB Notification: Performance of FrontEnd: time 2.651e-06/10.17, allocations: 0 / 3.87 GB, free: 34.95 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 0.0002328/10.17, allocations: 65.23 kB / 3.87 GB, free: 34.94 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: 476 * Number of variables: 476 Notification: Performance of Generate backend data structure: time 0.01461/10.19, allocations: 3.816 MB / 3.874 GB, free: 33.27 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 4.18e-05/10.19, allocations: 11.94 kB / 3.874 GB, free: 33.27 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007275/10.19, allocations: 0.7773 MB / 3.875 GB, free: 33.15 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006421/10.2, allocations: 1.949 MB / 3.877 GB, free: 32.71 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000274/10.2, allocations: 162.5 kB / 3.877 GB, free: 32.71 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007368/10.2, allocations: 186.3 kB / 3.877 GB, free: 32.71 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009398/10.21, allocations: 3.253 MB / 3.88 GB, free: 32.25 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.256e-05/10.21, allocations: 4.125 kB / 3.88 GB, free: 32.25 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003174/10.21, allocations: 83.81 kB / 3.88 GB, free: 32.25 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002281/10.21, allocations: 146.1 kB / 3.88 GB, free: 32.25 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007902/10.22, allocations: 2.874 MB / 3.883 GB, free: 32.24 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.0366/10.26, allocations: 14.06 MB / 3.897 GB, free: 23.72 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01271/10.27, allocations: 1.938 MB / 3.899 GB, free: 23.69 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003777/10.27, allocations: 0.9497 MB / 3.9 GB, free: 23.68 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.05869/10.33, allocations: 18.95 MB / 3.918 GB, free: 27.83 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004512/10.34, allocations: 1.558 MB / 3.92 GB, free: 27.71 MB / 0.5261 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001292/10.34, allocations: 161.8 kB / 3.92 GB, free: 27.63 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=146): time 5.104e-06/10.34, allocations: 0 / 3.92 GB, free: 27.63 MB / 0.5261 GB Notification: Performance of matching and sorting (n=158): time 0.02206/10.36, allocations: 6.74 MB / 3.927 GB, free: 26.7 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001552/10.36, allocations: 259.5 kB / 3.927 GB, free: 26.42 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002567/10.36, allocations: 1.334 MB / 3.928 GB, free: 26.24 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.000383/10.36, allocations: 53.95 kB / 3.928 GB, free: 26.21 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007508/10.36, allocations: 0.8498 MB / 3.929 GB, free: 25.77 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006347/10.36, allocations: 0.5243 MB / 3.929 GB, free: 25.44 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001749/10.36, allocations: 35.06 kB / 3.929 GB, free: 25.44 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0002374/10.36, allocations: 389.5 kB / 3.93 GB, free: 25.12 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001897/10.37, allocations: 0.921 MB / 3.931 GB, free: 25.12 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002294/10.37, allocations: 1.314 MB / 3.932 GB, free: 24.68 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002314/10.37, allocations: 1.155 MB / 3.933 GB, free: 24.6 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.235e-05/10.37, allocations: 2.969 kB / 3.933 GB, free: 24.6 MB / 0.5261 GB Notification: Performance of matching and sorting (n=230) (initialization): time 0.01193/10.38, allocations: 2.781 MB / 3.936 GB, free: 24.39 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.003639/10.39, allocations: 4.253 MB / 3.94 GB, free: 19.97 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.525e-05/10.39, allocations: 16.42 kB / 3.94 GB, free: 19.97 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.007587/10.39, allocations: 0.5919 MB / 3.941 GB, free: 19.94 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005487/10.4, allocations: 439.3 kB / 3.941 GB, free: 19.94 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006287/10.41, allocations: 2.825 MB / 3.944 GB, free: 17.86 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00622/10.41, allocations: 233.2 kB / 3.944 GB, free: 17.84 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008121/10.41, allocations: 97.02 kB / 3.944 GB, free: 17.84 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 2.454e-05/10.41, allocations: 8.688 kB / 3.944 GB, free: 17.84 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01217/10.43, allocations: 2.49 MB / 3.947 GB, free: 17.71 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.752e-05/10.43, allocations: 12.94 kB / 3.947 GB, free: 17.71 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001719/10.43, allocations: 198.5 kB / 3.947 GB, free: 17.68 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005485/10.43, allocations: 455.1 kB / 3.947 GB, free: 17.68 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003246/10.44, allocations: 1.876 MB / 3.949 GB, free: 16.12 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004721/10.44, allocations: 238.5 kB / 3.949 GB, free: 16.09 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005556/10.44, allocations: 89.83 kB / 3.949 GB, free: 16.09 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 48 * Number of states: 0 () * Number of discrete variables: 29 (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_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,pipe1.state_b.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (205): * Single equations (assignments): 199 * 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,2 9} Notification: Performance of prepare postOptimizeDAE: time 0.001327/10.44, allocations: 287.1 kB / 3.95 GB, free: 15.91 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001046/10.44, allocations: 192.7 kB / 3.95 GB, free: 15.81 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02198/10.47, allocations: 7.343 MB / 3.957 GB, free: 13.79 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.718e-05/10.47, allocations: 85.91 kB / 3.957 GB, free: 13.76 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.12e-05/10.47, allocations: 0 / 3.957 GB, free: 13.76 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.009383/10.48, allocations: 6.42 MB / 3.963 GB, free: 10.68 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01699/10.49, allocations: 10.2 MB / 3.973 GB, free: 6.309 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.532e-05/10.49, allocations: 0 / 3.973 GB, free: 6.309 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001927/10.5, allocations: 338 kB / 3.974 GB, free: 6.289 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004081/10.5, allocations: 1.598 MB / 3.975 GB, free: 5.957 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003829/10.5, allocations: 60.08 kB / 3.975 GB, free: 5.93 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003808/10.5, allocations: 3.465 MB / 3.979 GB, free: 3.262 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.209e-06/10.5, allocations: 0 / 3.979 GB, free: 3.262 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01771/10.52, allocations: 7.254 MB / 3.986 GB, free: 15.93 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002096/10.52, allocations: 0.7028 MB / 3.986 GB, free: 15.3 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006008/10.52, allocations: 51.94 kB / 3.986 GB, free: 15.25 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002067/10.53, allocations: 181.7 kB / 3.987 GB, free: 15.11 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003425/10.53, allocations: 127 kB / 3.987 GB, free: 15.03 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002299/10.53, allocations: 67.97 kB / 3.987 GB, free: 14.97 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.0024/10.53, allocations: 1.126 MB / 3.988 GB, free: 13.93 MB / 0.5417 GB Notification: Performance of sort global known variables: time 3.606e-06/10.53, allocations: 0 / 3.988 GB, free: 13.93 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.01064/10.54, allocations: 2.701 MB / 3.991 GB, free: 11.29 MB / 0.5417 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (pipe1.mediums[1].p,pipe1.mediums[1].h,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,$cse9.phase,$cse9.region,$cse10.phase,$cse10.region,$cse15.phase,$cse15.region,$cse16.phase,$cse16.region,$cse18.phase,$cse18.region,$cse19.phase,$cse19.region,$cse24.phase,$cse24.region,$cse25.phase,$cse25.region,$cse27.phase,$cse27.region,$cse30.phase,$cse30.region,$cse32.region3boundary,$cse33.region3boundary,$cse34.phase,$cse34.region,$cse36.phase,$cse36.region,$cse37.region3boundary,$cse38.region3boundary,$cse39.phase,$cse39.region,$cse41.phase,$cse41.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 (164): * Single equations (assignments): 138 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 20 * 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,2 16} Notification: Performance of Backend phase and start with SimCode phase: time 0.01311/10.55, allocations: 2.905 MB / 3.993 GB, free: 9.062 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.01054/10.56, allocations: 4.542 MB / 3.998 GB, free: 4.871 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 8.169e-06/10.56, allocations: 0 / 3.998 GB, free: 4.871 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.004473/10.57, allocations: 2.211 MB / 4 GB, free: 2.805 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005487/10.57, allocations: 0.9057 MB / 4.001 GB, free: 2.148 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.6258/11.2, allocations: 127.2 MB / 4.125 GB, free: 52.96 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002052/11.2, allocations: 2.137 MB / 4.127 GB, free: 52.18 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001005/11.2, allocations: 182.3 kB / 4.127 GB, free: 52.18 MB / 0.5417 GB Notification: Performance of SimCode: time 1.808e-06/11.2, allocations: 0 / 4.127 GB, free: 52.18 MB / 0.5417 GB Notification: Performance of Templates: time 0.4992/11.7, allocations: 110.7 MB / 4.236 GB, free: 60.7 MB / 0.5417 GB