Running command: translateModel(ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|pipe1.mediums.1..h|pipe1.mediums.1..p|pipe3.mediums.1..h|pipe3.mediums.1..p|valveIncompressible1.filter.x.1.|valveIncompressible1.filter.x.2.|valveOpening1.a|valveOpening1.b|valveOpening1.last|valveOpening1.nextEvent",fileNamePrefix="ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2") Notification: Performance of loadModel(ModelicaTest): time 1.987/1.987, allocations: 209.3 MB / 223.8 MB, free: 0.5078 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.186e-05/3.181e-05, allocations: 4 kB / 276.2 MB, free: 15.21 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3959/0.396, allocations: 48.7 MB / 324.9 MB, free: 3.379 MB / 266.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2): time 0.09067/0.4867, allocations: 53.64 MB / 378.5 MB, free: 9.781 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.05026/0.537, allocations: 24.08 MB / 402.6 MB, free: 1.645 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002298/0.5394, allocations: 71.5 kB / 402.7 MB, free: 1.574 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003102/0.5425, allocations: 0.7349 MB / 403.4 MB, free: 0.8359 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01875/0.5613, allocations: 4.452 MB / 407.9 MB, free: 12.37 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.019/0.5804, allocations: 4.84 MB / 412.7 MB, free: 7.531 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.005279/0.5857, allocations: 1.958 MB / 414.6 MB, free: 5.574 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001578/0.5873, allocations: 0.6441 MB / 415.3 MB, free: 4.93 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003707/0.5911, allocations: 1.173 MB / 416.5 MB, free: 3.754 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.02971/0.6208, allocations: 12.02 MB / 428.5 MB, free: 7.727 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02566/0.6465, allocations: 8.573 MB / 437.1 MB, free: 15.14 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.004401/0.651, allocations: 0.5078 MB / 437.6 MB, free: 14.64 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001394/0.6525, allocations: 482.6 kB / 438 MB, free: 14.16 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0007864/0.6533, allocations: 172 kB / 438.2 MB, free: 14 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01376/0.667, allocations: 4.986 MB / 443.2 MB, free: 9 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.643e-06/0.6671, allocations: 4 kB / 443.2 MB, free: 8.996 MB / 378.7 MB Notification: Performance of FrontEnd: time 3.116e-06/0.6671, allocations: 0 / 443.2 MB, free: 8.996 MB / 378.7 MB Notification: Performance of Transformations before backend: time 6.682e-05/0.6672, allocations: 0 / 443.2 MB, free: 8.996 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 320 * Number of variables: 320 Notification: Performance of Generate backend data structure: time 0.008906/0.6761, allocations: 2.432 MB / 445.6 MB, free: 6.504 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.413e-05/0.6762, allocations: 11.97 kB / 445.6 MB, free: 6.492 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005402/0.6816, allocations: 0.5287 MB / 446.2 MB, free: 5.961 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003402/0.685, allocations: 1.093 MB / 447.3 MB, free: 4.82 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002147/0.6853, allocations: 110.3 kB / 447.4 MB, free: 4.711 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004487/0.6858, allocations: 132 kB / 447.5 MB, free: 4.582 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008098/0.6939, allocations: 2.212 MB / 449.7 MB, free: 2.254 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.436e-05/0.694, allocations: 0 / 449.7 MB, free: 2.254 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002394/0.6942, allocations: 55.97 kB / 449.8 MB, free: 2.199 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002863/0.6945, allocations: 118.2 kB / 449.9 MB, free: 2.082 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008661/0.7032, allocations: 2.038 MB / 451.9 MB, free: 36 kB / 378.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.01959/0.7229, allocations: 9.577 MB / 461.5 MB, free: 5.633 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005733/0.7286, allocations: 1.374 MB / 462.9 MB, free: 4.25 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.3274/1.056, allocations: 18.98 MB / 481.8 MB, free: 132.1 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004471/1.061, allocations: 1.018 MB / 482.9 MB, free: 132 MB / 410.7 MB Notification: Performance of pre-optimization done (n=94): time 6.041e-06/1.061, allocations: 0 / 482.9 MB, free: 132 MB / 410.7 MB Notification: Performance of matching and sorting (n=102): time 0.02192/1.083, allocations: 5.104 MB / 488 MB, free: 130.3 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.858e-05/1.083, allocations: 223.4 kB / 488.2 MB, free: 130.1 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002163/1.085, allocations: 0.9585 MB / 489.1 MB, free: 129.7 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002926/1.085, allocations: 48.86 kB / 489.2 MB, free: 129.6 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007068/1.086, allocations: 0.6705 MB / 489.9 MB, free: 129.1 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004892/1.087, allocations: 357.3 kB / 490.2 MB, free: 128.9 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001265/1.087, allocations: 28.38 kB / 490.2 MB, free: 128.8 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001254/1.087, allocations: 359.3 kB / 490.6 MB, free: 128.5 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002383/1.089, allocations: 0.6738 MB / 491.3 MB, free: 128.3 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002729/1.092, allocations: 1.019 MB / 492.3 MB, free: 127.7 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002672/1.095, allocations: 0.8318 MB / 493.1 MB, free: 127.3 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.626e-05/1.095, allocations: 2.906 kB / 493.1 MB, free: 127.3 MB / 410.7 MB Notification: Performance of matching and sorting (n=166) (initialization): time 0.006719/1.101, allocations: 2.011 MB / 495.1 MB, free: 126.6 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000834/1.102, allocations: 3.791 MB / 498.9 MB, free: 122.6 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.755e-05/1.102, allocations: 12.42 kB / 498.9 MB, free: 122.6 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007937/1.103, allocations: 132.9 kB / 499.1 MB, free: 122.5 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002682/1.106, allocations: 333.7 kB / 499.4 MB, free: 122.5 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000973/1.107, allocations: 1.261 MB / 0.4889 GB, free: 121.4 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00225/1.109, allocations: 152.9 kB / 0.4891 GB, free: 121.3 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001994/1.109, allocations: 69.58 kB / 0.4891 GB, free: 121.3 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.557e-05/1.109, allocations: 4.188 kB / 0.4891 GB, free: 121.3 MB / 410.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005645/1.115, allocations: 1.856 MB / 0.4909 GB, free: 120.6 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.856e-05/1.115, allocations: 10.62 kB / 0.491 GB, free: 120.6 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000644/1.116, allocations: 143.4 kB / 0.4911 GB, free: 120.6 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002454/1.118, allocations: 322.4 kB / 0.4914 GB, free: 120.6 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009025/1.119, allocations: 1.258 MB / 0.4926 GB, free: 119.4 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002101/1.121, allocations: 163.4 kB / 0.4928 GB, free: 119.4 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000194/1.122, allocations: 65.28 kB / 0.4928 GB, free: 119.4 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 43 * Number of states: 0 () * Number of discrete variables: 16 (pipe3.state_a.phase,pipe1.state_a.phase,valveIncompressible1.state_b.phase,valveIncompressible1.state_a.phase,$whenCondition1,source.medium.phase,pipe1.statesFM[2].phase,sink.medium.phase,pipe3.statesFM[2].phase,valveOpening1.a,valveOpening1.b,valveOpening1.last,$PRE.valveOpening1.nextEvent,valveOpening1.nextEvent,pipe3.state_b.phase,pipe1.state_b.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (158): * Single equations (assignments): 153 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 1,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.001236/1.123, allocations: 472.2 kB / 0.4933 GB, free: 119.1 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003539/1.123, allocations: 134.4 kB / 0.4934 GB, free: 119 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009748/1.133, allocations: 4.719 MB / 0.498 GB, free: 117 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.291e-05/1.133, allocations: 52.25 kB / 0.4981 GB, free: 117 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.161e-05/1.133, allocations: 1.5 kB / 0.4981 GB, free: 117 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.006853/1.14, allocations: 3.959 MB / 0.5019 GB, free: 115 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01201/1.152, allocations: 6.678 MB / 0.5085 GB, free: 110.5 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.041e-05/1.152, allocations: 0 / 0.5085 GB, free: 110.5 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001817/1.154, allocations: 243.6 kB / 0.5087 GB, free: 110.2 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009843/1.155, allocations: 177.4 kB / 0.5089 GB, free: 110.1 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002321/1.155, allocations: 35.98 kB / 0.5089 GB, free: 110 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008696/1.156, allocations: 1.287 MB / 0.5102 GB, free: 108.7 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.497e-06/1.156, allocations: 0 / 0.5102 GB, free: 108.7 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008638/1.165, allocations: 4.307 MB / 0.5144 GB, free: 104.3 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001269/1.166, allocations: 0.517 MB / 0.5149 GB, free: 103.8 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004285/1.167, allocations: 24 kB / 0.5149 GB, free: 103.8 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001533/1.168, allocations: 119.8 kB / 0.515 GB, free: 103.7 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002351/1.168, allocations: 86.03 kB / 0.5151 GB, free: 103.6 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001219/1.168, allocations: 45.47 kB / 0.5151 GB, free: 103.5 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001505/1.17, allocations: 0.8487 MB / 0.516 GB, free: 102.7 MB / 410.7 MB Notification: Performance of sort global known variables: time 4.71e-07/1.17, allocations: 3.938 kB / 0.516 GB, free: 102.7 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.006379/1.176, allocations: 1.986 MB / 0.5179 GB, free: 100.9 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (pipe1.mediums[1].p,pipe1.mediums[1].h,valveIncompressible1.filter.x[1],valveIncompressible1.filter.x[2],pipe3.mediums[1].p,pipe3.mediums[1].h) * Number of discrete variables: 35 ($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,$cse22.phase,$cse22.region,$cse23.phase,$cse23.region,$cse25.phase,$cse25.region,$whenCondition1,source.medium.phase,pipe1.statesFM[2].phase,sink.medium.phase,pipe3.statesFM[2].phase,valveOpening1.a,valveOpening1.b,valveOpening1.last,valveOpening1.nextEvent) * Number of discrete states: 5 (valveOpening1.last,valveOpening1.nextEvent,valveOpening1.b,valveOpening1.a,$whenCondition1) * Top-level inputs: 0 Notification: Strong component statistics for simulation (118): * Single equations (assignments): 100 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 15 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 1,1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.008385/1.185, allocations: 1.833 MB / 0.5197 GB, free: 99.3 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.00863/1.193, allocations: 3.289 MB / 0.5229 GB, free: 95.97 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 8.236e-06/1.194, allocations: 5.375 kB / 0.5229 GB, free: 95.96 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003097/1.197, allocations: 1.459 MB / 0.5243 GB, free: 94.5 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004982/1.202, allocations: 0.583 MB / 0.5249 GB, free: 93.93 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01074/1.212, allocations: 5.848 MB / 0.5306 GB, free: 88.16 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001283/1.214, allocations: 1.723 MB / 0.5323 GB, free: 86.4 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.004898/1.219, allocations: 1.684 MB / 0.5339 GB, free: 84.71 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005106/1.219, allocations: 107.4 kB / 0.534 GB, free: 84.61 MB / 410.7 MB Notification: Performance of SimCode: time 1.252e-06/1.219, allocations: 0 / 0.534 GB, free: 84.61 MB / 410.7 MB Notification: Performance of Templates: time 0.1165/1.336, allocations: 57.17 MB / 0.5899 GB, free: 27.49 MB / 410.7 MB