Running command: translateModel(ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeClosingValve,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|pipe.mediums.1..h|pipe.mediums.1..p",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeClosingValve") Notification: Performance of loadModel(ModelicaTest): time 2.389/2.389, allocations: 269 MB / 284.1 MB, free: 3.566 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.892e-05/3.886e-05, allocations: 4 kB / 349 MB, free: 10.77 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1383/0.1384, allocations: 61.89 MB / 410.9 MB, free: 12.89 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeClosingValve): time 0.399/0.5374, allocations: 39.09 MB / 450 MB, free: 7.609 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.04498/0.5824, allocations: 21.17 MB / 471.2 MB, free: 8.34 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00187/0.5844, allocations: 37.03 kB / 471.2 MB, free: 8.324 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002209/0.5866, allocations: 482.8 kB / 471.7 MB, free: 7.895 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01856/0.6052, allocations: 4.204 MB / 475.9 MB, free: 4.258 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01556/0.6208, allocations: 3.618 MB / 479.5 MB, free: 1.418 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.003753/0.6246, allocations: 1.237 MB / 480.7 MB, free: 0.5234 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009304/0.6255, allocations: 416.8 kB / 481.2 MB, free: 256 kB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.02309/0.6487, allocations: 9.019 MB / 490.2 MB, free: 8.445 MB / 394.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0346/0.6833, allocations: 14.32 MB / 0.4927 GB, free: 10.12 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02477/0.7081, allocations: 7.823 MB / 0.5003 GB, free: 2.285 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 0.004099/0.7123, allocations: 480 kB / 0.5008 GB, free: 1.816 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0008584/0.7132, allocations: 271.2 kB / 0.501 GB, free: 1.551 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0006601/0.7139, allocations: 112 kB / 0.5011 GB, free: 1.441 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0128/0.7267, allocations: 3.945 MB / 0.505 GB, free: 13.49 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.178e-06/0.7268, allocations: 4 kB / 0.505 GB, free: 13.48 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.404e-06/0.7268, allocations: 0 / 0.505 GB, free: 13.48 MB / 426.7 MB Notification: Performance of Transformations before backend: time 2.378e-05/0.7268, allocations: 0 / 0.505 GB, free: 13.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: 196 * Number of variables: 196 Notification: Performance of Generate backend data structure: time 0.007182/0.734, allocations: 1.825 MB / 0.5068 GB, free: 11.61 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.696e-05/0.7341, allocations: 12.03 kB / 0.5068 GB, free: 11.59 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003719/0.7378, allocations: 370.4 kB / 0.5071 GB, free: 11.23 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002043/0.7399, allocations: 0.707 MB / 0.5078 GB, free: 10.48 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001216/0.74, allocations: 69.98 kB / 0.5079 GB, free: 10.41 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002029/0.7402, allocations: 71.98 kB / 0.508 GB, free: 10.34 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005052/0.7453, allocations: 1.443 MB / 0.5094 GB, free: 8.82 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.966e-05/0.7454, allocations: 7.938 kB / 0.5094 GB, free: 8.812 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001476/0.7455, allocations: 39.98 kB / 0.5094 GB, free: 8.773 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001481/0.7457, allocations: 61.95 kB / 0.5095 GB, free: 8.711 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005395/0.7511, allocations: 1.346 MB / 0.5108 GB, free: 7.363 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.01299/0.7641, allocations: 6.545 MB / 0.5172 GB, free: 280 kB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004683/0.7689, allocations: 1.009 MB / 0.5182 GB, free: 15.23 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1142/0.8831, allocations: 32.47 MB / 0.5499 GB, free: 10.93 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.931e-05/0.8832, allocations: 42.94 kB / 0.5499 GB, free: 10.88 MB / 474.7 MB Notification: Performance of pre-optimization done (n=56): time 3.126e-06/0.8833, allocations: 0 / 0.5499 GB, free: 10.88 MB / 474.7 MB Notification: Performance of matching and sorting (n=60): time 0.01407/0.8973, allocations: 3.324 MB / 0.5532 GB, free: 7.492 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.904e-05/0.8975, allocations: 166.8 kB / 0.5533 GB, free: 7.293 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001285/0.8988, allocations: 0.6325 MB / 0.5539 GB, free: 6.66 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001273/0.8989, allocations: 37.7 kB / 0.554 GB, free: 6.617 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003944/0.8993, allocations: 434 kB / 0.5544 GB, free: 6.188 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002823/0.8996, allocations: 213 kB / 0.5546 GB, free: 5.977 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.142e-05/0.8997, allocations: 16 kB / 0.5546 GB, free: 5.961 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0001542/0.8999, allocations: 338.8 kB / 0.5549 GB, free: 5.621 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001539/0.9014, allocations: 413.7 kB / 0.5553 GB, free: 5.219 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001725/0.9032, allocations: 0.6245 MB / 0.5559 GB, free: 4.504 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001681/0.9049, allocations: 485.9 kB / 0.5564 GB, free: 4.031 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.566e-06/0.9049, allocations: 4 kB / 0.5564 GB, free: 4.027 MB / 474.7 MB Notification: Performance of matching and sorting (n=93) (initialization): time 0.004523/0.9094, allocations: 1.308 MB / 0.5577 GB, free: 2.711 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001041/0.9105, allocations: 2.451 MB / 0.5601 GB, free: 68 kB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.672e-05/0.9106, allocations: 7.938 kB / 0.5601 GB, free: 60 kB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005672/0.9162, allocations: 0.693 MB / 0.5608 GB, free: 15.36 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001195/0.9175, allocations: 163.8 kB / 0.5609 GB, free: 15.2 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002827/0.9203, allocations: 1.297 MB / 0.5622 GB, free: 13.88 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001507/0.9219, allocations: 103.8 kB / 0.5623 GB, free: 13.78 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001269/0.922, allocations: 39.98 kB / 0.5623 GB, free: 13.74 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.414e-05/0.922, allocations: 7.938 kB / 0.5623 GB, free: 13.73 MB / 490.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00471/0.9268, allocations: 1.236 MB / 0.5635 GB, free: 12.5 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.772e-05/0.9268, allocations: 8.406 kB / 0.5635 GB, free: 12.49 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002828/0.9297, allocations: 416.4 kB / 0.5639 GB, free: 12.08 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001262/0.931, allocations: 175.7 kB / 0.5641 GB, free: 11.91 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002161/0.9331, allocations: 1.101 MB / 0.5652 GB, free: 10.78 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001145/0.9343, allocations: 103.8 kB / 0.5653 GB, free: 10.68 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001153/0.9344, allocations: 43.98 kB / 0.5653 GB, free: 10.64 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 28 * Number of states: 0 () * Number of discrete variables: 9 (pipe.state_a.phase,valve.state_b.phase,valve.state_a.phase,source.medium.phase,pipe.statesFM[2].phase,sink.medium.phase,sink.state.phase,pipe.state_b.phase,source.state.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (69): * Single equations (assignments): 68 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * 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 {2 23} Notification: Performance of prepare postOptimizeDAE: time 0.0007784/0.9352, allocations: 289.5 kB / 0.5656 GB, free: 10.34 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003134/0.9355, allocations: 90.95 kB / 0.5657 GB, free: 10.25 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007392/0.943, allocations: 3.327 MB / 0.5689 GB, free: 6.91 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.86e-05/0.9431, allocations: 39.94 kB / 0.569 GB, free: 6.871 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.198e-05/0.9431, allocations: 4 kB / 0.569 GB, free: 6.867 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.005699/0.9488, allocations: 2.774 MB / 0.5717 GB, free: 4.02 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009935/0.9588, allocations: 4.576 MB / 0.5762 GB, free: 15.38 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.903e-05/0.9589, allocations: 4 kB / 0.5762 GB, free: 15.38 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001454/0.9603, allocations: 175.8 kB / 0.5763 GB, free: 15.2 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005927/0.961, allocations: 84.78 kB / 0.5764 GB, free: 15.12 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001097/0.9611, allocations: 19.98 kB / 0.5764 GB, free: 15.1 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006413/0.9617, allocations: 0.6575 MB / 0.5771 GB, free: 14.41 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.254e-06/0.9618, allocations: 0 / 0.5771 GB, free: 14.41 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006775/0.9685, allocations: 2.933 MB / 0.5799 GB, free: 11.45 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009912/0.9696, allocations: 454.2 kB / 0.5804 GB, free: 10.98 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002838/0.9699, allocations: 12 kB / 0.5804 GB, free: 10.97 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00126/0.9712, allocations: 83.98 kB / 0.5805 GB, free: 10.89 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002128/0.9714, allocations: 60.5 kB / 0.5805 GB, free: 10.82 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.492e-05/0.9715, allocations: 27.98 kB / 0.5805 GB, free: 10.8 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.001653/0.9731, allocations: 0.7941 MB / 0.5813 GB, free: 9.996 MB / 0.4948 GB Notification: Performance of sort global known variables: time 3.81e-07/0.9732, allocations: 0 / 0.5813 GB, free: 9.996 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.00585/0.979, allocations: 1.585 MB / 0.5829 GB, free: 8.41 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (pipe.mediums[1].p,pipe.mediums[1].h) * Number of discrete variables: 21 ($cse5.phase,$cse5.region,$cse7.region3boundary,$cse8.region3boundary,$cse9.phase,$cse9.region,$cse11.phase,$cse11.region,$cse12.phase,$cse12.region,$cse14.phase,$cse14.region,$cse15.phase,$cse15.region,$cse18.phase,$cse18.region,$cse21.phase,$cse21.region,source.medium.phase,pipe.statesFM[2].phase,sink.medium.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (75): * Single equations (assignments): 64 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 10 * 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 {1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.0077/0.9868, allocations: 1.577 MB / 0.5844 GB, free: 6.836 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.006082/0.9929, allocations: 1.855 MB / 0.5862 GB, free: 4.992 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 5.621e-06/0.9929, allocations: 0 / 0.5862 GB, free: 4.992 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.002396/0.9953, allocations: 0.9001 MB / 0.5871 GB, free: 4.098 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00412/0.9995, allocations: 467.7 kB / 0.5875 GB, free: 3.641 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007462/1.007, allocations: 3.78 MB / 0.5912 GB, free: 15.82 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0012/1.008, allocations: 1.325 MB / 0.5925 GB, free: 14.46 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004665/1.009, allocations: 87.42 kB / 0.5926 GB, free: 14.37 MB / 0.5105 GB Notification: Performance of SimCode: time 8.22e-07/1.009, allocations: 4 kB / 0.5926 GB, free: 14.37 MB / 0.5105 GB Notification: Performance of Templates: time 0.4394/1.448, allocations: 44.37 MB / 0.6359 GB, free: 164.2 MB / 0.5105 GB