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.1_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes12") Notification: Performance of loadModel(ModelicaTest): time 1.872/1.872, allocations: 209.3 MB / 223.8 MB, free: 0.5234 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.74e-05/3.737e-05, allocations: 0 / 276.2 MB, free: 15.22 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3504/0.3505, allocations: 48.7 MB / 324.9 MB, free: 3.379 MB / 266.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes12): time 0.1263/0.4768, allocations: 74.99 MB / 399.9 MB, free: 4.375 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.06281/0.5397, allocations: 30.32 MB / 430.2 MB, free: 5.996 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00374/0.5435, allocations: 103.2 kB / 430.3 MB, free: 5.895 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004382/0.5479, allocations: 1.015 MB / 431.3 MB, free: 4.875 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.02237/0.5703, allocations: 5.425 MB / 436.7 MB, free: 15.43 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.02311/0.5935, allocations: 6.191 MB / 442.9 MB, free: 9.23 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.007824/0.6013, allocations: 2.979 MB / 445.9 MB, free: 6.242 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002552/0.6039, allocations: 0.9919 MB / 446.9 MB, free: 5.246 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006056/0.61, allocations: 1.734 MB / 448.6 MB, free: 3.508 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.05213/0.6622, allocations: 20.72 MB / 469.3 MB, free: 14.78 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02843/0.6907, allocations: 9.396 MB / 478.7 MB, free: 5.371 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 0.005259/0.696, allocations: 0.5664 MB / 479.3 MB, free: 4.805 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001878/0.698, allocations: 0.7323 MB / 480 MB, free: 4.07 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001278/0.6993, allocations: 272 kB / 480.3 MB, free: 3.805 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.3334/1.033, allocations: 6.273 MB / 486.6 MB, free: 38.7 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.769e-06/1.033, allocations: 0.5312 kB / 486.6 MB, free: 38.7 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.815e-06/1.033, allocations: 0.9688 kB / 486.6 MB, free: 38.7 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0001622/1.033, allocations: 2.625 kB / 486.6 MB, free: 38.7 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.01354/1.046, allocations: 3.277 MB / 489.8 MB, free: 37.16 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.94e-05/1.047, allocations: 9.25 kB / 489.9 MB, free: 37.16 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008851/1.055, allocations: 0.809 MB / 490.7 MB, free: 37.03 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005438/1.061, allocations: 1.572 MB / 492.2 MB, free: 36.63 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003538/1.061, allocations: 177 kB / 492.4 MB, free: 36.62 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009325/1.062, allocations: 201.6 kB / 492.6 MB, free: 36.62 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01339/1.076, allocations: 3.482 MB / 496.1 MB, free: 36.21 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.919e-05/1.076, allocations: 6.656 kB / 496.1 MB, free: 36.21 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004196/1.076, allocations: 85.48 kB / 496.2 MB, free: 36.21 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000446/1.077, allocations: 188.2 kB / 496.4 MB, free: 36.21 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01437/1.091, allocations: 3.277 MB / 499.6 MB, free: 36.2 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.03103/1.122, allocations: 14.97 MB / 0.5025 GB, free: 27.16 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008897/1.131, allocations: 2.304 MB / 0.5048 GB, free: 27.11 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05692/1.188, allocations: 19.01 MB / 0.5234 GB, free: 14.73 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00648/1.195, allocations: 1.618 MB / 0.5249 GB, free: 14.64 MB / 410.7 MB Notification: Performance of pre-optimization done (n=153): time 5.199e-06/1.195, allocations: 2.516 kB / 0.5249 GB, free: 14.64 MB / 410.7 MB Notification: Performance of matching and sorting (n=169): time 0.03169/1.226, allocations: 8.121 MB / 0.5329 GB, free: 12.8 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.756e-05/1.227, allocations: 232.8 kB / 0.5331 GB, free: 12.53 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003013/1.23, allocations: 1.394 MB / 0.5345 GB, free: 11.48 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004951/1.23, allocations: 50.7 kB / 0.5345 GB, free: 11.45 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009522/1.231, allocations: 1.005 MB / 0.5355 GB, free: 10.8 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007266/1.232, allocations: 0.58 MB / 0.5361 GB, free: 10.3 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002036/1.232, allocations: 39.38 kB / 0.5361 GB, free: 10.29 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001396/1.232, allocations: 391.5 kB / 0.5365 GB, free: 9.938 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003354/1.236, allocations: 1.131 MB / 0.5376 GB, free: 9.168 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00361/1.239, allocations: 1.664 MB / 0.5392 GB, free: 7.695 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003719/1.243, allocations: 1.383 MB / 0.5405 GB, free: 6.812 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.168e-05/1.243, allocations: 4 kB / 0.5405 GB, free: 6.809 MB / 410.7 MB Notification: Performance of matching and sorting (n=268) (initialization): time 0.01081/1.254, allocations: 3.957 MB / 0.5444 GB, free: 4.105 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001787/1.256, allocations: 5.932 MB / 0.5502 GB, free: 13.73 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.569e-05/1.256, allocations: 16 kB / 0.5502 GB, free: 13.71 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02475/1.28, allocations: 2.946 MB / 0.5531 GB, free: 11.11 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002399/1.283, allocations: 329.2 kB / 0.5534 GB, free: 10.82 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009642/1.293, allocations: 3.477 MB / 0.5568 GB, free: 8.297 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003872/1.296, allocations: 267.3 kB / 0.5571 GB, free: 8.07 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003322/1.297, allocations: 102.9 kB / 0.5572 GB, free: 7.988 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.996e-05/1.297, allocations: 11.94 kB / 0.5572 GB, free: 7.977 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0119/1.309, allocations: 3.62 MB / 0.5607 GB, free: 5.539 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.039e-05/1.309, allocations: 16 kB / 0.5607 GB, free: 5.523 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01192/1.321, allocations: 1.777 MB / 0.5625 GB, free: 4.004 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002782/1.324, allocations: 370.8 kB / 0.5628 GB, free: 3.684 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007237/1.331, allocations: 2.763 MB / 0.5655 GB, free: 1.605 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003752/1.335, allocations: 262.8 kB / 0.5658 GB, free: 1.383 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004609/1.335, allocations: 107.7 kB / 0.5659 GB, free: 1.301 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.002252/1.337, allocations: 0.6475 MB / 0.5665 GB, free: 0.8633 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007025/1.338, allocations: 193.7 kB / 0.5667 GB, free: 0.6719 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01728/1.355, allocations: 7.728 MB / 0.5742 GB, free: 11.41 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001136/1.356, allocations: 93.06 kB / 0.5743 GB, free: 11.34 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.447e-05/1.356, allocations: 4 kB / 0.5743 GB, free: 11.34 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01366/1.369, allocations: 6.636 MB / 0.5808 GB, free: 6.777 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02307/1.392, allocations: 10.85 MB / 0.5914 GB, free: 15.66 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.489e-05/1.392, allocations: 0 / 0.5914 GB, free: 15.66 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00339/1.396, allocations: 404.5 kB / 0.5918 GB, free: 15.3 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002108/1.398, allocations: 356 kB / 0.5921 GB, free: 15.01 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005627/1.399, allocations: 58.72 kB / 0.5922 GB, free: 14.98 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00249/1.401, allocations: 2.572 MB / 0.5947 GB, free: 12.52 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.647e-06/1.401, allocations: 0 / 0.5947 GB, free: 12.52 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01736/1.419, allocations: 7.156 MB / 0.6017 GB, free: 7.688 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002454/1.421, allocations: 0.7299 MB / 0.6024 GB, free: 7.066 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008531/1.422, allocations: 49.23 kB / 0.6024 GB, free: 7.047 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002762/1.425, allocations: 201.5 kB / 0.6026 GB, free: 6.875 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004426/1.425, allocations: 141.6 kB / 0.6028 GB, free: 6.754 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002355/1.425, allocations: 69.64 kB / 0.6028 GB, free: 6.699 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.002873/1.428, allocations: 1.168 MB / 0.604 GB, free: 5.816 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.172e-06/1.428, allocations: 0 / 0.604 GB, free: 5.816 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.01095/1.439, allocations: 2.515 MB / 0.6064 GB, free: 3.461 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.01129/1.451, allocations: 2.096 MB / 0.6085 GB, free: 1.617 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.01719/1.468, allocations: 5.397 MB / 0.6137 GB, free: 13.04 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 7.945e-06/1.468, allocations: 0 / 0.6137 GB, free: 13.04 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006324/1.474, allocations: 2.419 MB / 0.6161 GB, free: 10.64 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008239/1.483, allocations: 0.8684 MB / 0.617 GB, free: 9.777 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02099/1.504, allocations: 9.147 MB / 0.6259 GB, free: 0.7109 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00279/1.506, allocations: 2.308 MB / 0.6281 GB, free: 14.37 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.007039/1.514, allocations: 1.912 MB / 0.63 GB, free: 12.47 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00082/1.514, allocations: 151.4 kB / 0.6301 GB, free: 12.32 MB / 490.7 MB Notification: Performance of SimCode: time 2.645e-06/1.514, allocations: 0 / 0.6301 GB, free: 12.32 MB / 490.7 MB Notification: Performance of Templates: time 0.4709/1.985, allocations: 85.31 MB / 0.7135 GB, free: 182.5 MB / 0.4948 GB