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.1_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes13") Notification: Performance of loadModel(ModelicaTest): time 1.827/1.827, allocations: 209.3 MB / 221.9 MB, free: 7.734 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.872e-05/2.878e-05, allocations: 4 kB / 273.1 MB, free: 3.652 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1037/0.1038, allocations: 48.69 MB / 321.8 MB, free: 2.863 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.101/6.204, allocations: 2.546 GB / 2.86 GB, free: 84.8 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001995/6.205, allocations: 79.08 kB / 2.86 GB, free: 84.76 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.761/9.966, allocations: 0.8408 GB / 3.701 GB, free: 30.55 MB / 474.7 MB Notification: Performance of FrontEnd: time 2.262e-06/9.966, allocations: 3.969 kB / 3.701 GB, free: 30.55 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0002017/9.966, allocations: 64.62 kB / 3.701 GB, free: 30.54 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: 472 * Number of variables: 472 Notification: Performance of Generate backend data structure: time 0.01268/9.979, allocations: 3.691 MB / 3.705 GB, free: 28.82 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.214e-05/9.979, allocations: 10.31 kB / 3.705 GB, free: 28.82 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007197/9.986, allocations: 0.7588 MB / 3.705 GB, free: 28.7 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006482/9.993, allocations: 1.931 MB / 3.707 GB, free: 28.25 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002149/9.993, allocations: 162.2 kB / 3.707 GB, free: 28.25 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005098/9.994, allocations: 178.7 kB / 3.707 GB, free: 28.25 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01017/10, allocations: 3.247 MB / 3.711 GB, free: 27.79 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.838e-05/10, allocations: 6.844 kB / 3.711 GB, free: 27.79 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003367/10, allocations: 83.89 kB / 3.711 GB, free: 27.79 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002195/10, allocations: 154.7 kB / 3.711 GB, free: 27.78 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00827/10.01, allocations: 2.856 MB / 3.714 GB, free: 27.77 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.02032/10.03, allocations: 14.04 MB / 3.727 GB, free: 19.25 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005184/10.04, allocations: 1.939 MB / 3.729 GB, free: 19.22 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001834/10.04, allocations: 0.9398 MB / 3.73 GB, free: 19.21 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0422/10.08, allocations: 18.91 MB / 3.749 GB, free: 23.38 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005152/10.09, allocations: 1.54 MB / 3.75 GB, free: 23.25 MB / 490.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001435/10.09, allocations: 169.5 kB / 3.75 GB, free: 23.18 MB / 490.7 MB Notification: Performance of pre-optimization done (n=142): time 5.664e-06/10.09, allocations: 4.969 kB / 3.75 GB, free: 23.18 MB / 490.7 MB Notification: Performance of matching and sorting (n=154): time 0.0232/10.11, allocations: 6.751 MB / 3.757 GB, free: 22.24 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001979/10.11, allocations: 256 kB / 3.757 GB, free: 21.95 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002475/10.12, allocations: 1.328 MB / 3.758 GB, free: 21.77 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003614/10.12, allocations: 62.47 kB / 3.759 GB, free: 21.74 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007013/10.12, allocations: 0.8462 MB / 3.759 GB, free: 21.3 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005391/10.12, allocations: 0.5113 MB / 3.76 GB, free: 20.98 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001774/10.12, allocations: 36.97 kB / 3.76 GB, free: 20.98 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.00024/10.12, allocations: 384.7 kB / 3.76 GB, free: 20.67 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001786/10.12, allocations: 0.9021 MB / 3.761 GB, free: 20.66 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002121/10.12, allocations: 1.307 MB / 3.762 GB, free: 20.22 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002164/10.12, allocations: 1.148 MB / 3.764 GB, free: 20.11 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.044e-05/10.12, allocations: 3.188 kB / 3.764 GB, free: 20.11 MB / 490.7 MB Notification: Performance of matching and sorting (n=226) (initialization): time 0.006914/10.13, allocations: 2.808 MB / 3.766 GB, free: 19.89 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.00211/10.13, allocations: 4.255 MB / 3.77 GB, free: 15.43 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.647e-05/10.13, allocations: 13.31 kB / 3.77 GB, free: 15.43 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003895/10.14, allocations: 0.5885 MB / 3.771 GB, free: 15.39 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002695/10.14, allocations: 441.8 kB / 3.771 GB, free: 15.38 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003149/10.14, allocations: 2.817 MB / 3.774 GB, free: 13.3 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003023/10.15, allocations: 238.2 kB / 3.774 GB, free: 13.27 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003249/10.15, allocations: 89.56 kB / 3.775 GB, free: 13.27 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.458e-05/10.15, allocations: 4.344 kB / 3.775 GB, free: 13.27 MB / 490.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005695/10.15, allocations: 2.529 MB / 3.777 GB, free: 12.56 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.728e-05/10.15, allocations: 10.22 kB / 3.777 GB, free: 12.56 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000892/10.15, allocations: 193.5 kB / 3.777 GB, free: 12.5 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002499/10.15, allocations: 459.1 kB / 3.778 GB, free: 12.45 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001667/10.16, allocations: 1.872 MB / 3.779 GB, free: 10.77 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002139/10.16, allocations: 229 kB / 3.78 GB, free: 10.71 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002543/10.16, allocations: 89.84 kB / 3.78 GB, free: 10.7 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 48 * Number of states: 0 () * Number of discrete variables: 27 (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,valveOpening2.a,valveOpening2.b,valveOpening2.last,$PRE.valveOpening2.nextEvent,valveOpening2.nextEvent,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.0006804/10.16, allocations: 285.5 kB / 3.78 GB, free: 10.44 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004894/10.16, allocations: 200.3 kB / 3.78 GB, free: 10.33 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01129/10.17, allocations: 7.35 MB / 3.787 GB, free: 7.086 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.656e-05/10.17, allocations: 84.86 kB / 3.787 GB, free: 7.066 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.394e-06/10.17, allocations: 0 / 3.787 GB, free: 7.066 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.009465/10.18, allocations: 6.439 MB / 3.794 GB, free: 3.984 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01922/10.2, allocations: 10.24 MB / 3.804 GB, free: 11.74 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.25e-05/10.2, allocations: 0 / 3.804 GB, free: 11.74 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001983/10.2, allocations: 338.3 kB / 3.804 GB, free: 11.46 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004375/10.21, allocations: 1.571 MB / 3.806 GB, free: 10.18 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003887/10.21, allocations: 58.84 kB / 3.806 GB, free: 10.13 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003986/10.21, allocations: 3.456 MB / 3.809 GB, free: 6.785 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.17e-06/10.21, allocations: 0 / 3.809 GB, free: 6.785 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01339/10.22, allocations: 6.942 MB / 3.816 GB, free: 472 kB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.3143/10.54, allocations: 0.7697 MB / 3.817 GB, free: 0 / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008978/10.54, allocations: 46.27 kB / 3.817 GB, free: 60.97 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002368/10.54, allocations: 182.5 kB / 3.817 GB, free: 60.97 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003932/10.54, allocations: 129.9 kB / 3.817 GB, free: 60.97 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002409/10.54, allocations: 67.81 kB / 3.817 GB, free: 60.97 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.002518/10.55, allocations: 1.126 MB / 3.818 GB, free: 60.81 MB / 0.4948 GB Notification: Performance of sort global known variables: time 1.022e-06/10.55, allocations: 0.5938 kB / 3.818 GB, free: 60.81 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.01074/10.56, allocations: 2.674 MB / 3.821 GB, free: 60.81 MB / 0.4948 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: 53 ($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,valveOpening2.a,valveOpening2.b,valveOpening2.last,valveOpening2.nextEvent) * 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 (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.01273/10.57, allocations: 2.887 MB / 3.824 GB, free: 60.65 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.009632/10.58, allocations: 4.404 MB / 3.828 GB, free: 60.35 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 7.69e-06/10.58, allocations: 3.531 kB / 3.828 GB, free: 60.35 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.004172/10.58, allocations: 2.157 MB / 3.83 GB, free: 60.22 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005989/10.59, allocations: 0.8897 MB / 3.831 GB, free: 60.2 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2747/10.86, allocations: 125 MB / 3.953 GB, free: 42.42 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001857/10.87, allocations: 2.132 MB / 3.955 GB, free: 40.83 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001006/10.87, allocations: 180.7 kB / 3.955 GB, free: 40.68 MB / 0.4948 GB Notification: Performance of SimCode: time 1.878e-06/10.87, allocations: 0 / 3.955 GB, free: 40.68 MB / 0.4948 GB Notification: Performance of Templates: time 0.4595/11.33, allocations: 110.2 MB / 4.063 GB, free: 53.68 MB / 0.4948 GB