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.132/2.132, allocations: 234.9 MB / 250.5 MB, free: 9.461 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004252/0.0004254, allocations: 8 kB / 314.4 MB, free: 9.465 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2925/0.293, allocations: 54.86 MB / 369.3 MB, free: 12.74 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5355/0.8285, allocations: 215.5 MB / 0.5711 GB, free: 48.73 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002466/0.8288, allocations: 85.83 kB / 0.5712 GB, free: 48.69 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.406/3.235, allocations: 0.5098 GB / 1.081 GB, free: 76.59 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.334e-06/3.235, allocations: 3.609 kB / 1.081 GB, free: 76.59 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0001032/3.235, allocations: 34.5 kB / 1.081 GB, free: 76.59 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.005576/3.241, allocations: 2.045 MB / 1.083 GB, free: 75.89 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.01e-05/3.241, allocations: 13.98 kB / 1.083 GB, free: 75.89 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004375/3.245, allocations: 355.7 kB / 1.083 GB, free: 75.82 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002423/3.248, allocations: 0.9106 MB / 1.084 GB, free: 75.55 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.365e-05/3.248, allocations: 61.25 kB / 1.084 GB, free: 75.55 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001861/3.248, allocations: 81.56 kB / 1.084 GB, free: 75.55 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003838/3.252, allocations: 1.225 MB / 1.086 GB, free: 75.29 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.275e-05/3.252, allocations: 4.406 kB / 1.086 GB, free: 75.29 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001612/3.252, allocations: 38.75 kB / 1.086 GB, free: 75.29 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.928e-05/3.252, allocations: 20.91 kB / 1.086 GB, free: 75.29 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003755/3.256, allocations: 0.9994 MB / 1.087 GB, free: 75.28 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008345/3.264, allocations: 6.252 MB / 1.093 GB, free: 71.07 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002405/3.267, allocations: 0.636 MB / 1.093 GB, free: 71.05 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004491/3.267, allocations: 0.7644 MB / 1.094 GB, free: 70.21 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.274e-05/3.267, allocations: 38.5 kB / 1.094 GB, free: 70.17 MB / 490.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0007961/3.268, allocations: 109.8 kB / 1.094 GB, free: 70.15 MB / 490.7 MB Notification: Performance of pre-optimization done (n=48): time 4.206e-06/3.268, allocations: 1.875 kB / 1.094 GB, free: 70.15 MB / 490.7 MB Notification: Performance of matching and sorting (n=48): time 0.006591/3.275, allocations: 1.431 MB / 1.096 GB, free: 69.95 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.364e-05/3.275, allocations: 185.5 kB / 1.096 GB, free: 69.73 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001269/3.276, allocations: 0.7613 MB / 1.097 GB, free: 69.59 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 9.16e-05/3.276, allocations: 35.33 kB / 1.097 GB, free: 69.55 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000345/3.277, allocations: 0.6148 MB / 1.097 GB, free: 69.25 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001718/3.277, allocations: 168.3 kB / 1.097 GB, free: 69.16 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.685e-05/3.277, allocations: 19 kB / 1.097 GB, free: 69.16 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 8.38e-05/3.277, allocations: 349.1 kB / 1.098 GB, free: 68.85 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001086/3.278, allocations: 356.8 kB / 1.098 GB, free: 68.85 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001211/3.279, allocations: 0.698 MB / 1.099 GB, free: 68.43 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00112/3.28, allocations: 445.7 kB / 1.099 GB, free: 68.42 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.517e-06/3.28, allocations: 7.219 kB / 1.099 GB, free: 68.42 MB / 490.7 MB Notification: Performance of matching and sorting (n=117) (initialization): time 0.003366/3.284, allocations: 1.207 MB / 1.1 GB, free: 68.35 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0007968/3.285, allocations: 4.184 MB / 1.104 GB, free: 64 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.028e-05/3.285, allocations: 14.44 kB / 1.104 GB, free: 64 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006682/3.291, allocations: 0.7719 MB / 1.105 GB, free: 63.99 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001282/3.293, allocations: 291.4 kB / 1.105 GB, free: 63.99 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001118/3.294, allocations: 0.7876 MB / 1.106 GB, free: 63.46 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001513/3.295, allocations: 103.8 kB / 1.106 GB, free: 63.46 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00021/3.296, allocations: 83.44 kB / 1.106 GB, free: 63.46 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.225e-05/3.296, allocations: 3.938 kB / 1.106 GB, free: 63.46 MB / 490.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003123/3.299, allocations: 1.101 MB / 1.108 GB, free: 63.44 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.849e-05/3.299, allocations: 9.875 kB / 1.108 GB, free: 63.44 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003388/3.299, allocations: 80.73 kB / 1.108 GB, free: 63.43 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001238/3.3, allocations: 300.8 kB / 1.108 GB, free: 63.43 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001787/3.302, allocations: 1.667 MB / 1.11 GB, free: 62.09 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001024/3.303, allocations: 93.86 kB / 1.11 GB, free: 62.09 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001553/3.303, allocations: 68.19 kB / 1.11 GB, free: 62.09 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 () * 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.0007405/3.304, allocations: 334.7 kB / 1.11 GB, free: 61.88 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002949/3.304, allocations: 110.8 kB / 1.11 GB, free: 61.82 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0051/3.31, allocations: 1.662 MB / 1.112 GB, free: 61.7 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.099e-05/3.31, allocations: 13.53 kB / 1.112 GB, free: 61.69 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.633e-06/3.31, allocations: 0 / 1.112 GB, free: 61.69 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.296e-05/3.31, allocations: 3.609 kB / 1.112 GB, free: 61.69 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004127/3.314, allocations: 1.826 MB / 1.114 GB, free: 61.31 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.27e-06/3.314, allocations: 0 / 1.114 GB, free: 61.31 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005453/3.314, allocations: 133.2 kB / 1.114 GB, free: 61.3 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003989/3.318, allocations: 0.5771 MB / 1.114 GB, free: 61.29 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001027/3.319, allocations: 21.34 kB / 1.114 GB, free: 61.29 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000993/3.32, allocations: 0.8026 MB / 1.115 GB, free: 60.77 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.228e-06/3.32, allocations: 13.81 kB / 1.115 GB, free: 60.76 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002596/3.322, allocations: 1.062 MB / 1.116 GB, free: 60.42 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006634/3.323, allocations: 310.8 kB / 1.116 GB, free: 60.27 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002336/3.323, allocations: 19.62 kB / 1.116 GB, free: 60.27 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009321/3.324, allocations: 70.83 kB / 1.116 GB, free: 60.27 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001331/3.324, allocations: 61.73 kB / 1.117 GB, free: 60.26 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.441e-05/3.324, allocations: 28.41 kB / 1.117 GB, free: 60.26 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.000979/3.325, allocations: 0.5929 MB / 1.117 GB, free: 60.15 MB / 490.7 MB Notification: Performance of sort global known variables: time 7.27e-07/3.325, allocations: 0 / 1.117 GB, free: 60.15 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.004038/3.329, allocations: 1.028 MB / 1.118 GB, free: 60.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 () * 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.002388/3.332, allocations: 0.8002 MB / 1.119 GB, free: 59.82 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.004242/3.336, allocations: 1.553 MB / 1.12 GB, free: 59.63 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 6.209e-06/3.336, allocations: 0 / 1.12 GB, free: 59.63 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001181/3.337, allocations: 399 kB / 1.121 GB, free: 59.61 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002764/3.34, allocations: 422.2 kB / 1.121 GB, free: 59.59 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004674/3.345, allocations: 2.464 MB / 1.124 GB, free: 58.49 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005733/3.345, allocations: 1.096 MB / 1.125 GB, free: 57.78 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006197/3.346, allocations: 135.6 kB / 1.125 GB, free: 57.77 MB / 490.7 MB Notification: Performance of SimCode: time 2.557e-06/3.346, allocations: 0 / 1.125 GB, free: 57.77 MB / 490.7 MB Notification: Performance of Templates: time 0.04164/3.388, allocations: 26.9 MB / 1.151 GB, free: 56.19 MB / 490.7 MB