Running command: translateModel(ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes13,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|pipe2.mediums.2..h|pipe2.mediums.2..p|pipe3.mediums.1..h|pipe3.mediums.1..p|valve.filter.x.1.|valve.filter.x.2.|valveOpening1.a|valveOpening1.b|valveOpening1.last|valveOpening1.nextEvent",fileNamePrefix="ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes13") Notification: Performance of loadModel(ModelicaTest): time 2.044/2.044, allocations: 209.3 MB / 223.8 MB, free: 0.7695 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 4.242e-05/4.194e-05, allocations: 7.281 kB / 276.2 MB, free: 15.25 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3542/0.3543, allocations: 48.71 MB / 324.9 MB, free: 3.375 MB / 266.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes13): time 0.1232/0.4776, allocations: 74.98 MB / 399.9 MB, free: 4.371 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.1179/0.5955, allocations: 30.33 MB / 430.2 MB, free: 5.984 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003389/0.5989, allocations: 95.31 kB / 430.3 MB, free: 5.891 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004598/0.6036, allocations: 1.019 MB / 431.3 MB, free: 4.867 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.02233/0.626, allocations: 5.432 MB / 436.7 MB, free: 15.42 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.02251/0.6485, allocations: 6.183 MB / 442.9 MB, free: 9.223 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.007788/0.6563, allocations: 2.987 MB / 445.9 MB, free: 6.227 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002221/0.6586, allocations: 0.9919 MB / 446.9 MB, free: 5.23 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0052/0.6638, allocations: 1.738 MB / 448.6 MB, free: 3.488 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.04931/0.7132, allocations: 20.71 MB / 469.3 MB, free: 14.77 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02798/0.7412, allocations: 9.392 MB / 478.7 MB, free: 5.363 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 0.004521/0.7458, allocations: 0.5742 MB / 479.3 MB, free: 4.789 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001817/0.7477, allocations: 0.7323 MB / 480 MB, free: 4.055 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.00117/0.7489, allocations: 272 kB / 480.3 MB, free: 3.789 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.3328/1.082, allocations: 6.269 MB / 486.6 MB, free: 38.52 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.43e-06/1.082, allocations: 0 / 486.6 MB, free: 38.52 MB / 410.7 MB Notification: Performance of FrontEnd: time 3.406e-06/1.082, allocations: 3.469 kB / 486.6 MB, free: 38.52 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0001455/1.082, allocations: 0.6562 kB / 486.6 MB, free: 38.52 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: 510 * Number of variables: 510 Notification: Performance of Generate backend data structure: time 0.01339/1.095, allocations: 3.274 MB / 489.8 MB, free: 36.99 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.76e-05/1.095, allocations: 9.781 kB / 489.9 MB, free: 36.99 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008799/1.104, allocations: 0.8122 MB / 490.7 MB, free: 36.86 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005403/1.11, allocations: 1.57 MB / 492.2 MB, free: 36.45 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003142/1.11, allocations: 174.8 kB / 492.4 MB, free: 36.45 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007621/1.111, allocations: 203.6 kB / 492.6 MB, free: 36.45 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01291/1.124, allocations: 3.479 MB / 496.1 MB, free: 36.04 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.501e-05/1.124, allocations: 8 kB / 496.1 MB, free: 36.04 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004089/1.124, allocations: 83.69 kB / 496.2 MB, free: 36.04 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004435/1.125, allocations: 194.4 kB / 496.4 MB, free: 36.04 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01419/1.139, allocations: 3.273 MB / 499.6 MB, free: 36.02 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.02926/1.168, allocations: 14.97 MB / 0.5025 GB, free: 26.98 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008839/1.177, allocations: 2.31 MB / 0.5048 GB, free: 26.92 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05934/1.237, allocations: 19 MB / 0.5234 GB, free: 14.55 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00664/1.243, allocations: 1.612 MB / 0.5249 GB, free: 14.45 MB / 410.7 MB Notification: Performance of pre-optimization done (n=153): time 5.721e-06/1.243, allocations: 0 / 0.5249 GB, free: 14.45 MB / 410.7 MB Notification: Performance of matching and sorting (n=169): time 0.03209/1.275, allocations: 8.134 MB / 0.5329 GB, free: 12.54 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.369e-05/1.275, allocations: 233.7 kB / 0.5331 GB, free: 12.27 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002882/1.278, allocations: 1.389 MB / 0.5345 GB, free: 11.22 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005413/1.279, allocations: 58.02 kB / 0.5345 GB, free: 11.18 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009528/1.28, allocations: 0.9983 MB / 0.5355 GB, free: 10.54 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009231/1.281, allocations: 0.5769 MB / 0.5361 GB, free: 10.04 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002241/1.281, allocations: 42.81 kB / 0.5361 GB, free: 10.03 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001448/1.281, allocations: 390 kB / 0.5365 GB, free: 9.676 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003418/1.285, allocations: 1.144 MB / 0.5376 GB, free: 8.895 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003813/1.289, allocations: 1.664 MB / 0.5392 GB, free: 7.426 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003965/1.293, allocations: 1.378 MB / 0.5406 GB, free: 6.543 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.66e-05/1.293, allocations: 4 kB / 0.5406 GB, free: 6.539 MB / 410.7 MB Notification: Performance of matching and sorting (n=268) (initialization): time 0.01152/1.304, allocations: 3.949 MB / 0.5444 GB, free: 3.84 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001849/1.306, allocations: 5.942 MB / 0.5502 GB, free: 13.46 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.776e-05/1.306, allocations: 16 kB / 0.5502 GB, free: 13.45 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02548/1.332, allocations: 2.939 MB / 0.5531 GB, free: 10.85 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002485/1.334, allocations: 336.4 kB / 0.5534 GB, free: 10.56 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009905/1.344, allocations: 3.476 MB / 0.5568 GB, free: 8.031 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004076/1.348, allocations: 263.4 kB / 0.5571 GB, free: 7.805 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000433/1.349, allocations: 104.1 kB / 0.5572 GB, free: 7.723 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.86e-05/1.349, allocations: 11.95 kB / 0.5572 GB, free: 7.711 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01255/1.361, allocations: 3.618 MB / 0.5607 GB, free: 5.273 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.329e-05/1.361, allocations: 16 kB / 0.5607 GB, free: 5.258 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01245/1.374, allocations: 1.775 MB / 0.5625 GB, free: 3.742 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002854/1.377, allocations: 372 kB / 0.5628 GB, free: 3.418 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007435/1.384, allocations: 2.765 MB / 0.5655 GB, free: 1.34 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003904/1.388, allocations: 264 kB / 0.5658 GB, free: 1.117 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004688/1.389, allocations: 108.1 kB / 0.5659 GB, free: 1.035 MB / 426.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: 22 (pipe3.state_a.phase,pipe1.state_a.phase,simpleGenericOrifice.state_b.phase,simpleGenericOrifice.state_a.phase,valve.state_b.phase,valve.state_a.phase,$whenCondition1,source.medium.phase,pipe1.statesFM[2].phase,sink.medium.phase,pipe2.statesFM[1].phase,pipe2.statesFM[2].phase,valveOpening1.a,valveOpening1.b,valveOpening1.last,$PRE.valveOpening1.nextEvent,valveOpening1.nextEvent,pipe3.statesFM[2].phase,pipe3.state_b.phase,pipe2.state_b.phase,pipe2.state_a.phase,pipe1.state_b.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (169): * Single equations (assignments): 165 * Array equations: 1 * Algorithm blocks: 1 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {8 86} Notification: Performance of prepare postOptimizeDAE: time 0.002077/1.391, allocations: 0.6447 MB / 0.5665 GB, free: 0.6016 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006472/1.391, allocations: 193.7 kB / 0.5667 GB, free: 420 kB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01731/1.409, allocations: 7.738 MB / 0.5742 GB, free: 11.15 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.000129/1.409, allocations: 99.09 kB / 0.5743 GB, free: 11.08 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.204e-05/1.409, allocations: 0 / 0.5743 GB, free: 11.08 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01423/1.423, allocations: 6.628 MB / 0.5808 GB, free: 6.523 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02453/1.448, allocations: 10.85 MB / 0.5914 GB, free: 15.41 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.567e-05/1.448, allocations: 0 / 0.5914 GB, free: 15.41 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003509/1.451, allocations: 397.8 kB / 0.5918 GB, free: 15.05 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002074/1.454, allocations: 359.1 kB / 0.5921 GB, free: 14.75 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004199/1.454, allocations: 63.66 kB / 0.5922 GB, free: 14.72 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002379/1.456, allocations: 2.568 MB / 0.5947 GB, free: 12.27 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.116e-06/1.456, allocations: 6.828 kB / 0.5947 GB, free: 12.26 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01701/1.473, allocations: 7.152 MB / 0.6017 GB, free: 7.43 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00263/1.476, allocations: 0.7251 MB / 0.6024 GB, free: 6.809 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009349/1.477, allocations: 53.17 kB / 0.6024 GB, free: 6.785 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002934/1.48, allocations: 197.6 kB / 0.6026 GB, free: 6.617 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004744/1.481, allocations: 147.8 kB / 0.6028 GB, free: 6.492 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002293/1.481, allocations: 67.28 kB / 0.6028 GB, free: 6.441 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.002715/1.484, allocations: 1.164 MB / 0.604 GB, free: 5.562 MB / 458.7 MB Notification: Performance of sort global known variables: time 9.82e-07/1.484, allocations: 0 / 0.604 GB, free: 5.562 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.01114/1.495, allocations: 2.513 MB / 0.6064 GB, free: 3.211 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 10 (pipe1.mediums[1].p,pipe1.mediums[1].h,valve.filter.x[1],valve.filter.x[2],pipe2.mediums[1].p,pipe2.mediums[1].h,pipe2.mediums[2].p,pipe2.mediums[2].h,pipe3.mediums[1].p,pipe3.mediums[1].h) * Number of discrete variables: 53 ($cse3.phase,$cse3.region,$cse5.region3boundary,$cse6.region3boundary,$cse7.phase,$cse7.region,$cse9.phase,$cse9.region,$cse10.phase,$cse10.region,$cse12.phase,$cse12.region,$cse13.phase,$cse13.region,$cse16.phase,$cse16.region,$cse18.region3boundary,$cse19.region3boundary,$cse20.phase,$cse20.region,$cse21.region3boundary,$cse22.region3boundary,$cse23.phase,$cse23.region,$cse25.phase,$cse25.region,$cse26.phase,$cse26.region,$cse28.phase,$cse28.region,$cse29.phase,$cse29.region,$cse30.region3boundary,$cse31.region3boundary,$cse32.phase,$cse32.region,$cse34.phase,$cse34.region,$cse35.phase,$cse35.region,$cse37.phase,$cse37.region,$whenCondition1,source.medium.phase,pipe1.statesFM[2].phase,sink.medium.phase,pipe2.statesFM[1].phase,pipe2.statesFM[2].phase,valveOpening1.a,valveOpening1.b,valveOpening1.last,valveOpening1.nextEvent,pipe3.statesFM[2].phase) * Number of discrete states: 5 (valveOpening1.last,valveOpening1.nextEvent,valveOpening1.b,valveOpening1.a,$whenCondition1) * Top-level inputs: 0 Notification: Strong component statistics for simulation (197): * Single equations (assignments): 167 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 25 * 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.01121/1.506, allocations: 2.096 MB / 0.6085 GB, free: 1.359 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.01687/1.523, allocations: 5.398 MB / 0.6137 GB, free: 13 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 8.547e-06/1.523, allocations: 0 / 0.6137 GB, free: 13 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006225/1.529, allocations: 2.421 MB / 0.6161 GB, free: 10.59 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008054/1.537, allocations: 0.865 MB / 0.617 GB, free: 9.734 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02113/1.558, allocations: 9.144 MB / 0.6259 GB, free: 0.6758 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003035/1.562, allocations: 2.307 MB / 0.6281 GB, free: 14.34 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.007222/1.569, allocations: 1.914 MB / 0.63 GB, free: 12.43 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009215/1.57, allocations: 151.4 kB / 0.6302 GB, free: 12.29 MB / 490.7 MB Notification: Performance of SimCode: time 1.352e-06/1.57, allocations: 0 / 0.6302 GB, free: 12.29 MB / 490.7 MB Notification: Performance of Templates: time 0.49/2.06, allocations: 85.31 MB / 0.7135 GB, free: 182.2 MB / 0.4948 GB