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.TestValvesIncompressibleReverse.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.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.1_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValvesIncompressibleReverse") Notification: Performance of loadModel(ModelicaTest): time 2.005/2.005, allocations: 209.3 MB / 224.8 MB, free: 208 kB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004338/0.000434, allocations: 12 kB / 282.5 MB, free: 9.629 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3064/0.3068, allocations: 48.7 MB / 331.2 MB, free: 6.477 MB / 266.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValvesIncompressibleReverse): time 0.05646/0.3634, allocations: 33.27 MB / 364.5 MB, free: 13.21 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.02155/0.385, allocations: 10.36 MB / 374.8 MB, free: 2.836 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002058/0.3871, allocations: 51.5 kB / 374.9 MB, free: 2.785 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002453/0.3895, allocations: 0.6104 MB / 375.5 MB, free: 2.172 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01088/0.4005, allocations: 3.187 MB / 378.7 MB, free: 14.98 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01138/0.4119, allocations: 3.368 MB / 382 MB, free: 11.61 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.003867/0.4157, allocations: 1.794 MB / 383.8 MB, free: 9.812 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001624/0.4174, allocations: 0.7759 MB / 384.6 MB, free: 9.023 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008354/0.4258, allocations: 3.892 MB / 388.5 MB, free: 5.121 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004644/0.4305, allocations: 2.245 MB / 390.7 MB, free: 2.871 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003157/0.4308, allocations: 56 kB / 390.8 MB, free: 2.816 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007534/0.4384, allocations: 2.973 MB / 393.8 MB, free: 15.84 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0004809/0.4389, allocations: 255.1 kB / 394 MB, free: 15.59 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005418/0.4395, allocations: 265 kB / 394.3 MB, free: 15.32 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004236/0.4437, allocations: 1.808 MB / 396.1 MB, free: 13.51 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.233e-06/0.4438, allocations: 0 / 396.1 MB, free: 13.51 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.539e-06/0.4438, allocations: 0 / 396.1 MB, free: 13.51 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.824e-05/0.4438, allocations: 0 / 396.1 MB, free: 13.51 MB / 330.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.004158/0.448, allocations: 1.609 MB / 397.7 MB, free: 11.85 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.168e-05/0.448, allocations: 8.031 kB / 397.7 MB, free: 11.84 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003357/0.4514, allocations: 314.2 kB / 398 MB, free: 11.54 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001836/0.4533, allocations: 0.7795 MB / 398.8 MB, free: 10.71 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.738e-05/0.4534, allocations: 62 kB / 398.9 MB, free: 10.65 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001847/0.4536, allocations: 80 kB / 398.9 MB, free: 10.57 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004116/0.4577, allocations: 1.228 MB / 400.2 MB, free: 9.273 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.656e-05/0.4578, allocations: 7.938 kB / 400.2 MB, free: 9.266 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001492/0.4579, allocations: 35.95 kB / 400.2 MB, free: 9.23 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.174e-05/0.458, allocations: 24 kB / 400.2 MB, free: 9.207 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004165/0.4621, allocations: 1.026 MB / 401.3 MB, free: 8.18 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01016/0.4723, allocations: 6.252 MB / 407.5 MB, free: 1.367 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00264/0.475, allocations: 0.6374 MB / 408.1 MB, free: 0.7227 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007941/0.4759, allocations: 0.7523 MB / 408.9 MB, free: 15.8 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.946e-05/0.4759, allocations: 38.95 kB / 408.9 MB, free: 15.75 MB / 346.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.000633/0.4766, allocations: 95.23 kB / 409 MB, free: 15.66 MB / 346.7 MB Notification: Performance of pre-optimization done (n=48): time 3.782e-06/0.4766, allocations: 0 / 409 MB, free: 15.66 MB / 346.7 MB Notification: Performance of matching and sorting (n=48): time 0.007785/0.4844, allocations: 1.534 MB / 410.6 MB, free: 14.1 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001346/0.4846, allocations: 192.3 kB / 410.7 MB, free: 13.87 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001611/0.4862, allocations: 0.8754 MB / 411.6 MB, free: 12.98 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001457/0.4864, allocations: 33.7 kB / 411.7 MB, free: 12.94 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000569/0.4869, allocations: 0.6054 MB / 412.3 MB, free: 12.32 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000234/0.4872, allocations: 177.6 kB / 412.4 MB, free: 12.15 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.526e-05/0.4873, allocations: 16 kB / 412.5 MB, free: 12.13 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0002004/0.4875, allocations: 342.8 kB / 412.8 MB, free: 11.79 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00115/0.4887, allocations: 365.8 kB / 413.1 MB, free: 11.43 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001452/0.4901, allocations: 0.7123 MB / 413.9 MB, free: 10.56 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001284/0.4914, allocations: 453.9 kB / 414.3 MB, free: 10.11 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.254e-05/0.4915, allocations: 7.953 kB / 414.3 MB, free: 10.11 MB / 346.7 MB Notification: Performance of matching and sorting (n=117) (initialization): time 0.003581/0.4951, allocations: 1.226 MB / 415.5 MB, free: 8.871 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003762/0.4955, allocations: 407.6 kB / 415.9 MB, free: 8.32 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.258e-05/0.4955, allocations: 15.94 kB / 415.9 MB, free: 8.305 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006919/0.5024, allocations: 0.7694 MB / 416.7 MB, free: 7.531 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001342/0.5038, allocations: 299.6 kB / 417 MB, free: 7.238 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001295/0.5051, allocations: 0.7903 MB / 417.8 MB, free: 6.422 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001281/0.5064, allocations: 99.88 kB / 417.9 MB, free: 6.324 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002101/0.5067, allocations: 95.97 kB / 418 MB, free: 6.23 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.636e-05/0.5067, allocations: 6.812 kB / 418 MB, free: 6.227 MB / 346.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00335/0.5101, allocations: 1.127 MB / 419.1 MB, free: 5.102 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.168e-05/0.5101, allocations: 20.08 kB / 419.1 MB, free: 5.082 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003506/0.5105, allocations: 76.81 kB / 419.2 MB, free: 5.004 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001328/0.5118, allocations: 319.5 kB / 419.5 MB, free: 4.691 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002397/0.5142, allocations: 1.647 MB / 421.2 MB, free: 2.91 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009766/0.5153, allocations: 84.12 kB / 421.3 MB, free: 2.828 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001969/0.5155, allocations: 95.89 kB / 421.4 MB, free: 2.734 MB / 346.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.0007783/0.5163, allocations: 336.7 kB / 421.7 MB, free: 2.395 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002903/0.5166, allocations: 114.7 kB / 421.8 MB, free: 2.281 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004824/0.5214, allocations: 1.311 MB / 423.1 MB, free: 0.957 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.188e-05/0.5215, allocations: 4 kB / 423.1 MB, free: 0.9531 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.034e-06/0.5215, allocations: 7.953 kB / 423.1 MB, free: 0.9453 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.432e-05/0.5215, allocations: 7.984 kB / 423.1 MB, free: 0.9375 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004613/0.5261, allocations: 1.825 MB / 424.9 MB, free: 15.04 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.076e-06/0.5262, allocations: 0 / 424.9 MB, free: 15.04 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005903/0.5268, allocations: 132 kB / 425.1 MB, free: 14.91 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003878/0.5307, allocations: 0.5889 MB / 425.7 MB, free: 14.32 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001159/0.5308, allocations: 20 kB / 425.7 MB, free: 14.3 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001242/0.5321, allocations: 0.8254 MB / 426.5 MB, free: 13.45 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.517e-06/0.5321, allocations: 8 kB / 426.5 MB, free: 13.44 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002657/0.5348, allocations: 0.9989 MB / 427.5 MB, free: 12.41 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006199/0.5354, allocations: 291.5 kB / 427.8 MB, free: 12.1 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001919/0.5356, allocations: 12 kB / 427.8 MB, free: 12.09 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007384/0.5364, allocations: 71.84 kB / 427.9 MB, free: 12.02 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001424/0.5365, allocations: 56.48 kB / 427.9 MB, free: 11.96 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.755e-05/0.5366, allocations: 35.98 kB / 428 MB, free: 11.93 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.001184/0.5378, allocations: 0.6052 MB / 428.6 MB, free: 11.32 MB / 362.7 MB Notification: Performance of sort global known variables: time 8.51e-07/0.5379, allocations: 0 / 428.6 MB, free: 11.32 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.003177/0.541, allocations: 0.8387 MB / 429.4 MB, free: 10.48 MB / 362.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.001798/0.5429, allocations: 0.5995 MB / 430 MB, free: 9.871 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.004707/0.5476, allocations: 1.568 MB / 431.6 MB, free: 8.293 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 7.167e-06/0.5477, allocations: 4.062 kB / 431.6 MB, free: 8.289 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001245/0.5489, allocations: 398.1 kB / 432 MB, free: 7.902 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002563/0.5515, allocations: 427.5 kB / 432.4 MB, free: 7.488 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004856/0.5564, allocations: 2.251 MB / 434.6 MB, free: 5.191 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009611/0.5574, allocations: 1.09 MB / 435.7 MB, free: 4.074 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007571/0.5582, allocations: 147.3 kB / 435.9 MB, free: 3.934 MB / 362.7 MB Notification: Performance of SimCode: time 1.518e-06/0.5582, allocations: 0 / 435.9 MB, free: 3.934 MB / 362.7 MB Notification: Performance of Templates: time 0.04822/0.6064, allocations: 25.6 MB / 461.5 MB, free: 10.36 MB / 394.7 MB