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.138/2.138, allocations: 234.9 MB / 250.5 MB, free: 9.457 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004349/0.0004351, allocations: 16 kB / 314.4 MB, free: 9.445 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2732/0.2737, allocations: 54.85 MB / 369.3 MB, free: 10.69 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.275/6.549, allocations: 2.608 GB / 2.968 GB, free: 105.6 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002334/6.549, allocations: 86.52 kB / 2.968 GB, free: 105.5 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.617/9.167, allocations: 0.5753 GB / 3.544 GB, free: 45.43 MB / 0.4948 GB Notification: Performance of FrontEnd: time 2.307e-06/9.167, allocations: 3.281 kB / 3.544 GB, free: 45.43 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0001111/9.167, allocations: 35.12 kB / 3.544 GB, free: 45.42 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.01054/9.177, allocations: 2.706 MB / 3.546 GB, free: 44.22 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 3.696e-05/9.178, allocations: 11.53 kB / 3.546 GB, free: 44.22 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009016/9.187, allocations: 0.8644 MB / 3.547 GB, free: 44.14 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002761/9.189, allocations: 1.079 MB / 3.548 GB, free: 43.8 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001168/9.19, allocations: 100.9 kB / 3.548 GB, free: 43.8 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002539/9.19, allocations: 113.1 kB / 3.549 GB, free: 43.8 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007586/9.197, allocations: 2.204 MB / 3.551 GB, free: 43.43 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.147e-05/9.197, allocations: 6.688 kB / 3.551 GB, free: 43.43 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002042/9.198, allocations: 49.31 kB / 3.551 GB, free: 43.43 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.719e-05/9.198, allocations: 29.47 kB / 3.551 GB, free: 43.43 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007794/9.206, allocations: 2.183 MB / 3.553 GB, free: 43.43 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.014/9.22, allocations: 8.881 MB / 3.562 GB, free: 38.18 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00723/9.227, allocations: 1.941 MB / 3.563 GB, free: 38.14 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1185/9.345, allocations: 49.22 MB / 3.612 GB, free: 25.29 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.575e-05/9.345, allocations: 47.94 kB / 3.612 GB, free: 25.25 MB / 0.5105 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001082/9.347, allocations: 140.9 kB / 3.612 GB, free: 25.19 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=106): time 4.287e-06/9.347, allocations: 0 / 3.612 GB, free: 25.19 MB / 0.5105 GB Notification: Performance of matching and sorting (n=106): time 0.01866/9.365, allocations: 3.986 MB / 3.616 GB, free: 24.88 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001482/9.365, allocations: 198.7 kB / 3.616 GB, free: 24.65 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001407/9.367, allocations: 0.7822 MB / 3.617 GB, free: 24.49 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0003075/9.367, allocations: 50.8 kB / 3.617 GB, free: 24.46 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.000422/9.368, allocations: 0.6078 MB / 3.617 GB, free: 24.1 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003584/9.368, allocations: 363 kB / 3.618 GB, free: 23.88 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001107/9.368, allocations: 31 kB / 3.618 GB, free: 23.88 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0002099/9.368, allocations: 364.2 kB / 3.618 GB, free: 23.56 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001768/9.37, allocations: 0.6192 MB / 3.619 GB, free: 23.55 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002188/9.372, allocations: 1.06 MB / 3.62 GB, free: 23.02 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002343/9.375, allocations: 0.7245 MB / 3.62 GB, free: 22.98 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.274e-05/9.375, allocations: 6.562 kB / 3.62 GB, free: 22.98 MB / 0.5105 GB Notification: Performance of matching and sorting (n=187) (initialization): time 0.005547/9.38, allocations: 1.945 MB / 3.622 GB, free: 22.79 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.002491/9.383, allocations: 4.969 MB / 3.627 GB, free: 17.52 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.471e-05/9.383, allocations: 11.44 kB / 3.627 GB, free: 17.52 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.008231/9.391, allocations: 1.093 MB / 3.628 GB, free: 17.42 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00206/9.393, allocations: 436.8 kB / 3.629 GB, free: 17.38 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001515/9.395, allocations: 0.9277 MB / 3.629 GB, free: 16.7 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002081/9.397, allocations: 173.6 kB / 3.63 GB, free: 16.66 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002222/9.397, allocations: 94.73 kB / 3.63 GB, free: 16.64 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.31e-05/9.397, allocations: 6.156 kB / 3.63 GB, free: 16.64 MB / 0.5105 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004952/9.402, allocations: 1.776 MB / 3.631 GB, free: 15.62 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.12e-05/9.402, allocations: 12 kB / 3.631 GB, free: 15.61 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003504/9.403, allocations: 84.23 kB / 3.631 GB, free: 15.54 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002117/9.405, allocations: 472.9 kB / 3.632 GB, free: 15.16 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002698/9.407, allocations: 1.778 MB / 3.634 GB, free: 13.34 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001689/9.409, allocations: 165.9 kB / 3.634 GB, free: 13.2 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000189/9.409, allocations: 84.52 kB / 3.634 GB, free: 13.13 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.0009856/9.41, allocations: 392.1 kB / 3.634 GB, free: 12.75 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003262/9.411, allocations: 130.4 kB / 3.634 GB, free: 12.62 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009513/9.42, allocations: 6.711 MB / 3.641 GB, free: 6.684 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.079e-05/9.42, allocations: 80.2 kB / 3.641 GB, free: 6.637 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.605e-06/9.42, allocations: 7.938 kB / 3.641 GB, free: 6.629 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.726e-05/9.42, allocations: 11.06 kB / 3.641 GB, free: 6.629 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00386/9.424, allocations: 2.888 MB / 3.644 GB, free: 4.176 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.468e-05/9.424, allocations: 0 / 3.644 GB, free: 4.176 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001264/9.426, allocations: 280.7 kB / 3.644 GB, free: 3.953 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.007133/9.433, allocations: 2.069 MB / 3.646 GB, free: 2.223 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002632/9.433, allocations: 45.16 kB / 3.646 GB, free: 2.184 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002243/9.435, allocations: 1.6 MB / 3.648 GB, free: 16.67 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.362e-06/9.435, allocations: 0 / 3.648 GB, free: 16.67 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007413/9.443, allocations: 3.719 MB / 3.651 GB, free: 13.29 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001406/9.444, allocations: 0.5889 MB / 3.652 GB, free: 12.76 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003145/9.445, allocations: 31.44 kB / 3.652 GB, free: 12.73 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001438/9.446, allocations: 142.1 kB / 3.652 GB, free: 12.62 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002862/9.446, allocations: 104.7 kB / 3.652 GB, free: 12.56 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000133/9.447, allocations: 52.64 kB / 3.652 GB, free: 12.52 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.001507/9.448, allocations: 0.76 MB / 3.653 GB, free: 11.89 MB / 0.5261 GB Notification: Performance of sort global known variables: time 8.5e-07/9.448, allocations: 0 / 3.653 GB, free: 11.89 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.008086/9.456, allocations: 1.799 MB / 3.655 GB, free: 10.12 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 () * 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.009233/9.465, allocations: 1.882 MB / 3.657 GB, free: 8.699 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.008846/9.474, allocations: 3.279 MB / 3.66 GB, free: 5.809 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 6.053e-06/9.474, allocations: 0 / 3.66 GB, free: 5.809 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.003574/9.478, allocations: 1.658 MB / 3.661 GB, free: 4.305 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003809/9.482, allocations: 0.5865 MB / 3.662 GB, free: 3.875 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.7136/10.2, allocations: 174.3 MB / 3.832 GB, free: 34.59 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001137/10.2, allocations: 1.702 MB / 3.834 GB, free: 33.2 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005984/10.2, allocations: 144 kB / 3.834 GB, free: 33.09 MB / 0.5261 GB Notification: Performance of SimCode: time 1.674e-06/10.2, allocations: 0 / 3.834 GB, free: 33.09 MB / 0.5261 GB Notification: Performance of Templates: time 0.411/10.61, allocations: 55.08 MB / 3.888 GB, free: 54.47 MB / 0.5261 GB