Running command: translateModel(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes2,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.BranchingPipes2") Notification: Performance of loadModel(ModelicaTest): time 2.442/2.442, allocations: 234.9 MB / 250.1 MB, free: 9.801 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.358e-05/3.374e-05, allocations: 4 kB / 308 MB, free: 15.77 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3755/0.3756, allocations: 54.86 MB / 362.9 MB, free: 11.79 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes2): time 0.138/0.5136, allocations: 75.57 MB / 438.4 MB, free: 36 kB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.06755/0.5813, allocations: 29.02 MB / 467.4 MB, free: 2.945 MB / 394.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003936/0.5852, allocations: 107.2 kB / 467.6 MB, free: 2.84 MB / 394.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004835/0.5901, allocations: 1.073 MB / 468.6 MB, free: 1.762 MB / 394.7 MB Notification: Performance of NFTyping.typeBindings: time 0.02382/0.614, allocations: 5.417 MB / 474 MB, free: 12.33 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0259/0.64, allocations: 6.211 MB / 480.3 MB, free: 6.113 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.008692/0.6487, allocations: 2.888 MB / 483.1 MB, free: 3.223 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002576/0.6513, allocations: 1.008 MB / 484.1 MB, free: 2.215 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005676/0.6571, allocations: 1.691 MB / 485.8 MB, free: 0.5195 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.4101/1.067, allocations: 18.21 MB / 0.4922 GB, free: 10.31 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02481/1.092, allocations: 8.979 MB / 0.501 GB, free: 10.29 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 0.005058/1.097, allocations: 0.5748 MB / 0.5016 GB, free: 10.29 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001792/1.099, allocations: 0.6819 MB / 0.5022 GB, free: 10.29 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001571/1.101, allocations: 255.3 kB / 0.5025 GB, free: 10.27 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01566/1.116, allocations: 5.882 MB / 0.5082 GB, free: 7.477 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.15e-06/1.116, allocations: 4 kB / 0.5082 GB, free: 7.473 MB / 410.7 MB Notification: Performance of FrontEnd: time 3.827e-06/1.116, allocations: 0 / 0.5082 GB, free: 7.473 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0001446/1.117, allocations: 0 / 0.5082 GB, free: 7.473 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 467 * Number of variables: 467 Notification: Performance of Generate backend data structure: time 0.01433/1.131, allocations: 3.266 MB / 0.5114 GB, free: 4.781 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.895e-05/1.131, allocations: 8.031 kB / 0.5114 GB, free: 4.773 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007777/1.139, allocations: 0.7454 MB / 0.5121 GB, free: 4.23 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004771/1.144, allocations: 1.501 MB / 0.5136 GB, free: 3.371 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003049/1.144, allocations: 162.3 kB / 0.5138 GB, free: 3.285 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008154/1.145, allocations: 183 kB / 0.5139 GB, free: 3.164 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01224/1.157, allocations: 3.22 MB / 0.5171 GB, free: 1.375 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.781e-05/1.157, allocations: 7.094 kB / 0.5171 GB, free: 1.371 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004001/1.158, allocations: 80.97 kB / 0.5172 GB, free: 1.352 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003856/1.158, allocations: 164.2 kB / 0.5173 GB, free: 1.234 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01304/1.171, allocations: 3.132 MB / 0.5204 GB, free: 15.58 MB / 426.7 MB Warning: The model contains alias variables with redundant start and/or conflicting 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.02977/1.201, allocations: 13.58 MB / 0.5336 GB, free: 3.062 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008602/1.21, allocations: 2.031 MB / 0.5356 GB, free: 1.605 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06721/1.277, allocations: 19.03 MB / 0.5542 GB, free: 12.69 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.006856/1.284, allocations: 1.577 MB / 0.5558 GB, free: 11.46 MB / 458.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.00144/1.285, allocations: 156 kB / 0.5559 GB, free: 11.33 MB / 458.7 MB Notification: Performance of pre-optimization done (n=155): time 1.027e-05/1.285, allocations: 4 kB / 0.5559 GB, free: 11.32 MB / 458.7 MB Notification: Performance of matching and sorting (n=167): time 0.04334/1.329, allocations: 8.293 MB / 0.564 GB, free: 4.875 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001523/1.329, allocations: 182.8 kB / 0.5642 GB, free: 4.664 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003163/1.332, allocations: 1.232 MB / 0.5654 GB, free: 3.719 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005449/1.333, allocations: 54.89 kB / 0.5654 GB, free: 3.68 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001097/1.334, allocations: 0.8488 MB / 0.5663 GB, free: 3.105 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001148/1.335, allocations: 0.5592 MB / 0.5668 GB, free: 2.625 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002586/1.335, allocations: 39.69 kB / 0.5669 GB, free: 2.617 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0003076/1.336, allocations: 384.7 kB / 0.5672 GB, free: 2.262 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003942/1.339, allocations: 1.006 MB / 0.5682 GB, free: 1.586 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004616/1.344, allocations: 1.48 MB / 0.5696 GB, free: 328 kB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004494/1.349, allocations: 1.262 MB / 0.5709 GB, free: 15.5 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.06e-05/1.349, allocations: 5.312 kB / 0.5709 GB, free: 15.5 MB / 474.7 MB Notification: Performance of matching and sorting (n=245) (initialization): time 0.01168/1.361, allocations: 3.017 MB / 0.5738 GB, free: 13.38 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.002464/1.363, allocations: 5.034 MB / 0.5787 GB, free: 8.047 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.695e-05/1.363, allocations: 16 kB / 0.5788 GB, free: 8.031 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004803/1.368, allocations: 0.5157 MB / 0.5793 GB, free: 7.574 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004014/1.372, allocations: 479 kB / 0.5797 GB, free: 7.156 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003454/1.376, allocations: 2.699 MB / 0.5824 GB, free: 4.594 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004224/1.38, allocations: 255.7 kB / 0.5826 GB, free: 4.375 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007331/1.381, allocations: 98.47 kB / 0.5827 GB, free: 4.297 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.159e-05/1.381, allocations: 4 kB / 0.5827 GB, free: 4.293 MB / 474.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.009959/1.391, allocations: 2.776 MB / 0.5854 GB, free: 2.41 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.154e-05/1.391, allocations: 20.09 kB / 0.5854 GB, free: 2.391 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001039/1.392, allocations: 199.9 kB / 0.5856 GB, free: 2.227 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004217/1.396, allocations: 486 kB / 0.5861 GB, free: 1.797 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001953/1.398, allocations: 1.881 MB / 0.5879 GB, free: 15.98 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003388/1.402, allocations: 256.7 kB / 0.5882 GB, free: 15.75 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005407/1.402, allocations: 93.91 kB / 0.5883 GB, free: 15.68 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 57 * Number of states: 0 () * Number of discrete variables: 29 (valveIncompressible1.state_b.phase,valveIncompressible1.state_a.phase,valveIncompressible.state_b.phase,valveIncompressible.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_a.phase,pipe2.state_a.phase,pipe1.state_a.phase,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 (224): * Single equations (assignments): 218 * 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 5} Notification: Performance of prepare postOptimizeDAE: time 0.00224/1.404, allocations: 0.6476 MB / 0.5889 GB, free: 15.22 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006684/1.405, allocations: 185.8 kB / 0.5891 GB, free: 15.04 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01874/1.424, allocations: 7.405 MB / 0.5963 GB, free: 10.02 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0002037/1.424, allocations: 89.33 kB / 0.5964 GB, free: 9.957 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.113e-05/1.424, allocations: 0 / 0.5964 GB, free: 9.957 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01964/1.444, allocations: 6.478 MB / 0.6027 GB, free: 5.477 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02673/1.471, allocations: 11.06 MB / 0.6135 GB, free: 14.01 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.445e-05/1.471, allocations: 4 kB / 0.6135 GB, free: 14 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002989/1.474, allocations: 354.3 kB / 0.6139 GB, free: 13.69 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004469/1.478, allocations: 1.171 MB / 0.615 GB, free: 12.64 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000472/1.479, allocations: 67.22 kB / 0.6151 GB, free: 12.61 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003894/1.483, allocations: 3.191 MB / 0.6182 GB, free: 9.77 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.385e-05/1.483, allocations: 10.72 kB / 0.6182 GB, free: 9.762 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01746/1.5, allocations: 7.36 MB / 0.6254 GB, free: 4.477 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002175/1.502, allocations: 0.6881 MB / 0.626 GB, free: 3.883 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008146/1.503, allocations: 52.42 kB / 0.6261 GB, free: 3.859 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00288/1.506, allocations: 187.6 kB / 0.6263 GB, free: 3.703 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005295/1.507, allocations: 162.2 kB / 0.6264 GB, free: 3.566 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002384/1.507, allocations: 66.55 kB / 0.6265 GB, free: 3.516 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.002529/1.51, allocations: 1.046 MB / 0.6275 GB, free: 2.707 MB / 0.4948 GB Notification: Performance of sort global known variables: time 7.22e-07/1.51, allocations: 0 / 0.6275 GB, free: 2.707 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.01115/1.521, allocations: 2.353 MB / 0.6298 GB, free: 0.5039 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 19 * 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,$cse14.phase,$cse14.region,$cse15.phase,$cse15.region,$cse17.phase,$cse17.region,$cse20.phase,$cse20.region,$cse22.region3boundary,$cse23.region3boundary,$cse24.phase,$cse24.region,$cse26.phase,$cse26.region,$cse28.phase,$cse28.region,$cse29.region3boundary,$cse30.region3boundary,$cse31.phase,$cse31.region,$cse33.phase,$cse33.region,$cse34.phase,$cse34.region,$cse36.phase,$cse36.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 (177): * Single equations (assignments): 151 * 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 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.01191/1.533, allocations: 1.998 MB / 0.6318 GB, free: 14.74 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.01548/1.548, allocations: 4.909 MB / 0.6366 GB, free: 10.21 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.246e-05/1.548, allocations: 0 / 0.6366 GB, free: 10.21 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.006582/1.555, allocations: 2.508 MB / 0.639 GB, free: 7.727 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007528/1.562, allocations: 0.8406 MB / 0.6398 GB, free: 6.887 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01849/1.581, allocations: 8.377 MB / 0.648 GB, free: 14.56 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002672/1.584, allocations: 2.134 MB / 0.6501 GB, free: 12.39 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00127/1.585, allocations: 179.4 kB / 0.6503 GB, free: 12.21 MB / 0.5261 GB Notification: Performance of SimCode: time 9.82e-07/1.585, allocations: 0 / 0.6503 GB, free: 12.21 MB / 0.5261 GB Notification: Performance of Templates: time 0.5132/2.098, allocations: 106.1 MB / 0.7539 GB, free: 176.4 MB / 0.5417 GB