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.905/1.905, allocations: 209.3 MB / 224.4 MB, free: 0.5117 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.923e-05/2.939e-05, allocations: 3.984 kB / 276.1 MB, free: 15.86 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3497/0.3498, allocations: 48.7 MB / 324.8 MB, free: 2.898 MB / 266.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes13): time 0.1826/0.5324, allocations: 80.55 MB / 405.4 MB, free: 14.88 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.06754/0.6, allocations: 30.29 MB / 435.7 MB, free: 0.5352 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003664/0.6038, allocations: 103.2 kB / 435.8 MB, free: 444 kB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004754/0.6086, allocations: 1.097 MB / 436.9 MB, free: 15.33 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.02236/0.631, allocations: 5.413 MB / 442.3 MB, free: 9.902 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.02438/0.6554, allocations: 6.334 MB / 448.6 MB, free: 3.566 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.007965/0.6634, allocations: 2.842 MB / 451.5 MB, free: 0.7188 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002354/0.6658, allocations: 0.9782 MB / 452.4 MB, free: 15.74 MB / 394.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005247/0.6711, allocations: 1.664 MB / 454.1 MB, free: 14.07 MB / 394.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.04487/0.716, allocations: 18.02 MB / 472.1 MB, free: 12.04 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0281/0.7442, allocations: 9.353 MB / 481.5 MB, free: 2.68 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 0.004469/0.7487, allocations: 0.5625 MB / 482 MB, free: 2.117 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001697/0.7504, allocations: 0.6778 MB / 482.7 MB, free: 1.438 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001247/0.7517, allocations: 256 kB / 483 MB, free: 1.188 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.3374/1.089, allocations: 6.014 MB / 489 MB, free: 34.1 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.879e-06/1.089, allocations: 0 / 489 MB, free: 34.1 MB / 410.7 MB Notification: Performance of FrontEnd: time 3.306e-06/1.089, allocations: 0 / 489 MB, free: 34.1 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.000143/1.089, allocations: 0 / 489 MB, free: 34.1 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: 472 * Number of variables: 472 Notification: Performance of Generate backend data structure: time 0.01434/1.104, allocations: 3.186 MB / 492.2 MB, free: 32.58 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.941e-05/1.104, allocations: 9.688 kB / 492.2 MB, free: 32.58 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008108/1.112, allocations: 0.7507 MB / 492.9 MB, free: 32.45 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005015/1.117, allocations: 1.478 MB / 494.4 MB, free: 32.06 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002827/1.117, allocations: 159.6 kB / 494.6 MB, free: 32.05 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007349/1.118, allocations: 179.9 kB / 494.7 MB, free: 32.05 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0118/1.13, allocations: 3.182 MB / 497.9 MB, free: 31.7 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.961e-05/1.13, allocations: 6.188 kB / 497.9 MB, free: 31.7 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003759/1.13, allocations: 77.94 kB / 498 MB, free: 31.7 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004217/1.131, allocations: 171.8 kB / 498.2 MB, free: 31.7 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01194/1.143, allocations: 2.994 MB / 0.4894 GB, free: 31.68 MB / 410.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.02723/1.17, allocations: 13.94 MB / 0.503 GB, free: 23.14 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007653/1.178, allocations: 2.01 MB / 0.505 GB, free: 23.09 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06103/1.239, allocations: 19.08 MB / 0.5236 GB, free: 10.62 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.006084/1.245, allocations: 1.516 MB / 0.5251 GB, free: 10.49 MB / 410.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001634/1.247, allocations: 157.9 kB / 0.5253 GB, free: 10.42 MB / 410.7 MB Notification: Performance of pre-optimization done (n=142): time 6.793e-06/1.247, allocations: 0 / 0.5253 GB, free: 10.42 MB / 410.7 MB Notification: Performance of matching and sorting (n=154): time 0.036/1.283, allocations: 8.102 MB / 0.5332 GB, free: 8.355 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.833e-05/1.283, allocations: 177.4 kB / 0.5333 GB, free: 8.148 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002649/1.286, allocations: 1.308 MB / 0.5346 GB, free: 7.156 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004758/1.286, allocations: 57.39 kB / 0.5347 GB, free: 7.113 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007969/1.287, allocations: 0.8739 MB / 0.5355 GB, free: 6.527 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007888/1.288, allocations: 0.5172 MB / 0.536 GB, free: 6.086 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002005/1.288, allocations: 40.19 kB / 0.5361 GB, free: 6.074 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001379/1.288, allocations: 384 kB / 0.5364 GB, free: 5.719 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003076/1.291, allocations: 0.9948 MB / 0.5374 GB, free: 5.047 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003583/1.295, allocations: 1.434 MB / 0.5388 GB, free: 3.809 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003743/1.299, allocations: 1.233 MB / 0.54 GB, free: 3.004 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.779e-05/1.299, allocations: 7.984 kB / 0.54 GB, free: 2.996 MB / 410.7 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.01158/1.31, allocations: 3.097 MB / 0.543 GB, free: 0.8203 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.00194/1.312, allocations: 5.03 MB / 0.548 GB, free: 11.5 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.54e-05/1.312, allocations: 12 kB / 0.548 GB, free: 11.48 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005198/1.317, allocations: 0.599 MB / 0.5486 GB, free: 10.96 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003773/1.321, allocations: 452.1 kB / 0.549 GB, free: 10.56 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003521/1.325, allocations: 2.806 MB / 0.5517 GB, free: 7.93 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004288/1.329, allocations: 234 kB / 0.5519 GB, free: 7.727 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004164/1.33, allocations: 97.7 kB / 0.552 GB, free: 7.648 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.713e-05/1.33, allocations: 4.938 kB / 0.552 GB, free: 7.645 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.009332/1.339, allocations: 2.761 MB / 0.5547 GB, free: 5.762 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.689e-05/1.339, allocations: 12.81 kB / 0.5548 GB, free: 5.75 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009822/1.34, allocations: 199.3 kB / 0.5549 GB, free: 5.586 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003865/1.344, allocations: 475.8 kB / 0.5554 GB, free: 5.168 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00188/1.346, allocations: 1.884 MB / 0.5572 GB, free: 3.34 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003088/1.349, allocations: 223.5 kB / 0.5574 GB, free: 3.148 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004273/1.35, allocations: 98.47 kB / 0.5575 GB, free: 3.07 MB / 426.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: 27 (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,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 (214): * Single equations (assignments): 208 * 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.002221/1.352, allocations: 0.6302 MB / 0.5582 GB, free: 2.621 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007044/1.352, allocations: 189.7 kB / 0.5583 GB, free: 2.434 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01789/1.37, allocations: 7.398 MB / 0.5656 GB, free: 13.47 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001327/1.371, allocations: 88.25 kB / 0.5656 GB, free: 13.41 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.143e-05/1.371, allocations: 0 / 0.5656 GB, free: 13.41 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01531/1.386, allocations: 6.499 MB / 0.572 GB, free: 8.973 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02489/1.411, allocations: 10.21 MB / 0.582 GB, free: 2.348 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.644e-05/1.411, allocations: 0 / 0.582 GB, free: 2.348 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002901/1.414, allocations: 335.3 kB / 0.5823 GB, free: 2.047 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0052/1.419, allocations: 1.334 MB / 0.5836 GB, free: 0.8867 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004805/1.42, allocations: 57.78 kB / 0.5836 GB, free: 0.8594 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004272/1.424, allocations: 3.448 MB / 0.587 GB, free: 13.87 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.066e-06/1.424, allocations: 0 / 0.587 GB, free: 13.87 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01607/1.44, allocations: 7.125 MB / 0.594 GB, free: 9.207 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002432/1.443, allocations: 0.6892 MB / 0.5946 GB, free: 8.613 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009123/1.443, allocations: 41.05 kB / 0.5947 GB, free: 8.598 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003218/1.447, allocations: 180.9 kB / 0.5948 GB, free: 8.445 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006089/1.447, allocations: 125.1 kB / 0.595 GB, free: 8.34 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002551/1.448, allocations: 62.47 kB / 0.595 GB, free: 8.289 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.002975/1.451, allocations: 1.111 MB / 0.5961 GB, free: 7.441 MB / 458.7 MB Notification: Performance of sort global known variables: time 8.22e-07/1.451, allocations: 2.625 kB / 0.5961 GB, free: 7.441 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.01317/1.464, allocations: 2.436 MB / 0.5985 GB, free: 5.156 MB / 458.7 MB 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 ($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,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.01385/1.478, allocations: 2.075 MB / 0.6005 GB, free: 3.332 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.0152/1.493, allocations: 4.783 MB / 0.6052 GB, free: 15.97 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 8.556e-06/1.493, allocations: 1.875 kB / 0.6052 GB, free: 15.97 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006076/1.499, allocations: 2.27 MB / 0.6074 GB, free: 14.55 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008065/1.507, allocations: 0.8851 MB / 0.6083 GB, free: 13.82 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01863/1.526, allocations: 8.247 MB / 0.6163 GB, free: 6.672 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002889/1.529, allocations: 2.127 MB / 0.6184 GB, free: 4.594 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001247/1.53, allocations: 186.2 kB / 0.6186 GB, free: 4.43 MB / 474.7 MB Notification: Performance of SimCode: time 1.162e-06/1.53, allocations: 4 kB / 0.6186 GB, free: 4.426 MB / 474.7 MB Notification: Performance of Templates: time 0.4767/2.007, allocations: 106.8 MB / 0.7228 GB, free: 168.2 MB / 0.4948 GB