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.TestValvesCompressibleReverse.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.TestValvesCompressibleReverse,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.TestValvesCompressibleReverse") Notification: Performance of loadModel(ModelicaTest): time 2.23/2.23, allocations: 235 MB / 248.1 MB, free: 14.38 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.962e-05/2.983e-05, allocations: 4 kB / 309.7 MB, free: 1.32 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3195/0.3196, allocations: 54.86 MB / 364.5 MB, free: 5.551 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.181/6.501, allocations: 2.608 GB / 2.964 GB, free: 101.9 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002516/6.501, allocations: 86.12 kB / 2.964 GB, free: 101.9 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.632/9.133, allocations: 0.5731 GB / 3.537 GB, free: 41.47 MB / 0.4948 GB Notification: Performance of FrontEnd: time 2.206e-06/9.133, allocations: 0 / 3.537 GB, free: 41.47 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0001249/9.133, allocations: 41.47 kB / 3.537 GB, free: 41.47 MB / 0.4948 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 284 * Number of variables: 284 Notification: Performance of Generate backend data structure: time 0.01058/9.144, allocations: 2.553 MB / 3.539 GB, free: 40.49 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 4.035e-05/9.144, allocations: 7.781 kB / 3.539 GB, free: 40.49 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009159/9.153, allocations: 0.8692 MB / 3.54 GB, free: 40.41 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002724/9.156, allocations: 1.065 MB / 3.541 GB, free: 40.07 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000117/9.156, allocations: 106.2 kB / 3.541 GB, free: 40.07 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002587/9.156, allocations: 118.2 kB / 3.541 GB, free: 40.07 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006437/9.162, allocations: 2.153 MB / 3.544 GB, free: 39.7 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.067e-05/9.163, allocations: 7.531 kB / 3.544 GB, free: 39.7 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002167/9.163, allocations: 47.86 kB / 3.544 GB, free: 39.7 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.599e-05/9.163, allocations: 30.5 kB / 3.544 GB, free: 39.7 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006402/9.169, allocations: 1.966 MB / 3.546 GB, free: 39.7 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01217/9.181, allocations: 8.879 MB / 3.554 GB, free: 34.46 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005653/9.187, allocations: 1.739 MB / 3.556 GB, free: 34.43 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009693/9.188, allocations: 0.4955 MB / 3.556 GB, free: 34.42 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1196/9.308, allocations: 49.46 MB / 3.605 GB, free: 21.51 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.747e-05/9.308, allocations: 42.09 kB / 3.605 GB, free: 21.47 MB / 0.5105 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001084/9.309, allocations: 151.5 kB / 3.605 GB, free: 21.41 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=106): time 4.374e-06/9.309, allocations: 0 / 3.605 GB, free: 21.41 MB / 0.5105 GB Notification: Performance of matching and sorting (n=106): time 0.009232/9.318, allocations: 2.386 MB / 3.607 GB, free: 21.27 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001353/9.318, allocations: 197.7 kB / 3.607 GB, free: 21.05 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001268/9.32, allocations: 0.7705 MB / 3.608 GB, free: 20.88 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0001626/9.32, allocations: 51.77 kB / 3.608 GB, free: 20.85 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004079/9.32, allocations: 0.611 MB / 3.609 GB, free: 20.49 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003052/9.321, allocations: 367.7 kB / 3.609 GB, free: 20.26 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001197/9.321, allocations: 28.12 kB / 3.609 GB, free: 20.26 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0002103/9.321, allocations: 371.9 kB / 3.61 GB, free: 19.95 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00106/9.322, allocations: 440.9 kB / 3.61 GB, free: 19.95 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001294/9.323, allocations: 0.8695 MB / 3.611 GB, free: 19.43 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00127/9.325, allocations: 0.5503 MB / 3.611 GB, free: 19.39 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.123e-05/9.325, allocations: 2.688 kB / 3.611 GB, free: 19.39 MB / 0.5105 GB Notification: Performance of matching and sorting (n=187) (initialization): time 0.003678/9.328, allocations: 1.572 MB / 3.613 GB, free: 19.28 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.002845/9.331, allocations: 4.967 MB / 3.618 GB, free: 30.07 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.363e-05/9.331, allocations: 13.56 kB / 3.618 GB, free: 30.07 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01066/9.342, allocations: 1.087 MB / 3.619 GB, free: 30.02 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003641/9.346, allocations: 434 kB / 3.619 GB, free: 30.02 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00243/9.348, allocations: 0.9315 MB / 3.62 GB, free: 29.49 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003613/9.352, allocations: 172.7 kB / 3.62 GB, free: 29.47 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004344/9.352, allocations: 86.83 kB / 3.62 GB, free: 29.47 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.861e-05/9.352, allocations: 7.062 kB / 3.62 GB, free: 29.47 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005906/9.358, allocations: 1.405 MB / 3.622 GB, free: 29.42 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.257e-05/9.358, allocations: 11.66 kB / 3.622 GB, free: 29.42 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005716/9.359, allocations: 95.83 kB / 3.622 GB, free: 29.41 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003771/9.363, allocations: 473.7 kB / 3.622 GB, free: 29.4 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004089/9.367, allocations: 1.743 MB / 3.624 GB, free: 28.03 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002889/9.37, allocations: 174.9 kB / 3.624 GB, free: 28.01 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003975/9.37, allocations: 91.56 kB / 3.624 GB, free: 28.01 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 57 * Number of states: 0 () * Number of discrete variables: 15 (SourceP1.medium.phase,SourceP2.medium.phase,SinkP1.medium.phase,SinkP2.medium.phase,SinkP3.medium.phase,V5.state_b.phase,V5.state_a.phase,V4.state_b.phase,V4.state_a.phase,V3.state_b.phase,V3.state_a.phase,V2.state_b.phase,V2.state_a.phase,V1.state_b.phase,V1.state_a.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (163): * Single equations (assignments): 162 * 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 22} Notification: Performance of prepare postOptimizeDAE: time 0.0006695/9.371, allocations: 195.6 kB / 3.625 GB, free: 27.89 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005691/9.371, allocations: 122.8 kB / 3.625 GB, free: 27.82 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01453/9.386, allocations: 6.419 MB / 3.631 GB, free: 27.17 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001268/9.386, allocations: 88.64 kB / 3.631 GB, free: 27.17 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.015e-06/9.386, allocations: 4 kB / 3.631 GB, free: 27.16 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.484e-05/9.386, allocations: 6.281 kB / 3.631 GB, free: 27.16 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006717/9.393, allocations: 2.88 MB / 3.634 GB, free: 26.79 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.807e-05/9.393, allocations: 0 / 3.634 GB, free: 26.79 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002265/9.395, allocations: 280.9 kB / 3.634 GB, free: 26.78 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01259/9.408, allocations: 2.266 MB / 3.636 GB, free: 26.68 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003197/9.408, allocations: 40.53 kB / 3.636 GB, free: 26.68 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003448/9.412, allocations: 1.594 MB / 3.638 GB, free: 26.12 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.319e-05/9.412, allocations: 0 / 3.638 GB, free: 26.12 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01098/9.423, allocations: 3.407 MB / 3.641 GB, free: 25.65 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001692/9.425, allocations: 0.5984 MB / 3.642 GB, free: 25.33 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002765/9.425, allocations: 26.19 kB / 3.642 GB, free: 25.33 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001377/9.426, allocations: 140.9 kB / 3.642 GB, free: 25.31 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002317/9.427, allocations: 110.3 kB / 3.642 GB, free: 25.31 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001123/9.427, allocations: 51.78 kB / 3.642 GB, free: 25.31 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.001322/9.428, allocations: 0.7466 MB / 3.643 GB, free: 25.2 MB / 0.5261 GB Notification: Performance of sort global known variables: time 1.015e-06/9.428, allocations: 4 kB / 3.643 GB, free: 25.19 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.007431/9.435, allocations: 1.793 MB / 3.645 GB, free: 24.96 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 51 ($cse6.phase,$cse6.region,$cse10.phase,$cse10.region,$cse14.phase,$cse14.region,$cse17.phase,$cse17.region,$cse18.phase,$cse18.region,$cse23.phase,$cse23.region,$cse24.phase,$cse24.region,$cse26.phase,$cse26.region,$cse27.phase,$cse27.region,$cse34.phase,$cse34.region,$cse36.phase,$cse36.region,$cse37.phase,$cse37.region,$cse43.phase,$cse43.region,$cse44.phase,$cse44.region,$cse46.phase,$cse46.region,$cse47.phase,$cse47.region,$cse52.phase,$cse52.region,$cse54.phase,$cse54.region,$cse55.phase,$cse55.region,$cse60.phase,$cse60.region,$cse61.phase,$cse61.region,$cse62.phase,$cse62.region,$cse63.phase,$cse63.region,SourceP1.medium.phase,SourceP2.medium.phase,SinkP1.medium.phase,SinkP2.medium.phase,SinkP3.medium.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (121): * Single equations (assignments): 100 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 20 * 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 34} Notification: Performance of Backend phase and start with SimCode phase: time 0.007024/9.443, allocations: 1.879 MB / 3.646 GB, free: 24.55 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.005554/9.448, allocations: 2.749 MB / 3.649 GB, free: 24.37 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 5.133e-06/9.448, allocations: 0 / 3.649 GB, free: 24.37 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.002292/9.45, allocations: 1.502 MB / 3.651 GB, free: 24.35 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003641/9.454, allocations: 0.5895 MB / 3.651 GB, free: 24.3 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.7959/10.25, allocations: 172.1 MB / 3.819 GB, free: 60.7 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00118/10.25, allocations: 1.699 MB / 3.821 GB, free: 59.93 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006113/10.25, allocations: 142.9 kB / 3.821 GB, free: 59.93 MB / 0.5261 GB Notification: Performance of SimCode: time 1.834e-06/10.25, allocations: 0 / 3.821 GB, free: 59.93 MB / 0.5261 GB Notification: Performance of Templates: time 0.1229/10.37, allocations: 54.83 MB / 3.875 GB, free: 36.79 MB / 0.5261 GB