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.853/1.853, allocations: 209.3 MB / 224.9 MB, free: 200 kB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004565/0.0004566, allocations: 16 kB / 282.6 MB, free: 9.574 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3145/0.315, allocations: 48.7 MB / 331.3 MB, free: 6.504 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5071/0.8221, allocations: 209.2 MB / 0.5278 GB, free: 58.11 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002435/0.8224, allocations: 88.08 kB / 0.5279 GB, free: 58.06 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.375/3.197, allocations: 0.5002 GB / 1.028 GB, free: 65.84 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.416e-06/3.197, allocations: 0 / 1.028 GB, free: 65.84 MB / 442.7 MB Notification: Performance of Transformations before backend: time 9.859e-05/3.197, allocations: 33.55 kB / 1.028 GB, free: 65.84 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.005078/3.203, allocations: 2.044 MB / 1.03 GB, free: 64.88 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.624e-05/3.203, allocations: 11.5 kB / 1.03 GB, free: 64.88 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004147/3.207, allocations: 354.9 kB / 1.03 GB, free: 64.81 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002169/3.209, allocations: 0.8977 MB / 1.031 GB, free: 64.52 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.611e-05/3.209, allocations: 63.78 kB / 1.031 GB, free: 64.52 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001536/3.209, allocations: 80.78 kB / 1.031 GB, free: 64.52 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003377/3.213, allocations: 1.227 MB / 1.033 GB, free: 64.25 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.22e-05/3.213, allocations: 3.938 kB / 1.033 GB, free: 64.24 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001464/3.213, allocations: 51.22 kB / 1.033 GB, free: 64.24 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.205e-05/3.213, allocations: 21.44 kB / 1.033 GB, free: 64.24 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003325/3.216, allocations: 0.9944 MB / 1.034 GB, free: 64.22 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007516/3.224, allocations: 6.257 MB / 1.04 GB, free: 59.98 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002255/3.226, allocations: 0.6318 MB / 1.04 GB, free: 59.95 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004471/3.227, allocations: 0.7686 MB / 1.041 GB, free: 59.1 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.164e-05/3.227, allocations: 34.62 kB / 1.041 GB, free: 59.06 MB / 442.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0007689/3.227, allocations: 112.7 kB / 1.041 GB, free: 59.03 MB / 442.7 MB Notification: Performance of pre-optimization done (n=48): time 4.393e-06/3.227, allocations: 0 / 1.041 GB, free: 59.03 MB / 442.7 MB Notification: Performance of matching and sorting (n=48): time 0.006334/3.234, allocations: 1.435 MB / 1.043 GB, free: 58.83 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.059e-05/3.234, allocations: 188.8 kB / 1.043 GB, free: 58.61 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001158/3.235, allocations: 0.7571 MB / 1.044 GB, free: 58.45 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 7.52e-05/3.235, allocations: 32.02 kB / 1.044 GB, free: 58.42 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003245/3.235, allocations: 0.6072 MB / 1.044 GB, free: 58.06 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001492/3.236, allocations: 170.5 kB / 1.044 GB, free: 57.95 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.57e-05/3.236, allocations: 26.41 kB / 1.044 GB, free: 57.95 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 8.029e-05/3.236, allocations: 344.5 kB / 1.045 GB, free: 57.64 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000954/3.237, allocations: 352 kB / 1.045 GB, free: 57.64 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00108/3.238, allocations: 0.6985 MB / 1.046 GB, free: 57.21 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001071/3.239, allocations: 453.5 kB / 1.046 GB, free: 57.19 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.837e-06/3.239, allocations: 3.719 kB / 1.046 GB, free: 57.19 MB / 442.7 MB Notification: Performance of matching and sorting (n=117) (initialization): time 0.003174/3.242, allocations: 1.213 MB / 1.047 GB, free: 57.05 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.00077/3.243, allocations: 4.181 MB / 1.052 GB, free: 52.7 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.818e-05/3.243, allocations: 16.44 kB / 1.052 GB, free: 52.7 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007013/3.25, allocations: 0.7643 MB / 1.052 GB, free: 52.69 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001247/3.251, allocations: 289.1 kB / 1.053 GB, free: 52.68 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009983/3.252, allocations: 0.801 MB / 1.053 GB, free: 52.14 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001371/3.254, allocations: 99.7 kB / 1.053 GB, free: 52.13 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001718/3.254, allocations: 82.92 kB / 1.054 GB, free: 52.13 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.199e-05/3.254, allocations: 4.906 kB / 1.054 GB, free: 52.13 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002842/3.257, allocations: 1.108 MB / 1.055 GB, free: 52.03 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.635e-05/3.257, allocations: 9.406 kB / 1.055 GB, free: 52.03 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002953/3.257, allocations: 81.83 kB / 1.055 GB, free: 52.02 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001163/3.258, allocations: 301.7 kB / 1.055 GB, free: 52.01 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001728/3.26, allocations: 1.652 MB / 1.057 GB, free: 50.66 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009546/3.261, allocations: 89.33 kB / 1.057 GB, free: 50.66 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001515/3.261, allocations: 75.33 kB / 1.057 GB, free: 50.66 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.0006533/3.262, allocations: 341.5 kB / 1.057 GB, free: 50.44 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002589/3.262, allocations: 101.6 kB / 1.057 GB, free: 50.39 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004531/3.267, allocations: 1.673 MB / 1.059 GB, free: 50.24 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.05e-05/3.267, allocations: 10.86 kB / 1.059 GB, free: 50.23 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.7e-06/3.267, allocations: 3.797 kB / 1.059 GB, free: 50.23 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.002e-05/3.267, allocations: 0 / 1.059 GB, free: 50.23 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004316/3.271, allocations: 1.818 MB / 1.061 GB, free: 49.86 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.78e-06/3.271, allocations: 0 / 1.061 GB, free: 49.86 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005743/3.272, allocations: 132.2 kB / 1.061 GB, free: 49.85 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004008/3.276, allocations: 0.5795 MB / 1.061 GB, free: 49.83 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001156/3.276, allocations: 24.17 kB / 1.061 GB, free: 49.83 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009413/3.277, allocations: 0.8064 MB / 1.062 GB, free: 49.31 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.442e-06/3.277, allocations: 7.891 kB / 1.062 GB, free: 49.3 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002435/3.279, allocations: 1.064 MB / 1.063 GB, free: 48.96 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006532/3.28, allocations: 315.5 kB / 1.063 GB, free: 48.8 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001949/3.28, allocations: 15.22 kB / 1.063 GB, free: 48.8 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008782/3.281, allocations: 74.12 kB / 1.064 GB, free: 48.8 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001292/3.281, allocations: 56.52 kB / 1.064 GB, free: 48.79 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.26e-05/3.281, allocations: 27.09 kB / 1.064 GB, free: 48.79 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.000956/3.282, allocations: 0.5971 MB / 1.064 GB, free: 48.68 MB / 442.7 MB Notification: Performance of sort global known variables: time 9.03e-07/3.282, allocations: 0 / 1.064 GB, free: 48.68 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.00385/3.286, allocations: 1.024 MB / 1.065 GB, free: 48.5 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.002205/3.288, allocations: 0.8095 MB / 1.066 GB, free: 48.24 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.003869/3.292, allocations: 1.554 MB / 1.068 GB, free: 47.85 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 6.262e-06/3.292, allocations: 0 / 1.068 GB, free: 47.85 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001089/3.293, allocations: 397.2 kB / 1.068 GB, free: 47.75 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002519/3.296, allocations: 431.1 kB / 1.068 GB, free: 47.65 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00439/3.3, allocations: 2.467 MB / 1.071 GB, free: 46.08 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005679/3.301, allocations: 1.1 MB / 1.072 GB, free: 45.12 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000578/3.302, allocations: 129.4 kB / 1.072 GB, free: 45.02 MB / 442.7 MB Notification: Performance of SimCode: time 1.609e-06/3.302, allocations: 3.562 kB / 1.072 GB, free: 45.02 MB / 442.7 MB Notification: Performance of Templates: time 0.03943/3.341, allocations: 26.89 MB / 1.098 GB, free: 22.62 MB / 442.7 MB