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.915/1.915, allocations: 209.3 MB / 224.8 MB, free: 200 kB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004282/0.0004281, allocations: 8 kB / 282.5 MB, free: 9.621 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2835/0.2839, allocations: 48.7 MB / 331.2 MB, free: 6.461 MB / 266.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValvesCompressibleReverse): time 0.1271/0.4111, allocations: 62.03 MB / 393.2 MB, free: 372 kB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.04324/0.4544, allocations: 23.19 MB / 416.4 MB, free: 9.129 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002327/0.4568, allocations: 55.5 kB / 416.5 MB, free: 9.074 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003162/0.46, allocations: 0.875 MB / 417.4 MB, free: 8.195 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.02277/0.4828, allocations: 5.041 MB / 422.4 MB, free: 3.141 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01626/0.4991, allocations: 4.666 MB / 427.1 MB, free: 14.47 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.004643/0.5037, allocations: 2.186 MB / 429.3 MB, free: 12.28 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001796/0.5056, allocations: 0.8703 MB / 430.1 MB, free: 11.38 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002931/0.5085, allocations: 1.184 MB / 431.3 MB, free: 10.19 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.02804/0.5366, allocations: 14.27 MB / 445.6 MB, free: 11.91 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003697/0.537, allocations: 72 kB / 445.6 MB, free: 11.84 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02035/0.5574, allocations: 7.843 MB / 453.5 MB, free: 3.992 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0005907/0.558, allocations: 314.8 kB / 453.8 MB, free: 3.684 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0006808/0.5587, allocations: 324.9 kB / 454.1 MB, free: 3.359 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01016/0.5689, allocations: 4.4 MB / 458.5 MB, free: 14.95 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.353e-06/0.5689, allocations: 0 / 458.5 MB, free: 14.95 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.915e-06/0.5689, allocations: 4 kB / 458.5 MB, free: 14.95 MB / 394.7 MB Notification: Performance of Transformations before backend: time 2.105e-05/0.569, allocations: 0 / 458.5 MB, free: 14.95 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.009196/0.5782, allocations: 2.595 MB / 461.1 MB, free: 12.29 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.218e-05/0.5782, allocations: 12.03 kB / 461.1 MB, free: 12.28 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007759/0.586, allocations: 0.7356 MB / 461.9 MB, free: 11.54 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002309/0.5884, allocations: 0.9353 MB / 462.8 MB, free: 10.57 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001897/0.5886, allocations: 98.23 kB / 462.9 MB, free: 10.47 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003256/0.5889, allocations: 112 kB / 463 MB, free: 10.36 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007742/0.5967, allocations: 2.19 MB / 465.2 MB, free: 8.043 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.1e-05/0.5968, allocations: 7.938 kB / 465.2 MB, free: 8.035 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002061/0.597, allocations: 51.98 kB / 465.2 MB, free: 7.984 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.383e-05/0.5971, allocations: 28 kB / 465.3 MB, free: 7.957 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008682/0.6057, allocations: 2.193 MB / 467.5 MB, free: 5.758 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2376/0.8434, allocations: 8.905 MB / 476.4 MB, free: 117.2 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008144/0.8516, allocations: 1.95 MB / 478.3 MB, free: 117 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1123/0.9639, allocations: 49.79 MB / 0.5157 GB, free: 74.23 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.881e-05/0.964, allocations: 52.75 kB / 0.5158 GB, free: 74.18 MB / 394.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0007987/0.9648, allocations: 128.2 kB / 0.5159 GB, free: 74.11 MB / 394.7 MB Notification: Performance of pre-optimization done (n=106): time 5.308e-06/0.9649, allocations: 0.875 kB / 0.5159 GB, free: 74.11 MB / 394.7 MB Notification: Performance of matching and sorting (n=106): time 0.01654/0.9814, allocations: 3.825 MB / 0.5196 GB, free: 70.32 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.558e-05/0.9815, allocations: 192.9 kB / 0.5198 GB, free: 70.09 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001238/0.9827, allocations: 0.9027 MB / 0.5207 GB, free: 69.2 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001979/0.983, allocations: 53.17 kB / 0.5208 GB, free: 69.14 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003549/0.9833, allocations: 0.6133 MB / 0.5214 GB, free: 68.55 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002957/0.9836, allocations: 368.7 kB / 0.5217 GB, free: 68.2 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001016/0.9838, allocations: 32 kB / 0.5217 GB, free: 68.16 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 9.778e-05/0.9839, allocations: 366.8 kB / 0.5221 GB, free: 67.8 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00173/0.9856, allocations: 0.6168 MB / 0.5227 GB, free: 67.18 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001928/0.9876, allocations: 1.057 MB / 0.5237 GB, free: 65.95 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001911/0.9895, allocations: 0.7256 MB / 0.5244 GB, free: 65.24 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.157e-05/0.9895, allocations: 4 kB / 0.5244 GB, free: 65.23 MB / 394.7 MB Notification: Performance of matching and sorting (n=187) (initialization): time 0.004991/0.9945, allocations: 1.93 MB / 0.5263 GB, free: 63.29 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002079/0.9948, allocations: 479 kB / 0.5268 GB, free: 62.65 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.039e-05/0.9948, allocations: 12 kB / 0.5268 GB, free: 62.64 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008592/1.003, allocations: 1.099 MB / 0.5279 GB, free: 61.54 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001925/1.005, allocations: 439.4 kB / 0.5283 GB, free: 61.11 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001335/1.007, allocations: 0.9346 MB / 0.5292 GB, free: 60.14 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001783/1.009, allocations: 167.8 kB / 0.5294 GB, free: 59.98 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002391/1.009, allocations: 95.78 kB / 0.5294 GB, free: 59.89 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.297e-05/1.009, allocations: 4 kB / 0.5295 GB, free: 59.89 MB / 394.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004622/1.013, allocations: 1.774 MB / 0.5312 GB, free: 58.11 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.009e-05/1.014, allocations: 12 kB / 0.5312 GB, free: 58.1 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003604/1.014, allocations: 87.53 kB / 0.5313 GB, free: 58.01 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002005/1.016, allocations: 479.5 kB / 0.5317 GB, free: 57.54 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002155/1.018, allocations: 1.757 MB / 0.5335 GB, free: 55.65 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001511/1.02, allocations: 171.7 kB / 0.5336 GB, free: 55.48 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001731/1.02, allocations: 87.78 kB / 0.5337 GB, free: 55.4 MB / 394.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.0007462/1.021, allocations: 393.7 kB / 0.5341 GB, free: 55.01 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002837/1.021, allocations: 126.5 kB / 0.5342 GB, free: 54.88 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009655/1.031, allocations: 6.745 MB / 0.5408 GB, free: 48.12 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.324e-05/1.031, allocations: 83.88 kB / 0.5409 GB, free: 48.04 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.195e-06/1.031, allocations: 0 / 0.5409 GB, free: 48.04 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.544e-05/1.031, allocations: 7.969 kB / 0.5409 GB, free: 48.03 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003571/1.034, allocations: 2.89 MB / 0.5437 GB, free: 45.12 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.587e-05/1.034, allocations: 0 / 0.5437 GB, free: 45.12 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001183/1.036, allocations: 283.7 kB / 0.544 GB, free: 44.84 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.007349/1.043, allocations: 2.017 MB / 0.5459 GB, free: 42.82 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002216/1.043, allocations: 35.98 kB / 0.546 GB, free: 42.79 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002019/1.045, allocations: 1.597 MB / 0.5475 GB, free: 41.16 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.982e-06/1.045, allocations: 0 / 0.5475 GB, free: 41.16 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006246/1.052, allocations: 3.747 MB / 0.5512 GB, free: 37.39 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001078/1.053, allocations: 0.5938 MB / 0.5518 GB, free: 36.78 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002957/1.053, allocations: 23.95 kB / 0.5518 GB, free: 36.75 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001266/1.054, allocations: 139.8 kB / 0.5519 GB, free: 36.62 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002414/1.055, allocations: 105.1 kB / 0.552 GB, free: 36.51 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001081/1.055, allocations: 51.98 kB / 0.5521 GB, free: 36.46 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.001171/1.056, allocations: 0.7615 MB / 0.5528 GB, free: 35.7 MB / 394.7 MB Notification: Performance of sort global known variables: time 8.72e-07/1.056, allocations: 0 / 0.5528 GB, free: 35.7 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.005181/1.061, allocations: 1.707 MB / 0.5545 GB, free: 34.08 MB / 394.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.005599/1.067, allocations: 1.355 MB / 0.5558 GB, free: 32.93 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.007416/1.074, allocations: 3.271 MB / 0.559 GB, free: 29.66 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 6.12e-06/1.074, allocations: 0 / 0.559 GB, free: 29.66 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00288/1.077, allocations: 1.669 MB / 0.5606 GB, free: 27.99 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003409/1.081, allocations: 0.5815 MB / 0.5612 GB, free: 27.41 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008957/1.09, allocations: 6.175 MB / 0.5672 GB, free: 21.33 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001109/1.091, allocations: 1.702 MB / 0.5689 GB, free: 19.59 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005534/1.091, allocations: 139.4 kB / 0.569 GB, free: 19.46 MB / 394.7 MB Notification: Performance of SimCode: time 1.639e-06/1.091, allocations: 0 / 0.569 GB, free: 19.46 MB / 394.7 MB Notification: Performance of Templates: time 0.3141/1.405, allocations: 53.78 MB / 0.6215 GB, free: 142.7 MB / 426.7 MB