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.TestValvesIncompressibleReverse.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.TestValvesIncompressibleReverse,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.TestValvesIncompressibleReverse") Notification: Performance of loadModel(ModelicaTest): time 2.334/2.334, allocations: 234.9 MB / 250.5 MB, free: 9.551 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004348/0.0004349, allocations: 11.98 kB / 314.3 MB, free: 9.598 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2773/0.2778, allocations: 54.87 MB / 369.2 MB, free: 10.72 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValvesIncompressibleReverse): time 0.05241/0.3302, allocations: 33.3 MB / 402.5 MB, free: 9.324 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.02165/0.3519, allocations: 10.35 MB / 412.8 MB, free: 14.96 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001892/0.3538, allocations: 55.5 kB / 412.9 MB, free: 14.91 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002446/0.3563, allocations: 0.6064 MB / 413.5 MB, free: 14.3 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01077/0.3671, allocations: 3.187 MB / 416.7 MB, free: 11.1 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01122/0.3784, allocations: 3.342 MB / 420 MB, free: 7.762 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.003797/0.3822, allocations: 1.794 MB / 421.8 MB, free: 5.965 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00162/0.3839, allocations: 0.7837 MB / 422.6 MB, free: 5.164 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008675/0.3926, allocations: 4.169 MB / 426.8 MB, free: 0.9883 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004897/0.3975, allocations: 2.382 MB / 429.2 MB, free: 14.6 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003133/0.3979, allocations: 52 kB / 429.2 MB, free: 14.55 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007819/0.4057, allocations: 3.113 MB / 432.3 MB, free: 11.43 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0004987/0.4062, allocations: 251.1 kB / 432.6 MB, free: 11.19 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000554/0.4068, allocations: 265 kB / 432.8 MB, free: 10.92 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004311/0.4111, allocations: 1.804 MB / 434.6 MB, free: 9.113 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.522e-06/0.4112, allocations: 0 / 434.6 MB, free: 9.113 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.674e-06/0.4112, allocations: 4 kB / 434.6 MB, free: 9.109 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.098e-05/0.4112, allocations: 0 / 434.6 MB, free: 9.109 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 209 * Number of variables: 209 Notification: Performance of Generate backend data structure: time 0.004073/0.4153, allocations: 1.602 MB / 436.2 MB, free: 7.457 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.207e-05/0.4154, allocations: 15.97 kB / 436.3 MB, free: 7.441 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003443/0.4188, allocations: 314.1 kB / 436.6 MB, free: 7.133 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001877/0.4207, allocations: 0.7795 MB / 437.3 MB, free: 6.309 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.596e-05/0.4209, allocations: 62 kB / 437.4 MB, free: 6.25 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001862/0.4211, allocations: 84 kB / 437.5 MB, free: 6.168 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004054/0.4251, allocations: 1.224 MB / 438.7 MB, free: 4.871 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.479e-05/0.4252, allocations: 3.938 kB / 438.7 MB, free: 4.867 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00015/0.4254, allocations: 43.98 kB / 438.8 MB, free: 4.824 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.759e-05/0.4254, allocations: 20 kB / 438.8 MB, free: 4.805 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004052/0.4295, allocations: 1.03 MB / 439.8 MB, free: 3.773 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01037/0.4399, allocations: 6.26 MB / 446.1 MB, free: 12.96 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002571/0.4425, allocations: 0.6335 MB / 446.7 MB, free: 12.31 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007738/0.4433, allocations: 0.7523 MB / 447.4 MB, free: 11.39 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.261e-05/0.4434, allocations: 39 kB / 447.5 MB, free: 11.35 MB / 378.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0006191/0.444, allocations: 87.25 kB / 447.6 MB, free: 11.26 MB / 378.7 MB Notification: Performance of pre-optimization done (n=48): time 3.875e-06/0.444, allocations: 0 / 447.6 MB, free: 11.26 MB / 378.7 MB Notification: Performance of matching and sorting (n=48): time 0.007926/0.4519, allocations: 1.538 MB / 449.1 MB, free: 9.699 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001402/0.4521, allocations: 188.3 kB / 449.3 MB, free: 9.469 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00161/0.4537, allocations: 0.8792 MB / 450.2 MB, free: 8.57 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001344/0.4539, allocations: 33.81 kB / 450.2 MB, free: 8.531 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005702/0.4545, allocations: 0.6094 MB / 450.8 MB, free: 7.914 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002288/0.4547, allocations: 177.5 kB / 451 MB, free: 7.738 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.241e-05/0.4548, allocations: 20 kB / 451 MB, free: 7.719 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0002008/0.455, allocations: 346.8 kB / 451.3 MB, free: 7.371 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001124/0.4562, allocations: 365.8 kB / 451.7 MB, free: 7.012 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001438/0.4576, allocations: 0.7084 MB / 452.4 MB, free: 6.145 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001303/0.459, allocations: 445.9 kB / 452.8 MB, free: 5.707 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.246e-05/0.459, allocations: 4 kB / 452.9 MB, free: 5.703 MB / 378.7 MB Notification: Performance of matching and sorting (n=117) (initialization): time 0.003652/0.4627, allocations: 1.23 MB / 454.1 MB, free: 4.465 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000384/0.4631, allocations: 411.6 kB / 454.5 MB, free: 3.914 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.994e-05/0.4631, allocations: 8 kB / 454.5 MB, free: 3.906 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007013/0.4701, allocations: 0.781 MB / 455.3 MB, free: 3.121 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001385/0.4716, allocations: 303.5 kB / 455.6 MB, free: 2.824 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001328/0.4729, allocations: 0.7864 MB / 456.4 MB, free: 2.012 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001347/0.4743, allocations: 95.8 kB / 456.4 MB, free: 1.918 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002307/0.4746, allocations: 95.95 kB / 456.5 MB, free: 1.824 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.402e-05/0.4746, allocations: 4 kB / 456.5 MB, free: 1.82 MB / 378.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003341/0.4779, allocations: 1.127 MB / 457.7 MB, free: 0.6875 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.409e-05/0.478, allocations: 11.98 kB / 457.7 MB, free: 0.6758 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003589/0.4784, allocations: 80.81 kB / 457.8 MB, free: 0.5938 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001345/0.4797, allocations: 311.8 kB / 458.1 MB, free: 296 kB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002466/0.4822, allocations: 1.647 MB / 459.7 MB, free: 14.51 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001001/0.4833, allocations: 95.97 kB / 459.8 MB, free: 14.42 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001882/0.4835, allocations: 83.97 kB / 459.9 MB, free: 14.34 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 48 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (105): * Single equations (assignments): 104 * 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 10} Notification: Performance of prepare postOptimizeDAE: time 0.0007206/0.4842, allocations: 348.7 kB / 460.2 MB, free: 13.98 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002787/0.4845, allocations: 98.78 kB / 460.3 MB, free: 13.89 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00479/0.4893, allocations: 1.332 MB / 461.7 MB, free: 12.55 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.615e-05/0.4894, allocations: 8 kB / 461.7 MB, free: 12.55 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.817e-06/0.4894, allocations: 0 / 461.7 MB, free: 12.55 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.608e-05/0.4894, allocations: 3.984 kB / 461.7 MB, free: 12.54 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004569/0.494, allocations: 1.825 MB / 463.5 MB, free: 10.64 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.571e-06/0.494, allocations: 3.938 kB / 463.5 MB, free: 10.64 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005936/0.4946, allocations: 132 kB / 463.6 MB, free: 10.51 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003928/0.4986, allocations: 0.5813 MB / 464.2 MB, free: 9.93 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001227/0.4987, allocations: 23.98 kB / 464.2 MB, free: 9.906 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001247/0.5, allocations: 0.8292 MB / 465.1 MB, free: 9.051 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.585e-06/0.5, allocations: 0 / 465.1 MB, free: 9.051 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00269/0.5027, allocations: 1.003 MB / 466.1 MB, free: 8.016 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006989/0.5035, allocations: 303.4 kB / 466.4 MB, free: 7.699 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000199/0.5037, allocations: 12 kB / 466.4 MB, free: 7.688 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007657/0.5045, allocations: 67.95 kB / 466.4 MB, free: 7.621 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001662/0.5046, allocations: 52.48 kB / 466.5 MB, free: 7.566 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.329e-05/0.5048, allocations: 35.98 kB / 466.5 MB, free: 7.531 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.001179/0.5059, allocations: 0.6052 MB / 467.1 MB, free: 6.918 MB / 394.7 MB Notification: Performance of sort global known variables: time 8.37e-07/0.506, allocations: 0 / 467.1 MB, free: 6.918 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.003259/0.5092, allocations: 0.8347 MB / 468 MB, free: 6.082 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (47): * Single equations (assignments): 46 * 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 19} Notification: Performance of Backend phase and start with SimCode phase: time 0.001894/0.5112, allocations: 0.6091 MB / 468.6 MB, free: 5.469 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0047/0.5159, allocations: 1.575 MB / 470.2 MB, free: 3.887 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 6.391e-06/0.516, allocations: 7.938 kB / 470.2 MB, free: 3.879 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001232/0.5172, allocations: 398.8 kB / 470.5 MB, free: 3.492 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002573/0.5198, allocations: 423.4 kB / 471 MB, free: 3.082 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004854/0.5247, allocations: 2.244 MB / 473.2 MB, free: 0.793 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.2448/0.7696, allocations: 1.094 MB / 474.3 MB, free: 94.2 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008055/0.7704, allocations: 146 kB / 474.4 MB, free: 94.19 MB / 394.7 MB Notification: Performance of SimCode: time 1.605e-06/0.7704, allocations: 0 / 474.4 MB, free: 94.19 MB / 394.7 MB Notification: Performance of Templates: time 0.04082/0.8112, allocations: 25.61 MB / 0.4883 GB, free: 78.46 MB / 394.7 MB