Running command: translateModel(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4,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|splitter.medium.h|splitter.medium.p|valveOpening1.a|valveOpening1.b|valveOpening1.last|valveOpening1.nextEvent|valveOpening2.a|valveOpening2.b|valveOpening2.last|valveOpening2.nextEvent",fileNamePrefix="ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4") Notification: Performance of loadModel(ModelicaTest): time 1.9/1.9, allocations: 209.3 MB / 223.8 MB, free: 448 kB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.791e-05/3.8e-05, allocations: 4 kB / 276.2 MB, free: 15.21 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3515/0.3516, allocations: 48.71 MB / 324.9 MB, free: 3.367 MB / 266.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4): time 0.1459/0.4975, allocations: 82.96 MB / 407.8 MB, free: 12.36 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.06785/0.5654, allocations: 31.72 MB / 439.6 MB, free: 12.58 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003673/0.5691, allocations: 111.2 kB / 439.7 MB, free: 12.47 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004806/0.574, allocations: 1.155 MB / 440.8 MB, free: 11.31 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.02511/0.5991, allocations: 5.662 MB / 446.5 MB, free: 5.629 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.02511/0.6243, allocations: 6.649 MB / 453.1 MB, free: 14.98 MB / 394.7 MB Notification: Performance of NFFlatten.flatten: time 0.008465/0.6328, allocations: 3.112 MB / 456.3 MB, free: 11.86 MB / 394.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002631/0.6355, allocations: 1.024 MB / 457.3 MB, free: 10.83 MB / 394.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005889/0.6414, allocations: 1.8 MB / 459.1 MB, free: 9.023 MB / 394.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.04707/0.6885, allocations: 18.14 MB / 477.2 MB, free: 6.871 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.353/1.042, allocations: 9.477 MB / 486.7 MB, free: 32.1 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 0.005515/1.047, allocations: 0.5768 MB / 487.3 MB, free: 32.1 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001907/1.049, allocations: 0.7402 MB / 488 MB, free: 32.1 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001826/1.051, allocations: 280.4 kB / 488.3 MB, free: 32.1 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01764/1.069, allocations: 6.34 MB / 494.6 MB, free: 31.69 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.681e-06/1.069, allocations: 1.656 kB / 494.6 MB, free: 31.69 MB / 410.7 MB Notification: Performance of FrontEnd: time 3.707e-06/1.069, allocations: 0 / 494.6 MB, free: 31.69 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0001763/1.069, allocations: 0.9688 kB / 494.6 MB, free: 31.69 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: 532 * Number of variables: 532 Notification: Performance of Generate backend data structure: time 0.01581/1.085, allocations: 3.417 MB / 498 MB, free: 30.09 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.152e-05/1.085, allocations: 9.469 kB / 498.1 MB, free: 30.09 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009236/1.094, allocations: 0.8294 MB / 498.9 MB, free: 29.96 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005538/1.1, allocations: 1.581 MB / 0.4887 GB, free: 29.55 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003777/1.1, allocations: 180 kB / 0.4889 GB, free: 29.54 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009939/1.101, allocations: 198 kB / 0.4891 GB, free: 29.54 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01418/1.115, allocations: 3.57 MB / 0.4926 GB, free: 29.15 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001129/1.115, allocations: 12.92 kB / 0.4926 GB, free: 29.15 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007598/1.116, allocations: 85.14 kB / 0.4927 GB, free: 29.15 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004278/1.117, allocations: 202 kB / 0.4929 GB, free: 29.14 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01532/1.132, allocations: 3.402 MB / 0.4962 GB, free: 29.12 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.03003/1.162, allocations: 15.27 MB / 0.5111 GB, free: 19.76 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009546/1.172, allocations: 2.257 MB / 0.5133 GB, free: 19.7 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06001/1.232, allocations: 19.09 MB / 0.5319 GB, free: 6.5 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.007308/1.239, allocations: 1.659 MB / 0.5336 GB, free: 21.2 MB / 426.7 MB Notification: Performance of pre-optimization done (n=159): time 6.953e-06/1.239, allocations: 0 / 0.5336 GB, free: 21.2 MB / 426.7 MB Notification: Performance of matching and sorting (n=175): time 0.04195/1.281, allocations: 8.887 MB / 0.5422 GB, free: 14.3 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000145/1.281, allocations: 182.5 kB / 0.5424 GB, free: 14.09 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003529/1.285, allocations: 1.404 MB / 0.5438 GB, free: 13.03 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005472/1.286, allocations: 58.08 kB / 0.5438 GB, free: 12.99 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001384/1.287, allocations: 1.019 MB / 0.5448 GB, free: 12.33 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001199/1.288, allocations: 0.5876 MB / 0.5454 GB, free: 11.83 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002823/1.289, allocations: 39.5 kB / 0.5455 GB, free: 11.82 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.000271/1.289, allocations: 393.5 kB / 0.5458 GB, free: 11.47 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004232/1.293, allocations: 1.094 MB / 0.5469 GB, free: 10.72 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004868/1.298, allocations: 1.593 MB / 0.5484 GB, free: 9.32 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004873/1.303, allocations: 1.351 MB / 0.5498 GB, free: 8.441 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.356e-05/1.303, allocations: 11.38 kB / 0.5498 GB, free: 8.434 MB / 426.7 MB Notification: Performance of matching and sorting (n=268) (initialization): time 0.01264/1.316, allocations: 3.267 MB / 0.553 GB, free: 6.137 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.002738/1.318, allocations: 5.976 MB / 0.5588 GB, free: 15.71 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.402e-05/1.319, allocations: 16 kB / 0.5588 GB, free: 15.7 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001446/1.32, allocations: 237 kB / 0.559 GB, free: 15.5 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004655/1.325, allocations: 0.5387 MB / 0.5596 GB, free: 15.02 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002483/1.327, allocations: 2.436 MB / 0.562 GB, free: 12.64 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004361/1.332, allocations: 270.4 kB / 0.5622 GB, free: 12.41 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007217/1.332, allocations: 106 kB / 0.5623 GB, free: 12.32 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.856e-05/1.332, allocations: 8 kB / 0.5623 GB, free: 12.32 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01223/1.345, allocations: 3.022 MB / 0.5653 GB, free: 10.27 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.966e-05/1.345, allocations: 20.16 kB / 0.5653 GB, free: 10.25 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001415/1.346, allocations: 246.4 kB / 0.5655 GB, free: 10.05 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004562/1.351, allocations: 0.5255 MB / 0.566 GB, free: 9.574 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002266/1.353, allocations: 2.435 MB / 0.5684 GB, free: 7.195 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00396/1.357, allocations: 276.4 kB / 0.5687 GB, free: 6.957 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004537/1.358, allocations: 104.5 kB / 0.5688 GB, free: 6.875 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 66 * Number of states: 0 () * Number of discrete variables: 28 (pipe3.state_a.phase,pipe2.state_a.phase,pipe1.state_b.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,splitter.medium.phase,pipe3.state_b.phase,pipe2.state_b.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (256): * Single equations (assignments): 250 * 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,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.002085/1.36, allocations: 0.6828 MB / 0.5694 GB, free: 6.406 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006727/1.361, allocations: 209.5 kB / 0.5696 GB, free: 6.199 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01841/1.379, allocations: 7.552 MB / 0.577 GB, free: 1.039 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001344/1.379, allocations: 86.5 kB / 0.5771 GB, free: 0.9766 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.383e-05/1.379, allocations: 0 / 0.5771 GB, free: 0.9766 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01599/1.395, allocations: 6.6 MB / 0.5835 GB, free: 12.39 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02535/1.421, allocations: 10.71 MB / 0.594 GB, free: 5.355 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.299e-05/1.421, allocations: 0 / 0.594 GB, free: 5.355 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003807/1.425, allocations: 415.6 kB / 0.5944 GB, free: 4.98 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002191/1.427, allocations: 337.5 kB / 0.5947 GB, free: 4.703 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006142/1.427, allocations: 62.66 kB / 0.5948 GB, free: 4.672 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002305/1.43, allocations: 2.521 MB / 0.5972 GB, free: 2.246 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.015e-06/1.43, allocations: 384 / 0.5972 GB, free: 2.246 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01732/1.447, allocations: 7.028 MB / 0.6041 GB, free: 13.48 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002471/1.45, allocations: 0.7276 MB / 0.6048 GB, free: 12.86 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009369/1.451, allocations: 47.67 kB / 0.6049 GB, free: 12.84 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003553/1.454, allocations: 196.7 kB / 0.6051 GB, free: 12.67 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007281/1.455, allocations: 152.8 kB / 0.6052 GB, free: 12.54 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002983/1.455, allocations: 66.09 kB / 0.6053 GB, free: 12.49 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.003038/1.458, allocations: 1.168 MB / 0.6064 GB, free: 11.61 MB / 474.7 MB Notification: Performance of sort global known variables: time 9.92e-07/1.458, allocations: 4 kB / 0.6064 GB, free: 11.6 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.0152/1.474, allocations: 2.572 MB / 0.6089 GB, free: 9.195 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 8 (pipe1.mediums[1].p,pipe1.mediums[1].h,pipe2.mediums[1].p,pipe2.mediums[1].h,pipe3.mediums[1].p,pipe3.mediums[1].h,splitter.medium.p,splitter.medium.h) * Number of discrete variables: 54 ($cse3.phase,$cse3.region,$cse5.region3boundary,$cse6.region3boundary,$cse7.phase,$cse7.region,$cse10.phase,$cse10.region,$cse11.phase,$cse11.region,$cse13.phase,$cse13.region,$cse14.phase,$cse14.region,$cse16.phase,$cse16.region,$cse19.phase,$cse19.region,$cse21.region3boundary,$cse22.region3boundary,$cse23.phase,$cse23.region,$cse25.phase,$cse25.region,$cse26.region3boundary,$cse27.region3boundary,$cse28.phase,$cse28.region,$cse30.phase,$cse30.region,$cse31.region3boundary,$cse32.region3boundary,$cse33.phase,$cse33.region,$cse35.phase,$cse35.region,$cse40.phase,$cse40.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,splitter.medium.phase) * 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 (200): * Single equations (assignments): 171 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 23 * 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,1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.01363/1.487, allocations: 2.118 MB / 0.611 GB, free: 7.324 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.0168/1.504, allocations: 5.266 MB / 0.6161 GB, free: 3.625 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 9.378e-06/1.504, allocations: 0 / 0.6161 GB, free: 3.625 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.007187/1.511, allocations: 2.45 MB / 0.6185 GB, free: 2.09 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009004/1.521, allocations: 0.9544 MB / 0.6195 GB, free: 1.301 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02214/1.543, allocations: 8.837 MB / 0.6281 GB, free: 9.621 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003897/1.547, allocations: 2.279 MB / 0.6303 GB, free: 7.398 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.01132/1.558, allocations: 2.618 MB / 0.6329 GB, free: 4.797 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001222/1.559, allocations: 174.6 kB / 0.633 GB, free: 4.637 MB / 490.7 MB Notification: Performance of SimCode: time 1.323e-06/1.559, allocations: 0 / 0.633 GB, free: 4.637 MB / 490.7 MB Notification: Performance of Templates: time 0.4736/2.033, allocations: 76.34 MB / 0.7076 GB, free: 182.9 MB / 0.4948 GB