Running command: translateModel(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|junctionIdeal.medium.h|junctionIdeal.medium.p|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.2_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14") Notification: Performance of loadModel(ModelicaTest): time 2.39/2.39, allocations: 234.9 MB / 249.4 MB, free: 10.01 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 4.297e-05/4.295e-05, allocations: 4 kB / 308 MB, free: 15.33 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.384/0.3841, allocations: 54.85 MB / 362.9 MB, free: 12.33 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14): time 0.1585/0.5427, allocations: 83.67 MB / 446.5 MB, free: 9.914 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.06797/0.6107, allocations: 30.16 MB / 476.7 MB, free: 11.7 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003699/0.6145, allocations: 111.2 kB / 476.8 MB, free: 11.59 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004809/0.6193, allocations: 1.163 MB / 478 MB, free: 10.42 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.02526/0.6447, allocations: 5.612 MB / 483.6 MB, free: 4.789 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.02554/0.6703, allocations: 6.547 MB / 490.1 MB, free: 14.23 MB / 426.7 MB Notification: Performance of NFFlatten.flatten: time 0.008788/0.6791, allocations: 3.186 MB / 493.3 MB, free: 11.04 MB / 426.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002717/0.6819, allocations: 1.055 MB / 494.4 MB, free: 9.977 MB / 426.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007179/0.6891, allocations: 1.851 MB / 496.2 MB, free: 8.121 MB / 426.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.4219/1.111, allocations: 18.33 MB / 0.5025 GB, free: 18.44 MB / 426.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02734/1.138, allocations: 9.119 MB / 0.5114 GB, free: 18.42 MB / 426.7 MB Notification: Performance of NFPackage.collectConstants: time 0.004757/1.143, allocations: 0.5822 MB / 0.512 GB, free: 18.42 MB / 426.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001835/1.145, allocations: 0.7448 MB / 0.5127 GB, free: 18.42 MB / 426.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001602/1.147, allocations: 285.2 kB / 0.513 GB, free: 18.42 MB / 426.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01553/1.162, allocations: 6.24 MB / 0.5191 GB, free: 18.02 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.721e-06/1.162, allocations: 4 kB / 0.5191 GB, free: 18.02 MB / 426.7 MB Notification: Performance of FrontEnd: time 3.146e-06/1.162, allocations: 0 / 0.5191 GB, free: 18.02 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0001526/1.163, allocations: 0 / 0.5191 GB, free: 18.02 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: 536 * Number of variables: 536 Notification: Performance of Generate backend data structure: time 0.01406/1.177, allocations: 3.432 MB / 0.5224 GB, free: 16.44 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.924e-05/1.177, allocations: 9.688 kB / 0.5224 GB, free: 16.44 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009271/1.186, allocations: 0.8272 MB / 0.5232 GB, free: 16.29 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004742/1.191, allocations: 1.596 MB / 0.5248 GB, free: 15.88 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003017/1.191, allocations: 175.5 kB / 0.5249 GB, free: 15.87 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007663/1.192, allocations: 204.6 kB / 0.5251 GB, free: 15.87 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0121/1.204, allocations: 3.55 MB / 0.5286 GB, free: 15.04 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.735e-05/1.204, allocations: 10.72 kB / 0.5286 GB, free: 15.03 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003707/1.205, allocations: 86.48 kB / 0.5287 GB, free: 15.01 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003992/1.205, allocations: 202.7 kB / 0.5289 GB, free: 14.87 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01344/1.218, allocations: 3.323 MB / 0.5321 GB, free: 13.11 MB / 426.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.02929/1.248, allocations: 15.37 MB / 0.5472 GB, free: 15.56 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01054/1.258, allocations: 2.78 MB / 0.5499 GB, free: 13.31 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06745/1.326, allocations: 18.94 MB / 0.5684 GB, free: 8.508 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.007571/1.334, allocations: 1.685 MB / 0.57 GB, free: 7.211 MB / 458.7 MB Notification: Performance of pre-optimization done (n=173): time 7.494e-06/1.334, allocations: 4 kB / 0.57 GB, free: 7.207 MB / 458.7 MB Notification: Performance of matching and sorting (n=189): time 0.04628/1.38, allocations: 9.077 MB / 0.5789 GB, free: 240 kB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001478/1.38, allocations: 184.2 kB / 0.5791 GB, free: 20 kB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003119/1.383, allocations: 1.324 MB / 0.5803 GB, free: 15.01 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005844/1.384, allocations: 59.08 kB / 0.5804 GB, free: 14.97 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001314/1.385, allocations: 1.009 MB / 0.5814 GB, free: 14.31 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001304/1.387, allocations: 0.6311 MB / 0.582 GB, free: 13.77 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003081/1.387, allocations: 45.62 kB / 0.582 GB, free: 13.76 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0002786/1.387, allocations: 392.3 kB / 0.5824 GB, free: 13.41 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004298/1.392, allocations: 1.117 MB / 0.5835 GB, free: 12.65 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005065/1.397, allocations: 1.668 MB / 0.5851 GB, free: 11.2 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005118/1.402, allocations: 1.379 MB / 0.5865 GB, free: 10.3 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.43e-05/1.402, allocations: 4 kB / 0.5865 GB, free: 10.29 MB / 474.7 MB Notification: Performance of matching and sorting (n=279) (initialization): time 0.01409/1.416, allocations: 3.312 MB / 0.5897 GB, free: 7.957 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.002593/1.419, allocations: 5.97 MB / 0.5956 GB, free: 1.547 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.637e-05/1.419, allocations: 12 kB / 0.5956 GB, free: 1.535 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001428/1.42, allocations: 247.5 kB / 0.5958 GB, free: 1.332 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004612/1.425, allocations: 0.5434 MB / 0.5963 GB, free: 0.8398 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002427/1.427, allocations: 2.436 MB / 0.5987 GB, free: 14.46 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004668/1.432, allocations: 313.7 kB / 0.599 GB, free: 14.19 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007271/1.433, allocations: 113.2 kB / 0.5991 GB, free: 14.11 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.984e-05/1.433, allocations: 4 kB / 0.5991 GB, free: 14.1 MB / 490.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01163/1.445, allocations: 3.061 MB / 0.6021 GB, free: 12.04 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.355e-05/1.445, allocations: 12 kB / 0.6021 GB, free: 12.02 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001362/1.446, allocations: 253.1 kB / 0.6024 GB, free: 11.82 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004543/1.451, allocations: 0.5322 MB / 0.6029 GB, free: 11.34 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002396/1.453, allocations: 2.44 MB / 0.6053 GB, free: 8.953 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004538/1.458, allocations: 304.5 kB / 0.6056 GB, free: 8.688 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008762/1.459, allocations: 110.7 kB / 0.6057 GB, free: 8.602 MB / 490.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: 30 (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,junctionIdeal.medium.phase,pipe3.state_a.phase,pipe2.state_a.phase,pipe1.state_b.phase,pipe1.state_a.phase,pipe3.state_b.phase,pipe2.state_b.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (263): * Single equations (assignments): 257 * 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.003343/1.462, allocations: 0.6888 MB / 0.6063 GB, free: 8.125 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001242/1.463, allocations: 209.5 kB / 0.6065 GB, free: 7.918 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01969/1.483, allocations: 7.489 MB / 0.6138 GB, free: 2.816 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001176/1.483, allocations: 80.75 kB / 0.6139 GB, free: 2.758 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.452e-05/1.483, allocations: 4 kB / 0.6139 GB, free: 2.754 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0153/1.499, allocations: 6.499 MB / 0.6203 GB, free: 14.24 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03107/1.53, allocations: 12.03 MB / 0.632 GB, free: 5.816 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.865e-05/1.53, allocations: 8 kB / 0.632 GB, free: 5.809 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003495/1.533, allocations: 427.7 kB / 0.6324 GB, free: 5.422 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002061/1.536, allocations: 349.9 kB / 0.6328 GB, free: 5.137 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005252/1.536, allocations: 72.66 kB / 0.6328 GB, free: 5.098 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002254/1.538, allocations: 2.522 MB / 0.6353 GB, free: 2.672 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.187e-05/1.538, allocations: 8 kB / 0.6353 GB, free: 2.664 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02059/1.559, allocations: 7.667 MB / 0.6428 GB, free: 13.06 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002355/1.561, allocations: 0.7334 MB / 0.6435 GB, free: 12.44 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008571/1.562, allocations: 58.61 kB / 0.6436 GB, free: 12.41 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003245/1.566, allocations: 211.1 kB / 0.6438 GB, free: 12.23 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006852/1.566, allocations: 185.2 kB / 0.644 GB, free: 12.09 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002877/1.567, allocations: 78.16 kB / 0.644 GB, free: 12.02 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.002612/1.569, allocations: 1.109 MB / 0.6451 GB, free: 11.18 MB / 0.5105 GB Notification: Performance of sort global known variables: time 6.72e-07/1.569, allocations: 0 / 0.6451 GB, free: 11.18 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.01143/1.581, allocations: 2.532 MB / 0.6476 GB, free: 8.809 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 23 * 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,junctionIdeal.medium.p,junctionIdeal.medium.h) * Number of discrete variables: 56 ($cse3.phase,$cse3.region,$cse5.region3boundary,$cse6.region3boundary,$cse7.phase,$cse7.region,$cse10.phase,$cse10.region,$cse12.phase,$cse12.region,$cse13.phase,$cse13.region,$cse15.phase,$cse15.region,$cse18.phase,$cse18.region,$cse20.region3boundary,$cse21.region3boundary,$cse22.phase,$cse22.region,$cse24.phase,$cse24.region,$cse25.region3boundary,$cse26.region3boundary,$cse27.phase,$cse27.region,$cse29.phase,$cse29.region,$cse30.phase,$cse30.region,$cse31.region3boundary,$cse32.region3boundary,$cse33.phase,$cse33.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,junctionIdeal.medium.phase) * 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 (212): * Single equations (assignments): 183 * 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.01229/1.593, allocations: 2.075 MB / 0.6496 GB, free: 6.98 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.01846/1.612, allocations: 5.507 MB / 0.655 GB, free: 3.145 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.342e-05/1.612, allocations: 0 / 0.655 GB, free: 3.145 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.007826/1.62, allocations: 2.772 MB / 0.6577 GB, free: 0.7148 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009017/1.629, allocations: 0.9771 MB / 0.6587 GB, free: 15.74 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0224/1.651, allocations: 9.073 MB / 0.6675 GB, free: 6.734 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004624/1.656, allocations: 2.296 MB / 0.6698 GB, free: 4.402 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.01106/1.667, allocations: 2.549 MB / 0.6722 GB, free: 1.875 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001248/1.668, allocations: 179.4 kB / 0.6724 GB, free: 1.699 MB / 0.5261 GB Notification: Performance of SimCode: time 1.062e-06/1.668, allocations: 0 / 0.6724 GB, free: 1.699 MB / 0.5261 GB Notification: Performance of Templates: time 0.5067/2.175, allocations: 76.94 MB / 0.7476 GB, free: 194.5 MB / 0.5417 GB