Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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.249/2.249, allocations: 234.9 MB / 251.1 MB, free: 9.473 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004273/0.0004274, allocations: 15.98 kB / 314.9 MB, free: 9.512 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3661/0.3665, allocations: 54.86 MB / 369.8 MB, free: 10.72 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.694/8.061, allocations: 2.608 GB / 2.969 GB, free: 90.02 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003009/8.061, allocations: 93.33 kB / 2.969 GB, free: 89.97 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.013/11.07, allocations: 0.5753 GB / 3.544 GB, free: 46.5 MB / 0.4948 GB Notification: Performance of FrontEnd: time 2.554e-06/11.07, allocations: 3.875 kB / 3.544 GB, free: 46.5 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0001564/11.07, allocations: 44.23 kB / 3.544 GB, free: 46.49 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.0185/11.09, allocations: 2.704 MB / 3.547 GB, free: 45.27 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 4.85e-05/11.09, allocations: 10.91 kB / 3.547 GB, free: 45.27 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01405/11.11, allocations: 0.865 MB / 3.548 GB, free: 45.18 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004475/11.11, allocations: 1.078 MB / 3.549 GB, free: 44.82 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002045/11.11, allocations: 95.45 kB / 3.549 GB, free: 44.81 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005324/11.11, allocations: 117.6 kB / 3.549 GB, free: 44.81 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01189/11.12, allocations: 2.212 MB / 3.551 GB, free: 44.43 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.183e-05/11.12, allocations: 10.5 kB / 3.551 GB, free: 44.42 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003788/11.13, allocations: 52.56 kB / 3.551 GB, free: 44.42 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.085e-05/11.13, allocations: 28.84 kB / 3.551 GB, free: 44.42 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01333/11.14, allocations: 2.18 MB / 3.553 GB, free: 44.39 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02345/11.16, allocations: 8.883 MB / 3.562 GB, free: 38.75 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0101/11.17, allocations: 1.934 MB / 3.564 GB, free: 38.3 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.167/11.34, allocations: 49.24 MB / 3.612 GB, free: 24.27 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.823e-05/11.34, allocations: 47.5 kB / 3.612 GB, free: 24.21 MB / 0.5105 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001343/11.34, allocations: 147 kB / 3.612 GB, free: 24.14 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=106): time 4.398e-06/11.34, allocations: 0 / 3.612 GB, free: 24.14 MB / 0.5105 GB Notification: Performance of matching and sorting (n=106): time 0.02559/11.37, allocations: 4.046 MB / 3.616 GB, free: 22.31 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001226/11.37, allocations: 192.9 kB / 3.616 GB, free: 22.08 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00158/11.37, allocations: 0.9044 MB / 3.617 GB, free: 21.3 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0003607/11.37, allocations: 45.7 kB / 3.617 GB, free: 21.25 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004809/11.37, allocations: 0.6112 MB / 3.618 GB, free: 20.68 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003989/11.37, allocations: 365.6 kB / 3.618 GB, free: 20.35 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001271/11.37, allocations: 28 kB / 3.618 GB, free: 20.32 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0001692/11.37, allocations: 366.6 kB / 3.619 GB, free: 19.98 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002499/11.37, allocations: 0.6182 MB / 3.619 GB, free: 19.46 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002924/11.38, allocations: 1.061 MB / 3.62 GB, free: 18.34 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002907/11.38, allocations: 0.7247 MB / 3.621 GB, free: 17.68 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.237e-05/11.38, allocations: 7.938 kB / 3.621 GB, free: 17.67 MB / 0.5105 GB Notification: Performance of matching and sorting (n=187) (initialization): time 0.007137/11.39, allocations: 1.943 MB / 3.623 GB, free: 15.95 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003004/11.39, allocations: 468.1 kB / 3.623 GB, free: 15.33 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.238e-05/11.39, allocations: 12 kB / 3.623 GB, free: 15.32 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01182/11.4, allocations: 1.117 MB / 3.624 GB, free: 14.55 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003162/11.4, allocations: 431.4 kB / 3.625 GB, free: 14.2 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001789/11.4, allocations: 0.9418 MB / 3.626 GB, free: 13.29 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002834/11.41, allocations: 173.4 kB / 3.626 GB, free: 13.15 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002503/11.41, allocations: 86.83 kB / 3.626 GB, free: 13.08 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.195e-05/11.41, allocations: 4 kB / 3.626 GB, free: 13.07 MB / 0.5105 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006625/11.41, allocations: 1.773 MB / 3.628 GB, free: 11.53 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.815e-05/11.41, allocations: 12 kB / 3.628 GB, free: 11.52 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004566/11.41, allocations: 92.45 kB / 3.628 GB, free: 11.44 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003275/11.42, allocations: 478.6 kB / 3.628 GB, free: 11.06 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002878/11.42, allocations: 1.758 MB / 3.63 GB, free: 9.242 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002303/11.42, allocations: 174.5 kB / 3.63 GB, free: 9.102 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002417/11.42, allocations: 86.34 kB / 3.63 GB, free: 9.031 MB / 0.5105 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 () * Number of clocked 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.001096/11.42, allocations: 396.1 kB / 3.631 GB, free: 8.641 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003823/11.42, allocations: 130.4 kB / 3.631 GB, free: 8.512 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01269/11.44, allocations: 6.706 MB / 3.637 GB, free: 2.57 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001133/11.44, allocations: 83.48 kB / 3.637 GB, free: 2.523 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.53e-06/11.44, allocations: 4 kB / 3.637 GB, free: 2.52 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.958e-05/11.44, allocations: 7.453 kB / 3.637 GB, free: 2.52 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005489/11.44, allocations: 2.898 MB / 3.64 GB, free: 76 kB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.627e-05/11.44, allocations: 0 / 3.64 GB, free: 76 kB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.3892/11.83, allocations: 309.9 kB / 3.641 GB, free: 61.93 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01145/11.84, allocations: 2.071 MB / 3.643 GB, free: 61.86 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003522/11.84, allocations: 37.02 kB / 3.643 GB, free: 61.86 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0027/11.85, allocations: 1.6 MB / 3.644 GB, free: 61.33 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.847e-06/11.85, allocations: 2.516 kB / 3.644 GB, free: 61.33 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008213/11.85, allocations: 3.724 MB / 3.648 GB, free: 61.01 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001259/11.86, allocations: 0.585 MB / 3.648 GB, free: 60.85 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003642/11.86, allocations: 31.98 kB / 3.648 GB, free: 60.85 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001772/11.86, allocations: 142.4 kB / 3.649 GB, free: 60.84 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002845/11.86, allocations: 104.6 kB / 3.649 GB, free: 60.84 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001252/11.86, allocations: 52 kB / 3.649 GB, free: 60.84 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.001516/11.86, allocations: 0.7651 MB / 3.649 GB, free: 60.73 MB / 0.5105 GB Notification: Performance of sort global known variables: time 4.81e-07/11.86, allocations: 0 / 3.649 GB, free: 60.73 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.008911/11.87, allocations: 1.795 MB / 3.651 GB, free: 60.7 MB / 0.5105 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 () * Number of clocked 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.01146/11.88, allocations: 1.876 MB / 3.653 GB, free: 60.56 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.01079/11.89, allocations: 3.265 MB / 3.656 GB, free: 60.4 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 6.202e-06/11.89, allocations: 1.469 kB / 3.656 GB, free: 60.4 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.00399/11.89, allocations: 1.67 MB / 3.658 GB, free: 60.39 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005716/11.9, allocations: 0.5771 MB / 3.658 GB, free: 60.37 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4737/12.37, allocations: 174.3 MB / 3.829 GB, free: 4.887 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001191/12.38, allocations: 1.705 MB / 3.83 GB, free: 3.496 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007811/12.38, allocations: 144.7 kB / 3.83 GB, free: 3.371 MB / 0.5105 GB Notification: Performance of SimCode: time 1.142e-06/12.38, allocations: 0 / 3.83 GB, free: 3.371 MB / 0.5105 GB Notification: Performance of Templates: time 0.5467/12.92, allocations: 55.12 MB / 3.884 GB, free: 55.24 MB / 0.5105 GB