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_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeClosingValve") Notification: Performance of loadModel(ModelicaTest): time 2.259/2.259, allocations: 270 MB / 283.6 MB, free: 3.027 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.653e-05/3.668e-05, allocations: 7.984 kB / 348.4 MB, free: 10.81 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1107/0.1108, allocations: 61.89 MB / 410.3 MB, free: 12.99 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.792/6.903, allocations: 2.829 GB / 3.23 GB, free: 98.79 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001933/6.903, allocations: 79.45 kB / 3.23 GB, free: 98.75 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 1.938/8.841, allocations: 471.2 MB / 3.69 GB, free: 36.31 MB / 0.5261 GB Notification: Performance of FrontEnd: time 1.869e-06/8.841, allocations: 0 / 3.69 GB, free: 36.31 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 9.104e-05/8.841, allocations: 20 kB / 3.69 GB, free: 36.29 MB / 0.5261 GB 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.007585/8.848, allocations: 2.147 MB / 3.692 GB, free: 34.31 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 4.236e-05/8.848, allocations: 12.03 kB / 3.692 GB, free: 34.3 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003471/8.852, allocations: 377.5 kB / 3.692 GB, free: 34.01 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002616/8.855, allocations: 0.8783 MB / 3.693 GB, free: 33.26 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.592e-05/8.855, allocations: 71.78 kB / 3.693 GB, free: 33.19 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001821/8.855, allocations: 76.22 kB / 3.693 GB, free: 33.12 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003887/8.859, allocations: 1.448 MB / 3.695 GB, free: 31.85 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.963e-05/8.859, allocations: 7.938 kB / 3.695 GB, free: 31.84 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001325/8.859, allocations: 31.52 kB / 3.695 GB, free: 31.81 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.439e-05/8.859, allocations: 57.45 kB / 3.695 GB, free: 31.77 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003439/8.863, allocations: 1.231 MB / 3.696 GB, free: 30.73 MB / 0.5261 GB 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.009486/8.872, allocations: 6.563 MB / 3.703 GB, free: 24.43 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002735/8.875, allocations: 0.9271 MB / 3.703 GB, free: 23.64 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006887/8.876, allocations: 387.6 kB / 3.704 GB, free: 23.29 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.07081/8.946, allocations: 32.11 MB / 3.735 GB, free: 3.684 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.429e-05/8.947, allocations: 43.12 kB / 3.735 GB, free: 3.633 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=57): time 3.768e-06/8.947, allocations: 0 / 3.735 GB, free: 3.633 MB / 0.5417 GB Notification: Performance of matching and sorting (n=61): time 0.009657/8.956, allocations: 2.804 MB / 3.738 GB, free: 0.7695 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001334/8.956, allocations: 192.5 kB / 3.738 GB, free: 0.5391 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.3579/9.314, allocations: 0.6261 MB / 3.739 GB, free: 66.22 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 0.0001814/9.315, allocations: 37.3 kB / 3.739 GB, free: 66.19 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004522/9.315, allocations: 415.2 kB / 3.739 GB, free: 66.11 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002807/9.315, allocations: 212.5 kB / 3.739 GB, free: 66.04 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.564e-05/9.315, allocations: 16.23 kB / 3.739 GB, free: 66.04 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0001798/9.316, allocations: 392.4 kB / 3.74 GB, free: 65.73 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009367/9.317, allocations: 344.8 kB / 3.74 GB, free: 65.73 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001001/9.318, allocations: 0.5486 MB / 3.741 GB, free: 65.5 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000959/9.318, allocations: 419.7 kB / 3.741 GB, free: 65.5 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.027e-06/9.319, allocations: 2.25 kB / 3.741 GB, free: 65.5 MB / 0.5417 GB Notification: Performance of matching and sorting (n=92) (initialization): time 0.003009/9.322, allocations: 1.185 MB / 3.742 GB, free: 65.42 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004831/9.322, allocations: 2.276 MB / 3.744 GB, free: 63.06 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.934e-05/9.322, allocations: 8.688 kB / 3.744 GB, free: 63.06 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004414/9.327, allocations: 0.6478 MB / 3.745 GB, free: 63.05 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009094/9.327, allocations: 158.9 kB / 3.745 GB, free: 63.05 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001961/9.329, allocations: 1.256 MB / 3.746 GB, free: 62.53 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001357/9.331, allocations: 109.8 kB / 3.747 GB, free: 62.53 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000129/9.331, allocations: 43.56 kB / 3.747 GB, free: 62.53 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 1.48e-05/9.331, allocations: 6.312 kB / 3.747 GB, free: 62.53 MB / 0.5417 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002816/9.334, allocations: 1.052 MB / 3.748 GB, free: 62.51 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.556e-05/9.334, allocations: 5.812 kB / 3.748 GB, free: 62.51 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002109/9.336, allocations: 398.1 kB / 3.748 GB, free: 62.5 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009453/9.337, allocations: 174.7 kB / 3.748 GB, free: 62.5 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001401/9.338, allocations: 1.054 MB / 3.749 GB, free: 61.97 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001209/9.34, allocations: 102.9 kB / 3.749 GB, free: 61.96 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001199/9.34, allocations: 37.22 kB / 3.749 GB, free: 61.96 MB / 0.5417 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.0003011/9.34, allocations: 156.8 kB / 3.75 GB, free: 61.86 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002628/9.34, allocations: 89.86 kB / 3.75 GB, free: 61.81 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005457/9.346, allocations: 3.236 MB / 3.753 GB, free: 61.5 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.783e-05/9.346, allocations: 39.61 kB / 3.753 GB, free: 61.5 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.692e-06/9.346, allocations: 1.875 kB / 3.753 GB, free: 61.5 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.003519/9.349, allocations: 2.684 MB / 3.755 GB, free: 61 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00753/9.357, allocations: 4.486 MB / 3.76 GB, free: 60.58 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.098e-05/9.357, allocations: 4.875 kB / 3.76 GB, free: 60.58 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001007/9.358, allocations: 176.3 kB / 3.76 GB, free: 60.58 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000493/9.359, allocations: 89.11 kB / 3.76 GB, free: 60.57 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.577e-05/9.359, allocations: 23.3 kB / 3.76 GB, free: 60.57 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004684/9.359, allocations: 0.6497 MB / 3.761 GB, free: 60.05 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.763e-06/9.359, allocations: 3 kB / 3.761 GB, free: 60.05 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00456/9.364, allocations: 2.744 MB / 3.763 GB, free: 59.57 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001004/9.365, allocations: 455.4 kB / 3.764 GB, free: 59.39 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000231/9.365, allocations: 20.09 kB / 3.764 GB, free: 59.39 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001137/9.366, allocations: 90.52 kB / 3.764 GB, free: 59.39 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001982/9.366, allocations: 64.42 kB / 3.764 GB, free: 59.39 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.453e-05/9.367, allocations: 27.52 kB / 3.764 GB, free: 59.39 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.001517/9.368, allocations: 0.7858 MB / 3.765 GB, free: 59.27 MB / 0.5417 GB Notification: Performance of sort global known variables: time 8.25e-07/9.368, allocations: 1.469 kB / 3.765 GB, free: 59.27 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.007119/9.375, allocations: 1.74 MB / 3.766 GB, free: 59.27 MB / 0.5417 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.009971/9.385, allocations: 1.982 MB / 3.768 GB, free: 59.08 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.003798/9.389, allocations: 1.649 MB / 3.77 GB, free: 59.05 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 1.01e-05/9.389, allocations: 10.12 kB / 3.77 GB, free: 59.05 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.001677/9.391, allocations: 0.8319 MB / 3.771 GB, free: 59.05 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003274/9.394, allocations: 476.2 kB / 3.771 GB, free: 59.03 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004879/9.399, allocations: 2.375 MB / 3.774 GB, free: 58.52 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008873/9.4, allocations: 1.349 MB / 3.775 GB, free: 57.8 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.002572/9.403, allocations: 0.9801 MB / 3.776 GB, free: 57.78 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002814/9.403, allocations: 70.61 kB / 3.776 GB, free: 57.77 MB / 0.5417 GB Notification: Performance of SimCode: time 1.823e-06/9.403, allocations: 0 / 3.776 GB, free: 57.77 MB / 0.5417 GB Notification: Performance of Templates: time 0.1076/9.511, allocations: 54.7 MB / 3.829 GB, free: 55.96 MB / 0.5417 GB