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.TestValvesIncompressibleReverse.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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.82/1.82, allocations: 209.3 MB / 222.4 MB, free: 7.727 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.111e-05/3.136e-05, allocations: 7.984 kB / 277.8 MB, free: 15.3 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08639/0.08645, allocations: 48.7 MB / 326.5 MB, free: 14.5 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4921/0.5786, allocations: 209.1 MB / 0.5231 GB, free: 52 kB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002799/0.5789, allocations: 87.89 kB / 0.5232 GB, free: 8 kB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.291/2.87, allocations: 0.4989 GB / 1.022 GB, free: 244 kB / 442.7 MB Notification: Performance of FrontEnd: time 2.149e-06/2.87, allocations: 0 / 1.022 GB, free: 244 kB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0001223/2.87, allocations: 31.98 kB / 1.022 GB, free: 212 kB / 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.2683/3.139, allocations: 1.89 MB / 1.024 GB, free: 58.25 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.401e-05/3.139, allocations: 13.25 kB / 1.024 GB, free: 58.25 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004625/3.143, allocations: 347.8 kB / 1.024 GB, free: 58.19 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002796/3.146, allocations: 0.899 MB / 1.025 GB, free: 57.92 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.172e-05/3.146, allocations: 71.31 kB / 1.025 GB, free: 57.92 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002872/3.147, allocations: 82.19 kB / 1.025 GB, free: 57.92 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003917/3.151, allocations: 1.131 MB / 1.026 GB, free: 57.65 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.939e-05/3.151, allocations: 4.594 kB / 1.026 GB, free: 57.65 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002411/3.151, allocations: 38.34 kB / 1.026 GB, free: 57.65 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.298e-05/3.151, allocations: 21.28 kB / 1.027 GB, free: 57.65 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003313/3.154, allocations: 0.8274 MB / 1.027 GB, free: 57.65 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01015/3.165, allocations: 6.268 MB / 1.033 GB, free: 53.45 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002018/3.167, allocations: 0.5008 MB / 1.034 GB, free: 53.42 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005556/3.167, allocations: 219.2 kB / 1.034 GB, free: 53.41 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005472/3.168, allocations: 0.7609 MB / 1.035 GB, free: 52.57 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.779e-05/3.168, allocations: 41.5 kB / 1.035 GB, free: 52.53 MB / 442.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0009695/3.169, allocations: 105.1 kB / 1.035 GB, free: 52.52 MB / 442.7 MB Notification: Performance of pre-optimization done (n=48): time 4.955e-06/3.169, allocations: 0 / 1.035 GB, free: 52.52 MB / 442.7 MB Notification: Performance of matching and sorting (n=48): time 0.003423/3.172, allocations: 0.7087 MB / 1.036 GB, free: 52.41 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.747e-05/3.172, allocations: 190.3 kB / 1.036 GB, free: 52.2 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001575/3.174, allocations: 0.745 MB / 1.037 GB, free: 52.04 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001603/3.174, allocations: 32.89 kB / 1.037 GB, free: 52.01 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003839/3.175, allocations: 0.6057 MB / 1.037 GB, free: 51.7 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002189/3.175, allocations: 173.2 kB / 1.037 GB, free: 51.62 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.689e-05/3.175, allocations: 20.31 kB / 1.037 GB, free: 51.62 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 9.386e-05/3.175, allocations: 350.6 kB / 1.038 GB, free: 51.31 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000693/3.176, allocations: 261.5 kB / 1.038 GB, free: 51.3 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008888/3.177, allocations: 0.6111 MB / 1.039 GB, free: 50.88 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008639/3.177, allocations: 363.3 kB / 1.039 GB, free: 50.88 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.212e-05/3.177, allocations: 2.656 kB / 1.039 GB, free: 50.88 MB / 442.7 MB Notification: Performance of matching and sorting (n=117) (initialization): time 0.002934/3.18, allocations: 1.031 MB / 1.04 GB, free: 50.81 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0008785/3.181, allocations: 4.19 MB / 1.044 GB, free: 46.46 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.932e-05/3.181, allocations: 11.12 kB / 1.044 GB, free: 46.46 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007783/3.189, allocations: 0.7477 MB / 1.045 GB, free: 46.45 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001468/3.191, allocations: 287.4 kB / 1.045 GB, free: 46.45 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001202/3.192, allocations: 0.7819 MB / 1.046 GB, free: 45.93 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001758/3.194, allocations: 97.19 kB / 1.046 GB, free: 45.93 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003219/3.194, allocations: 80.41 kB / 1.046 GB, free: 45.93 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.635e-05/3.194, allocations: 4.75 kB / 1.046 GB, free: 45.93 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00276/3.197, allocations: 0.934 MB / 1.047 GB, free: 45.9 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.597e-05/3.197, allocations: 11.53 kB / 1.047 GB, free: 45.9 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003262/3.197, allocations: 80.92 kB / 1.047 GB, free: 45.89 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001373/3.199, allocations: 306.1 kB / 1.047 GB, free: 45.89 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001938/3.201, allocations: 1.642 MB / 1.049 GB, free: 44.56 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001167/3.202, allocations: 88.59 kB / 1.049 GB, free: 44.56 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001986/3.202, allocations: 74.09 kB / 1.049 GB, free: 44.56 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 () * 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.0003586/3.202, allocations: 159 kB / 1.049 GB, free: 44.45 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003567/3.203, allocations: 117.7 kB / 1.049 GB, free: 44.39 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004401/3.207, allocations: 1.492 MB / 1.051 GB, free: 44.29 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.208e-05/3.207, allocations: 9.438 kB / 1.051 GB, free: 44.29 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.515e-06/3.207, allocations: 0 / 1.051 GB, free: 44.29 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.23e-05/3.207, allocations: 10.36 kB / 1.051 GB, free: 44.29 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003484/3.211, allocations: 1.644 MB / 1.052 GB, free: 43.93 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.38e-06/3.211, allocations: 3.844 kB / 1.052 GB, free: 43.93 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000563/3.211, allocations: 132.2 kB / 1.053 GB, free: 43.93 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003845/3.215, allocations: 0.5654 MB / 1.053 GB, free: 43.92 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001548/3.216, allocations: 22.11 kB / 1.053 GB, free: 43.92 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009381/3.217, allocations: 0.8093 MB / 1.054 GB, free: 43.39 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.26e-06/3.217, allocations: 0 / 1.054 GB, free: 43.39 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001792/3.218, allocations: 0.8962 MB / 1.055 GB, free: 43.05 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006827/3.219, allocations: 313.7 kB / 1.055 GB, free: 42.89 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002333/3.219, allocations: 18.94 kB / 1.055 GB, free: 42.89 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008524/3.22, allocations: 65.94 kB / 1.055 GB, free: 42.89 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000139/3.22, allocations: 61.05 kB / 1.055 GB, free: 42.89 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.61e-05/3.22, allocations: 32.45 kB / 1.055 GB, free: 42.89 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.001013/3.221, allocations: 0.5779 MB / 1.056 GB, free: 42.77 MB / 442.7 MB Notification: Performance of sort global known variables: time 8.99e-07/3.221, allocations: 0 / 1.056 GB, free: 42.77 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.004554/3.226, allocations: 1.031 MB / 1.057 GB, free: 42.75 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 () * 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.002708/3.229, allocations: 0.7924 MB / 1.058 GB, free: 42.66 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.003305/3.232, allocations: 1.295 MB / 1.059 GB, free: 42.53 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 7.77e-06/3.232, allocations: 3.75 kB / 1.059 GB, free: 42.53 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007708/3.233, allocations: 314.3 kB / 1.059 GB, free: 42.52 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002724/3.236, allocations: 423.6 kB / 1.06 GB, free: 42.5 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003967/3.24, allocations: 1.544 MB / 1.061 GB, free: 42.06 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006041/3.24, allocations: 1.097 MB / 1.062 GB, free: 41.36 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006935/3.241, allocations: 137.3 kB / 1.062 GB, free: 41.35 MB / 442.7 MB Notification: Performance of SimCode: time 1.905e-06/3.241, allocations: 0 / 1.062 GB, free: 41.35 MB / 442.7 MB Notification: Performance of Templates: time 0.04229/3.283, allocations: 26.83 MB / 1.088 GB, free: 40.6 MB / 442.7 MB