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.137/2.137, allocations: 234.9 MB / 250.5 MB, free: 9.477 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004351/0.0004354, allocations: 12 kB / 314.3 MB, free: 9.512 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2758/0.2763, allocations: 54.87 MB / 369.2 MB, free: 10.71 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValvesCompressibleReverse): time 0.0906/0.3669, allocations: 62.54 MB / 431.7 MB, free: 12.01 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.04123/0.4082, allocations: 23.4 MB / 455.1 MB, free: 4.566 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002034/0.4103, allocations: 51.5 kB / 455.2 MB, free: 4.516 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002674/0.413, allocations: 0.8828 MB / 456.1 MB, free: 3.629 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01818/0.4312, allocations: 5.103 MB / 461.2 MB, free: 14.51 MB / 394.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01612/0.4473, allocations: 4.72 MB / 465.9 MB, free: 9.793 MB / 394.7 MB Notification: Performance of NFFlatten.flatten: time 0.004464/0.4518, allocations: 2.229 MB / 468.1 MB, free: 7.559 MB / 394.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001668/0.4535, allocations: 0.8782 MB / 469 MB, free: 6.66 MB / 394.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002812/0.4563, allocations: 1.191 MB / 470.2 MB, free: 5.465 MB / 394.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.299/0.7554, allocations: 14.43 MB / 484.6 MB, free: 14.27 MB / 394.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003723/0.7558, allocations: 75.73 kB / 484.7 MB, free: 14.27 MB / 394.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01724/0.773, allocations: 8.007 MB / 492.7 MB, free: 14.25 MB / 394.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0005087/0.7736, allocations: 318.4 kB / 493 MB, free: 14.25 MB / 394.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005697/0.7742, allocations: 324.5 kB / 493.3 MB, free: 14.22 MB / 394.7 MB Notification: Performance of NFConvertDAE.convert: time 0.008523/0.7827, allocations: 4.465 MB / 497.8 MB, free: 13.97 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.872e-06/0.7828, allocations: 0 / 497.8 MB, free: 13.97 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.675e-06/0.7828, allocations: 0 / 497.8 MB, free: 13.97 MB / 394.7 MB Notification: Performance of Transformations before backend: time 2.016e-05/0.7828, allocations: 0 / 497.8 MB, free: 13.97 MB / 394.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.008608/0.7914, allocations: 2.677 MB / 0.4887 GB, free: 12.78 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.67e-05/0.7915, allocations: 8.375 kB / 0.4887 GB, free: 12.78 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00736/0.7989, allocations: 0.7841 MB / 0.4895 GB, free: 12.68 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002076/0.801, allocations: 0.9451 MB / 0.4904 GB, free: 12.38 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001165/0.8011, allocations: 102.6 kB / 0.4905 GB, free: 12.38 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002398/0.8014, allocations: 117.3 kB / 0.4906 GB, free: 12.38 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006828/0.8082, allocations: 2.169 MB / 0.4928 GB, free: 12.03 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.087e-05/0.8083, allocations: 7.219 kB / 0.4928 GB, free: 12.03 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000185/0.8085, allocations: 51.88 kB / 0.4928 GB, free: 12.03 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.365e-05/0.8085, allocations: 29.53 kB / 0.4928 GB, free: 12.03 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008121/0.8166, allocations: 2.194 MB / 0.495 GB, free: 12 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01206/0.8287, allocations: 8.904 MB / 0.5037 GB, free: 5.801 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006885/0.8357, allocations: 1.958 MB / 0.5056 GB, free: 4.27 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1334/0.9691, allocations: 49.82 MB / 0.5542 GB, free: 14.06 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.45e-05/0.9692, allocations: 43.06 kB / 0.5543 GB, free: 14.02 MB / 458.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0009091/0.9701, allocations: 131.4 kB / 0.5544 GB, free: 13.91 MB / 458.7 MB Notification: Performance of pre-optimization done (n=106): time 5.338e-06/0.9702, allocations: 0 / 0.5544 GB, free: 13.91 MB / 458.7 MB Notification: Performance of matching and sorting (n=106): time 0.0174/0.9876, allocations: 3.83 MB / 0.5581 GB, free: 10.68 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000146/0.9878, allocations: 192.9 kB / 0.5583 GB, free: 10.45 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001502/0.9893, allocations: 0.9053 MB / 0.5592 GB, free: 9.746 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001647/0.9895, allocations: 44.64 kB / 0.5593 GB, free: 9.711 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005228/0.99, allocations: 0.6111 MB / 0.5599 GB, free: 9.27 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004092/0.9904, allocations: 363.9 kB / 0.5602 GB, free: 8.965 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000138/0.9906, allocations: 31.25 kB / 0.5602 GB, free: 8.957 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0002192/0.9908, allocations: 373 kB / 0.5606 GB, free: 8.609 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001921/0.9927, allocations: 0.6115 MB / 0.5612 GB, free: 8.16 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002328/0.9951, allocations: 1.064 MB / 0.5622 GB, free: 7.117 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002088/0.9972, allocations: 0.719 MB / 0.5629 GB, free: 6.637 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.673e-05/0.9972, allocations: 4 kB / 0.5629 GB, free: 6.633 MB / 458.7 MB Notification: Performance of matching and sorting (n=187) (initialization): time 0.005464/1.003, allocations: 1.938 MB / 0.5648 GB, free: 5.25 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000417/1.003, allocations: 478.4 kB / 0.5653 GB, free: 4.66 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.733e-05/1.003, allocations: 16 kB / 0.5653 GB, free: 4.645 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008281/1.011, allocations: 1.098 MB / 0.5664 GB, free: 3.598 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002134/1.014, allocations: 441.9 kB / 0.5668 GB, free: 3.203 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00165/1.015, allocations: 0.9236 MB / 0.5677 GB, free: 2.398 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001841/1.017, allocations: 175.9 kB / 0.5679 GB, free: 2.25 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002206/1.017, allocations: 88.83 kB / 0.5679 GB, free: 2.18 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.396e-05/1.017, allocations: 4 kB / 0.5679 GB, free: 2.176 MB / 458.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005216/1.023, allocations: 1.776 MB / 0.5697 GB, free: 0.9102 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.672e-05/1.023, allocations: 12 kB / 0.5697 GB, free: 0.8984 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004015/1.023, allocations: 90.66 kB / 0.5698 GB, free: 0.8203 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002218/1.025, allocations: 479 kB / 0.5702 GB, free: 408 kB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002781/1.028, allocations: 1.767 MB / 0.572 GB, free: 14.69 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001619/1.03, allocations: 163.7 kB / 0.5721 GB, free: 14.55 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002117/1.03, allocations: 86.45 kB / 0.5722 GB, free: 14.48 MB / 474.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.0009135/1.031, allocations: 394.4 kB / 0.5726 GB, free: 14.2 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003609/1.031, allocations: 130.6 kB / 0.5727 GB, free: 14.07 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01181/1.043, allocations: 6.735 MB / 0.5793 GB, free: 9.617 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001127/1.043, allocations: 91.22 kB / 0.5794 GB, free: 9.551 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.677e-06/1.043, allocations: 0 / 0.5794 GB, free: 9.551 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.468e-05/1.043, allocations: 7.969 kB / 0.5794 GB, free: 9.543 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004505/1.048, allocations: 2.884 MB / 0.5822 GB, free: 7.656 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.494e-05/1.048, allocations: 3 kB / 0.5822 GB, free: 7.656 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001306/1.049, allocations: 281.2 kB / 0.5825 GB, free: 7.398 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.007807/1.057, allocations: 2.024 MB / 0.5844 GB, free: 5.527 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002283/1.057, allocations: 41.92 kB / 0.5845 GB, free: 5.504 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002366/1.06, allocations: 1.595 MB / 0.586 GB, free: 4.324 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.859e-06/1.06, allocations: 0 / 0.586 GB, free: 4.324 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007302/1.067, allocations: 3.745 MB / 0.5897 GB, free: 1.73 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001146/1.068, allocations: 0.5882 MB / 0.5903 GB, free: 1.215 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002649/1.069, allocations: 29.7 kB / 0.5903 GB, free: 1.203 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001165/1.07, allocations: 137.4 kB / 0.5904 GB, free: 1.09 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000237/1.07, allocations: 106.3 kB / 0.5905 GB, free: 1 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001199/1.07, allocations: 50.84 kB / 0.5906 GB, free: 0.9609 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.001405/1.072, allocations: 0.766 MB / 0.5913 GB, free: 392 kB / 474.7 MB Notification: Performance of sort global known variables: time 9.67e-07/1.072, allocations: 0 / 0.5913 GB, free: 392 kB / 474.7 MB Notification: Performance of remove unused functions: time 0.006206/1.078, allocations: 1.713 MB / 0.593 GB, free: 14.79 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,$cse20.phase,$cse20.region,$cse21.phase,$cse21.region,$cse28.phase,$cse28.region,$cse34.phase,$cse34.region,$cse35.phase,$cse35.region,$cse40.phase,$cse40.region,$cse45.phase,$cse45.region,$cse46.phase,$cse46.region,$cse47.phase,$cse47.region,$cse48.phase,$cse48.region,$cse50.phase,$cse50.region,$cse51.phase,$cse51.region,$cse53.phase,$cse53.region,$cse54.phase,$cse54.region,$cse56.phase,$cse56.region,$cse57.phase,$cse57.region,$cse59.phase,$cse59.region,$cse60.phase,$cse60.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.006408/1.084, allocations: 1.355 MB / 0.5943 GB, free: 13.6 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.008378/1.093, allocations: 3.256 MB / 0.5975 GB, free: 11.23 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 7.912e-06/1.093, allocations: 4 kB / 0.5975 GB, free: 11.23 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003159/1.096, allocations: 1.661 MB / 0.5991 GB, free: 10.26 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003452/1.099, allocations: 0.5883 MB / 0.5997 GB, free: 9.785 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01033/1.11, allocations: 6.185 MB / 0.6057 GB, free: 4.445 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00174/1.112, allocations: 1.704 MB / 0.6074 GB, free: 2.715 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000593/1.112, allocations: 146.9 kB / 0.6075 GB, free: 2.586 MB / 490.7 MB Notification: Performance of SimCode: time 1.787e-06/1.112, allocations: 4 kB / 0.6075 GB, free: 2.582 MB / 490.7 MB Notification: Performance of Templates: time 0.3548/1.467, allocations: 53.93 MB / 0.6602 GB, free: 225 MB / 0.5261 GB