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.TestValvesCompressibleReverse.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.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.1_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValvesCompressibleReverse") Notification: Performance of loadModel(ModelicaTest): time 1.844/1.844, allocations: 209.3 MB / 224.8 MB, free: 200 kB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004648/0.0004649, allocations: 20 kB / 282.6 MB, free: 9.566 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2894/0.2899, allocations: 48.69 MB / 331.3 MB, free: 6.5 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.155/6.445, allocations: 2.497 GB / 2.821 GB, free: 49.88 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002086/6.445, allocations: 86.45 kB / 2.821 GB, free: 49.84 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.424/8.869, allocations: 0.5631 GB / 3.384 GB, free: 6.367 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.016e-06/8.869, allocations: 0 / 3.384 GB, free: 6.367 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0001146/8.869, allocations: 34.81 kB / 3.384 GB, free: 6.336 MB / 458.7 MB 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.01174/8.881, allocations: 2.623 MB / 3.386 GB, free: 3.707 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.228e-05/8.881, allocations: 12.03 kB / 3.386 GB, free: 3.695 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008861/8.89, allocations: 0.8174 MB / 3.387 GB, free: 2.887 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003148/8.893, allocations: 1.071 MB / 3.388 GB, free: 1.793 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001546/8.894, allocations: 102.2 kB / 3.388 GB, free: 1.691 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002942/8.894, allocations: 116 kB / 3.388 GB, free: 1.578 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2939/9.188, allocations: 2.2 MB / 3.391 GB, free: 33.17 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.521e-05/9.188, allocations: 8.266 kB / 3.391 GB, free: 33.17 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002441/9.188, allocations: 49.56 kB / 3.391 GB, free: 33.17 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.536e-05/9.188, allocations: 31.19 kB / 3.391 GB, free: 33.17 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008408/9.197, allocations: 2.182 MB / 3.393 GB, free: 33.17 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01475/9.211, allocations: 8.874 MB / 3.401 GB, free: 28.07 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00748/9.219, allocations: 1.943 MB / 3.403 GB, free: 28.04 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1251/9.344, allocations: 49.22 MB / 3.451 GB, free: 31.39 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.407e-05/9.344, allocations: 43.72 kB / 3.451 GB, free: 31.36 MB / 490.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001103/9.345, allocations: 150.8 kB / 3.452 GB, free: 31.32 MB / 490.7 MB Notification: Performance of pre-optimization done (n=106): time 4.764e-06/9.345, allocations: 0 / 3.452 GB, free: 31.32 MB / 490.7 MB Notification: Performance of matching and sorting (n=106): time 0.01912/9.364, allocations: 3.982 MB / 3.455 GB, free: 31.01 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001409/9.365, allocations: 192.8 kB / 3.456 GB, free: 30.79 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00138/9.366, allocations: 0.7915 MB / 3.456 GB, free: 30.64 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002873/9.366, allocations: 44.98 kB / 3.456 GB, free: 30.61 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004389/9.367, allocations: 0.6082 MB / 3.457 GB, free: 30.3 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003708/9.367, allocations: 363.6 kB / 3.457 GB, free: 30.13 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001151/9.367, allocations: 30.66 kB / 3.457 GB, free: 30.13 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.000211/9.367, allocations: 366.6 kB / 3.458 GB, free: 29.81 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001882/9.369, allocations: 0.6148 MB / 3.458 GB, free: 29.8 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002444/9.372, allocations: 1.061 MB / 3.459 GB, free: 29.28 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00246/9.374, allocations: 0.7302 MB / 3.46 GB, free: 29.24 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.461e-05/9.374, allocations: 3.625 kB / 3.46 GB, free: 29.24 MB / 490.7 MB Notification: Performance of matching and sorting (n=187) (initialization): time 0.005693/9.38, allocations: 1.936 MB / 3.462 GB, free: 29.11 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.002478/9.383, allocations: 4.971 MB / 3.467 GB, free: 23.91 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.946e-05/9.383, allocations: 12.12 kB / 3.467 GB, free: 23.91 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008587/9.391, allocations: 1.094 MB / 3.468 GB, free: 23.86 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002238/9.394, allocations: 440 kB / 3.468 GB, free: 23.85 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001554/9.395, allocations: 0.9248 MB / 3.469 GB, free: 23.33 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002257/9.397, allocations: 172.1 kB / 3.469 GB, free: 23.31 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002677/9.398, allocations: 94.67 kB / 3.47 GB, free: 23.31 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.384e-05/9.398, allocations: 4.938 kB / 3.47 GB, free: 23.31 MB / 490.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005548/9.403, allocations: 1.772 MB / 3.471 GB, free: 23.24 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.272e-05/9.403, allocations: 14.66 kB / 3.471 GB, free: 23.24 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003944/9.404, allocations: 86.97 kB / 3.471 GB, free: 23.23 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002409/9.406, allocations: 483.5 kB / 3.472 GB, free: 23.22 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00277/9.409, allocations: 1.761 MB / 3.474 GB, free: 21.85 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001729/9.411, allocations: 181.2 kB / 3.474 GB, free: 21.83 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002178/9.411, allocations: 81.78 kB / 3.474 GB, free: 21.83 MB / 490.7 MB 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.001106/9.412, allocations: 390.4 kB / 3.474 GB, free: 21.64 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003817/9.413, allocations: 127.5 kB / 3.474 GB, free: 21.57 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01087/9.423, allocations: 6.702 MB / 3.481 GB, free: 21 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.336e-05/9.424, allocations: 86.8 kB / 3.481 GB, free: 21 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.269e-06/9.424, allocations: 3.953 kB / 3.481 GB, free: 21 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.079e-05/9.424, allocations: 8.734 kB / 3.481 GB, free: 21 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004264/9.428, allocations: 2.889 MB / 3.484 GB, free: 20.64 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.009e-05/9.428, allocations: 0 / 3.484 GB, free: 20.64 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001333/9.429, allocations: 284.5 kB / 3.484 GB, free: 20.63 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.008084/9.437, allocations: 2.071 MB / 3.486 GB, free: 20.54 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002569/9.438, allocations: 38.05 kB / 3.486 GB, free: 20.54 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002191/9.44, allocations: 1.607 MB / 3.488 GB, free: 19.98 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.15e-06/9.44, allocations: 1.203 kB / 3.488 GB, free: 19.98 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006684/9.447, allocations: 3.718 MB / 3.491 GB, free: 19.49 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001209/9.448, allocations: 0.5887 MB / 3.492 GB, free: 19.18 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002897/9.448, allocations: 32.42 kB / 3.492 GB, free: 19.17 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001439/9.45, allocations: 145.3 kB / 3.492 GB, free: 19.15 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002294/9.45, allocations: 106.3 kB / 3.492 GB, free: 19.15 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001132/9.45, allocations: 52.67 kB / 3.492 GB, free: 19.15 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.001319/9.451, allocations: 0.7613 MB / 3.493 GB, free: 19.04 MB / 490.7 MB Notification: Performance of sort global known variables: time 7.51e-07/9.451, allocations: 0 / 3.493 GB, free: 19.04 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.007277/9.459, allocations: 1.785 MB / 3.495 GB, free: 18.93 MB / 490.7 MB 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.008705/9.467, allocations: 1.887 MB / 3.497 GB, free: 18.63 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.01126/9.479, allocations: 3.263 MB / 3.5 GB, free: 18.43 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 7.92e-06/9.479, allocations: 0 / 3.5 GB, free: 18.43 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004868/9.484, allocations: 1.662 MB / 3.501 GB, free: 18.39 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004304/9.488, allocations: 0.5864 MB / 3.502 GB, free: 18.35 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.6648/10.15, allocations: 171.9 MB / 3.67 GB, free: 52.88 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001177/10.15, allocations: 1.699 MB / 3.671 GB, free: 52.11 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006104/10.15, allocations: 140.7 kB / 3.672 GB, free: 52.1 MB / 490.7 MB Notification: Performance of SimCode: time 1.57e-06/10.15, allocations: 0 / 3.672 GB, free: 52.1 MB / 490.7 MB Notification: Performance of Templates: time 0.08038/10.24, allocations: 54.94 MB / 3.725 GB, free: 21.74 MB / 490.7 MB