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/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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.155/2.155, allocations: 209.4 MB / 217.3 MB, free: 4.172 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.056e-05/2.079e-05, allocations: 4 kB / 271.3 MB, free: 14.11 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2644/0.2645, allocations: 48.69 MB / 320 MB, free: 14.39 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5413/0.8058, allocations: 208.4 MB / 0.5161 GB, free: 32.69 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002521/0.8061, allocations: 83.5 kB / 0.5161 GB, free: 32.64 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.239/3.045, allocations: 0.4943 GB / 1.01 GB, free: 59.13 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.104e-06/3.045, allocations: 0 / 1.01 GB, free: 59.13 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0001032/3.045, allocations: 41.77 kB / 1.01 GB, free: 59.12 MB / 426.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.005449/3.051, allocations: 1.894 MB / 1.012 GB, free: 58.11 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.05e-05/3.051, allocations: 10.84 kB / 1.012 GB, free: 58.11 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004357/3.055, allocations: 354.8 kB / 1.013 GB, free: 58.05 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002354/3.058, allocations: 0.8985 MB / 1.014 GB, free: 57.7 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.262e-05/3.058, allocations: 26.53 kB / 1.014 GB, free: 57.7 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001518/3.058, allocations: 49.47 kB / 1.014 GB, free: 57.7 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001808/3.06, allocations: 0.719 MB / 1.014 GB, free: 57.7 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001891/3.062, allocations: 0.9435 MB / 1.015 GB, free: 57.42 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.376e-05/3.062, allocations: 2.906 kB / 1.015 GB, free: 57.42 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001507/3.062, allocations: 4.969 kB / 1.015 GB, free: 57.42 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.978e-05/3.062, allocations: 20.44 kB / 1.015 GB, free: 57.42 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00792/3.07, allocations: 6.116 MB / 1.021 GB, free: 53.19 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001058/3.071, allocations: 457.2 kB / 1.022 GB, free: 53.16 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004272/3.072, allocations: 212 kB / 1.022 GB, free: 53.15 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004896/3.072, allocations: 0.7657 MB / 1.023 GB, free: 52.3 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.812e-05/3.072, allocations: 39.84 kB / 1.023 GB, free: 52.27 MB / 426.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.000787/3.073, allocations: 103.7 kB / 1.023 GB, free: 52.23 MB / 426.7 MB Notification: Performance of pre-optimization done (n=48): time 4.484e-06/3.073, allocations: 0 / 1.023 GB, free: 52.23 MB / 426.7 MB Notification: Performance of matching and sorting (n=48): time 0.00735/3.08, allocations: 1.084 MB / 1.024 GB, free: 52.13 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.528e-05/3.08, allocations: 186.4 kB / 1.024 GB, free: 51.91 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001086/3.081, allocations: 0.6847 MB / 1.025 GB, free: 51.75 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 8.409e-05/3.082, allocations: 29.02 kB / 1.025 GB, free: 51.72 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003442/3.082, allocations: 0.6188 MB / 1.025 GB, free: 51.36 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001658/3.082, allocations: 161.9 kB / 1.025 GB, free: 51.25 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.921e-05/3.082, allocations: 0.75 kB / 1.025 GB, free: 51.25 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 8.61e-05/3.082, allocations: 353.7 kB / 1.026 GB, free: 50.94 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006033/3.083, allocations: 249.9 kB / 1.026 GB, free: 50.87 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007407/3.084, allocations: 0.5963 MB / 1.027 GB, free: 50.32 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01033/3.094, allocations: 1.515 MB / 1.028 GB, free: 50.14 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.766e-05/3.094, allocations: 7.562 kB / 1.028 GB, free: 50.14 MB / 426.7 MB Notification: Performance of matching and sorting (n=117) (initialization): time 0.01207/3.106, allocations: 2.114 MB / 1.03 GB, free: 48.7 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0008264/3.107, allocations: 4.18 MB / 1.034 GB, free: 44.24 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.091e-05/3.107, allocations: 12.66 kB / 1.034 GB, free: 44.23 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002724/3.11, allocations: 426 kB / 1.035 GB, free: 43.96 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001285/3.111, allocations: 287.7 kB / 1.035 GB, free: 43.73 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002495/3.114, allocations: 0.9544 MB / 1.036 GB, free: 42.84 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00157/3.115, allocations: 70.52 kB / 1.036 GB, free: 42.79 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002254/3.115, allocations: 82.97 kB / 1.036 GB, free: 42.72 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.353e-05/3.116, allocations: 4 kB / 1.036 GB, free: 42.72 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.009321/3.125, allocations: 1.814 MB / 1.038 GB, free: 41.28 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.929e-05/3.125, allocations: 12 kB / 1.038 GB, free: 41.27 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003409/3.125, allocations: 82.34 kB / 1.038 GB, free: 41.18 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001395/3.127, allocations: 298.4 kB / 1.038 GB, free: 40.89 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001669/3.128, allocations: 1.582 MB / 1.04 GB, free: 39.21 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001109/3.129, allocations: 78.16 kB / 1.04 GB, free: 39.14 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001516/3.13, allocations: 63.97 kB / 1.04 GB, free: 39.08 MB / 426.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 () * 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.000286/3.13, allocations: 141.5 kB / 1.04 GB, free: 38.94 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002952/3.13, allocations: 106.7 kB / 1.04 GB, free: 38.83 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006437/3.137, allocations: 1.754 MB / 1.042 GB, free: 37.14 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.139e-05/3.137, allocations: 6.594 kB / 1.042 GB, free: 37.14 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.149e-06/3.137, allocations: 7.891 kB / 1.042 GB, free: 37.13 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.451e-05/3.137, allocations: 7.984 kB / 1.042 GB, free: 37.12 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005672/3.142, allocations: 1.794 MB / 1.044 GB, free: 35.29 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.224e-06/3.143, allocations: 3.953 kB / 1.044 GB, free: 35.29 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005471/3.143, allocations: 138.1 kB / 1.044 GB, free: 35.16 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001232/3.144, allocations: 290.8 kB / 1.044 GB, free: 34.88 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.306e-05/3.144, allocations: 15.98 kB / 1.044 GB, free: 34.86 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00168/3.146, allocations: 0.9105 MB / 1.045 GB, free: 33.93 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.293e-06/3.146, allocations: 4 kB / 1.045 GB, free: 33.93 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004092/3.15, allocations: 1.16 MB / 1.046 GB, free: 32.71 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005965/3.151, allocations: 307.4 kB / 1.046 GB, free: 32.39 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002108/3.151, allocations: 0 / 1.046 GB, free: 32.39 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009116/3.152, allocations: 60.59 kB / 1.046 GB, free: 32.33 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001273/3.152, allocations: 60.17 kB / 1.046 GB, free: 32.28 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.156e-05/3.152, allocations: 27.98 kB / 1.046 GB, free: 32.25 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0008788/3.153, allocations: 0.5228 MB / 1.047 GB, free: 31.72 MB / 426.7 MB Notification: Performance of sort global known variables: time 8.79e-07/3.153, allocations: 0 / 1.047 GB, free: 31.72 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.003878/3.157, allocations: 0.9861 MB / 1.048 GB, free: 30.73 MB / 426.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 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (49): * Single equations (assignments): 48 * 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.002397/3.16, allocations: 0.7878 MB / 1.049 GB, free: 30.02 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.002648/3.162, allocations: 1.204 MB / 1.05 GB, free: 28.81 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 6.21e-06/3.162, allocations: 4 kB / 1.05 GB, free: 28.8 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006634/3.163, allocations: 295.3 kB / 1.05 GB, free: 28.52 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002414/3.165, allocations: 396.4 kB / 1.051 GB, free: 28.16 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003485/3.169, allocations: 1.516 MB / 1.052 GB, free: 26.61 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009065/3.17, allocations: 1.089 MB / 1.053 GB, free: 41.51 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005909/3.17, allocations: 137.4 kB / 1.053 GB, free: 41.39 MB / 442.7 MB Notification: Performance of SimCode: time 1.807e-06/3.17, allocations: 0 / 1.053 GB, free: 41.39 MB / 442.7 MB Notification: Performance of Templates: time 0.03952/3.21, allocations: 26.89 MB / 1.079 GB, free: 14.83 MB / 442.7 MB