Running command: translateModel(ModelicaTest.Fluid.TestComponents.Valves.TestValveCoefficients,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|SourceP1.ports.1..m_flow|SourceP1.ports.1..p|SourceP1.ports.1..h_outflow|V1.port_b.m_flow|V1.port_b.p|V1.port_b.h_outflow|V1.minLimiter.y|SinkP1.ports.1..m_flow|SinkP1.ports.1..p|SinkP1.ports.1..h_outflow|Opening.y|SourceP2.ports.1..m_flow|SourceP2.ports.1..p|SourceP2.ports.1..h_outflow|V2.port_b.m_flow|V2.port_b.p|V2.port_b.h_outflow|V2.minLimiter.y|SinkP2.ports.1..m_flow|SinkP2.ports.1..p|SinkP2.ports.1..h_outflow|SourceP3.ports.1..m_flow|SourceP3.ports.1..p|SourceP3.ports.1..h_outflow|V3.port_b.m_flow|V3.port_b.p|V3.port_b.h_outflow|V3.minLimiter.y|SinkP3.ports.1..m_flow|SinkP3.ports.1..p|SinkP3.ports.1..h_outflow|SourceP4.ports.1..m_flow|SourceP4.ports.1..p|SourceP4.ports.1..h_outflow|V4.port_b.m_flow|V4.port_b.p|V4.port_b.h_outflow|V4.minLimiter.y|SinkP4.ports.1..m_flow|SinkP4.ports.1..p|SinkP4.ports.1..h_outflow",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveCoefficients") Notification: Performance of loadModel(ModelicaTest): time 2.265/2.265, allocations: 270.1 MB / 283.6 MB, free: 3.012 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.589e-05/3.604e-05, allocations: 7.234 kB / 348.4 MB, free: 10.77 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1119/0.112, allocations: 61.88 MB / 410.3 MB, free: 12.96 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.739/6.851, allocations: 2.777 GB / 3.178 GB, free: 155 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002674/6.852, allocations: 88.81 kB / 3.178 GB, free: 155 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 2.878/9.73, allocations: 0.6439 GB / 3.822 GB, free: 44.84 MB / 0.5417 GB Notification: Performance of FrontEnd: time 2.303e-06/9.73, allocations: 4.938 kB / 3.822 GB, free: 44.84 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 0.0001069/9.73, allocations: 42.95 kB / 3.822 GB, free: 44.84 MB / 0.5417 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 301 * Number of variables: 301 Notification: Performance of Generate backend data structure: time 0.008539/9.739, allocations: 2.433 MB / 3.824 GB, free: 43.73 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 4.247e-05/9.739, allocations: 11.69 kB / 3.824 GB, free: 43.73 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01087/9.75, allocations: 0.9479 MB / 3.825 GB, free: 43.65 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002556/9.752, allocations: 1.016 MB / 3.826 GB, free: 43.32 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001533/9.752, allocations: 101.8 kB / 3.826 GB, free: 43.32 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002734/9.753, allocations: 114.1 kB / 3.826 GB, free: 43.32 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007067/9.76, allocations: 2.249 MB / 3.829 GB, free: 42.88 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.356e-05/9.76, allocations: 7.5 kB / 3.829 GB, free: 42.88 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002212/9.76, allocations: 57.38 kB / 3.829 GB, free: 42.88 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.718e-05/9.76, allocations: 33.75 kB / 3.829 GB, free: 42.88 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006546/9.767, allocations: 1.952 MB / 3.831 GB, free: 42.88 MB / 0.5417 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01503/9.782, allocations: 10.34 MB / 3.841 GB, free: 35.9 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005784/9.788, allocations: 1.543 MB / 3.842 GB, free: 35.88 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000827/9.788, allocations: 422.5 kB / 3.843 GB, free: 35.87 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.05432/9.843, allocations: 24.02 MB / 3.866 GB, free: 20.71 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.472e-05/9.843, allocations: 45.59 kB / 3.866 GB, free: 20.67 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=80): time 4.713e-06/9.843, allocations: 0 / 3.866 GB, free: 20.67 MB / 0.5417 GB Notification: Performance of matching and sorting (n=80): time 0.01053/9.853, allocations: 2.311 MB / 3.868 GB, free: 20.54 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.978e-05/9.854, allocations: 270.8 kB / 3.869 GB, free: 20.22 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001685/9.855, allocations: 0.9831 MB / 3.87 GB, free: 20.05 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 0.0001412/9.855, allocations: 41.83 kB / 3.87 GB, free: 20.02 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004617/9.856, allocations: 0.6201 MB / 3.87 GB, free: 19.76 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002565/9.856, allocations: 271.8 kB / 3.871 GB, free: 19.59 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.159e-05/9.856, allocations: 24.94 kB / 3.871 GB, free: 19.59 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 9.228e-05/9.856, allocations: 352.2 kB / 3.871 GB, free: 19.28 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008374/9.857, allocations: 341.7 kB / 3.871 GB, free: 19.27 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001061/9.858, allocations: 0.7673 MB / 3.872 GB, free: 18.75 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009494/9.859, allocations: 448.2 kB / 3.872 GB, free: 18.73 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.057e-05/9.859, allocations: 3.969 kB / 3.872 GB, free: 18.73 MB / 0.5417 GB Notification: Performance of matching and sorting (n=143) (initialization): time 0.002955/9.862, allocations: 1.197 MB / 3.874 GB, free: 18.55 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.0009494/9.863, allocations: 4.913 MB / 3.878 GB, free: 13.43 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.301e-05/9.863, allocations: 14.03 kB / 3.878 GB, free: 13.43 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.1e-05/9.863, allocations: 24.38 kB / 3.878 GB, free: 13.42 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001742/9.865, allocations: 360.1 kB / 3.879 GB, free: 13.4 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.075e-05/9.865, allocations: 23.44 kB / 3.879 GB, free: 13.39 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002107/9.867, allocations: 274.4 kB / 3.879 GB, free: 13.3 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001871/9.867, allocations: 68.31 kB / 3.879 GB, free: 13.3 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 1.529e-05/9.867, allocations: 5.125 kB / 3.879 GB, free: 13.3 MB / 0.5417 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002468/9.87, allocations: 1.036 MB / 3.88 GB, free: 13.21 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.918e-05/9.87, allocations: 14.41 kB / 3.88 GB, free: 13.21 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.637e-05/9.87, allocations: 25.31 kB / 3.88 GB, free: 13.21 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001783/9.872, allocations: 353.9 kB / 3.88 GB, free: 13.18 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.859e-05/9.872, allocations: 24.75 kB / 3.881 GB, free: 13.18 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002002/9.874, allocations: 240.4 kB / 3.881 GB, free: 13.1 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001735/9.874, allocations: 68.78 kB / 3.881 GB, free: 13.1 MB / 0.5417 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 56 * Number of states: 0 () * Number of discrete variables: 16 (SourceP1.medium.phase,SinkP1.medium.phase,SourceP2.medium.phase,SinkP2.medium.phase,SourceP3.medium.phase,SinkP3.medium.phase,SourceP4.medium.phase,SinkP4.medium.phase,V4.state_b.phase,V4.state_a.phase,V3.state_b.phase,V3.state_a.phase,V2.state_b.phase,V2.state_a.phase,V1.state_b.phase,V1.state_a.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (143): * Single equations (assignments): 143 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0008301/9.875, allocations: 191.8 kB / 3.881 GB, free: 28.96 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003753/9.875, allocations: 137.8 kB / 3.881 GB, free: 28.89 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007652/9.883, allocations: 6.409 MB / 3.887 GB, free: 27.62 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.839e-05/9.883, allocations: 85.02 kB / 3.887 GB, free: 27.6 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.464e-06/9.883, allocations: 3.156 kB / 3.887 GB, free: 27.6 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.106e-05/9.883, allocations: 10.22 kB / 3.887 GB, free: 27.6 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004518/9.888, allocations: 3.256 MB / 3.891 GB, free: 26.05 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.399e-05/9.888, allocations: 0 / 3.891 GB, free: 26.05 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001275/9.889, allocations: 269.6 kB / 3.891 GB, free: 26.03 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.448e-05/9.889, allocations: 3.375 kB / 3.891 GB, free: 26.03 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001074/9.889, allocations: 37.72 kB / 3.891 GB, free: 26 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.638e-06/9.889, allocations: 6.531 kB / 3.891 GB, free: 26 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.252e-06/9.889, allocations: 3.953 kB / 3.891 GB, free: 26 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004062/9.893, allocations: 2.735 MB / 3.894 GB, free: 24.7 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001591/9.895, allocations: 0.8986 MB / 3.895 GB, free: 24.12 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004744/9.895, allocations: 23.59 kB / 3.895 GB, free: 24.1 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00167/9.897, allocations: 130.2 kB / 3.895 GB, free: 24.07 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002345/9.897, allocations: 106.7 kB / 3.895 GB, free: 24.05 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.97e-05/9.898, allocations: 42.61 kB / 3.895 GB, free: 24.04 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.002769/9.9, allocations: 1.562 MB / 3.896 GB, free: 23.42 MB / 0.5573 GB Notification: Performance of sort global known variables: time 1.212e-06/9.9, allocations: 0 / 3.896 GB, free: 23.42 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.007426/9.908, allocations: 1.842 MB / 3.898 GB, free: 23.1 MB / 0.5573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 56 ($cse2.phase,$cse2.region,$cse5.phase,$cse5.region,$cse6.phase,$cse6.region,$cse8.phase,$cse8.region,$cse9.phase,$cse9.region,$cse12.phase,$cse12.region,$cse16.phase,$cse16.region,$cse19.phase,$cse19.region,$cse20.phase,$cse20.region,$cse22.phase,$cse22.region,$cse23.phase,$cse23.region,$cse26.phase,$cse26.region,$cse30.phase,$cse30.region,$cse33.phase,$cse33.region,$cse34.phase,$cse34.region,$cse36.phase,$cse36.region,$cse37.phase,$cse37.region,$cse40.phase,$cse40.region,$cse44.phase,$cse44.region,$cse47.phase,$cse47.region,$cse48.phase,$cse48.region,$cse50.phase,$cse50.region,$cse51.phase,$cse51.region,$cse54.phase,$cse54.region,SourceP1.medium.phase,SinkP1.medium.phase,SourceP2.medium.phase,SinkP2.medium.phase,SourceP3.medium.phase,SinkP3.medium.phase,SourceP4.medium.phase,SinkP4.medium.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (112): * Single equations (assignments): 88 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 24 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.008399/9.916, allocations: 1.967 MB / 3.9 GB, free: 22.58 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.004311/9.921, allocations: 2.169 MB / 3.902 GB, free: 21.75 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 6.783e-06/9.921, allocations: 0 / 3.902 GB, free: 21.75 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.001852/9.922, allocations: 1.338 MB / 3.903 GB, free: 21.09 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005238/9.928, allocations: 0.7979 MB / 3.904 GB, free: 20.87 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006941/9.935, allocations: 4.085 MB / 3.908 GB, free: 19.15 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00152/9.936, allocations: 1.861 MB / 3.91 GB, free: 17.67 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 0.004162/9.94, allocations: 2.175 MB / 3.912 GB, free: 16.38 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003849/9.941, allocations: 122.9 kB / 3.912 GB, free: 16.27 MB / 0.5573 GB Notification: Performance of SimCode: time 1.919e-06/9.941, allocations: 4 kB / 3.912 GB, free: 16.27 MB / 0.5573 GB Notification: Performance of Templates: time 0.4861/10.43, allocations: 66.65 MB / 3.977 GB, free: 74 MB / 0.573 GB