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.TestValvesIncompressibleReverse.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.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.2_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValvesIncompressibleReverse") Notification: Performance of loadModel(ModelicaTest): time 2.124/2.124, allocations: 235.1 MB / 243 MB, free: 9.492 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.131e-05/3.132e-05, allocations: 4 kB / 303.2 MB, free: 13.2 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3083/0.3084, allocations: 54.87 MB / 358.1 MB, free: 14.93 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.522/0.8305, allocations: 214.7 MB / 0.5594 GB, free: 9.25 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002542/0.8308, allocations: 82.83 kB / 0.5595 GB, free: 9.207 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.411/3.242, allocations: 0.504 GB / 1.063 GB, free: 71.09 MB / 474.7 MB Notification: Performance of FrontEnd: time 2.913e-06/3.242, allocations: 3.219 kB / 1.063 GB, free: 71.09 MB / 474.7 MB Notification: Performance of Transformations before backend: time 9.658e-05/3.242, allocations: 38.17 kB / 1.064 GB, free: 71.09 MB / 474.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.005259/3.247, allocations: 1.898 MB / 1.065 GB, free: 70.23 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.321e-05/3.247, allocations: 9.25 kB / 1.065 GB, free: 70.23 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004367/3.251, allocations: 353.6 kB / 1.066 GB, free: 70.16 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002398/3.254, allocations: 0.8951 MB / 1.067 GB, free: 69.88 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.035e-05/3.254, allocations: 24.66 kB / 1.067 GB, free: 69.88 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001535/3.254, allocations: 52.3 kB / 1.067 GB, free: 69.87 MB / 474.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001825/3.256, allocations: 0.7148 MB / 1.067 GB, free: 69.87 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001917/3.258, allocations: 0.9404 MB / 1.068 GB, free: 69.59 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.199e-05/3.258, allocations: 3.375 kB / 1.068 GB, free: 69.59 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001329/3.258, allocations: 3.875 kB / 1.068 GB, free: 69.59 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.08e-05/3.258, allocations: 23.44 kB / 1.068 GB, free: 69.59 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008412/3.267, allocations: 6.124 MB / 1.074 GB, free: 65.38 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001033/3.268, allocations: 459.1 kB / 1.075 GB, free: 65.35 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004508/3.268, allocations: 219.2 kB / 1.075 GB, free: 65.34 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005022/3.269, allocations: 0.7577 MB / 1.076 GB, free: 64.5 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.523e-05/3.269, allocations: 42.44 kB / 1.076 GB, free: 64.46 MB / 474.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.000905/3.27, allocations: 101.6 kB / 1.076 GB, free: 64.43 MB / 474.7 MB Notification: Performance of pre-optimization done (n=48): time 4.313e-06/3.27, allocations: 0 / 1.076 GB, free: 64.43 MB / 474.7 MB Notification: Performance of matching and sorting (n=48): time 0.007439/3.277, allocations: 1.079 MB / 1.077 GB, free: 64.33 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.155e-05/3.277, allocations: 193.3 kB / 1.077 GB, free: 64.11 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001082/3.278, allocations: 0.6869 MB / 1.078 GB, free: 63.95 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 9.523e-05/3.278, allocations: 25.7 kB / 1.078 GB, free: 63.92 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003366/3.279, allocations: 0.6137 MB / 1.078 GB, free: 63.55 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000156/3.279, allocations: 164.4 kB / 1.078 GB, free: 63.45 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.786e-05/3.279, allocations: 0 / 1.078 GB, free: 63.45 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 8.555e-05/3.279, allocations: 352.2 kB / 1.079 GB, free: 63.13 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005396/3.28, allocations: 254.9 kB / 1.079 GB, free: 63.13 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007337/3.28, allocations: 0.5963 MB / 1.08 GB, free: 62.7 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009994/3.29, allocations: 1.503 MB / 1.081 GB, free: 62.68 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.008e-05/3.29, allocations: 3.125 kB / 1.081 GB, free: 62.68 MB / 474.7 MB Notification: Performance of matching and sorting (n=117) (initialization): time 0.01166/3.302, allocations: 2.121 MB / 1.083 GB, free: 62.56 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0008122/3.303, allocations: 4.187 MB / 1.087 GB, free: 58.21 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.189e-05/3.303, allocations: 11.72 kB / 1.087 GB, free: 58.21 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003261/3.306, allocations: 426.5 kB / 1.088 GB, free: 58.2 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00125/3.308, allocations: 279.9 kB / 1.088 GB, free: 58.19 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002521/3.31, allocations: 0.953 MB / 1.089 GB, free: 57.65 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001568/3.312, allocations: 85.03 kB / 1.089 GB, free: 57.64 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001959/3.312, allocations: 78.38 kB / 1.089 GB, free: 57.64 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.338e-05/3.312, allocations: 3.781 kB / 1.089 GB, free: 57.64 MB / 474.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.009098/3.321, allocations: 1.816 MB / 1.091 GB, free: 57.56 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.263e-05/3.321, allocations: 9.125 kB / 1.091 GB, free: 57.56 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003033/3.321, allocations: 77.66 kB / 1.091 GB, free: 57.55 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001226/3.323, allocations: 300.7 kB / 1.091 GB, free: 57.54 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001707/3.324, allocations: 1.579 MB / 1.093 GB, free: 56.25 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001096/3.325, allocations: 72.53 kB / 1.093 GB, free: 56.25 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001769/3.326, allocations: 79.38 kB / 1.093 GB, free: 56.25 MB / 474.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.0003148/3.326, allocations: 137.5 kB / 1.093 GB, free: 56.12 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003145/3.326, allocations: 105.4 kB / 1.093 GB, free: 56.07 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006785/3.333, allocations: 1.747 MB / 1.095 GB, free: 55.93 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.599e-05/3.333, allocations: 11.27 kB / 1.095 GB, free: 55.92 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.468e-06/3.333, allocations: 7.25 kB / 1.095 GB, free: 55.92 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.153e-05/3.333, allocations: 0 / 1.095 GB, free: 55.92 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005894/3.339, allocations: 1.795 MB / 1.097 GB, free: 55.58 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.738e-06/3.339, allocations: 3.844 kB / 1.097 GB, free: 55.58 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006118/3.34, allocations: 132.8 kB / 1.097 GB, free: 55.57 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001431/3.341, allocations: 291.9 kB / 1.097 GB, free: 55.56 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.251e-05/3.341, allocations: 21.83 kB / 1.097 GB, free: 55.56 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001781/3.343, allocations: 0.9079 MB / 1.098 GB, free: 55.03 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.614e-06/3.343, allocations: 0 / 1.098 GB, free: 55.03 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004335/3.348, allocations: 1.169 MB / 1.099 GB, free: 54.68 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007189/3.348, allocations: 314.6 kB / 1.099 GB, free: 54.52 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002204/3.349, allocations: 6.484 kB / 1.099 GB, free: 54.52 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008705/3.349, allocations: 55.02 kB / 1.099 GB, free: 54.52 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001382/3.35, allocations: 58.34 kB / 1.099 GB, free: 54.52 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.711e-05/3.35, allocations: 29.8 kB / 1.1 GB, free: 54.52 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.0009098/3.351, allocations: 0.5245 MB / 1.1 GB, free: 54.41 MB / 474.7 MB Notification: Performance of sort global known variables: time 9.65e-07/3.351, allocations: 0 / 1.1 GB, free: 54.41 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.004453/3.355, allocations: 0.9793 MB / 1.101 GB, free: 54.21 MB / 474.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.002558/3.358, allocations: 0.788 MB / 1.102 GB, free: 53.96 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.002765/3.361, allocations: 1.207 MB / 1.103 GB, free: 53.79 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 6.237e-06/3.361, allocations: 0 / 1.103 GB, free: 53.79 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006805/3.361, allocations: 301.7 kB / 1.103 GB, free: 53.77 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002588/3.364, allocations: 402.5 kB / 1.104 GB, free: 53.75 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003819/3.368, allocations: 1.504 MB / 1.105 GB, free: 53.3 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005795/3.368, allocations: 1.093 MB / 1.106 GB, free: 52.59 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006444/3.369, allocations: 129.6 kB / 1.106 GB, free: 52.54 MB / 474.7 MB Notification: Performance of SimCode: time 1.977e-06/3.369, allocations: 0 / 1.106 GB, free: 52.54 MB / 474.7 MB Notification: Performance of Templates: time 0.04038/3.409, allocations: 26.91 MB / 1.133 GB, free: 31.41 MB / 474.7 MB