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_trunk_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes13") Notification: Performance of loadModel(ModelicaTest): time 2.319/2.319, allocations: 269 MB / 284.1 MB, free: 3.641 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.235e-05/3.242e-05, allocations: 7.984 kB / 349 MB, free: 10.75 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1276/0.1277, allocations: 61.89 MB / 410.9 MB, free: 12.87 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes13): time 0.4559/0.5836, allocations: 81.66 MB / 492.6 MB, free: 5.941 MB / 394.7 MB Notification: Performance of NFInst.instExpressions: time 0.06641/0.6501, allocations: 30.59 MB / 0.5109 GB, free: 7.293 MB / 426.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003791/0.6539, allocations: 99.31 kB / 0.511 GB, free: 7.195 MB / 426.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004756/0.6587, allocations: 1.112 MB / 0.5121 GB, free: 6.078 MB / 426.7 MB Notification: Performance of NFTyping.typeBindings: time 0.02214/0.6809, allocations: 5.506 MB / 0.5175 GB, free: 0.5547 MB / 426.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.02422/0.7052, allocations: 6.421 MB / 0.5237 GB, free: 10.13 MB / 442.7 MB Notification: Performance of NFFlatten.flatten: time 0.007863/0.7131, allocations: 2.896 MB / 0.5266 GB, free: 7.223 MB / 442.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002304/0.7154, allocations: 0.9896 MB / 0.5275 GB, free: 6.23 MB / 442.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005291/0.7208, allocations: 1.707 MB / 0.5292 GB, free: 4.52 MB / 442.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.04481/0.7656, allocations: 18.23 MB / 0.547 GB, free: 2.281 MB / 458.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02813/0.7938, allocations: 9.54 MB / 0.5563 GB, free: 8.73 MB / 474.7 MB Notification: Performance of NFPackage.collectConstants: time 0.004409/0.7983, allocations: 0.5781 MB / 0.5569 GB, free: 8.152 MB / 474.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001772/0.8001, allocations: 0.6855 MB / 0.5576 GB, free: 7.465 MB / 474.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001416/0.8016, allocations: 260 kB / 0.5578 GB, free: 7.211 MB / 474.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01653/0.8181, allocations: 6.143 MB / 0.5638 GB, free: 1.055 MB / 474.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.449e-06/0.8182, allocations: 0 / 0.5638 GB, free: 1.055 MB / 474.7 MB Notification: Performance of FrontEnd: time 4.809e-06/0.8182, allocations: 3.984 kB / 0.5638 GB, free: 1.051 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.000125/0.8183, allocations: 0 / 0.5638 GB, free: 1.051 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: 476 * Number of variables: 476 Notification: Performance of Generate backend data structure: time 0.01248/0.8308, allocations: 3.256 MB / 0.567 GB, free: 13.73 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.766e-05/0.8309, allocations: 11.97 kB / 0.567 GB, free: 13.71 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007926/0.8388, allocations: 0.7815 MB / 0.5678 GB, free: 12.93 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004734/0.8436, allocations: 1.476 MB / 0.5692 GB, free: 11.4 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000327/0.844, allocations: 167.5 kB / 0.5694 GB, free: 11.23 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007845/0.8448, allocations: 180 kB / 0.5695 GB, free: 11.06 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01246/0.8573, allocations: 3.212 MB / 0.5727 GB, free: 7.73 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.134e-05/0.8574, allocations: 7.938 kB / 0.5727 GB, free: 7.723 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004194/0.8578, allocations: 83.97 kB / 0.5728 GB, free: 7.641 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004069/0.8583, allocations: 167.2 kB / 0.5729 GB, free: 7.477 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01264/0.8709, allocations: 3.019 MB / 0.5759 GB, free: 4.453 MB / 490.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.03125/0.9022, allocations: 14.14 MB / 0.5897 GB, free: 5.098 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.008725/0.911, allocations: 2.06 MB / 0.5917 GB, free: 3.027 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.4217/1.333, allocations: 24.85 MB / 0.616 GB, free: 167.7 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.006973/1.34, allocations: 1.566 MB / 0.6175 GB, free: 167.6 MB / 0.5105 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001558/1.341, allocations: 164 kB / 0.6176 GB, free: 167.6 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=146): time 8.075e-06/1.341, allocations: 0 / 0.6176 GB, free: 167.6 MB / 0.5105 GB Notification: Performance of matching and sorting (n=158): time 0.03757/1.379, allocations: 8.345 MB / 0.6258 GB, free: 164.9 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.204e-05/1.379, allocations: 179.7 kB / 0.626 GB, free: 164.7 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003075/1.382, allocations: 1.378 MB / 0.6273 GB, free: 164.2 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0004056/1.383, allocations: 53.7 kB / 0.6274 GB, free: 164.1 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007786/1.383, allocations: 0.8558 MB / 0.6282 GB, free: 163.4 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007495/1.384, allocations: 0.5285 MB / 0.6287 GB, free: 163 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001907/1.384, allocations: 36.28 kB / 0.6287 GB, free: 163 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0001568/1.385, allocations: 381.6 kB / 0.6291 GB, free: 162.6 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003396/1.388, allocations: 1.02 MB / 0.6301 GB, free: 162.3 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003604/1.392, allocations: 1.433 MB / 0.6315 GB, free: 161.5 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003738/1.395, allocations: 1.251 MB / 0.6327 GB, free: 161 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.437e-05/1.396, allocations: 3.938 kB / 0.6327 GB, free: 161 MB / 0.5105 GB Notification: Performance of matching and sorting (n=233) (initialization): time 0.01122/1.407, allocations: 3.146 MB / 0.6358 GB, free: 159.8 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0009435/1.408, allocations: 4.513 MB / 0.6402 GB, free: 155 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.636e-05/1.408, allocations: 10.12 kB / 0.6402 GB, free: 155 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004917/1.413, allocations: 0.5999 MB / 0.6408 GB, free: 154.8 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003677/1.416, allocations: 449.4 kB / 0.6412 GB, free: 154.8 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002624/1.419, allocations: 2.804 MB / 0.644 GB, free: 152.4 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003514/1.423, allocations: 237.5 kB / 0.6442 GB, free: 152.4 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002661/1.423, allocations: 97.67 kB / 0.6443 GB, free: 152.4 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.467e-05/1.423, allocations: 3.969 kB / 0.6443 GB, free: 152.4 MB / 0.5105 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.008111/1.431, allocations: 2.819 MB / 0.647 GB, free: 151.3 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.505e-05/1.431, allocations: 11.72 kB / 0.6471 GB, free: 151.3 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009151/1.432, allocations: 201.3 kB / 0.6473 GB, free: 151.2 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003545/1.436, allocations: 470.1 kB / 0.6477 GB, free: 151.2 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001263/1.437, allocations: 1.871 MB / 0.6495 GB, free: 149.5 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002636/1.44, allocations: 235.4 kB / 0.6498 GB, free: 149.4 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002442/1.44, allocations: 94.28 kB / 0.6498 GB, free: 149.4 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 51 * Number of states: 0 () * Number of discrete variables: 29 (pipe3.state_a.phase,pipe2.state_a.phase,pipe1.state_a.phase,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_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 (210): * Single equations (assignments): 204 * 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.001619/1.441, allocations: 0.6406 MB / 0.6505 GB, free: 148.9 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005485/1.442, allocations: 193.2 kB / 0.6506 GB, free: 148.8 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01511/1.457, allocations: 7.527 MB / 0.658 GB, free: 144.7 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.59e-05/1.457, allocations: 81.2 kB / 0.6581 GB, free: 144.6 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.092e-05/1.457, allocations: 0 / 0.6581 GB, free: 144.6 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01206/1.469, allocations: 6.593 MB / 0.6645 GB, free: 138.1 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01948/1.489, allocations: 10.41 MB / 0.6747 GB, free: 127.7 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.629e-05/1.489, allocations: 7.984 kB / 0.6747 GB, free: 127.7 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002613/1.492, allocations: 335.5 kB / 0.675 GB, free: 127.3 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004531/1.496, allocations: 1.34 MB / 0.6763 GB, free: 126 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003644/1.497, allocations: 55.97 kB / 0.6764 GB, free: 125.9 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003133/1.5, allocations: 3.465 MB / 0.6798 GB, free: 122.4 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.056e-06/1.5, allocations: 3.938 kB / 0.6798 GB, free: 122.4 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01451/1.514, allocations: 7.277 MB / 0.6869 GB, free: 115 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001956/1.516, allocations: 0.7147 MB / 0.6876 GB, free: 114.3 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007972/1.517, allocations: 47.98 kB / 0.6876 GB, free: 114.2 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003037/1.52, allocations: 187.5 kB / 0.6878 GB, free: 114 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004923/1.521, allocations: 141.7 kB / 0.6879 GB, free: 113.9 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002198/1.521, allocations: 63.97 kB / 0.688 GB, free: 113.8 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.002388/1.523, allocations: 1.241 MB / 0.6892 GB, free: 112.6 MB / 0.5105 GB Notification: Performance of sort global known variables: time 6.51e-07/1.523, allocations: 4 kB / 0.6892 GB, free: 112.6 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.008541/1.532, allocations: 2.498 MB / 0.6916 GB, free: 110.3 MB / 0.5105 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 ($cse6.phase,$cse6.region,$cse8.region3boundary,$cse9.region3boundary,$cse10.phase,$cse10.region,$cse12.phase,$cse12.region,$cse13.phase,$cse13.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,$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 (166): * Single equations (assignments): 140 * 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.009754/1.542, allocations: 2.113 MB / 0.6937 GB, free: 108.6 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.01267/1.554, allocations: 4.88 MB / 0.6985 GB, free: 103.7 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 8.115e-06/1.555, allocations: 4 kB / 0.6985 GB, free: 103.7 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.005312/1.56, allocations: 2.33 MB / 0.7007 GB, free: 101.3 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008093/1.568, allocations: 0.9609 MB / 0.7017 GB, free: 100.4 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01484/1.583, allocations: 8.106 MB / 0.7096 GB, free: 92.22 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001941/1.585, allocations: 2.138 MB / 0.7117 GB, free: 90.05 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001149/1.586, allocations: 195.4 kB / 0.7119 GB, free: 89.86 MB / 0.5105 GB Notification: Performance of SimCode: time 8.72e-07/1.586, allocations: 0 / 0.7119 GB, free: 89.86 MB / 0.5105 GB Notification: Performance of Templates: time 0.5071/2.093, allocations: 108.5 MB / 0.8178 GB, free: 158.4 MB / 0.5105 GB