Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValvesIncompressibleReverse.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.1/package.mo) Running command: translateModel(ModelicaTest.Fluid.TestComponents.Valves.TestValvesIncompressibleReverse,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|SourceP1.ports.1..m_flow|SourceP1.ports.1..p|SourceP1.ports.1..h_outflow|SourceP1.ports.2..m_flow|SourceP1.ports.2..p|SourceP1.ports.2..h_outflow|SourceP2.ports.1..m_flow|SourceP2.ports.1..p|SourceP2.ports.1..h_outflow|SourceP2.ports.2..m_flow|SourceP2.ports.2..p|SourceP2.ports.2..h_outflow|SinkP1.ports.1..m_flow|SinkP1.ports.1..p|SinkP1.ports.1..h_outflow|V1.port_b.m_flow|V1.port_b.p|V1.port_b.h_outflow|V1.minLimiter.y|V2.port_b.m_flow|V2.port_b.p|V2.port_b.h_outflow|V2.minLimiter.y|V3.port_b.m_flow|V3.port_b.p|V3.port_b.h_outflow|V3.minLimiter.y|V4.port_b.m_flow|V4.port_b.p|V4.port_b.h_outflow|V4.minLimiter.y|V5.port_b.m_flow|V5.port_b.p|V5.port_b.h_outflow|V5.minLimiter.y|SinkP2.ports.1..m_flow|SinkP2.ports.1..p|SinkP2.ports.1..h_outflow|SinkP3.ports.1..m_flow|SinkP3.ports.1..p|SinkP3.ports.1..h_outflow|CloseLoad.y|OpenRelief.y|CloseValves.y",fileNamePrefix="ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValvesIncompressibleReverse") Notification: Performance of loadModel(ModelicaTest): time 1.868/1.868, allocations: 209.3 MB / 225.4 MB, free: 0.6094 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004327/0.0004329, allocations: 12 kB / 283.1 MB, free: 9.684 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3457/0.3462, allocations: 48.7 MB / 331.8 MB, free: 6.492 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.6134/0.9597, allocations: 209.2 MB / 0.5283 GB, free: 56.21 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003061/0.96, allocations: 88.39 kB / 0.5284 GB, free: 56.16 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.687/3.647, allocations: 0.5002 GB / 1.029 GB, free: 65.64 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.074e-06/3.647, allocations: 0 / 1.029 GB, free: 65.64 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0001249/3.647, allocations: 38.25 kB / 1.029 GB, free: 65.62 MB / 442.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 209 * Number of variables: 209 Notification: Performance of Generate backend data structure: time 0.007727/3.655, allocations: 2.053 MB / 1.031 GB, free: 64.68 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.957e-05/3.655, allocations: 11.95 kB / 1.031 GB, free: 64.68 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004664/3.659, allocations: 358.1 kB / 1.031 GB, free: 64.61 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0031/3.663, allocations: 0.9057 MB / 1.032 GB, free: 64.27 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.959e-05/3.663, allocations: 63.72 kB / 1.032 GB, free: 64.27 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002974/3.663, allocations: 80.31 kB / 1.032 GB, free: 64.27 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004527/3.667, allocations: 1.231 MB / 1.033 GB, free: 64 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.564e-05/3.668, allocations: 7 kB / 1.033 GB, free: 63.99 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001783/3.668, allocations: 38.34 kB / 1.033 GB, free: 63.99 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.621e-05/3.668, allocations: 29.06 kB / 1.033 GB, free: 63.99 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004408/3.672, allocations: 0.9976 MB / 1.034 GB, free: 63.96 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0103/3.683, allocations: 6.252 MB / 1.04 GB, free: 59.7 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002908/3.686, allocations: 0.638 MB / 1.041 GB, free: 59.67 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006107/3.686, allocations: 0.7533 MB / 1.042 GB, free: 58.83 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.039e-05/3.686, allocations: 42.75 kB / 1.042 GB, free: 58.79 MB / 442.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001081/3.687, allocations: 113.3 kB / 1.042 GB, free: 58.75 MB / 442.7 MB Notification: Performance of pre-optimization done (n=48): time 3.326e-06/3.687, allocations: 2.594 kB / 1.042 GB, free: 58.75 MB / 442.7 MB Notification: Performance of matching and sorting (n=48): time 0.00931/3.697, allocations: 1.467 MB / 1.043 GB, free: 58.55 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.89e-05/3.697, allocations: 192 kB / 1.043 GB, free: 58.33 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001532/3.698, allocations: 0.8676 MB / 1.044 GB, free: 58.16 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000162/3.699, allocations: 39.77 kB / 1.044 GB, free: 58.13 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004057/3.699, allocations: 0.605 MB / 1.045 GB, free: 57.77 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002139/3.699, allocations: 171.5 kB / 1.045 GB, free: 57.67 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.406e-05/3.699, allocations: 17.75 kB / 1.045 GB, free: 57.67 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 9.696e-05/3.699, allocations: 342.9 kB / 1.045 GB, free: 57.36 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001353/3.701, allocations: 357.5 kB / 1.046 GB, free: 57.36 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001498/3.702, allocations: 0.6996 MB / 1.046 GB, free: 56.93 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001489/3.704, allocations: 449.8 kB / 1.047 GB, free: 56.91 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.147e-05/3.704, allocations: 8.906 kB / 1.047 GB, free: 56.91 MB / 442.7 MB Notification: Performance of matching and sorting (n=117) (initialization): time 0.004041/3.708, allocations: 1.205 MB / 1.048 GB, free: 56.77 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000246/3.708, allocations: 408.9 kB / 1.049 GB, free: 56.31 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.795e-05/3.708, allocations: 13.09 kB / 1.049 GB, free: 56.31 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00922/3.717, allocations: 0.7798 MB / 1.049 GB, free: 56.29 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001964/3.719, allocations: 288.7 kB / 1.05 GB, free: 56.28 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00133/3.721, allocations: 0.7983 MB / 1.05 GB, free: 55.74 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00201/3.723, allocations: 96.92 kB / 1.05 GB, free: 55.74 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002224/3.723, allocations: 79.66 kB / 1.05 GB, free: 55.74 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.299e-05/3.723, allocations: 3.969 kB / 1.051 GB, free: 55.74 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003852/3.727, allocations: 1.105 MB / 1.052 GB, free: 55.64 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.006e-05/3.727, allocations: 9.656 kB / 1.052 GB, free: 55.64 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004244/3.727, allocations: 81.44 kB / 1.052 GB, free: 55.63 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001856/3.729, allocations: 304.5 kB / 1.052 GB, free: 55.62 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002236/3.732, allocations: 1.65 MB / 1.054 GB, free: 54.27 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001444/3.733, allocations: 100.2 kB / 1.054 GB, free: 54.26 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001815/3.733, allocations: 72.33 kB / 1.054 GB, free: 54.26 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 48 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (105): * Single equations (assignments): 104 * 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 {3 10} Notification: Performance of prepare postOptimizeDAE: time 0.0008264/3.734, allocations: 335.8 kB / 1.054 GB, free: 54.05 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003239/3.734, allocations: 106.4 kB / 1.054 GB, free: 54 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00594/3.74, allocations: 1.673 MB / 1.056 GB, free: 53.85 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.214e-05/3.74, allocations: 7.781 kB / 1.056 GB, free: 53.85 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.838e-06/3.74, allocations: 0 / 1.056 GB, free: 53.85 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.151e-05/3.74, allocations: 2.109 kB / 1.056 GB, free: 53.85 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004894/3.745, allocations: 1.811 MB / 1.058 GB, free: 53.47 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.307e-06/3.745, allocations: 3.188 kB / 1.058 GB, free: 53.47 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008316/3.746, allocations: 139.3 kB / 1.058 GB, free: 53.46 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004782/3.751, allocations: 0.5875 MB / 1.058 GB, free: 53.44 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001645/3.751, allocations: 21.97 kB / 1.058 GB, free: 53.44 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001123/3.752, allocations: 0.8092 MB / 1.059 GB, free: 52.91 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.317e-06/3.752, allocations: 3.938 kB / 1.059 GB, free: 52.91 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003154/3.756, allocations: 1.001 MB / 1.06 GB, free: 52.65 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000712/3.756, allocations: 321.4 kB / 1.06 GB, free: 52.49 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002751/3.757, allocations: 10.06 kB / 1.06 GB, free: 52.49 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001106/3.758, allocations: 75.98 kB / 1.06 GB, free: 52.49 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001584/3.758, allocations: 48.2 kB / 1.061 GB, free: 52.49 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.361e-05/3.758, allocations: 31.25 kB / 1.061 GB, free: 52.49 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.001137/3.759, allocations: 0.5877 MB / 1.061 GB, free: 52.38 MB / 442.7 MB Notification: Performance of sort global known variables: time 4.21e-07/3.759, allocations: 0 / 1.061 GB, free: 52.38 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.004592/3.764, allocations: 1.029 MB / 1.062 GB, free: 52.19 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (49): * Single equations (assignments): 48 * 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 {3 19} Notification: Performance of Backend phase and start with SimCode phase: time 0.002956/3.767, allocations: 0.796 MB / 1.063 GB, free: 51.95 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.005377/3.772, allocations: 1.555 MB / 1.064 GB, free: 51.44 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 8.025e-06/3.772, allocations: 0 / 1.064 GB, free: 51.44 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001424/3.774, allocations: 405.1 kB / 1.065 GB, free: 51.11 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003639/3.777, allocations: 429.6 kB / 1.065 GB, free: 50.81 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006003/3.783, allocations: 2.465 MB / 1.068 GB, free: 48.64 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006301/3.784, allocations: 1.1 MB / 1.069 GB, free: 47.68 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008017/3.785, allocations: 131.7 kB / 1.069 GB, free: 47.58 MB / 442.7 MB Notification: Performance of SimCode: time 1.062e-06/3.785, allocations: 0 / 1.069 GB, free: 47.58 MB / 442.7 MB Notification: Performance of Templates: time 0.05272/3.838, allocations: 26.9 MB / 1.095 GB, free: 24.6 MB / 442.7 MB