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_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeClosingValve") Notification: Performance of loadModel(ModelicaTest): time 2.214/2.214, allocations: 235 MB / 247.2 MB, free: 14.4 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.992e-05/4.012e-05, allocations: 4 kB / 304.9 MB, free: 5.18 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3277/0.3278, allocations: 54.85 MB / 359.8 MB, free: 3.141 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.319/6.647, allocations: 2.655 GB / 3.006 GB, free: 115.6 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002175/6.647, allocations: 77.27 kB / 3.007 GB, free: 115.5 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.966/8.613, allocations: 463.7 MB / 3.459 GB, free: 35.42 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.073e-06/8.613, allocations: 0 / 3.459 GB, free: 35.42 MB / 490.7 MB Notification: Performance of Transformations before backend: time 7.635e-05/8.613, allocations: 29.19 kB / 3.459 GB, free: 35.41 MB / 490.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.007633/8.621, allocations: 2.143 MB / 3.462 GB, free: 34.01 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.298e-05/8.621, allocations: 12.03 kB / 3.462 GB, free: 34 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003404/8.624, allocations: 375.6 kB / 3.462 GB, free: 33.71 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002507/8.627, allocations: 0.8829 MB / 3.463 GB, free: 32.95 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.966e-05/8.627, allocations: 70.69 kB / 3.463 GB, free: 32.89 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001646/8.627, allocations: 70.19 kB / 3.463 GB, free: 32.82 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003556/8.63, allocations: 1.458 MB / 3.464 GB, free: 31.54 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.278e-05/8.631, allocations: 0 / 3.464 GB, free: 31.54 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001309/8.631, allocations: 37.39 kB / 3.464 GB, free: 31.51 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.595e-05/8.631, allocations: 57.11 kB / 3.464 GB, free: 31.46 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003275/8.634, allocations: 1.231 MB / 3.466 GB, free: 30.42 MB / 490.7 MB Warning: The model contains alias variables with conflicting start and/or 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.009357/8.643, allocations: 6.558 MB / 3.472 GB, free: 24.14 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002714/8.646, allocations: 0.9243 MB / 3.473 GB, free: 23.34 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006728/8.647, allocations: 394.3 kB / 3.473 GB, free: 22.99 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06989/8.717, allocations: 32.17 MB / 3.505 GB, free: 7.457 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.657e-05/8.717, allocations: 41.98 kB / 3.505 GB, free: 7.41 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=57): time 4.138e-06/8.717, allocations: 0 / 3.505 GB, free: 7.41 MB / 0.4948 GB Notification: Performance of matching and sorting (n=61): time 0.009585/8.727, allocations: 2.809 MB / 3.507 GB, free: 4.656 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001358/8.727, allocations: 192.5 kB / 3.508 GB, free: 4.426 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00125/8.728, allocations: 0.6251 MB / 3.508 GB, free: 3.793 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.0001339/8.728, allocations: 41.7 kB / 3.508 GB, free: 3.746 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004338/8.729, allocations: 418.1 kB / 3.509 GB, free: 3.336 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002948/8.729, allocations: 211.9 kB / 3.509 GB, free: 3.133 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.251e-05/8.729, allocations: 16 kB / 3.509 GB, free: 3.117 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0002796/8.729, allocations: 390.7 kB / 3.509 GB, free: 2.727 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008482/8.73, allocations: 353.4 kB / 3.51 GB, free: 2.379 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001008/8.731, allocations: 0.5425 MB / 3.51 GB, free: 1.75 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009394/8.732, allocations: 415 kB / 3.511 GB, free: 1.344 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.155e-06/8.732, allocations: 4 kB / 3.511 GB, free: 1.34 MB / 0.4948 GB Notification: Performance of matching and sorting (n=92) (initialization): time 0.002974/8.735, allocations: 1.198 MB / 3.512 GB, free: 136 kB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.2949/9.03, allocations: 2.257 MB / 3.514 GB, free: 58.43 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.94e-05/9.03, allocations: 5.938 kB / 3.514 GB, free: 58.43 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004569/9.035, allocations: 0.6332 MB / 3.515 GB, free: 58.42 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008617/9.036, allocations: 162.4 kB / 3.515 GB, free: 58.42 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001868/9.037, allocations: 1.255 MB / 3.516 GB, free: 57.9 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001246/9.039, allocations: 106.5 kB / 3.516 GB, free: 57.9 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001243/9.039, allocations: 39.73 kB / 3.516 GB, free: 57.9 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 1.367e-05/9.039, allocations: 5.188 kB / 3.516 GB, free: 57.9 MB / 0.4948 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002688/9.042, allocations: 1.054 MB / 3.517 GB, free: 57.89 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.52e-05/9.042, allocations: 6.531 kB / 3.517 GB, free: 57.89 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002038/9.044, allocations: 395.8 kB / 3.518 GB, free: 57.88 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008617/9.045, allocations: 173.6 kB / 3.518 GB, free: 57.88 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00149/9.046, allocations: 1.058 MB / 3.519 GB, free: 57.35 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001181/9.047, allocations: 107.2 kB / 3.519 GB, free: 57.35 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000118/9.047, allocations: 37.98 kB / 3.519 GB, free: 57.35 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 26 * Number of states: 0 () * Number of discrete variables: 9 (valve.state_b.phase,valve.state_a.phase,pipe.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 (68): * Single equations (assignments): 67 * 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.0002734/9.048, allocations: 146.2 kB / 3.519 GB, free: 57.25 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002642/9.048, allocations: 87.48 kB / 3.519 GB, free: 57.24 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005018/9.053, allocations: 3.241 MB / 3.522 GB, free: 57.03 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.834e-05/9.053, allocations: 37.95 kB / 3.522 GB, free: 57.03 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.597e-06/9.053, allocations: 1.344 kB / 3.522 GB, free: 57.03 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.003561/9.057, allocations: 2.689 MB / 3.525 GB, free: 56.52 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007331/9.064, allocations: 4.482 MB / 3.529 GB, free: 56.11 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.096e-05/9.064, allocations: 0.5 kB / 3.529 GB, free: 56.11 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009564/9.065, allocations: 180.2 kB / 3.529 GB, free: 56.11 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004831/9.066, allocations: 84 kB / 3.53 GB, free: 56.1 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.791e-05/9.066, allocations: 22.66 kB / 3.53 GB, free: 56.1 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000442/9.066, allocations: 0.6514 MB / 3.53 GB, free: 55.57 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.942e-06/9.066, allocations: 1.734 kB / 3.53 GB, free: 55.57 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004357/9.071, allocations: 2.741 MB / 3.533 GB, free: 55.1 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009201/9.071, allocations: 463.5 kB / 3.533 GB, free: 54.92 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002261/9.072, allocations: 15.44 kB / 3.533 GB, free: 54.92 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001035/9.073, allocations: 93.97 kB / 3.533 GB, free: 54.91 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001804/9.073, allocations: 61.3 kB / 3.533 GB, free: 54.91 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.732e-05/9.073, allocations: 25.67 kB / 3.533 GB, free: 54.91 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.001453/9.075, allocations: 0.7881 MB / 3.534 GB, free: 54.79 MB / 0.4948 GB Notification: Performance of sort global known variables: time 9.42e-07/9.075, allocations: 0 / 3.534 GB, free: 54.79 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.006598/9.081, allocations: 1.734 MB / 3.536 GB, free: 54.79 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,$cse17.phase,$cse17.region,$cse19.phase,$cse19.region,$cse20.phase,$cse20.region,$cse23.phase,$cse23.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 (76): * Single equations (assignments): 65 * 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.008865/9.09, allocations: 1.976 MB / 3.538 GB, free: 54.63 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.003338/9.093, allocations: 1.652 MB / 3.54 GB, free: 54.6 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 5.824e-06/9.093, allocations: 0 / 3.54 GB, free: 54.6 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.001476/9.095, allocations: 0.8376 MB / 3.54 GB, free: 54.6 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003109/9.098, allocations: 478.6 kB / 3.541 GB, free: 54.58 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004224/9.102, allocations: 2.383 MB / 3.543 GB, free: 54.06 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008846/9.103, allocations: 1.347 MB / 3.544 GB, free: 53.34 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.002417/9.106, allocations: 0.9701 MB / 3.545 GB, free: 53.32 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002756/9.106, allocations: 73.2 kB / 3.545 GB, free: 53.31 MB / 0.4948 GB Notification: Performance of SimCode: time 1.712e-06/9.106, allocations: 0 / 3.545 GB, free: 53.31 MB / 0.4948 GB Notification: Performance of Templates: time 0.09765/9.204, allocations: 54.6 MB / 3.599 GB, free: 51.3 MB / 0.4948 GB