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_3.2.2_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes1") Notification: Performance of loadModel(ModelicaTest): time 2.575/2.575, allocations: 234.9 MB / 250.1 MB, free: 10.91 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.325e-05/3.338e-05, allocations: 0 / 308 MB, free: 0.8984 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3549/0.355, allocations: 54.87 MB / 362.9 MB, free: 11.91 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes1): time 0.1178/0.4728, allocations: 75.56 MB / 438.4 MB, free: 164 kB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.06319/0.5361, allocations: 29.74 MB / 468.2 MB, free: 2.355 MB / 394.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003548/0.5397, allocations: 99.19 kB / 468.3 MB, free: 2.258 MB / 394.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004461/0.5442, allocations: 1.077 MB / 469.3 MB, free: 1.176 MB / 394.7 MB Notification: Performance of NFTyping.typeBindings: time 0.02202/0.5663, allocations: 5.199 MB / 474.5 MB, free: 11.96 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.02716/0.5934, allocations: 6.52 MB / 481 MB, free: 5.43 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.01056/0.604, allocations: 3.036 MB / 484.1 MB, free: 2.391 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003004/0.6071, allocations: 1.051 MB / 485.1 MB, free: 1.34 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.4435/1.051, allocations: 18.13 MB / 0.4915 GB, free: 9.762 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0429/1.094, allocations: 18.29 MB / 0.5093 GB, free: 2.109 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02747/1.121, allocations: 9.488 MB / 0.5186 GB, free: 13.14 MB / 426.7 MB Notification: Performance of NFPackage.collectConstants: time 0.00477/1.126, allocations: 0.582 MB / 0.5192 GB, free: 12.55 MB / 426.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001845/1.128, allocations: 0.7521 MB / 0.5199 GB, free: 12.26 MB / 426.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001255/1.129, allocations: 268 kB / 0.5201 GB, free: 12 MB / 426.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01683/1.146, allocations: 6.255 MB / 0.5263 GB, free: 9.012 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.368e-06/1.146, allocations: 2.625 kB / 0.5263 GB, free: 9.012 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.464e-06/1.146, allocations: 0 / 0.5263 GB, free: 9.012 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0001358/1.146, allocations: 4 kB / 0.5263 GB, free: 9.008 MB / 426.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.01883/1.165, allocations: 3.517 MB / 0.5297 GB, free: 5.754 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.848e-05/1.165, allocations: 12.89 kB / 0.5297 GB, free: 5.742 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01428/1.179, allocations: 0.8216 MB / 0.5305 GB, free: 4.992 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007586/1.187, allocations: 1.563 MB / 0.532 GB, free: 3.801 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000494/1.188, allocations: 176 kB / 0.5322 GB, free: 3.699 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001322/1.189, allocations: 198.1 kB / 0.5324 GB, free: 3.574 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01565/1.205, allocations: 3.585 MB / 0.5359 GB, free: 0.8086 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.838e-05/1.205, allocations: 3 kB / 0.5359 GB, free: 0.8086 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004809/1.205, allocations: 85.95 kB / 0.536 GB, free: 0.7852 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004706/1.206, allocations: 202.8 kB / 0.5362 GB, free: 0.6133 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01515/1.221, allocations: 3.499 MB / 0.5396 GB, free: 14.15 MB / 442.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.03541/1.256, allocations: 14.64 MB / 0.5539 GB, free: 0.7031 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009073/1.265, allocations: 2.185 MB / 0.556 GB, free: 15.16 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06606/1.332, allocations: 19.1 MB / 0.5747 GB, free: 10.18 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.007152/1.339, allocations: 1.644 MB / 0.5763 GB, free: 8.902 MB / 474.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001787/1.341, allocations: 181.5 kB / 0.5765 GB, free: 8.746 MB / 474.7 MB Notification: Performance of pre-optimization done (n=162): time 6.522e-06/1.341, allocations: 0 / 0.5765 GB, free: 8.746 MB / 474.7 MB Notification: Performance of matching and sorting (n=174): time 0.06077/1.401, allocations: 9.125 MB / 0.5854 GB, free: 1.633 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003347/1.402, allocations: 341.2 kB / 0.5857 GB, free: 1.23 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004717/1.407, allocations: 1.438 MB / 0.5871 GB, free: 152 kB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006101/1.407, allocations: 57.95 kB / 0.5871 GB, free: 112 kB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001559/1.409, allocations: 0.9563 MB / 0.5881 GB, free: 15.47 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001401/1.41, allocations: 0.5839 MB / 0.5887 GB, free: 14.97 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003233/1.411, allocations: 41.38 kB / 0.5887 GB, free: 14.96 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0003296/1.411, allocations: 397.8 kB / 0.5891 GB, free: 14.6 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005317/1.416, allocations: 1.135 MB / 0.5902 GB, free: 13.83 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005801/1.422, allocations: 1.65 MB / 0.5918 GB, free: 12.38 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004613/1.427, allocations: 1.409 MB / 0.5932 GB, free: 11.46 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.907e-05/1.427, allocations: 4 kB / 0.5932 GB, free: 11.46 MB / 490.7 MB Notification: Performance of matching and sorting (n=272) (initialization): time 0.01112/1.438, allocations: 3.378 MB / 0.5965 GB, free: 9.125 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.002434/1.441, allocations: 5.387 MB / 0.6017 GB, free: 3.43 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.681e-05/1.441, allocations: 18.12 kB / 0.6017 GB, free: 3.414 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00861/1.449, allocations: 0.9737 MB / 0.6027 GB, free: 2.555 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004188/1.454, allocations: 489.5 kB / 0.6032 GB, free: 2.121 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005305/1.459, allocations: 3.143 MB / 0.6062 GB, free: 15.27 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005528/1.464, allocations: 229.4 kB / 0.6065 GB, free: 15.07 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008677/1.465, allocations: 109 kB / 0.6066 GB, free: 14.99 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 2.462e-05/1.465, allocations: 4 kB / 0.6066 GB, free: 14.98 MB / 0.4948 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01501/1.48, allocations: 3.192 MB / 0.6097 GB, free: 12.8 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.068e-05/1.481, allocations: 16 kB / 0.6097 GB, free: 12.79 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001894/1.482, allocations: 360.5 kB / 0.61 GB, free: 12.5 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004006/1.487, allocations: 0.5038 MB / 0.6105 GB, free: 12.05 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006017/1.493, allocations: 4.13 MB / 0.6146 GB, free: 8.262 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003421/1.496, allocations: 237.9 kB / 0.6148 GB, free: 8.059 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000552/1.497, allocations: 104.9 kB / 0.6149 GB, free: 7.977 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 61 * 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 (232): * Single equations (assignments): 222 * 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.002739/1.499, allocations: 0.6935 MB / 0.6156 GB, free: 7.492 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008568/1.5, allocations: 213.5 kB / 0.6158 GB, free: 7.281 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.06691/1.567, allocations: 7.822 MB / 0.6234 GB, free: 2.023 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001959/1.567, allocations: 80 kB / 0.6235 GB, free: 1.965 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.019e-05/1.567, allocations: 0 / 0.6235 GB, free: 1.965 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.02416/1.592, allocations: 6.851 MB / 0.6302 GB, free: 13.28 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03572/1.627, allocations: 10.8 MB / 0.6407 GB, free: 5.957 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.198e-05/1.628, allocations: 0 / 0.6407 GB, free: 5.957 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004238/1.632, allocations: 340.5 kB / 0.641 GB, free: 5.637 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01224/1.644, allocations: 2.156 MB / 0.6432 GB, free: 3.473 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007089/1.645, allocations: 59.97 kB / 0.6432 GB, free: 3.414 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008221/1.653, allocations: 4.078 MB / 0.6472 GB, free: 15.25 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.999e-06/1.653, allocations: 0 / 0.6472 GB, free: 15.25 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03035/1.684, allocations: 7.883 MB / 0.6549 GB, free: 7.23 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003433/1.687, allocations: 0.73 MB / 0.6556 GB, free: 6.477 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001335/1.688, allocations: 44 kB / 0.6556 GB, free: 6.434 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004552/1.693, allocations: 191.6 kB / 0.6558 GB, free: 6.246 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009373/1.694, allocations: 137.8 kB / 0.656 GB, free: 6.109 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004011/1.694, allocations: 67.97 kB / 0.656 GB, free: 6.043 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.004648/1.699, allocations: 1.197 MB / 0.6572 GB, free: 4.828 MB / 0.5261 GB Notification: Performance of sort global known variables: time 9.72e-07/1.699, allocations: 0 / 0.6572 GB, free: 4.828 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.01508/1.714, allocations: 2.462 MB / 0.6596 GB, free: 2.367 MB / 0.5261 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 (168): * Single equations (assignments): 143 * 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.01573/1.73, allocations: 1.969 MB / 0.6615 GB, free: 0.5625 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.02381/1.754, allocations: 5.603 MB / 0.667 GB, free: 10.96 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 1.063e-05/1.754, allocations: 3.094 kB / 0.667 GB, free: 10.96 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.009981/1.764, allocations: 2.451 MB / 0.6694 GB, free: 8.516 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01171/1.776, allocations: 0.8786 MB / 0.6702 GB, free: 7.641 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3378/2.114, allocations: 8.762 MB / 0.6788 GB, free: 236.2 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003936/2.118, allocations: 2.252 MB / 0.681 GB, free: 235.4 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001367/2.119, allocations: 190.8 kB / 0.6812 GB, free: 235.4 MB / 0.5417 GB Notification: Performance of SimCode: time 1.323e-06/2.119, allocations: 1.062 kB / 0.6812 GB, free: 235.4 MB / 0.5417 GB Notification: Performance of Templates: time 0.1853/2.305, allocations: 111.9 MB / 0.7905 GB, free: 141.2 MB / 0.5417 GB