Running command: translateModel(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=10000,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|valve1.filter.x.1.|valve1.filter.x.2.|valve2.filter.x.1.|valve2.filter.x.2.|valveOpening1.a|valveOpening1.b|valveOpening1.last|valveOpening1.nextEvent|valveOpening2.a|valveOpening2.b|valveOpening2.last|valveOpening2.nextEvent",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes1") Notification: Performance of loadModel(ModelicaTest): time 2.479/2.479, allocations: 269 MB / 284.1 MB, free: 3.645 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.943e-05/2.932e-05, allocations: 4 kB / 349 MB, free: 10.77 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1436/0.1437, allocations: 61.9 MB / 410.9 MB, free: 12.87 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes1): time 0.4665/0.6102, allocations: 75.96 MB / 486.9 MB, free: 11.47 MB / 394.7 MB Notification: Performance of NFInst.instExpressions: time 0.06096/0.6713, allocations: 29.89 MB / 0.5047 GB, free: 13.71 MB / 426.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003696/0.675, allocations: 91.25 kB / 0.5048 GB, free: 13.62 MB / 426.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004582/0.6797, allocations: 1.081 MB / 0.5058 GB, free: 12.54 MB / 426.7 MB Notification: Performance of NFTyping.typeBindings: time 0.02112/0.7008, allocations: 5.218 MB / 0.5109 GB, free: 7.305 MB / 426.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.02471/0.7256, allocations: 6.567 MB / 0.5173 GB, free: 0.7188 MB / 426.7 MB Notification: Performance of NFFlatten.flatten: time 0.008294/0.7339, allocations: 3.044 MB / 0.5203 GB, free: 13.67 MB / 442.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002559/0.7365, allocations: 1.067 MB / 0.5213 GB, free: 12.6 MB / 442.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.04524/0.7818, allocations: 18.14 MB / 0.5391 GB, free: 10.45 MB / 458.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.04528/0.8272, allocations: 18.31 MB / 0.5569 GB, free: 8.133 MB / 474.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02765/0.8549, allocations: 9.447 MB / 0.5662 GB, free: 14.68 MB / 490.7 MB Notification: Performance of NFPackage.collectConstants: time 0.004523/0.8594, allocations: 0.5859 MB / 0.5667 GB, free: 14.09 MB / 490.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001898/0.8614, allocations: 0.7596 MB / 0.5675 GB, free: 13.33 MB / 490.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001416/0.8628, allocations: 272 kB / 0.5677 GB, free: 13.06 MB / 490.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01753/0.8804, allocations: 6.295 MB / 0.5739 GB, free: 6.754 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.777e-06/0.8804, allocations: 0 / 0.5739 GB, free: 6.754 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.886e-06/0.8805, allocations: 0 / 0.5739 GB, free: 6.754 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0001267/0.8806, allocations: 4 kB / 0.5739 GB, free: 6.75 MB / 490.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 518 * Number of variables: 518 Notification: Performance of Generate backend data structure: time 0.01573/0.8963, allocations: 3.527 MB / 0.5773 GB, free: 3.148 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.859e-05/0.8964, allocations: 11.97 kB / 0.5773 GB, free: 3.137 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008285/0.9047, allocations: 0.8203 MB / 0.5781 GB, free: 2.312 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004928/0.9097, allocations: 1.568 MB / 0.5797 GB, free: 0.6914 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002948/0.91, allocations: 179.7 kB / 0.5798 GB, free: 0.5156 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007307/0.9108, allocations: 192 kB / 0.58 GB, free: 336 kB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01287/0.9237, allocations: 3.599 MB / 0.5835 GB, free: 12.57 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.337e-05/0.9238, allocations: 7.922 kB / 0.5835 GB, free: 12.57 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003885/0.9242, allocations: 87.95 kB / 0.5836 GB, free: 12.48 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004403/0.9246, allocations: 199.6 kB / 0.5838 GB, free: 12.29 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01475/0.9394, allocations: 3.516 MB / 0.5873 GB, free: 8.766 MB / 0.4948 GB 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.03403/0.9735, allocations: 14.81 MB / 0.6017 GB, free: 8.715 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.008802/0.9823, allocations: 2.227 MB / 0.6039 GB, free: 6.477 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.4495/1.432, allocations: 24.87 MB / 0.6282 GB, free: 137 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.007244/1.439, allocations: 1.678 MB / 0.6298 GB, free: 136.9 MB / 0.5105 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001395/1.441, allocations: 186.8 kB / 0.63 GB, free: 136.9 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=162): time 5.4e-06/1.441, allocations: 0 / 0.63 GB, free: 136.9 MB / 0.5105 GB Notification: Performance of matching and sorting (n=174): time 0.04365/1.484, allocations: 9.345 MB / 0.6391 GB, free: 135.7 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001363/1.485, allocations: 336.5 kB / 0.6394 GB, free: 135.3 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003154/1.488, allocations: 1.503 MB / 0.6409 GB, free: 135.1 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0004876/1.488, allocations: 62.06 kB / 0.641 GB, free: 135.1 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.000858/1.489, allocations: 0.9402 MB / 0.6419 GB, free: 134.6 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.0008616/1.49, allocations: 0.5854 MB / 0.6425 GB, free: 134.2 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002418/1.49, allocations: 41.03 kB / 0.6425 GB, free: 134.2 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0001504/1.49, allocations: 390.2 kB / 0.6429 GB, free: 133.9 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003621/1.494, allocations: 1.154 MB / 0.644 GB, free: 133.9 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004154/1.498, allocations: 1.638 MB / 0.6456 GB, free: 133.4 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004161/1.502, allocations: 1.404 MB / 0.647 GB, free: 133.3 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.971e-05/1.502, allocations: 7.422 kB / 0.647 GB, free: 133.3 MB / 0.5105 GB Notification: Performance of matching and sorting (n=266) (initialization): time 0.01052/1.513, allocations: 3.433 MB / 0.6503 GB, free: 133 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.001128/1.514, allocations: 4.87 MB / 0.6551 GB, free: 127.9 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.936e-05/1.514, allocations: 18.69 kB / 0.6551 GB, free: 127.9 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.008107/1.522, allocations: 0.9647 MB / 0.656 GB, free: 127.9 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00379/1.526, allocations: 482.9 kB / 0.6565 GB, free: 127.9 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003667/1.53, allocations: 3.145 MB / 0.6596 GB, free: 125.8 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00388/1.534, allocations: 235 kB / 0.6598 GB, free: 125.8 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004657/1.534, allocations: 103.3 kB / 0.6599 GB, free: 125.8 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.625e-05/1.534, allocations: 6.062 kB / 0.6599 GB, free: 125.8 MB / 0.5105 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0101/1.544, allocations: 3.259 MB / 0.6631 GB, free: 125.4 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.85e-05/1.545, allocations: 17.52 kB / 0.6631 GB, free: 125.4 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001778/1.546, allocations: 356.9 kB / 0.6634 GB, free: 125.2 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003902/1.55, allocations: 0.4929 MB / 0.6639 GB, free: 125.2 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004839/1.555, allocations: 4.132 MB / 0.668 GB, free: 121.9 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002853/1.558, allocations: 232.7 kB / 0.6682 GB, free: 121.8 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003097/1.558, allocations: 105.2 kB / 0.6683 GB, free: 121.8 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 55 * Number of states: 0 () * Number of discrete variables: 29 (pipe3.state_a.phase,pipe2.state_a.phase,pipe1.state_b.phase,pipe1.state_a.phase,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,pipe3.state_b.phase,pipe2.state_b.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (228): * Single equations (assignments): 218 * Array equations: 2 * Algorithm blocks: 2 * Record equations: 2 * 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,3 19} Notification: Performance of prepare postOptimizeDAE: time 0.001766/1.56, allocations: 0.6933 MB / 0.669 GB, free: 121.4 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006375/1.561, allocations: 217.6 kB / 0.6692 GB, free: 121.2 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01548/1.576, allocations: 7.931 MB / 0.6769 GB, free: 113.3 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.623e-05/1.576, allocations: 83.88 kB / 0.677 GB, free: 113.2 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.821e-06/1.576, allocations: 0 / 0.677 GB, free: 113.2 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01253/1.589, allocations: 6.958 MB / 0.6838 GB, free: 106.1 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02047/1.61, allocations: 10.96 MB / 0.6945 GB, free: 95.02 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.668e-05/1.61, allocations: 7.984 kB / 0.6945 GB, free: 95.01 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002803/1.612, allocations: 354.7 kB / 0.6948 GB, free: 94.68 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.007167/1.62, allocations: 2.157 MB / 0.6969 GB, free: 92.51 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004595/1.62, allocations: 63.97 kB / 0.697 GB, free: 92.45 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004121/1.624, allocations: 4.064 MB / 0.701 GB, free: 88.29 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.199e-06/1.624, allocations: 3.953 kB / 0.701 GB, free: 88.28 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01604/1.64, allocations: 8.015 MB / 0.7088 GB, free: 80.13 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002116/1.643, allocations: 0.7604 MB / 0.7095 GB, free: 79.35 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008365/1.643, allocations: 51.94 kB / 0.7096 GB, free: 79.3 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00299/1.646, allocations: 191.6 kB / 0.7098 GB, free: 79.11 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004783/1.647, allocations: 141.8 kB / 0.7099 GB, free: 78.97 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000228/1.647, allocations: 71.97 kB / 0.71 GB, free: 78.9 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.002496/1.65, allocations: 1.331 MB / 0.7113 GB, free: 77.55 MB / 0.5105 GB Notification: Performance of sort global known variables: time 9.02e-07/1.65, allocations: 0 / 0.7113 GB, free: 77.55 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.008387/1.658, allocations: 2.5 MB / 0.7137 GB, free: 75.24 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 10 (pipe1.mediums[1].p,pipe1.mediums[1].h,valve1.filter.x[1],valve1.filter.x[2],valve2.filter.x[1],valve2.filter.x[2],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,$cse10.phase,$cse10.region,$cse11.phase,$cse11.region,$cse15.phase,$cse15.region,$cse16.phase,$cse16.region,$cse18.phase,$cse18.region,$cse21.phase,$cse21.region,$cse23.region3boundary,$cse24.region3boundary,$cse25.phase,$cse25.region,$cse27.phase,$cse27.region,$cse29.phase,$cse29.region,$cse30.region3boundary,$cse31.region3boundary,$cse32.phase,$cse32.region,$cse34.phase,$cse34.region,$cse35.phase,$cse35.region,$cse37.phase,$cse37.region,$cse42.phase,$cse42.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 (170): * Single equations (assignments): 145 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 19 * 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,3 28} Notification: Performance of Backend phase and start with SimCode phase: time 0.009302/1.667, allocations: 1.988 MB / 0.7157 GB, free: 73.64 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.01469/1.682, allocations: 5.609 MB / 0.7211 GB, free: 68.04 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 7.133e-06/1.682, allocations: 0 / 0.7211 GB, free: 68.04 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.005484/1.688, allocations: 2.432 MB / 0.7235 GB, free: 65.61 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008385/1.696, allocations: 0.9627 MB / 0.7245 GB, free: 64.65 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01662/1.713, allocations: 8.595 MB / 0.7328 GB, free: 56.05 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002204/1.715, allocations: 2.256 MB / 0.7351 GB, free: 53.77 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001148/1.716, allocations: 195.4 kB / 0.7352 GB, free: 53.57 MB / 0.5105 GB Notification: Performance of SimCode: time 1.122e-06/1.716, allocations: 0 / 0.7352 GB, free: 53.57 MB / 0.5105 GB Notification: Performance of Templates: time 0.5699/2.286, allocations: 113.1 MB / 0.8456 GB, free: 183.8 MB / 0.5417 GB