Running command: translateModel(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3,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.2_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3") Notification: Performance of loadModel(ModelicaTest): time 2.276/2.276, allocations: 234.9 MB / 249.4 MB, free: 10.03 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.141e-05/3.137e-05, allocations: 4 kB / 308 MB, free: 15.34 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3833/0.3834, allocations: 54.85 MB / 362.9 MB, free: 12.11 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3): time 0.1452/0.5286, allocations: 81.23 MB / 444.1 MB, free: 12.23 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.06266/0.5913, allocations: 29.07 MB / 473.2 MB, free: 15.09 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00332/0.5947, allocations: 107.2 kB / 473.3 MB, free: 14.98 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004464/0.5992, allocations: 1.1 MB / 474.4 MB, free: 13.88 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.02318/0.6225, allocations: 5.44 MB / 479.8 MB, free: 8.418 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.02342/0.6459, allocations: 6.21 MB / 486 MB, free: 2.203 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.007971/0.6539, allocations: 2.92 MB / 489 MB, free: 15.28 MB / 426.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002439/0.6564, allocations: 1.001 MB / 490 MB, free: 14.28 MB / 426.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005957/0.6624, allocations: 1.703 MB / 491.7 MB, free: 12.57 MB / 426.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.4054/1.068, allocations: 18.21 MB / 0.4979 GB, free: 22.26 MB / 426.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02459/1.093, allocations: 8.975 MB / 0.5067 GB, free: 22.24 MB / 426.7 MB Notification: Performance of NFPackage.collectConstants: time 0.004745/1.097, allocations: 0.572 MB / 0.5072 GB, free: 22.24 MB / 426.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001612/1.099, allocations: 0.6776 MB / 0.5079 GB, free: 22.24 MB / 426.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001334/1.1, allocations: 264.3 kB / 0.5082 GB, free: 22.24 MB / 426.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01489/1.115, allocations: 5.917 MB / 0.5139 GB, free: 21.86 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.589e-06/1.115, allocations: 0 / 0.5139 GB, free: 21.86 MB / 426.7 MB Notification: Performance of FrontEnd: time 3.236e-06/1.115, allocations: 0 / 0.5139 GB, free: 21.86 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0001395/1.116, allocations: 2.844 kB / 0.5139 GB, free: 21.86 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: 476 * Number of variables: 476 Notification: Performance of Generate backend data structure: time 0.01234/1.128, allocations: 3.187 MB / 0.5171 GB, free: 20.36 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.749e-05/1.128, allocations: 10.41 kB / 0.5171 GB, free: 20.36 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00784/1.136, allocations: 0.7521 MB / 0.5178 GB, free: 20.23 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005105/1.141, allocations: 1.49 MB / 0.5193 GB, free: 19.82 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003073/1.141, allocations: 166.5 kB / 0.5194 GB, free: 19.82 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000867/1.142, allocations: 180.8 kB / 0.5196 GB, free: 19.82 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01133/1.154, allocations: 3.171 MB / 0.5227 GB, free: 19.43 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.376e-05/1.154, allocations: 6.25 kB / 0.5227 GB, free: 19.43 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004669/1.154, allocations: 77.94 kB / 0.5228 GB, free: 19.43 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003657/1.155, allocations: 171.5 kB / 0.5229 GB, free: 19.42 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01168/1.166, allocations: 2.923 MB / 0.5258 GB, free: 19.39 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.02597/1.192, allocations: 13.84 MB / 0.5393 GB, free: 9.512 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007603/1.2, allocations: 2.02 MB / 0.5413 GB, free: 8.062 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06373/1.264, allocations: 19.05 MB / 0.5599 GB, free: 3.129 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.007092/1.271, allocations: 1.564 MB / 0.5614 GB, free: 1.91 MB / 442.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001881/1.273, allocations: 162.2 kB / 0.5616 GB, free: 1.773 MB / 442.7 MB Notification: Performance of pre-optimization done (n=155): time 6.743e-06/1.273, allocations: 0 / 0.5616 GB, free: 1.773 MB / 442.7 MB Notification: Performance of matching and sorting (n=167): time 0.03871/1.312, allocations: 8.249 MB / 0.5696 GB, free: 11.38 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001479/1.312, allocations: 178.8 kB / 0.5698 GB, free: 11.17 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003024/1.315, allocations: 1.237 MB / 0.571 GB, free: 10.22 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005257/1.315, allocations: 61.52 kB / 0.571 GB, free: 10.18 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001183/1.317, allocations: 0.9176 MB / 0.5719 GB, free: 9.578 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001124/1.318, allocations: 0.5593 MB / 0.5725 GB, free: 9.098 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002318/1.318, allocations: 38.5 kB / 0.5725 GB, free: 9.09 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0002529/1.318, allocations: 381.3 kB / 0.5729 GB, free: 8.742 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003659/1.322, allocations: 1.001 MB / 0.5739 GB, free: 8.07 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004487/1.327, allocations: 1.479 MB / 0.5753 GB, free: 6.805 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004382/1.331, allocations: 1.264 MB / 0.5765 GB, free: 5.984 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.28e-05/1.331, allocations: 4 kB / 0.5765 GB, free: 5.98 MB / 458.7 MB Notification: Performance of matching and sorting (n=245) (initialization): time 0.01189/1.343, allocations: 3.116 MB / 0.5796 GB, free: 3.77 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.002499/1.346, allocations: 5.141 MB / 0.5846 GB, free: 14.21 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.08e-05/1.346, allocations: 20 kB / 0.5846 GB, free: 14.2 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00464/1.35, allocations: 0.5198 MB / 0.5851 GB, free: 13.74 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003935/1.354, allocations: 474.5 kB / 0.5856 GB, free: 13.32 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003427/1.358, allocations: 2.696 MB / 0.5882 GB, free: 10.77 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004142/1.362, allocations: 262.4 kB / 0.5885 GB, free: 10.54 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005927/1.363, allocations: 101.4 kB / 0.5886 GB, free: 10.46 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.655e-05/1.363, allocations: 7.938 kB / 0.5886 GB, free: 10.45 MB / 474.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.009912/1.373, allocations: 2.769 MB / 0.5913 GB, free: 8.57 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.547e-05/1.373, allocations: 12 kB / 0.5913 GB, free: 8.559 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001093/1.374, allocations: 209 kB / 0.5915 GB, free: 8.391 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004156/1.378, allocations: 483.2 kB / 0.592 GB, free: 7.965 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001903/1.38, allocations: 1.879 MB / 0.5938 GB, free: 6.141 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003944/1.384, allocations: 265.1 kB / 0.594 GB, free: 5.91 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006027/1.385, allocations: 100.4 kB / 0.5941 GB, free: 5.832 MB / 474.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: 29 (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_a.phase,pipe2.state_a.phase,pipe1.state_a.phase,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 (224): * Single equations (assignments): 218 * 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 5} Notification: Performance of prepare postOptimizeDAE: time 0.002156/1.387, allocations: 0.647 MB / 0.5948 GB, free: 5.379 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006403/1.387, allocations: 193.7 kB / 0.595 GB, free: 5.188 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01811/1.406, allocations: 7.414 MB / 0.6022 GB, free: 164 kB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001423/1.406, allocations: 78.94 kB / 0.6023 GB, free: 104 kB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.326e-05/1.406, allocations: 0 / 0.6023 GB, free: 104 kB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01509/1.421, allocations: 6.49 MB / 0.6086 GB, free: 11.62 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02668/1.448, allocations: 11.08 MB / 0.6194 GB, free: 4.137 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.769e-05/1.448, allocations: 4 kB / 0.6194 GB, free: 4.133 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002942/1.451, allocations: 354.7 kB / 0.6198 GB, free: 3.812 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004525/1.455, allocations: 1.174 MB / 0.6209 GB, free: 2.77 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000559/1.456, allocations: 71.41 kB / 0.621 GB, free: 2.727 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004137/1.46, allocations: 3.176 MB / 0.6241 GB, free: 15.9 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.304e-05/1.46, allocations: 10.81 kB / 0.6241 GB, free: 15.89 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01725/1.477, allocations: 7.365 MB / 0.6313 GB, free: 10.61 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002192/1.48, allocations: 0.6935 MB / 0.632 GB, free: 10.01 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008418/1.48, allocations: 53.61 kB / 0.632 GB, free: 9.984 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003036/1.483, allocations: 182.7 kB / 0.6322 GB, free: 9.828 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005395/1.484, allocations: 148.2 kB / 0.6323 GB, free: 9.707 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002485/1.484, allocations: 72.78 kB / 0.6324 GB, free: 9.648 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.002416/1.487, allocations: 1.051 MB / 0.6334 GB, free: 8.84 MB / 0.4948 GB Notification: Performance of sort global known variables: time 7.01e-07/1.487, allocations: 0 / 0.6334 GB, free: 8.84 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.01054/1.497, allocations: 2.39 MB / 0.6358 GB, free: 6.598 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 19 * 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 (177): * Single equations (assignments): 151 * 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 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.01116/1.509, allocations: 2 MB / 0.6377 GB, free: 4.832 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.01589/1.525, allocations: 4.993 MB / 0.6426 GB, free: 1.363 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.21e-05/1.525, allocations: 1.688 kB / 0.6426 GB, free: 1.363 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.006489/1.531, allocations: 2.502 MB / 0.645 GB, free: 15.77 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00832/1.539, allocations: 0.9096 MB / 0.6459 GB, free: 14.86 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01986/1.559, allocations: 8.394 MB / 0.6541 GB, free: 6.516 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003552/1.563, allocations: 2.2 MB / 0.6563 GB, free: 4.281 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.008776/1.572, allocations: 2.427 MB / 0.6586 GB, free: 1.871 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001021/1.573, allocations: 151.4 kB / 0.6588 GB, free: 1.723 MB / 0.5105 GB Notification: Performance of SimCode: time 1.112e-06/1.573, allocations: 0 / 0.6588 GB, free: 1.723 MB / 0.5105 GB Notification: Performance of Templates: time 0.5125/2.085, allocations: 73.34 MB / 0.7304 GB, free: 215.7 MB / 0.5417 GB