Running command: translateModel(ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes12,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.2_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes12") Notification: Performance of loadModel(ModelicaTest): time 2.408/2.408, allocations: 234.9 MB / 249.4 MB, free: 11 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.587e-05/3.573e-05, allocations: 0 / 308 MB, free: 328 kB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3507/0.3508, allocations: 54.87 MB / 362.9 MB, free: 11.84 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes12): time 0.1227/0.4736, allocations: 75.57 MB / 438.5 MB, free: 84 kB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.06253/0.5361, allocations: 30.49 MB / 468.9 MB, free: 1.527 MB / 394.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003063/0.5393, allocations: 99.31 kB / 469 MB, free: 1.43 MB / 394.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004032/0.5433, allocations: 1.019 MB / 470.1 MB, free: 416 kB / 394.7 MB Notification: Performance of NFTyping.typeBindings: time 0.02143/0.5648, allocations: 5.495 MB / 475.5 MB, free: 10.89 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.02324/0.5881, allocations: 6.218 MB / 481.8 MB, free: 4.66 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.007928/0.5961, allocations: 3.045 MB / 484.8 MB, free: 1.605 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002528/0.5987, allocations: 0.9957 MB / 485.8 MB, free: 0.6094 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.3599/0.9586, allocations: 1.745 MB / 487.6 MB, free: 9.59 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.04618/1.005, allocations: 20.93 MB / 0.4966 GB, free: 9.285 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02582/1.031, allocations: 9.557 MB / 0.5059 GB, free: 6.707 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 0.004625/1.035, allocations: 0.5781 MB / 0.5065 GB, free: 6.129 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001741/1.037, allocations: 0.7409 MB / 0.5072 GB, free: 5.836 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001214/1.038, allocations: 272 kB / 0.5074 GB, free: 5.57 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01541/1.054, allocations: 6.334 MB / 0.5136 GB, free: 2.516 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.47e-06/1.054, allocations: 0 / 0.5136 GB, free: 2.516 MB / 410.7 MB Notification: Performance of FrontEnd: time 4.599e-06/1.054, allocations: 0 / 0.5136 GB, free: 2.516 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0001502/1.054, allocations: 0 / 0.5136 GB, free: 2.516 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: 512 * Number of variables: 512 Notification: Performance of Generate backend data structure: time 0.01329/1.067, allocations: 3.361 MB / 0.5169 GB, free: 15.77 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.56e-05/1.068, allocations: 8.031 kB / 0.5169 GB, free: 15.76 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009004/1.077, allocations: 0.834 MB / 0.5177 GB, free: 15.16 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005007/1.082, allocations: 1.576 MB / 0.5193 GB, free: 14.26 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003248/1.082, allocations: 178.5 kB / 0.5194 GB, free: 14.17 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007779/1.083, allocations: 197.3 kB / 0.5196 GB, free: 14.04 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0136/1.096, allocations: 3.494 MB / 0.523 GB, free: 12.05 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.598e-05/1.097, allocations: 6.719 kB / 0.5231 GB, free: 12.04 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004234/1.097, allocations: 83.52 kB / 0.5231 GB, free: 12.02 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004461/1.097, allocations: 185.5 kB / 0.5233 GB, free: 11.86 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01359/1.111, allocations: 3.283 MB / 0.5265 GB, free: 9.508 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.0315/1.143, allocations: 14.98 MB / 0.5411 GB, free: 11.68 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009792/1.152, allocations: 2.305 MB / 0.5434 GB, free: 10.02 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0656/1.218, allocations: 19.03 MB / 0.562 GB, free: 5.133 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00729/1.225, allocations: 1.618 MB / 0.5636 GB, free: 3.875 MB / 458.7 MB Notification: Performance of pre-optimization done (n=155): time 6.251e-06/1.225, allocations: 0 / 0.5636 GB, free: 3.875 MB / 458.7 MB Notification: Performance of matching and sorting (n=171): time 0.05172/1.277, allocations: 8.149 MB / 0.5715 GB, free: 13.75 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000214/1.277, allocations: 230.1 kB / 0.5717 GB, free: 13.48 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005173/1.283, allocations: 1.391 MB / 0.5731 GB, free: 12.43 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007238/1.283, allocations: 60.36 kB / 0.5732 GB, free: 12.39 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001789/1.285, allocations: 0.9963 MB / 0.5741 GB, free: 11.74 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001617/1.287, allocations: 0.5847 MB / 0.5747 GB, free: 11.24 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003807/1.287, allocations: 44 kB / 0.5747 GB, free: 11.23 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0003711/1.288, allocations: 393.2 kB / 0.5751 GB, free: 10.88 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006326/1.294, allocations: 1.14 MB / 0.5762 GB, free: 10.1 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007299/1.302, allocations: 1.669 MB / 0.5779 GB, free: 8.625 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007123/1.309, allocations: 1.387 MB / 0.5792 GB, free: 7.734 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.505e-05/1.309, allocations: 4 kB / 0.5792 GB, free: 7.73 MB / 474.7 MB Notification: Performance of matching and sorting (n=270) (initialization): time 0.02106/1.33, allocations: 3.945 MB / 0.5831 GB, free: 5.039 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.003759/1.334, allocations: 5.937 MB / 0.5889 GB, free: 14.66 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001415/1.334, allocations: 19.98 kB / 0.5889 GB, free: 14.64 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.04035/1.374, allocations: 2.953 MB / 0.5918 GB, free: 12.03 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003408/1.378, allocations: 323.7 kB / 0.5921 GB, free: 11.75 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01264/1.39, allocations: 3.485 MB / 0.5955 GB, free: 9.223 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00409/1.395, allocations: 268.7 kB / 0.5957 GB, free: 8.992 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005982/1.395, allocations: 104.3 kB / 0.5958 GB, free: 8.91 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.033e-05/1.395, allocations: 6.969 kB / 0.5958 GB, free: 8.906 MB / 490.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01223/1.408, allocations: 3.557 MB / 0.5993 GB, free: 6.527 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.019e-05/1.408, allocations: 18.62 kB / 0.5993 GB, free: 6.512 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01245/1.42, allocations: 1.775 MB / 0.6011 GB, free: 4.996 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002745/1.423, allocations: 366.8 kB / 0.6014 GB, free: 4.676 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007566/1.431, allocations: 2.779 MB / 0.6041 GB, free: 2.594 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00366/1.434, allocations: 262.2 kB / 0.6044 GB, free: 2.367 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004617/1.435, allocations: 102.8 kB / 0.6045 GB, free: 2.293 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: 23 (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,valveOpening1.nextEventScaled,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.002132/1.437, allocations: 0.6463 MB / 0.6051 GB, free: 1.855 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007002/1.438, allocations: 205.5 kB / 0.6053 GB, free: 1.652 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01741/1.455, allocations: 7.727 MB / 0.6129 GB, free: 12.39 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001158/1.455, allocations: 89.73 kB / 0.6129 GB, free: 12.32 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.179e-05/1.455, allocations: 0 / 0.6129 GB, free: 12.32 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01461/1.47, allocations: 6.637 MB / 0.6194 GB, free: 7.77 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02358/1.493, allocations: 10.86 MB / 0.63 GB, free: 0.543 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.828e-05/1.494, allocations: 3.953 kB / 0.63 GB, free: 0.5391 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003349/1.497, allocations: 403.2 kB / 0.6304 GB, free: 164 kB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002058/1.499, allocations: 353.5 kB / 0.6308 GB, free: 15.8 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003576/1.499, allocations: 63.97 kB / 0.6308 GB, free: 15.74 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002275/1.502, allocations: 2.57 MB / 0.6333 GB, free: 13.07 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.006e-06/1.502, allocations: 4.094 kB / 0.6333 GB, free: 13.07 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01721/1.519, allocations: 7.152 MB / 0.6403 GB, free: 5.793 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002461/1.521, allocations: 0.7377 MB / 0.641 GB, free: 5.031 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007448/1.522, allocations: 48 kB / 0.6411 GB, free: 4.984 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002803/1.525, allocations: 199.6 kB / 0.6413 GB, free: 4.789 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004873/1.526, allocations: 149.5 kB / 0.6414 GB, free: 4.648 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002275/1.526, allocations: 63.97 kB / 0.6415 GB, free: 4.586 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.002728/1.529, allocations: 1.171 MB / 0.6426 GB, free: 3.395 MB / 0.5105 GB Notification: Performance of sort global known variables: time 5.91e-07/1.529, allocations: 0 / 0.6426 GB, free: 3.395 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.009697/1.538, allocations: 2.53 MB / 0.6451 GB, free: 0.8633 MB / 0.5105 GB 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: 54 ($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,valveOpening1.nextEventScaled,pipe3.statesFM[2].phase) * Number of discrete states: 6 (valveOpening1.nextEvent,valveOpening1.last,valveOpening1.nextEventScaled,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.01097/1.549, allocations: 2.112 MB / 0.6471 GB, free: 14.94 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.01669/1.566, allocations: 5.455 MB / 0.6525 GB, free: 9.516 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 8.916e-06/1.566, allocations: 0 / 0.6525 GB, free: 9.516 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.006434/1.573, allocations: 2.463 MB / 0.6549 GB, free: 7.074 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008042/1.581, allocations: 0.8704 MB / 0.6557 GB, free: 6.203 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02049/1.601, allocations: 9.166 MB / 0.6647 GB, free: 13.11 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00284/1.604, allocations: 2.304 MB / 0.6669 GB, free: 10.77 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.007049/1.611, allocations: 1.906 MB / 0.6688 GB, free: 8.875 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009111/1.612, allocations: 155.4 kB / 0.6689 GB, free: 8.723 MB / 0.5417 GB Notification: Performance of SimCode: time 1.332e-06/1.612, allocations: 4 kB / 0.6689 GB, free: 8.719 MB / 0.5417 GB Notification: Performance of Templates: time 0.5238/2.136, allocations: 85.78 MB / 0.7527 GB, free: 177.4 MB / 0.5417 GB