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.3_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeClosingValve") Notification: Performance of loadModel(ModelicaTest): time 2.216/2.216, allocations: 249.5 MB / 261.6 MB, free: 2.16 MB / 202.8 MB Notification: Performance of FrontEnd - loaded program: time 2.497e-05/2.504e-05, allocations: 0 / 323.4 MB, free: 4.316 MB / 266.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3131/0.3132, allocations: 58.83 MB / 382.2 MB, free: 10.32 MB / 314.8 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.415/6.729, allocations: 2.824 GB / 3.198 GB, free: 151.7 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002526/6.729, allocations: 78.52 kB / 3.198 GB, free: 151.7 MB / 0.5105 GB Notification: Performance of FrontEnd - DAE generated: time 1.864/8.593, allocations: 466.1 MB / 3.653 GB, free: 63.27 MB / 0.5105 GB Notification: Performance of FrontEnd: time 1.907e-06/8.593, allocations: 3.656 kB / 3.653 GB, free: 63.27 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 8.656e-05/8.593, allocations: 23.06 kB / 3.653 GB, free: 63.27 MB / 0.5105 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.007623/8.6, allocations: 2.145 MB / 3.655 GB, free: 62.4 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 3.977e-05/8.6, allocations: 7.844 kB / 3.655 GB, free: 62.4 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003359/8.604, allocations: 376.4 kB / 3.655 GB, free: 62.34 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002502/8.606, allocations: 0.8835 MB / 3.656 GB, free: 62.1 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.763e-05/8.606, allocations: 67.06 kB / 3.656 GB, free: 62.09 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001679/8.607, allocations: 74.22 kB / 3.656 GB, free: 62.09 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003421/8.61, allocations: 1.443 MB / 3.658 GB, free: 61.82 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.579e-05/8.61, allocations: 8.125 kB / 3.658 GB, free: 61.82 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001435/8.61, allocations: 41.53 kB / 3.658 GB, free: 61.81 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.839e-05/8.61, allocations: 51.94 kB / 3.658 GB, free: 61.81 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003546/8.614, allocations: 1.233 MB / 3.659 GB, free: 61.81 MB / 0.5105 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.009287/8.623, allocations: 6.567 MB / 3.665 GB, free: 57.66 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002987/8.626, allocations: 0.9254 MB / 3.666 GB, free: 57.59 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006608/8.627, allocations: 382.5 kB / 3.667 GB, free: 57.57 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.07294/8.7, allocations: 32.11 MB / 3.698 GB, free: 37.98 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.344e-05/8.7, allocations: 39.88 kB / 3.698 GB, free: 37.94 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=57): time 4.191e-06/8.7, allocations: 5.781 kB / 3.698 GB, free: 37.93 MB / 0.5105 GB Notification: Performance of matching and sorting (n=61): time 0.008773/8.709, allocations: 2.806 MB / 3.701 GB, free: 37.29 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.61e-05/8.709, allocations: 186.3 kB / 3.701 GB, free: 37.07 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001019/8.71, allocations: 0.635 MB / 3.702 GB, free: 36.95 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 8.296e-05/8.71, allocations: 38.98 kB / 3.702 GB, free: 36.91 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002832/8.71, allocations: 416.7 kB / 3.702 GB, free: 36.72 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001898/8.711, allocations: 211.9 kB / 3.702 GB, free: 36.59 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.848e-05/8.711, allocations: 14.12 kB / 3.702 GB, free: 36.59 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0001379/8.711, allocations: 390.9 kB / 3.703 GB, free: 36.28 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000712/8.712, allocations: 350.7 kB / 3.703 GB, free: 36.27 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008058/8.712, allocations: 0.5457 MB / 3.703 GB, free: 36.04 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007679/8.713, allocations: 419.8 kB / 3.704 GB, free: 36.02 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.385e-06/8.713, allocations: 0 / 3.704 GB, free: 36.02 MB / 0.5105 GB Notification: Performance of matching and sorting (n=92) (initialization): time 0.002535/8.716, allocations: 1.187 MB / 3.705 GB, free: 35.91 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.000442/8.716, allocations: 2.269 MB / 3.707 GB, free: 33.54 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.256e-05/8.716, allocations: 3.438 kB / 3.707 GB, free: 33.54 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004356/8.721, allocations: 0.6548 MB / 3.708 GB, free: 33.52 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008572/8.721, allocations: 164.2 kB / 3.708 GB, free: 33.51 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001711/8.723, allocations: 1.254 MB / 3.709 GB, free: 32.98 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001289/8.725, allocations: 104.3 kB / 3.709 GB, free: 32.97 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001117/8.725, allocations: 41.67 kB / 3.709 GB, free: 32.97 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.312e-05/8.725, allocations: 3.656 kB / 3.709 GB, free: 32.97 MB / 0.5105 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002469/8.727, allocations: 1.054 MB / 3.71 GB, free: 32.94 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.144e-05/8.727, allocations: 7.438 kB / 3.71 GB, free: 32.94 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002169/8.729, allocations: 396.7 kB / 3.711 GB, free: 32.92 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008996/8.73, allocations: 169.8 kB / 3.711 GB, free: 32.92 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001245/8.732, allocations: 1.061 MB / 3.712 GB, free: 32.39 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001163/8.733, allocations: 101.2 kB / 3.712 GB, free: 32.38 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001039/8.733, allocations: 40.98 kB / 3.712 GB, free: 32.38 MB / 0.5105 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.0002632/8.733, allocations: 149.7 kB / 3.712 GB, free: 32.27 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002342/8.733, allocations: 87.66 kB / 3.712 GB, free: 32.23 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004361/8.738, allocations: 3.237 MB / 3.716 GB, free: 31.83 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.821e-05/8.738, allocations: 39.98 kB / 3.716 GB, free: 31.83 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.806e-06/8.738, allocations: 7.844 kB / 3.716 GB, free: 31.83 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.003175/8.741, allocations: 2.691 MB / 3.718 GB, free: 31.31 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006424/8.747, allocations: 4.478 MB / 3.723 GB, free: 30.87 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.014e-05/8.748, allocations: 0 / 3.723 GB, free: 30.87 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009678/8.749, allocations: 173 kB / 3.723 GB, free: 30.86 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004976/8.749, allocations: 100.8 kB / 3.723 GB, free: 30.84 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.295e-05/8.749, allocations: 20.75 kB / 3.723 GB, free: 30.84 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004058/8.75, allocations: 0.6369 MB / 3.723 GB, free: 30.33 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.186e-06/8.75, allocations: 7.484 kB / 3.723 GB, free: 30.33 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003835/8.753, allocations: 2.742 MB / 3.726 GB, free: 29.37 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007943/8.754, allocations: 463.9 kB / 3.727 GB, free: 29.06 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002337/8.754, allocations: 15.47 kB / 3.727 GB, free: 29.05 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001097/8.756, allocations: 89.02 kB / 3.727 GB, free: 29.03 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001582/8.756, allocations: 65.45 kB / 3.727 GB, free: 29.02 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.849e-05/8.756, allocations: 30.09 kB / 3.727 GB, free: 29.02 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.001296/8.757, allocations: 0.7861 MB / 3.728 GB, free: 28.68 MB / 0.5105 GB Notification: Performance of sort global known variables: time 8.47e-07/8.757, allocations: 3.188 kB / 3.728 GB, free: 28.68 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.006295/8.764, allocations: 1.739 MB / 3.729 GB, free: 28.31 MB / 0.5105 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.008234/8.772, allocations: 1.999 MB / 3.731 GB, free: 27.79 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.003271/8.775, allocations: 1.652 MB / 3.733 GB, free: 27.22 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 4.906e-06/8.775, allocations: 0 / 3.733 GB, free: 27.22 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.001436/8.777, allocations: 0.8356 MB / 3.734 GB, free: 26.88 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003022/8.78, allocations: 471.6 kB / 3.734 GB, free: 26.76 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004247/8.784, allocations: 2.374 MB / 3.736 GB, free: 25.72 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008696/8.785, allocations: 1.341 MB / 3.738 GB, free: 24.96 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.002439/8.787, allocations: 0.9841 MB / 3.739 GB, free: 24.91 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002598/8.788, allocations: 70.73 kB / 3.739 GB, free: 24.89 MB / 0.5105 GB Notification: Performance of SimCode: time 1.843e-06/8.788, allocations: 0 / 3.739 GB, free: 24.89 MB / 0.5105 GB Notification: Performance of Templates: time 0.09832/8.886, allocations: 54.66 MB / 3.792 GB, free: 8.152 MB / 0.5261 GB