Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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.271/2.271, allocations: 234.9 MB / 251.1 MB, free: 9.562 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004283/0.0004285, allocations: 12 kB / 315 MB, free: 9.602 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3415/0.342, allocations: 54.86 MB / 369.8 MB, free: 10.73 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.6482/0.9903, allocations: 215.5 MB / 0.5716 GB, free: 14.63 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003239/0.9906, allocations: 86.7 kB / 0.5717 GB, free: 14.59 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.865/3.856, allocations: 0.5099 GB / 1.082 GB, free: 74.96 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.405e-06/3.856, allocations: 0 / 1.082 GB, free: 74.96 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0001108/3.856, allocations: 31.25 kB / 1.082 GB, free: 74.96 MB / 490.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.007472/3.863, allocations: 2.057 MB / 1.084 GB, free: 74.26 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.404e-05/3.863, allocations: 13.27 kB / 1.084 GB, free: 74.26 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004567/3.868, allocations: 358 kB / 1.084 GB, free: 74.19 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002962/3.871, allocations: 0.8994 MB / 1.085 GB, free: 73.92 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.841e-05/3.871, allocations: 59.62 kB / 1.085 GB, free: 73.92 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001966/3.871, allocations: 82.06 kB / 1.085 GB, free: 73.92 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004403/3.876, allocations: 1.23 MB / 1.086 GB, free: 73.66 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.191e-05/3.876, allocations: 6.594 kB / 1.086 GB, free: 73.66 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001831/3.876, allocations: 41.06 kB / 1.086 GB, free: 73.66 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.127e-05/3.876, allocations: 18.5 kB / 1.086 GB, free: 73.66 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004401/3.88, allocations: 1.004 MB / 1.087 GB, free: 73.64 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01018/3.891, allocations: 6.254 MB / 1.093 GB, free: 69.44 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002875/3.893, allocations: 0.6334 MB / 1.094 GB, free: 69.42 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006006/3.894, allocations: 0.7621 MB / 1.095 GB, free: 68.57 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.903e-05/3.894, allocations: 45.39 kB / 1.095 GB, free: 68.53 MB / 490.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001048/3.895, allocations: 107.2 kB / 1.095 GB, free: 68.51 MB / 490.7 MB Notification: Performance of pre-optimization done (n=48): time 3.767e-06/3.895, allocations: 2.078 kB / 1.095 GB, free: 68.51 MB / 490.7 MB Notification: Performance of matching and sorting (n=48): time 0.009186/3.904, allocations: 1.472 MB / 1.096 GB, free: 68.31 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.447e-05/3.905, allocations: 188.3 kB / 1.096 GB, free: 68.09 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001552/3.906, allocations: 0.8662 MB / 1.097 GB, free: 67.94 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001861/3.906, allocations: 36.95 kB / 1.097 GB, free: 67.91 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004022/3.907, allocations: 0.6063 MB / 1.098 GB, free: 67.6 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001887/3.907, allocations: 177.7 kB / 1.098 GB, free: 67.52 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.929e-05/3.907, allocations: 19.84 kB / 1.098 GB, free: 67.52 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 9.224e-05/3.907, allocations: 347.9 kB / 1.098 GB, free: 67.21 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001301/3.908, allocations: 356.8 kB / 1.099 GB, free: 67.21 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001474/3.91, allocations: 0.6968 MB / 1.099 GB, free: 66.78 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001457/3.911, allocations: 442.7 kB / 1.1 GB, free: 66.78 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.137e-06/3.911, allocations: 8.5 kB / 1.1 GB, free: 66.78 MB / 490.7 MB Notification: Performance of matching and sorting (n=117) (initialization): time 0.003974/3.915, allocations: 1.212 MB / 1.101 GB, free: 66.71 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002562/3.916, allocations: 409.1 kB / 1.101 GB, free: 66.24 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.256e-05/3.916, allocations: 12.12 kB / 1.101 GB, free: 66.24 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00941/3.925, allocations: 0.7681 MB / 1.102 GB, free: 66.23 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001944/3.927, allocations: 296.8 kB / 1.102 GB, free: 66.23 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00127/3.928, allocations: 0.7914 MB / 1.103 GB, free: 65.71 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002268/3.931, allocations: 98.53 kB / 1.103 GB, free: 65.71 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003067/3.931, allocations: 88.28 kB / 1.103 GB, free: 65.7 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.5e-05/3.931, allocations: 3.188 kB / 1.103 GB, free: 65.7 MB / 490.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005469/3.937, allocations: 1.096 MB / 1.104 GB, free: 65.66 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.123e-05/3.937, allocations: 14.06 kB / 1.105 GB, free: 65.66 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006121/3.937, allocations: 86.66 kB / 1.105 GB, free: 65.65 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002863/3.94, allocations: 296.9 kB / 1.105 GB, free: 65.64 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003227/3.943, allocations: 1.659 MB / 1.106 GB, free: 64.29 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001957/3.945, allocations: 88.81 kB / 1.107 GB, free: 64.29 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002461/3.946, allocations: 74.86 kB / 1.107 GB, free: 64.29 MB / 490.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.001236/3.951, allocations: 336.6 kB / 1.107 GB, free: 64.09 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000471/3.951, allocations: 110.3 kB / 1.107 GB, free: 64.03 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01701/3.968, allocations: 1.669 MB / 1.109 GB, free: 63.9 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.831e-05/3.968, allocations: 10.31 kB / 1.109 GB, free: 63.9 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.049e-06/3.968, allocations: 0 / 1.109 GB, free: 63.9 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.783e-05/3.968, allocations: 3.703 kB / 1.109 GB, free: 63.9 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01047/3.979, allocations: 1.816 MB / 1.11 GB, free: 63.52 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.022e-05/3.979, allocations: 0 / 1.11 GB, free: 63.52 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001131/3.98, allocations: 131.3 kB / 1.111 GB, free: 63.52 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01876/3.999, allocations: 0.5784 MB / 1.111 GB, free: 63.5 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002033/3.999, allocations: 28.02 kB / 1.111 GB, free: 63.5 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001548/4.001, allocations: 0.8108 MB / 1.112 GB, free: 62.97 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.12e-06/4.001, allocations: 3.219 kB / 1.112 GB, free: 62.97 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008832/4.009, allocations: 1.003 MB / 1.113 GB, free: 62.71 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009868/4.01, allocations: 313.8 kB / 1.113 GB, free: 62.56 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003812/4.011, allocations: 14.31 kB / 1.113 GB, free: 62.56 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001585/4.012, allocations: 75 kB / 1.113 GB, free: 62.55 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002087/4.013, allocations: 48.23 kB / 1.113 GB, free: 62.55 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001277/4.013, allocations: 31.12 kB / 1.113 GB, free: 62.55 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.001646/4.015, allocations: 0.6001 MB / 1.114 GB, free: 62.44 MB / 490.7 MB Notification: Performance of sort global known variables: time 6.02e-07/4.015, allocations: 0 / 1.114 GB, free: 62.44 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.00651/4.021, allocations: 1.03 MB / 1.115 GB, free: 62.32 MB / 490.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 (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.003867/4.025, allocations: 0.7924 MB / 1.116 GB, free: 62.11 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.005277/4.03, allocations: 1.56 MB / 1.117 GB, free: 61.93 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 7.464e-06/4.03, allocations: 2.781 kB / 1.117 GB, free: 61.93 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001418/4.032, allocations: 404.2 kB / 1.118 GB, free: 61.91 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00361/4.035, allocations: 421.3 kB / 1.118 GB, free: 61.89 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005559/4.041, allocations: 2.469 MB / 1.121 GB, free: 60.79 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005857/4.042, allocations: 1.094 MB / 1.122 GB, free: 60.08 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008038/4.042, allocations: 133.2 kB / 1.122 GB, free: 60.08 MB / 490.7 MB Notification: Performance of SimCode: time 1.693e-06/4.042, allocations: 0 / 1.122 GB, free: 60.08 MB / 490.7 MB Notification: Performance of Templates: time 0.05336/4.096, allocations: 26.88 MB / 1.148 GB, free: 58.5 MB / 490.7 MB