Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/../OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveCoefficients.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.1/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.1_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveCoefficients") Notification: Performance of loadModel(ModelicaTest): time 1.94/1.94, allocations: 209.4 MB / 217.3 MB, free: 4.172 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 1.859e-05/1.869e-05, allocations: 4 kB / 271.3 MB, free: 14.11 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3354/0.3354, allocations: 48.69 MB / 320 MB, free: 14.41 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 5.802/6.138, allocations: 2.496 GB / 2.809 GB, free: 87.38 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002412/6.138, allocations: 76.7 kB / 2.809 GB, free: 87.34 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.795/8.933, allocations: 0.6125 GB / 3.421 GB, free: 34.54 MB / 458.7 MB Notification: Performance of FrontEnd: time 1.987e-06/8.933, allocations: 0 / 3.421 GB, free: 34.54 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0001122/8.933, allocations: 44.38 kB / 3.421 GB, free: 34.53 MB / 458.7 MB 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.008137/8.941, allocations: 2.351 MB / 3.424 GB, free: 33.54 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.965e-05/8.941, allocations: 10.97 kB / 3.424 GB, free: 33.54 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01015/8.951, allocations: 0.8989 MB / 3.424 GB, free: 33.46 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002769/8.954, allocations: 1.058 MB / 3.426 GB, free: 33.13 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001145/8.954, allocations: 56.84 kB / 3.426 GB, free: 33.13 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001955/8.954, allocations: 65.34 kB / 3.426 GB, free: 33.13 MB / 458.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002756/8.957, allocations: 1.206 MB / 3.427 GB, free: 33.12 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002985/8.96, allocations: 1.41 MB / 3.428 GB, free: 32.69 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.602e-05/8.96, allocations: 7.219 kB / 3.428 GB, free: 32.69 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001833/8.96, allocations: 7.75 kB / 3.428 GB, free: 32.69 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.984e-05/8.961, allocations: 31.31 kB / 3.428 GB, free: 32.69 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 1.009/9.97, allocations: 265.8 MB / 3.688 GB, free: 42.8 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006582/9.971, allocations: 342.5 kB / 3.688 GB, free: 42.77 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004239/9.971, allocations: 228.5 kB / 3.688 GB, free: 42.77 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0467/10.02, allocations: 15.69 MB / 3.704 GB, free: 34.53 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.726e-05/10.02, allocations: 41.83 kB / 3.704 GB, free: 34.49 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=48): time 6.511e-06/10.02, allocations: 0 / 3.704 GB, free: 34.49 MB / 0.5105 GB Notification: Performance of matching and sorting (n=48): time 0.01368/10.03, allocations: 1.596 MB / 3.705 GB, free: 34.43 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.635e-05/10.03, allocations: 264.4 kB / 3.706 GB, free: 34.12 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002296/10.03, allocations: 0.8669 MB / 3.706 GB, free: 33.96 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0001275/10.03, allocations: 26.36 kB / 3.706 GB, free: 33.93 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007002/10.03, allocations: 0.7891 MB / 3.707 GB, free: 33.52 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.000257/10.04, allocations: 180.8 kB / 3.707 GB, free: 33.44 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001213/10.04, allocations: 0 / 3.707 GB, free: 33.44 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0001485/10.04, allocations: 360.9 kB / 3.708 GB, free: 33.12 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001148/10.04, allocations: 311.7 kB / 3.708 GB, free: 33.12 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001483/10.04, allocations: 0.8817 MB / 3.709 GB, free: 32.37 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007729/10.05, allocations: 0.7558 MB / 3.71 GB, free: 32.34 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.874e-05/10.05, allocations: 4.688 kB / 3.71 GB, free: 32.34 MB / 0.5105 GB Notification: Performance of matching and sorting (n=167) (initialization): time 0.0126/10.06, allocations: 1.45 MB / 3.711 GB, free: 32.25 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.00212/10.06, allocations: 7.322 MB / 3.718 GB, free: 24.57 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.461e-05/10.06, allocations: 19.81 kB / 3.718 GB, free: 24.57 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.382e-05/10.06, allocations: 27.59 kB / 3.718 GB, free: 24.57 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003415/10.06, allocations: 396.2 kB / 3.719 GB, free: 24.57 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.68e-05/10.06, allocations: 38.25 kB / 3.719 GB, free: 24.57 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004947/10.07, allocations: 361.6 kB / 3.719 GB, free: 24.51 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004114/10.07, allocations: 76.22 kB / 3.719 GB, free: 24.51 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.772e-05/10.07, allocations: 8.625 kB / 3.719 GB, free: 24.5 MB / 0.5105 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006304/10.08, allocations: 1.24 MB / 3.72 GB, free: 24.48 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.112e-05/10.08, allocations: 20.12 kB / 3.72 GB, free: 24.48 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.503e-05/10.08, allocations: 34.98 kB / 3.72 GB, free: 24.48 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001691/10.08, allocations: 393 kB / 3.721 GB, free: 24.47 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.095e-05/10.08, allocations: 40.5 kB / 3.721 GB, free: 24.47 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002059/10.08, allocations: 231.6 kB / 3.721 GB, free: 24.44 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000187/10.08, allocations: 85.14 kB / 3.721 GB, free: 24.44 MB / 0.5105 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.000363/10.08, allocations: 162.6 kB / 3.721 GB, free: 24.33 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003472/10.08, allocations: 118.3 kB / 3.721 GB, free: 24.27 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00358/10.08, allocations: 1.819 MB / 3.723 GB, free: 23.93 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.076e-05/10.08, allocations: 7.297 kB / 3.723 GB, free: 23.93 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.133e-06/10.09, allocations: 0.875 kB / 3.723 GB, free: 23.93 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.991e-06/10.09, allocations: 3.516 kB / 3.723 GB, free: 23.93 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002541/10.09, allocations: 1.358 MB / 3.724 GB, free: 23.66 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.73e-06/10.09, allocations: 0 / 3.724 GB, free: 23.66 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004899/10.09, allocations: 99.12 kB / 3.725 GB, free: 23.66 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.001e-05/10.09, allocations: 3.5 kB / 3.725 GB, free: 23.66 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.894e-05/10.09, allocations: 2.875 kB / 3.725 GB, free: 23.66 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.162e-06/10.09, allocations: 0 / 3.725 GB, free: 23.66 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.284e-06/10.09, allocations: 3.172 kB / 3.725 GB, free: 23.66 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001936/10.09, allocations: 0.7049 MB / 3.725 GB, free: 23.4 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001342/10.09, allocations: 0.6107 MB / 3.726 GB, free: 23.16 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000365/10.09, allocations: 0 / 3.726 GB, free: 23.16 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001129/10.09, allocations: 83.47 kB / 3.726 GB, free: 23.15 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.729e-05/10.09, allocations: 31.42 kB / 3.726 GB, free: 23.15 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.288e-05/10.09, allocations: 15.72 kB / 3.726 GB, free: 23.15 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.002761/10.1, allocations: 1.428 MB / 3.727 GB, free: 23.01 MB / 0.5105 GB Notification: Performance of sort global known variables: time 1.398e-06/10.1, allocations: 7.688 kB / 3.727 GB, free: 23 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.007704/10.1, allocations: 1.742 MB / 3.729 GB, free: 22.88 MB / 0.5105 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.009035/10.11, allocations: 2.115 MB / 3.731 GB, free: 22.59 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.002832/10.12, allocations: 1.244 MB / 3.732 GB, free: 21.87 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 5.039e-06/10.12, allocations: 4.062 kB / 3.732 GB, free: 21.87 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.0003158/10.12, allocations: 155.9 kB / 3.732 GB, free: 21.77 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003041/10.12, allocations: 476.4 kB / 3.733 GB, free: 21.52 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003423/10.12, allocations: 1.741 MB / 3.735 GB, free: 20.04 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008238/10.12, allocations: 1.355 MB / 3.736 GB, free: 18.92 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005169/10.12, allocations: 129.4 kB / 3.736 GB, free: 18.82 MB / 0.5105 GB Notification: Performance of SimCode: time 2.479e-06/10.12, allocations: 0 / 3.736 GB, free: 18.82 MB / 0.5105 GB Notification: Performance of Templates: time 0.3865/10.51, allocations: 43.26 MB / 3.778 GB, free: 87.46 MB / 0.5105 GB