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.2_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2") Notification: Performance of loadModel(ModelicaTest): time 2.388/2.388, allocations: 234.9 MB / 249.4 MB, free: 10.01 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 4.194e-05/4.195e-05, allocations: 8 kB / 308 MB, free: 15.33 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3779/0.3779, allocations: 54.84 MB / 362.9 MB, free: 12.27 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2): time 0.1002/0.4782, allocations: 54.06 MB / 416.9 MB, free: 7.586 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.05252/0.5308, allocations: 24.21 MB / 441.1 MB, free: 15.32 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002288/0.5331, allocations: 67.5 kB / 441.2 MB, free: 15.25 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003121/0.5363, allocations: 0.731 MB / 441.9 MB, free: 14.52 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01956/0.5559, allocations: 4.502 MB / 446.4 MB, free: 10 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01835/0.5743, allocations: 4.871 MB / 451.3 MB, free: 5.125 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.005424/0.5798, allocations: 1.982 MB / 453.3 MB, free: 3.137 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001677/0.5815, allocations: 0.6493 MB / 453.9 MB, free: 2.488 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004033/0.5856, allocations: 1.188 MB / 455.1 MB, free: 1.297 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.03233/0.618, allocations: 12.14 MB / 467.3 MB, free: 5.152 MB / 394.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02541/0.6435, allocations: 8.701 MB / 476 MB, free: 12.44 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 0.004345/0.6479, allocations: 0.5234 MB / 476.5 MB, free: 11.92 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001244/0.6492, allocations: 490.5 kB / 477 MB, free: 11.44 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001038/0.6503, allocations: 176 kB / 477.1 MB, free: 11.27 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01468/0.665, allocations: 5.048 MB / 482.2 MB, free: 6.207 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.769e-06/0.6651, allocations: 0 / 482.2 MB, free: 6.207 MB / 410.7 MB Notification: Performance of FrontEnd: time 3.026e-06/0.6651, allocations: 0 / 482.2 MB, free: 6.207 MB / 410.7 MB Notification: Performance of Transformations before backend: time 9.336e-05/0.6652, allocations: 0 / 482.2 MB, free: 6.207 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: 322 * Number of variables: 322 Notification: Performance of Generate backend data structure: time 0.009311/0.6745, allocations: 2.478 MB / 484.7 MB, free: 3.668 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.566e-05/0.6746, allocations: 12.03 kB / 484.7 MB, free: 3.656 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005888/0.6805, allocations: 0.5404 MB / 485.2 MB, free: 3.113 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003467/0.684, allocations: 1.086 MB / 486.3 MB, free: 1.98 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002151/0.6843, allocations: 114.4 kB / 486.4 MB, free: 1.867 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004418/0.6847, allocations: 123.9 kB / 486.5 MB, free: 1.746 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008166/0.6929, allocations: 2.224 MB / 488.8 MB, free: 15.41 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.725e-05/0.693, allocations: 0 / 488.8 MB, free: 15.41 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002506/0.6933, allocations: 59.92 kB / 488.8 MB, free: 15.35 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002798/0.6936, allocations: 118.2 kB / 488.9 MB, free: 15.23 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008594/0.7022, allocations: 2.038 MB / 491 MB, free: 13.18 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.02231/0.7246, allocations: 9.589 MB / 0.4888 GB, free: 2.773 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005908/0.7305, allocations: 1.382 MB / 0.4902 GB, free: 1.379 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.3936/1.124, allocations: 19.01 MB / 0.5088 GB, free: 89.95 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004748/1.129, allocations: 1.015 MB / 0.5097 GB, free: 89.86 MB / 426.7 MB Notification: Performance of pre-optimization done (n=96): time 5.42e-06/1.129, allocations: 3.281 kB / 0.5097 GB, free: 89.86 MB / 426.7 MB Notification: Performance of matching and sorting (n=104): time 0.02081/1.15, allocations: 5.129 MB / 0.5148 GB, free: 89.17 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.994e-05/1.15, allocations: 218 kB / 0.515 GB, free: 88.92 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001789/1.152, allocations: 0.9583 MB / 0.5159 GB, free: 88.77 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002731/1.152, allocations: 51.23 kB / 0.5159 GB, free: 88.73 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006431/1.153, allocations: 0.6749 MB / 0.5166 GB, free: 88.45 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005555/1.153, allocations: 359.5 kB / 0.5169 GB, free: 88.23 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001346/1.153, allocations: 24.5 kB / 0.517 GB, free: 88.23 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.000147/1.154, allocations: 356.5 kB / 0.5173 GB, free: 87.92 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00227/1.156, allocations: 0.6794 MB / 0.518 GB, free: 87.91 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002586/1.159, allocations: 1.028 MB / 0.519 GB, free: 87.51 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00262/1.161, allocations: 0.8365 MB / 0.5198 GB, free: 87.45 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.54e-05/1.161, allocations: 3.906 kB / 0.5198 GB, free: 87.45 MB / 426.7 MB Notification: Performance of matching and sorting (n=168) (initialization): time 0.006678/1.168, allocations: 2.007 MB / 0.5218 GB, free: 86.48 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.00108/1.169, allocations: 3.789 MB / 0.5255 GB, free: 82.5 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.992e-05/1.169, allocations: 12 kB / 0.5255 GB, free: 82.49 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009136/1.17, allocations: 134.6 kB / 0.5256 GB, free: 82.4 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002636/1.173, allocations: 335.2 kB / 0.5259 GB, free: 82.16 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009853/1.174, allocations: 1.269 MB / 0.5272 GB, free: 80.99 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002446/1.176, allocations: 155.6 kB / 0.5273 GB, free: 80.86 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002406/1.177, allocations: 67.8 kB / 0.5274 GB, free: 80.8 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.522e-05/1.177, allocations: 4 kB / 0.5274 GB, free: 80.8 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005612/1.182, allocations: 1.848 MB / 0.5292 GB, free: 79.55 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.396e-05/1.182, allocations: 20.08 kB / 0.5292 GB, free: 79.53 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006229/1.183, allocations: 131.2 kB / 0.5293 GB, free: 79.42 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00251/1.186, allocations: 331.6 kB / 0.5296 GB, free: 79.13 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009327/1.187, allocations: 1.257 MB / 0.5309 GB, free: 77.91 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002237/1.189, allocations: 165.4 kB / 0.531 GB, free: 77.77 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000219/1.189, allocations: 61.67 kB / 0.5311 GB, free: 77.72 MB / 426.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: 17 (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,valveOpening1.nextEventScaled,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.001149/1.19, allocations: 472.3 kB / 0.5315 GB, free: 77.39 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003426/1.191, allocations: 130.4 kB / 0.5317 GB, free: 77.27 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00919/1.2, allocations: 4.709 MB / 0.5363 GB, free: 74.05 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.029e-05/1.2, allocations: 61.55 kB / 0.5363 GB, free: 74.01 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.308e-05/1.2, allocations: 0 / 0.5363 GB, free: 74.01 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.008653/1.209, allocations: 3.945 MB / 0.5402 GB, free: 70.91 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01309/1.222, allocations: 6.688 MB / 0.5467 GB, free: 64.17 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.505e-05/1.222, allocations: 3.938 kB / 0.5467 GB, free: 64.16 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001969/1.224, allocations: 246.5 kB / 0.5469 GB, free: 63.93 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001036/1.225, allocations: 173.5 kB / 0.5471 GB, free: 63.76 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002403/1.225, allocations: 43.97 kB / 0.5471 GB, free: 63.71 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009256/1.226, allocations: 1.284 MB / 0.5484 GB, free: 62.38 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.775e-06/1.226, allocations: 0 / 0.5484 GB, free: 62.38 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009055/1.235, allocations: 4.324 MB / 0.5526 GB, free: 58 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001467/1.237, allocations: 0.513 MB / 0.5531 GB, free: 57.46 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005747/1.237, allocations: 36 kB / 0.5532 GB, free: 57.43 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002103/1.24, allocations: 119.8 kB / 0.5533 GB, free: 57.31 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003729/1.24, allocations: 84.86 kB / 0.5534 GB, free: 57.23 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001357/1.24, allocations: 39.98 kB / 0.5534 GB, free: 57.19 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.00168/1.242, allocations: 0.8412 MB / 0.5542 GB, free: 56.35 MB / 426.7 MB Notification: Performance of sort global known variables: time 8.61e-07/1.242, allocations: 0 / 0.5542 GB, free: 56.35 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.007381/1.249, allocations: 2.003 MB / 0.5562 GB, free: 54.52 MB / 426.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: 36 ($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,valveOpening1.nextEventScaled) * 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 (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.0112/1.261, allocations: 1.862 MB / 0.558 GB, free: 53.03 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.009078/1.27, allocations: 3.321 MB / 0.5612 GB, free: 49.74 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 8.426e-06/1.27, allocations: 3.391 kB / 0.5612 GB, free: 49.74 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003478/1.273, allocations: 1.509 MB / 0.5627 GB, free: 48.24 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005171/1.278, allocations: 0.5789 MB / 0.5633 GB, free: 47.68 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01159/1.29, allocations: 5.857 MB / 0.569 GB, free: 41.9 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001668/1.292, allocations: 1.726 MB / 0.5707 GB, free: 40.14 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.005426/1.297, allocations: 1.69 MB / 0.5723 GB, free: 38.46 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006844/1.298, allocations: 111.4 kB / 0.5724 GB, free: 38.35 MB / 426.7 MB Notification: Performance of SimCode: time 1.503e-06/1.298, allocations: 0 / 0.5724 GB, free: 38.35 MB / 426.7 MB Notification: Performance of Templates: time 0.1352/1.433, allocations: 57.58 MB / 0.6287 GB, free: 12.98 MB / 458.7 MB