Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/../OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveCoefficients.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/package.mo) 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_3.2.2_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveCoefficients") Notification: Performance of loadModel(ModelicaTest): time 2.253/2.253, allocations: 235.1 MB / 243 MB, free: 9.496 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 1.997e-05/2.007e-05, allocations: 4 kB / 303.2 MB, free: 13.19 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2745/0.2746, allocations: 54.85 MB / 358 MB, free: 14.94 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 5.97/6.245, allocations: 2.607 GB / 2.957 GB, free: 12.77 MB / 474.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000222/6.245, allocations: 83.95 kB / 2.957 GB, free: 12.69 MB / 474.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.979/9.225, allocations: 0.6262 GB / 3.583 GB, free: 41.61 MB / 0.4948 GB Notification: Performance of FrontEnd: time 2.213e-06/9.225, allocations: 0 / 3.583 GB, free: 41.61 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0001247/9.225, allocations: 43.2 kB / 3.583 GB, free: 41.6 MB / 0.4948 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.008941/9.234, allocations: 2.428 MB / 3.585 GB, free: 40.55 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 4.155e-05/9.234, allocations: 13.22 kB / 3.585 GB, free: 40.55 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01015/9.244, allocations: 0.9507 MB / 3.586 GB, free: 40.46 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002961/9.247, allocations: 1.059 MB / 3.587 GB, free: 40.13 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001232/9.247, allocations: 54 kB / 3.587 GB, free: 40.13 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002418/9.248, allocations: 71.08 kB / 3.587 GB, free: 40.13 MB / 0.4948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002783/9.25, allocations: 1.205 MB / 3.588 GB, free: 40.12 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002759/9.253, allocations: 1.415 MB / 3.59 GB, free: 39.69 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.846e-05/9.253, allocations: 13 kB / 3.59 GB, free: 39.68 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001799/9.254, allocations: 3.844 kB / 3.59 GB, free: 39.68 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.761e-05/9.254, allocations: 33.56 kB / 3.59 GB, free: 39.68 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.9964/10.25, allocations: 266 MB / 3.85 GB, free: 25.95 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006558/10.25, allocations: 346.3 kB / 3.85 GB, free: 25.93 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004337/10.25, allocations: 224.1 kB / 3.85 GB, free: 25.92 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.04017/10.29, allocations: 15.7 MB / 3.866 GB, free: 17.68 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.974e-05/10.29, allocations: 37.75 kB / 3.866 GB, free: 17.64 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=48): time 5.437e-06/10.29, allocations: 0 / 3.866 GB, free: 17.64 MB / 0.5417 GB Notification: Performance of matching and sorting (n=48): time 0.007478/10.3, allocations: 1.599 MB / 3.867 GB, free: 17.59 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.465e-05/10.3, allocations: 265.2 kB / 3.867 GB, free: 17.27 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001554/10.3, allocations: 0.859 MB / 3.868 GB, free: 17.12 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 0.0001234/10.3, allocations: 30.48 kB / 3.868 GB, free: 17.09 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004895/10.3, allocations: 0.7933 MB / 3.869 GB, free: 16.68 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.000192/10.3, allocations: 178.2 kB / 3.869 GB, free: 16.59 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.973e-05/10.3, allocations: 0 / 3.869 GB, free: 16.59 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0001025/10.3, allocations: 359.7 kB / 3.87 GB, free: 16.28 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006315/10.3, allocations: 310.3 kB / 3.87 GB, free: 16.28 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008794/10.3, allocations: 0.8838 MB / 3.871 GB, free: 15.53 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004446/10.31, allocations: 0.7502 MB / 3.871 GB, free: 15.5 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.293e-05/10.31, allocations: 10.56 kB / 3.871 GB, free: 15.49 MB / 0.5417 GB Notification: Performance of matching and sorting (n=167) (initialization): time 0.006327/10.31, allocations: 1.452 MB / 3.873 GB, free: 15.4 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.002826/10.32, allocations: 7.305 MB / 3.88 GB, free: 23.73 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.598e-05/10.32, allocations: 21.78 kB / 3.88 GB, free: 23.73 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.921e-05/10.32, allocations: 32.83 kB / 3.88 GB, free: 23.73 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001687/10.32, allocations: 397 kB / 3.88 GB, free: 23.73 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.288e-05/10.32, allocations: 36.91 kB / 3.88 GB, free: 23.73 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002541/10.32, allocations: 356 kB / 3.881 GB, free: 23.67 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002229/10.32, allocations: 85.33 kB / 3.881 GB, free: 23.66 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 1.379e-05/10.32, allocations: 4.438 kB / 3.881 GB, free: 23.66 MB / 0.5573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004739/10.33, allocations: 1.245 MB / 3.882 GB, free: 23.64 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.856e-05/10.33, allocations: 19.44 kB / 3.882 GB, free: 23.64 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.448e-05/10.33, allocations: 29.25 kB / 3.882 GB, free: 23.64 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00147/10.33, allocations: 390.7 kB / 3.883 GB, free: 23.63 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.371e-05/10.33, allocations: 40.02 kB / 3.883 GB, free: 23.63 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001633/10.33, allocations: 241.7 kB / 3.883 GB, free: 23.59 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001708/10.33, allocations: 85.5 kB / 3.883 GB, free: 23.59 MB / 0.5573 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 84 * Number of states: 0 () * Number of discrete variables: 16 (SourceP4.medium.phase,SinkP4.medium.phase,SourceP3.medium.phase,SinkP3.medium.phase,SourceP2.medium.phase,SinkP2.medium.phase,SourceP1.medium.phase,SinkP1.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 (167): * Single equations (assignments): 167 * 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.0003978/10.33, allocations: 165.9 kB / 3.883 GB, free: 23.48 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003351/10.33, allocations: 114.2 kB / 3.883 GB, free: 23.42 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003161/10.33, allocations: 1.82 MB / 3.885 GB, free: 23.12 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.013e-05/10.33, allocations: 11.16 kB / 3.885 GB, free: 23.12 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.666e-06/10.33, allocations: 0 / 3.885 GB, free: 23.12 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.416e-06/10.33, allocations: 2.766 kB / 3.885 GB, free: 23.12 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002174/10.34, allocations: 1.368 MB / 3.886 GB, free: 22.86 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.508e-06/10.34, allocations: 3.953 kB / 3.886 GB, free: 22.85 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003872/10.34, allocations: 88.86 kB / 3.886 GB, free: 22.85 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.981e-06/10.34, allocations: 3.719 kB / 3.886 GB, free: 22.85 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.797e-05/10.34, allocations: 3.625 kB / 3.886 GB, free: 22.85 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.781e-06/10.34, allocations: 0 / 3.886 GB, free: 22.85 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.447e-06/10.34, allocations: 1.125 kB / 3.886 GB, free: 22.85 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001871/10.34, allocations: 0.6997 MB / 3.887 GB, free: 22.6 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001163/10.34, allocations: 0.6164 MB / 3.888 GB, free: 22.35 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003571/10.34, allocations: 0 / 3.888 GB, free: 22.35 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001059/10.34, allocations: 84.41 kB / 3.888 GB, free: 22.34 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.53e-05/10.34, allocations: 29.83 kB / 3.888 GB, free: 22.34 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.081e-05/10.34, allocations: 10.44 kB / 3.888 GB, free: 22.34 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.002399/10.34, allocations: 1.438 MB / 3.889 GB, free: 22.2 MB / 0.5573 GB Notification: Performance of sort global known variables: time 1.311e-06/10.34, allocations: 0 / 3.889 GB, free: 22.2 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.007637/10.35, allocations: 1.753 MB / 3.891 GB, free: 21.16 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: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (52): * Single equations (assignments): 52 * 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 Backend phase and start with SimCode phase: time 0.008874/10.36, allocations: 2.121 MB / 3.893 GB, free: 19.71 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.002677/10.36, allocations: 1.243 MB / 3.894 GB, free: 18.97 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 8.506e-06/10.36, allocations: 0 / 3.894 GB, free: 18.97 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.0003512/10.36, allocations: 161.4 kB / 3.894 GB, free: 18.88 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002954/10.37, allocations: 473.4 kB / 3.895 GB, free: 18.62 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003542/10.37, allocations: 1.749 MB / 3.897 GB, free: 17.13 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001049/10.37, allocations: 1.35 MB / 3.898 GB, free: 16.02 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004901/10.37, allocations: 130.5 kB / 3.898 GB, free: 15.93 MB / 0.5573 GB Notification: Performance of SimCode: time 1.721e-06/10.37, allocations: 4 kB / 3.898 GB, free: 15.92 MB / 0.5573 GB Notification: Performance of Templates: time 0.4027/10.77, allocations: 43.42 MB / 3.94 GB, free: 101.7 MB / 0.5573 GB