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.TestCheckValve.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.TestCheckValve,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|SourceP1.ports.1..m_flow|SourceP1.ports.1..p|SourceP1.ports.1..h_outflow|V1.port_b.m_flow|V1.port_b.p|V1.port_b.h_outflow|V1.minLimiter.y|SinkP1.ports.1..m_flow|SinkP1.ports.1..p|SinkP1.ports.1..h_outflow|downstreamPressure.y|const.y",fileNamePrefix="ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestCheckValve") Notification: Performance of loadModel(ModelicaTest): time 2.248/2.248, allocations: 234.9 MB / 251.1 MB, free: 9.699 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006097/0.0006099, allocations: 16 kB / 314.9 MB, free: 9.734 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4209/0.4216, allocations: 54.87 MB / 369.8 MB, free: 12.79 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.703/8.124, allocations: 2.606 GB / 2.968 GB, free: 116.2 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003362/8.125, allocations: 94.08 kB / 2.968 GB, free: 116.2 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.213/9.338, allocations: 233.3 MB / 3.195 GB, free: 66.52 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.024e-06/9.338, allocations: 0 / 3.195 GB, free: 66.52 MB / 490.7 MB Notification: Performance of Transformations before backend: time 4.15e-05/9.338, allocations: 14.84 kB / 3.195 GB, free: 66.52 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: 78 * Number of variables: 78 Notification: Performance of Generate backend data structure: time 0.00568/9.344, allocations: 1.32 MB / 3.197 GB, free: 65.66 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.212e-05/9.344, allocations: 11.75 kB / 3.197 GB, free: 65.66 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002672/9.346, allocations: 248.8 kB / 3.197 GB, free: 65.62 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001075/9.347, allocations: 424.4 kB / 3.197 GB, free: 65.31 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.721e-05/9.348, allocations: 31.11 kB / 3.197 GB, free: 65.29 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.056e-05/9.348, allocations: 37.88 kB / 3.197 GB, free: 65.28 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002257/9.35, allocations: 0.6267 MB / 3.198 GB, free: 65.02 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.831e-05/9.35, allocations: 0 / 3.198 GB, free: 65.02 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.38e-05/9.35, allocations: 11.84 kB / 3.198 GB, free: 65.01 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.155e-05/9.35, allocations: 11.34 kB / 3.198 GB, free: 65.01 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002469/9.352, allocations: 0.5916 MB / 3.199 GB, free: 64.88 MB / 490.7 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003822/9.356, allocations: 2.561 MB / 3.201 GB, free: 62.73 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00219/9.359, allocations: 451.4 kB / 3.202 GB, free: 62.61 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1776/9.536, allocations: 51.36 MB / 3.252 GB, free: 15.05 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.404e-05/9.536, allocations: 42.44 kB / 3.252 GB, free: 15 MB / 490.7 MB Notification: Performance of pre-optimization done (n=25): time 2.124e-06/9.536, allocations: 0 / 3.252 GB, free: 15 MB / 490.7 MB Notification: Performance of matching and sorting (n=25): time 0.00388/9.54, allocations: 0.8052 MB / 3.253 GB, free: 14.19 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.52e-05/9.54, allocations: 106.8 kB / 3.253 GB, free: 14.06 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005343/9.541, allocations: 353.6 kB / 3.253 GB, free: 13.7 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 4.12e-05/9.541, allocations: 29.7 kB / 3.253 GB, free: 13.66 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000134/9.541, allocations: 285.4 kB / 3.253 GB, free: 13.39 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.892e-05/9.541, allocations: 89.88 kB / 3.253 GB, free: 13.3 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.932e-05/9.541, allocations: 4 kB / 3.253 GB, free: 13.3 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 6.878e-05/9.541, allocations: 326.8 kB / 3.254 GB, free: 12.97 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006373/9.542, allocations: 159.9 kB / 3.254 GB, free: 12.81 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007026/9.543, allocations: 296.5 kB / 3.254 GB, free: 12.46 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007135/9.543, allocations: 195.9 kB / 3.254 GB, free: 12.27 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.961e-06/9.543, allocations: 0 / 3.254 GB, free: 12.27 MB / 490.7 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.002216/9.546, allocations: 489.2 kB / 3.255 GB, free: 11.79 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001179/9.546, allocations: 199 kB / 3.255 GB, free: 11.54 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.25e-05/9.546, allocations: 4 kB / 3.255 GB, free: 11.54 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.015e-05/9.546, allocations: 4 kB / 3.255 GB, free: 11.53 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009811/9.547, allocations: 115.9 kB / 3.255 GB, free: 11.42 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.754e-05/9.547, allocations: 11.94 kB / 3.255 GB, free: 11.41 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009753/9.548, allocations: 79.55 kB / 3.255 GB, free: 11.33 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.914e-05/9.548, allocations: 20 kB / 3.255 GB, free: 11.31 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.022e-05/9.548, allocations: 4 kB / 3.255 GB, free: 11.3 MB / 490.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002305/9.55, allocations: 439.6 kB / 3.256 GB, free: 10.88 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.253e-05/9.55, allocations: 4 kB / 3.256 GB, free: 10.87 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.589e-05/9.55, allocations: 8 kB / 3.256 GB, free: 10.86 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00112/9.551, allocations: 124 kB / 3.256 GB, free: 10.74 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.784e-05/9.551, allocations: 7.953 kB / 3.256 GB, free: 10.73 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009111/9.552, allocations: 71.64 kB / 3.256 GB, free: 10.66 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.421e-05/9.553, allocations: 16 kB / 3.256 GB, free: 10.65 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 17 * Number of states: 0 () * Number of discrete variables: 4 (V1.state_b.phase,V1.state_a.phase,SourceP1.medium.phase,SinkP1.medium.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (43): * Single equations (assignments): 43 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000528/9.553, allocations: 241 kB / 3.256 GB, free: 10.4 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000193/9.553, allocations: 31.62 kB / 3.256 GB, free: 10.37 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005303/9.559, allocations: 1.979 MB / 3.258 GB, free: 8.379 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.836e-05/9.559, allocations: 27.95 kB / 3.258 GB, free: 8.352 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.182e-05/9.559, allocations: 3.953 kB / 3.258 GB, free: 8.348 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.062e-05/9.559, allocations: 0 / 3.258 GB, free: 8.348 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002054/9.561, allocations: 1.021 MB / 3.259 GB, free: 7.281 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.033e-06/9.561, allocations: 0 / 3.259 GB, free: 7.281 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008302/9.562, allocations: 91.88 kB / 3.259 GB, free: 7.191 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.797e-06/9.562, allocations: 0 / 3.259 GB, free: 7.191 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.289e-05/9.562, allocations: 8 kB / 3.259 GB, free: 7.184 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.285e-06/9.562, allocations: 7.984 kB / 3.259 GB, free: 7.176 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.565e-06/9.562, allocations: 0 / 3.259 GB, free: 7.176 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002772/9.565, allocations: 1.118 MB / 3.26 GB, free: 6.039 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00046/9.565, allocations: 247.4 kB / 3.261 GB, free: 5.777 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000154/9.565, allocations: 12 kB / 3.261 GB, free: 5.766 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008052/9.566, allocations: 47.89 kB / 3.261 GB, free: 5.719 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001328/9.566, allocations: 31.95 kB / 3.261 GB, free: 5.688 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.961e-05/9.566, allocations: 8 kB / 3.261 GB, free: 5.68 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.0006923/9.567, allocations: 314.8 kB / 3.261 GB, free: 5.371 MB / 490.7 MB Notification: Performance of sort global known variables: time 5.21e-07/9.567, allocations: 0 / 3.261 GB, free: 5.371 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.007336/9.574, allocations: 1.186 MB / 3.262 GB, free: 4.184 MB / 490.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: 18 ($cse1.phase,$cse1.region,$cse2.phase,$cse2.region,$cse3.region3boundary,$cse4.region3boundary,$cse5.phase,$cse5.region,$cse6.phase,$cse6.region,$cse8.phase,$cse8.region,$cse9.phase,$cse9.region,$cse15.phase,$cse15.region,SourceP1.medium.phase,SinkP1.medium.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (38): * Single equations (assignments): 29 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 9 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01241/9.587, allocations: 1.473 MB / 3.264 GB, free: 2.852 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.003652/9.591, allocations: 0.8739 MB / 3.264 GB, free: 1.977 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 6.142e-06/9.591, allocations: 0 / 3.264 GB, free: 1.977 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001356/9.592, allocations: 0.5262 MB / 3.265 GB, free: 1.453 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002373/9.594, allocations: 195.2 kB / 3.265 GB, free: 1.266 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.6261/10.22, allocations: 77.21 MB / 3.34 GB, free: 86.57 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000504/10.22, allocations: 0.9977 MB / 3.341 GB, free: 85.86 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002629/10.22, allocations: 48.78 kB / 3.341 GB, free: 85.86 MB / 0.4948 GB Notification: Performance of SimCode: time 1.303e-06/10.22, allocations: 0 / 3.341 GB, free: 85.86 MB / 0.4948 GB Notification: Performance of Templates: time 0.05929/10.28, allocations: 27.94 MB / 3.369 GB, free: 82.88 MB / 0.4948 GB