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.898/1.898, allocations: 209.3 MB / 222.4 MB, free: 7.723 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.032e-05/3.052e-05, allocations: 4 kB / 277.9 MB, free: 15.29 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08977/0.08983, allocations: 48.7 MB / 326.6 MB, free: 14.49 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.061/6.151, allocations: 2.497 GB / 2.816 GB, free: 125.8 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002632/6.151, allocations: 83.8 kB / 2.816 GB, free: 125.8 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.6/8.752, allocations: 0.561 GB / 3.377 GB, free: 30.99 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.356e-06/8.752, allocations: 0 / 3.377 GB, free: 30.99 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0001058/8.752, allocations: 40.3 kB / 3.377 GB, free: 30.98 MB / 442.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.01013/8.762, allocations: 2.459 MB / 3.379 GB, free: 29.7 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.357e-05/8.762, allocations: 11.25 kB / 3.379 GB, free: 29.7 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009212/8.771, allocations: 0.8249 MB / 3.38 GB, free: 29.55 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002737/8.774, allocations: 1.06 MB / 3.381 GB, free: 28.96 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001151/8.774, allocations: 100.4 kB / 3.381 GB, free: 28.91 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000248/8.774, allocations: 121.8 kB / 3.381 GB, free: 28.87 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006537/8.781, allocations: 2.152 MB / 3.384 GB, free: 27.94 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.817e-05/8.781, allocations: 11.09 kB / 3.384 GB, free: 27.93 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002017/8.781, allocations: 54.7 kB / 3.384 GB, free: 27.89 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.535e-05/8.781, allocations: 25.88 kB / 3.384 GB, free: 27.89 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006415/8.788, allocations: 1.973 MB / 3.386 GB, free: 27.3 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01329/8.801, allocations: 8.878 MB / 3.394 GB, free: 20.72 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005887/8.807, allocations: 1.73 MB / 3.396 GB, free: 20.2 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001021/8.808, allocations: 0.4965 MB / 3.396 GB, free: 19.99 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.119/8.927, allocations: 49.43 MB / 3.445 GB, free: 1.898 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.911e-05/8.927, allocations: 47.56 kB / 3.445 GB, free: 1.844 MB / 474.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001158/8.928, allocations: 146.9 kB / 3.445 GB, free: 1.699 MB / 474.7 MB Notification: Performance of pre-optimization done (n=106): time 4.761e-06/8.928, allocations: 0 / 3.445 GB, free: 1.699 MB / 474.7 MB Notification: Performance of matching and sorting (n=106): time 0.2944/9.223, allocations: 2.375 MB / 3.447 GB, free: 67.52 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.329e-05/9.223, allocations: 196.5 kB / 3.447 GB, free: 67.3 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0016/9.224, allocations: 0.7725 MB / 3.448 GB, free: 67.15 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002387/9.225, allocations: 49.62 kB / 3.448 GB, free: 67.12 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003977/9.225, allocations: 0.6138 MB / 3.449 GB, free: 66.85 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003525/9.226, allocations: 363.9 kB / 3.449 GB, free: 66.68 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000155/9.226, allocations: 26.97 kB / 3.449 GB, free: 66.68 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0001108/9.226, allocations: 370.7 kB / 3.449 GB, free: 66.36 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00102/9.227, allocations: 446.4 kB / 3.45 GB, free: 66.36 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0013/9.228, allocations: 0.8656 MB / 3.451 GB, free: 65.86 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001333/9.23, allocations: 0.5524 MB / 3.451 GB, free: 65.85 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.163e-05/9.23, allocations: 2.594 kB / 3.451 GB, free: 65.85 MB / 474.7 MB Notification: Performance of matching and sorting (n=187) (initialization): time 0.003854/9.233, allocations: 1.572 MB / 3.453 GB, free: 65.75 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001008/9.234, allocations: 4.971 MB / 3.458 GB, free: 60.59 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.972e-05/9.235, allocations: 13.16 kB / 3.458 GB, free: 60.59 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008619/9.243, allocations: 1.084 MB / 3.459 GB, free: 60.58 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002305/9.245, allocations: 440.8 kB / 3.459 GB, free: 60.58 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001463/9.247, allocations: 0.9235 MB / 3.46 GB, free: 60.05 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002158/9.249, allocations: 175.6 kB / 3.46 GB, free: 60.05 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002545/9.249, allocations: 86.67 kB / 3.46 GB, free: 60.05 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.497e-05/9.25, allocations: 5.312 kB / 3.46 GB, free: 60.05 MB / 474.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003772/9.253, allocations: 1.408 MB / 3.462 GB, free: 60.01 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.494e-05/9.253, allocations: 11.25 kB / 3.462 GB, free: 60.01 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004171/9.254, allocations: 94.64 kB / 3.462 GB, free: 60 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002513/9.256, allocations: 475.2 kB / 3.462 GB, free: 60 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002262/9.259, allocations: 1.75 MB / 3.464 GB, free: 58.63 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001754/9.26, allocations: 173.5 kB / 3.464 GB, free: 58.62 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002059/9.261, allocations: 85.45 kB / 3.464 GB, free: 58.62 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 () * 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.0004395/9.261, allocations: 196.8 kB / 3.464 GB, free: 58.52 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003654/9.261, allocations: 128.3 kB / 3.465 GB, free: 58.45 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01048/9.272, allocations: 6.422 MB / 3.471 GB, free: 57.94 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.696e-05/9.272, allocations: 80.5 kB / 3.471 GB, free: 57.94 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.558e-06/9.272, allocations: 2.719 kB / 3.471 GB, free: 57.94 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.275e-05/9.272, allocations: 9.453 kB / 3.471 GB, free: 57.94 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00431/9.276, allocations: 2.892 MB / 3.474 GB, free: 57.6 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.298e-05/9.277, allocations: 0 / 3.474 GB, free: 57.6 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001405/9.278, allocations: 272.6 kB / 3.474 GB, free: 57.6 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.008349/9.286, allocations: 2.266 MB / 3.476 GB, free: 57.54 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002529/9.287, allocations: 37.67 kB / 3.476 GB, free: 57.54 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002079/9.289, allocations: 1.594 MB / 3.478 GB, free: 56.99 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.636e-06/9.289, allocations: 3.781 kB / 3.478 GB, free: 56.99 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005437/9.294, allocations: 3.409 MB / 3.481 GB, free: 56.51 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001236/9.295, allocations: 0.5976 MB / 3.482 GB, free: 56.2 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003101/9.296, allocations: 21.12 kB / 3.482 GB, free: 56.2 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00143/9.297, allocations: 146.1 kB / 3.482 GB, free: 56.18 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002422/9.298, allocations: 109.2 kB / 3.482 GB, free: 56.18 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001142/9.298, allocations: 53.42 kB / 3.482 GB, free: 56.18 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.001306/9.299, allocations: 0.7439 MB / 3.483 GB, free: 56.07 MB / 474.7 MB Notification: Performance of sort global known variables: time 2.16e-06/9.299, allocations: 2.031 kB / 3.483 GB, free: 56.07 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.007613/9.307, allocations: 1.782 MB / 3.484 GB, free: 55.96 MB / 474.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 () * 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.008692/9.315, allocations: 1.877 MB / 3.486 GB, free: 55.75 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.006131/9.322, allocations: 2.739 MB / 3.489 GB, free: 55.6 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 6.692e-06/9.322, allocations: 2.656 kB / 3.489 GB, free: 55.6 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002643/9.324, allocations: 1.508 MB / 3.49 GB, free: 55.58 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004194/9.328, allocations: 0.5812 MB / 3.491 GB, free: 55.56 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.7031/10.03, allocations: 169 MB / 3.656 GB, free: 63.07 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002681/10.03, allocations: 1.7 MB / 3.658 GB, free: 62.34 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01329/10.05, allocations: 144.6 kB / 3.658 GB, free: 62.33 MB / 474.7 MB Notification: Performance of SimCode: time 3.752e-06/10.05, allocations: 0 / 3.658 GB, free: 62.33 MB / 474.7 MB Notification: Performance of Templates: time 0.1369/10.18, allocations: 54.69 MB / 3.711 GB, free: 58.16 MB / 474.7 MB