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_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeClosingValve") Notification: Performance of loadModel(ModelicaTest): time 2.27/2.27, allocations: 270.1 MB / 283.6 MB, free: 3.102 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.981e-05/2.998e-05, allocations: 0 / 348.4 MB, free: 10.81 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1123/0.1124, allocations: 61.9 MB / 410.3 MB, free: 12.97 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.807/6.92, allocations: 2.829 GB / 3.23 GB, free: 98.42 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001969/6.92, allocations: 82.52 kB / 3.23 GB, free: 98.38 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 2.038/8.959, allocations: 471.2 MB / 3.69 GB, free: 36.17 MB / 0.5261 GB Notification: Performance of FrontEnd: time 2.298e-06/8.959, allocations: 4 kB / 3.69 GB, free: 36.16 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 8.678e-05/8.959, allocations: 27.05 kB / 3.69 GB, free: 36.14 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.007708/8.966, allocations: 2.144 MB / 3.692 GB, free: 34.16 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 4.236e-05/8.967, allocations: 8.031 kB / 3.692 GB, free: 34.15 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003551/8.97, allocations: 381.9 kB / 3.692 GB, free: 33.86 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002612/8.973, allocations: 0.884 MB / 3.693 GB, free: 33.11 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.281e-05/8.973, allocations: 69.75 kB / 3.693 GB, free: 33.04 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000186/8.973, allocations: 68 kB / 3.693 GB, free: 32.97 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003672/8.977, allocations: 1.447 MB / 3.695 GB, free: 31.7 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.709e-05/8.977, allocations: 7.938 kB / 3.695 GB, free: 31.7 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001342/8.977, allocations: 35.91 kB / 3.695 GB, free: 31.66 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.611e-05/8.977, allocations: 53.08 kB / 3.695 GB, free: 31.62 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005075/8.982, allocations: 1.238 MB / 3.696 GB, free: 30.58 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.01491/8.997, allocations: 6.566 MB / 3.703 GB, free: 24.29 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004863/9.002, allocations: 0.9217 MB / 3.703 GB, free: 23.49 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00121/9.003, allocations: 393.3 kB / 3.704 GB, free: 23.14 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1159/9.119, allocations: 32.11 MB / 3.735 GB, free: 3.359 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.627e-05/9.119, allocations: 43.12 kB / 3.735 GB, free: 3.309 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=57): time 4.12e-06/9.119, allocations: 0 / 3.735 GB, free: 3.309 MB / 0.5417 GB Notification: Performance of matching and sorting (n=61): time 0.009249/9.129, allocations: 2.802 MB / 3.738 GB, free: 456 kB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001297/9.129, allocations: 192.5 kB / 3.738 GB, free: 220 kB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.3867/9.515, allocations: 0.6336 MB / 3.739 GB, free: 66.7 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 0.0001866/9.516, allocations: 37.64 kB / 3.739 GB, free: 66.67 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.000399/9.516, allocations: 420.9 kB / 3.739 GB, free: 66.59 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002497/9.516, allocations: 209.3 kB / 3.739 GB, free: 66.52 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.041e-05/9.516, allocations: 14.16 kB / 3.739 GB, free: 66.52 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0001727/9.517, allocations: 391.6 kB / 3.74 GB, free: 66.21 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008464/9.517, allocations: 345 kB / 3.74 GB, free: 66.21 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001015/9.518, allocations: 0.5435 MB / 3.741 GB, free: 65.98 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009774/9.519, allocations: 424.2 kB / 3.741 GB, free: 65.98 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.21e-06/9.52, allocations: 2.125 kB / 3.741 GB, free: 65.98 MB / 0.5417 GB Notification: Performance of matching and sorting (n=92) (initialization): time 0.003105/9.523, allocations: 1.186 MB / 3.742 GB, free: 65.89 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.000484/9.523, allocations: 2.271 MB / 3.744 GB, free: 63.54 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.013e-05/9.523, allocations: 10.19 kB / 3.744 GB, free: 63.54 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00442/9.528, allocations: 0.6489 MB / 3.745 GB, free: 63.53 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009674/9.529, allocations: 161.1 kB / 3.745 GB, free: 63.53 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002028/9.531, allocations: 1.257 MB / 3.746 GB, free: 63 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001363/9.532, allocations: 102.9 kB / 3.747 GB, free: 63 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00014/9.532, allocations: 38.56 kB / 3.747 GB, free: 63 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 1.577e-05/9.532, allocations: 7.469 kB / 3.747 GB, free: 63 MB / 0.5417 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002908/9.535, allocations: 1.057 MB / 3.748 GB, free: 62.98 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.93e-05/9.535, allocations: 5.344 kB / 3.748 GB, free: 62.98 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002094/9.537, allocations: 397.8 kB / 3.748 GB, free: 62.97 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001025/9.538, allocations: 173.2 kB / 3.748 GB, free: 62.97 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00145/9.54, allocations: 1.056 MB / 3.749 GB, free: 62.45 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001288/9.541, allocations: 101.7 kB / 3.749 GB, free: 62.44 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001407/9.541, allocations: 37.47 kB / 3.749 GB, free: 62.44 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.0003297/9.542, allocations: 161.2 kB / 3.75 GB, free: 62.34 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002872/9.542, allocations: 89.47 kB / 3.75 GB, free: 62.29 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005305/9.547, allocations: 3.235 MB / 3.753 GB, free: 61.98 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.62e-05/9.547, allocations: 38.05 kB / 3.753 GB, free: 61.98 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.248e-06/9.547, allocations: 0.9688 kB / 3.753 GB, free: 61.98 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.003645/9.551, allocations: 2.688 MB / 3.755 GB, free: 61.48 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007954/9.559, allocations: 4.483 MB / 3.76 GB, free: 61.06 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.4e-05/9.559, allocations: 1.5 kB / 3.76 GB, free: 61.06 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001175/9.56, allocations: 176.4 kB / 3.76 GB, free: 61.06 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000534/9.561, allocations: 90.12 kB / 3.76 GB, free: 61.05 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.284e-05/9.561, allocations: 21.59 kB / 3.76 GB, free: 61.05 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004818/9.561, allocations: 0.6481 MB / 3.761 GB, free: 60.53 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.051e-06/9.562, allocations: 3.531 kB / 3.761 GB, free: 60.53 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004732/9.566, allocations: 2.742 MB / 3.763 GB, free: 60.05 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001016/9.567, allocations: 460 kB / 3.764 GB, free: 59.88 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002262/9.568, allocations: 21.88 kB / 3.764 GB, free: 59.88 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001072/9.569, allocations: 85.72 kB / 3.764 GB, free: 59.87 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002005/9.569, allocations: 67.28 kB / 3.764 GB, free: 59.87 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.091e-05/9.569, allocations: 22.95 kB / 3.764 GB, free: 59.87 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.001539/9.571, allocations: 0.7898 MB / 3.765 GB, free: 59.75 MB / 0.5417 GB Notification: Performance of sort global known variables: time 9.76e-07/9.571, allocations: 0 / 3.765 GB, free: 59.75 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.007112/9.578, allocations: 1.741 MB / 3.766 GB, free: 59.75 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.00978/9.588, allocations: 1.984 MB / 3.768 GB, free: 59.56 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.003632/9.591, allocations: 1.655 MB / 3.77 GB, free: 59.52 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 6.973e-06/9.591, allocations: 0 / 3.77 GB, free: 59.52 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.001599/9.593, allocations: 0.8394 MB / 3.771 GB, free: 59.52 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003276/9.596, allocations: 469.6 kB / 3.771 GB, free: 59.5 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004651/9.601, allocations: 2.379 MB / 3.774 GB, free: 58.99 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000883/9.602, allocations: 1.349 MB / 3.775 GB, free: 58.27 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.002486/9.604, allocations: 0.9778 MB / 3.776 GB, free: 58.25 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002644/9.605, allocations: 75.97 kB / 3.776 GB, free: 58.24 MB / 0.5417 GB Notification: Performance of SimCode: time 1.928e-06/9.605, allocations: 0 / 3.776 GB, free: 58.24 MB / 0.5417 GB Notification: Performance of Templates: time 0.1011/9.706, allocations: 54.71 MB / 3.829 GB, free: 56.45 MB / 0.5417 GB