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/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/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.138/2.138, allocations: 235 MB / 248.1 MB, free: 14.36 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.907e-05/2.922e-05, allocations: 0 / 309.7 MB, free: 1.324 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3233/0.3234, allocations: 54.87 MB / 364.6 MB, free: 5.523 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5532/0.8766, allocations: 215.4 MB / 0.5664 GB, free: 135.7 MB / 458.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002502/0.8769, allocations: 83.95 kB / 0.5665 GB, free: 135.6 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.393/3.27, allocations: 0.5087 GB / 1.075 GB, free: 70.02 MB / 490.7 MB Notification: Performance of FrontEnd: time 3.832e-06/3.27, allocations: 0 / 1.075 GB, free: 70.02 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0001187/3.27, allocations: 40.88 kB / 1.075 GB, free: 70.02 MB / 490.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.005649/3.276, allocations: 1.902 MB / 1.077 GB, free: 69.64 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.696e-05/3.276, allocations: 9.344 kB / 1.077 GB, free: 69.64 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00439/3.28, allocations: 345.5 kB / 1.077 GB, free: 69.57 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002491/3.283, allocations: 0.8941 MB / 1.078 GB, free: 69.31 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.332e-05/3.283, allocations: 69.5 kB / 1.078 GB, free: 69.31 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001995/3.283, allocations: 82.91 kB / 1.078 GB, free: 69.31 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003372/3.286, allocations: 1.131 MB / 1.08 GB, free: 69.04 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.281e-05/3.286, allocations: 1.656 kB / 1.08 GB, free: 69.04 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001671/3.286, allocations: 38.88 kB / 1.08 GB, free: 69.04 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.896e-05/3.287, allocations: 20.44 kB / 1.08 GB, free: 69.04 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00299/3.29, allocations: 0.8271 MB / 1.08 GB, free: 69.04 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008497/3.298, allocations: 6.278 MB / 1.087 GB, free: 64.84 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001822/3.3, allocations: 0.4925 MB / 1.087 GB, free: 64.82 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005033/3.3, allocations: 220.5 kB / 1.087 GB, free: 64.81 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005039/3.301, allocations: 0.762 MB / 1.088 GB, free: 63.96 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.009e-05/3.301, allocations: 45.86 kB / 1.088 GB, free: 63.92 MB / 490.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0008711/3.302, allocations: 111.7 kB / 1.088 GB, free: 63.9 MB / 490.7 MB Notification: Performance of pre-optimization done (n=48): time 4.15e-06/3.302, allocations: 0 / 1.088 GB, free: 63.9 MB / 490.7 MB Notification: Performance of matching and sorting (n=48): time 0.003153/3.305, allocations: 0.6959 MB / 1.089 GB, free: 63.8 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.903e-05/3.305, allocations: 188.9 kB / 1.089 GB, free: 63.59 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001367/3.307, allocations: 0.7457 MB / 1.09 GB, free: 63.43 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 9.543e-05/3.307, allocations: 37.7 kB / 1.09 GB, free: 63.4 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003645/3.307, allocations: 0.6124 MB / 1.09 GB, free: 63.09 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000174/3.307, allocations: 171.2 kB / 1.09 GB, free: 63.01 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.959e-05/3.307, allocations: 18.19 kB / 1.091 GB, free: 63.01 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 8.52e-05/3.307, allocations: 346 kB / 1.091 GB, free: 62.7 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006671/3.308, allocations: 270.8 kB / 1.091 GB, free: 62.7 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008688/3.309, allocations: 0.6113 MB / 1.092 GB, free: 62.27 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008087/3.31, allocations: 363.4 kB / 1.092 GB, free: 62.26 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.109e-05/3.31, allocations: 2.562 kB / 1.092 GB, free: 62.26 MB / 490.7 MB Notification: Performance of matching and sorting (n=117) (initialization): time 0.002659/3.313, allocations: 1.038 MB / 1.093 GB, free: 62.19 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0008065/3.313, allocations: 4.182 MB / 1.097 GB, free: 57.84 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.468e-05/3.313, allocations: 13.31 kB / 1.097 GB, free: 57.84 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007601/3.321, allocations: 0.7445 MB / 1.098 GB, free: 57.83 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001349/3.322, allocations: 292.5 kB / 1.098 GB, free: 57.83 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001073/3.324, allocations: 0.7826 MB / 1.099 GB, free: 57.31 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001591/3.325, allocations: 102.7 kB / 1.099 GB, free: 57.3 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001941/3.325, allocations: 79.97 kB / 1.099 GB, free: 57.3 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.41e-05/3.325, allocations: 6.156 kB / 1.099 GB, free: 57.3 MB / 490.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00225/3.328, allocations: 0.9279 MB / 1.1 GB, free: 57.28 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.893e-05/3.328, allocations: 11 kB / 1.1 GB, free: 57.28 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000307/3.328, allocations: 80.3 kB / 1.1 GB, free: 57.27 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001284/3.329, allocations: 304.4 kB / 1.1 GB, free: 57.27 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001866/3.331, allocations: 1.635 MB / 1.102 GB, free: 55.94 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001168/3.332, allocations: 91.19 kB / 1.102 GB, free: 55.94 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001809/3.333, allocations: 70.61 kB / 1.102 GB, free: 55.94 MB / 490.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.0003141/3.333, allocations: 172.4 kB / 1.102 GB, free: 55.83 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003375/3.333, allocations: 105.1 kB / 1.102 GB, free: 55.77 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00435/3.338, allocations: 1.497 MB / 1.104 GB, free: 55.68 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.508e-06/3.338, allocations: 7.625 kB / 1.104 GB, free: 55.68 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.869e-06/3.338, allocations: 0 / 1.104 GB, free: 55.68 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.305e-05/3.338, allocations: 3.422 kB / 1.104 GB, free: 55.68 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00326/3.341, allocations: 1.651 MB / 1.105 GB, free: 55.31 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.094e-06/3.341, allocations: 0 / 1.105 GB, free: 55.31 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006582/3.342, allocations: 135.2 kB / 1.106 GB, free: 55.31 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004124/3.346, allocations: 0.5668 MB / 1.106 GB, free: 55.3 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001079/3.346, allocations: 26.66 kB / 1.106 GB, free: 55.29 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009865/3.347, allocations: 0.8081 MB / 1.107 GB, free: 54.77 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.391e-06/3.347, allocations: 3.938 kB / 1.107 GB, free: 54.77 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001797/3.349, allocations: 0.896 MB / 1.108 GB, free: 54.42 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006261/3.349, allocations: 311.5 kB / 1.108 GB, free: 54.27 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002268/3.35, allocations: 19.88 kB / 1.108 GB, free: 54.27 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008765/3.351, allocations: 65.94 kB / 1.108 GB, free: 54.27 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001296/3.351, allocations: 55.64 kB / 1.108 GB, free: 54.27 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.908e-05/3.351, allocations: 29.45 kB / 1.108 GB, free: 54.27 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.0009827/3.352, allocations: 0.5797 MB / 1.109 GB, free: 54.15 MB / 490.7 MB Notification: Performance of sort global known variables: time 8.94e-07/3.352, allocations: 0 / 1.109 GB, free: 54.15 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.004097/3.356, allocations: 1.028 MB / 1.11 GB, free: 54.03 MB / 490.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.002453/3.358, allocations: 0.8046 MB / 1.111 GB, free: 53.83 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.003027/3.361, allocations: 1.293 MB / 1.112 GB, free: 53.7 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 6.504e-06/3.362, allocations: 1.312 kB / 1.112 GB, free: 53.7 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007312/3.362, allocations: 319.5 kB / 1.112 GB, free: 53.69 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002723/3.365, allocations: 418.5 kB / 1.113 GB, free: 53.68 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003774/3.369, allocations: 1.541 MB / 1.114 GB, free: 53.24 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005854/3.369, allocations: 1.098 MB / 1.115 GB, free: 52.53 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006272/3.37, allocations: 128.4 kB / 1.115 GB, free: 52.53 MB / 490.7 MB Notification: Performance of SimCode: time 1.793e-06/3.37, allocations: 0 / 1.115 GB, free: 52.53 MB / 490.7 MB Notification: Performance of Templates: time 0.0419/3.412, allocations: 26.83 MB / 1.142 GB, free: 51.72 MB / 490.7 MB