Running command: translateModel(ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes1,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.SeriesPipes1") Notification: Performance of loadModel(ModelicaTest): time 2.313/2.313, allocations: 234.9 MB / 249.4 MB, free: 10.02 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.959e-05/2.959e-05, allocations: 0 / 308 MB, free: 15.34 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3761/0.3761, allocations: 54.85 MB / 362.9 MB, free: 12.27 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes1): time 0.137/0.5131, allocations: 75.56 MB / 438.4 MB, free: 2.047 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.06673/0.58, allocations: 30.5 MB / 468.9 MB, free: 3.477 MB / 394.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003226/0.5832, allocations: 99.25 kB / 469 MB, free: 3.379 MB / 394.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004174/0.5875, allocations: 1.019 MB / 470 MB, free: 2.355 MB / 394.7 MB Notification: Performance of NFTyping.typeBindings: time 0.02463/0.6121, allocations: 5.487 MB / 475.5 MB, free: 12.85 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.03235/0.6445, allocations: 6.218 MB / 481.8 MB, free: 6.605 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.0117/0.6563, allocations: 2.995 MB / 484.7 MB, free: 3.602 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004268/0.6606, allocations: 1.004 MB / 485.8 MB, free: 2.598 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.009915/0.6706, allocations: 1.753 MB / 487.5 MB, free: 0.8398 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.4841/1.155, allocations: 20.94 MB / 0.4965 GB, free: 25.91 MB / 426.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02751/1.182, allocations: 9.553 MB / 0.5059 GB, free: 25.89 MB / 426.7 MB Notification: Performance of NFPackage.collectConstants: time 0.005047/1.188, allocations: 0.5816 MB / 0.5064 GB, free: 25.89 MB / 426.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001678/1.189, allocations: 0.7312 MB / 0.5071 GB, free: 25.89 MB / 426.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001397/1.191, allocations: 273.5 kB / 0.5074 GB, free: 25.89 MB / 426.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01616/1.207, allocations: 6.348 MB / 0.5136 GB, free: 25.48 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.609e-06/1.207, allocations: 0 / 0.5136 GB, free: 25.48 MB / 426.7 MB Notification: Performance of FrontEnd: time 3.025e-06/1.207, allocations: 0 / 0.5136 GB, free: 25.48 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0001405/1.207, allocations: 0 / 0.5136 GB, free: 25.48 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: 512 * Number of variables: 512 Notification: Performance of Generate backend data structure: time 0.01318/1.22, allocations: 3.345 MB / 0.5169 GB, free: 23.92 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.232e-05/1.22, allocations: 8.469 kB / 0.5169 GB, free: 23.92 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009049/1.229, allocations: 0.8363 MB / 0.5177 GB, free: 23.78 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00494/1.234, allocations: 1.576 MB / 0.5192 GB, free: 23.37 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003273/1.235, allocations: 182.7 kB / 0.5194 GB, free: 23.36 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007982/1.236, allocations: 194.5 kB / 0.5196 GB, free: 23.36 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0133/1.249, allocations: 3.487 MB / 0.523 GB, free: 22.91 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.069e-05/1.249, allocations: 10.5 kB / 0.523 GB, free: 22.91 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003984/1.249, allocations: 86.34 kB / 0.5231 GB, free: 22.91 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003842/1.25, allocations: 184.5 kB / 0.5233 GB, free: 22.9 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0151/1.265, allocations: 3.284 MB / 0.5265 GB, free: 22.87 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.04542/1.311, allocations: 15 MB / 0.5411 GB, free: 11.04 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01157/1.322, allocations: 2.294 MB / 0.5434 GB, free: 9.395 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06466/1.387, allocations: 19.03 MB / 0.5619 GB, free: 4.492 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.007197/1.394, allocations: 1.613 MB / 0.5635 GB, free: 3.238 MB / 442.7 MB Notification: Performance of pre-optimization done (n=155): time 6.061e-06/1.394, allocations: 4 kB / 0.5635 GB, free: 3.234 MB / 442.7 MB Notification: Performance of matching and sorting (n=171): time 0.04268/1.437, allocations: 8.834 MB / 0.5722 GB, free: 12.45 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001588/1.437, allocations: 229.7 kB / 0.5724 GB, free: 12.18 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003124/1.44, allocations: 1.394 MB / 0.5737 GB, free: 11.12 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004678/1.441, allocations: 61.83 kB / 0.5738 GB, free: 11.08 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001208/1.442, allocations: 1.002 MB / 0.5748 GB, free: 10.42 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001033/1.443, allocations: 0.5789 MB / 0.5753 GB, free: 9.926 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002273/1.443, allocations: 42.25 kB / 0.5754 GB, free: 9.918 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0002335/1.444, allocations: 393.4 kB / 0.5758 GB, free: 9.562 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004442/1.448, allocations: 1.136 MB / 0.5769 GB, free: 8.789 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005347/1.453, allocations: 1.671 MB / 0.5785 GB, free: 7.316 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004835/1.458, allocations: 1.384 MB / 0.5798 GB, free: 6.426 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.229e-05/1.458, allocations: 4 kB / 0.5798 GB, free: 6.422 MB / 458.7 MB Notification: Performance of matching and sorting (n=270) (initialization): time 0.01152/1.47, allocations: 3.336 MB / 0.5831 GB, free: 4.094 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0025/1.472, allocations: 5.942 MB / 0.5889 GB, free: 13.71 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.625e-05/1.473, allocations: 16 kB / 0.5889 GB, free: 13.7 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001481/1.474, allocations: 255.7 kB / 0.5892 GB, free: 13.48 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00451/1.479, allocations: 0.5311 MB / 0.5897 GB, free: 13.01 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002466/1.481, allocations: 2.508 MB / 0.5921 GB, free: 10.57 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004066/1.485, allocations: 266.7 kB / 0.5924 GB, free: 10.34 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006932/1.486, allocations: 106.8 kB / 0.5925 GB, free: 10.26 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.807e-05/1.486, allocations: 4 kB / 0.5925 GB, free: 10.26 MB / 474.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01236/1.498, allocations: 3.078 MB / 0.5955 GB, free: 8.184 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.937e-05/1.499, allocations: 19.98 kB / 0.5955 GB, free: 8.164 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001441/1.5, allocations: 265.7 kB / 0.5958 GB, free: 7.949 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004587/1.505, allocations: 0.5164 MB / 0.5963 GB, free: 7.484 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00238/1.507, allocations: 2.507 MB / 0.5987 GB, free: 5.051 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003815/1.511, allocations: 257 kB / 0.599 GB, free: 4.832 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006314/1.512, allocations: 109.4 kB / 0.5991 GB, free: 4.75 MB / 474.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 (258): * Single equations (assignments): 251 * 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: 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 prepare postOptimizeDAE: time 0.00215/1.514, allocations: 0.6614 MB / 0.5997 GB, free: 4.309 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006662/1.515, allocations: 197.6 kB / 0.5999 GB, free: 4.113 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01882/1.533, allocations: 7.716 MB / 0.6074 GB, free: 14.86 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001381/1.534, allocations: 92.11 kB / 0.6075 GB, free: 14.79 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.245e-05/1.534, allocations: 0 / 0.6075 GB, free: 14.79 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01555/1.549, allocations: 6.647 MB / 0.614 GB, free: 10.23 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02653/1.576, allocations: 10.86 MB / 0.6246 GB, free: 3.121 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.112e-05/1.576, allocations: 8 kB / 0.6246 GB, free: 3.113 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003506/1.579, allocations: 400.1 kB / 0.625 GB, free: 2.75 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002204/1.582, allocations: 360.4 kB / 0.6254 GB, free: 2.461 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005022/1.582, allocations: 67.33 kB / 0.6254 GB, free: 2.422 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002515/1.585, allocations: 2.571 MB / 0.6279 GB, free: 15.96 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.998e-06/1.585, allocations: 0 / 0.6279 GB, free: 15.96 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01976/1.605, allocations: 7.151 MB / 0.6349 GB, free: 11.14 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002366/1.607, allocations: 0.7395 MB / 0.6356 GB, free: 10.51 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008139/1.608, allocations: 50.98 kB / 0.6357 GB, free: 10.49 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002972/1.611, allocations: 192.3 kB / 0.6359 GB, free: 10.32 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005756/1.611, allocations: 146 kB / 0.636 GB, free: 10.2 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002359/1.612, allocations: 68.97 kB / 0.6361 GB, free: 10.14 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.002666/1.614, allocations: 1.165 MB / 0.6372 GB, free: 9.266 MB / 0.4948 GB Notification: Performance of sort global known variables: time 9.62e-07/1.614, allocations: 4 kB / 0.6372 GB, free: 9.262 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.01086/1.625, allocations: 2.533 MB / 0.6397 GB, free: 6.891 MB / 0.4948 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.01216/1.638, allocations: 2.099 MB / 0.6417 GB, free: 5.035 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.01869/1.656, allocations: 5.439 MB / 0.6471 GB, free: 76 kB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 9.398e-06/1.656, allocations: 0 / 0.6471 GB, free: 76 kB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.006793/1.663, allocations: 2.461 MB / 0.6495 GB, free: 13.63 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007944/1.671, allocations: 0.8725 MB / 0.6503 GB, free: 12.76 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02247/1.694, allocations: 9.138 MB / 0.6592 GB, free: 3.719 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004984/1.699, allocations: 2.308 MB / 0.6615 GB, free: 1.375 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.01146/1.71, allocations: 2.833 MB / 0.6643 GB, free: 14.56 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001171/1.711, allocations: 179.3 kB / 0.6644 GB, free: 14.39 MB / 0.5261 GB Notification: Performance of SimCode: time 1.252e-06/1.711, allocations: 0 / 0.6644 GB, free: 14.39 MB / 0.5261 GB Notification: Performance of Templates: time 0.5047/2.216, allocations: 75.76 MB / 0.7384 GB, free: 209.9 MB / 0.5417 GB