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.TestCheckValve.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.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.083/2.083, allocations: 234.9 MB / 250.5 MB, free: 9.449 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0007746/0.0007747, allocations: 16 kB / 314.4 MB, free: 9.449 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3331/0.3339, allocations: 54.86 MB / 369.3 MB, free: 10.68 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.21/6.544, allocations: 2.606 GB / 2.967 GB, free: 106.4 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002469/6.544, allocations: 85.02 kB / 2.967 GB, free: 106.3 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.9477/7.492, allocations: 233.3 MB / 3.195 GB, free: 69.91 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.827e-06/7.492, allocations: 3.906 kB / 3.195 GB, free: 69.91 MB / 490.7 MB Notification: Performance of Transformations before backend: time 3.5e-05/7.492, allocations: 12 kB / 3.195 GB, free: 69.9 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.004688/7.497, allocations: 1.32 MB / 3.196 GB, free: 68.64 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.977e-05/7.497, allocations: 8.031 kB / 3.196 GB, free: 68.63 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002574/7.5, allocations: 243.2 kB / 3.196 GB, free: 68.45 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009324/7.501, allocations: 434.1 kB / 3.197 GB, free: 68.06 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.578e-05/7.501, allocations: 32.61 kB / 3.197 GB, free: 68.03 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.29e-05/7.501, allocations: 28 kB / 3.197 GB, free: 68 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0019/7.503, allocations: 0.6189 MB / 3.198 GB, free: 67.48 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.987e-05/7.503, allocations: 7.719 kB / 3.198 GB, free: 67.48 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.881e-05/7.503, allocations: 12 kB / 3.198 GB, free: 67.47 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.115e-05/7.503, allocations: 12 kB / 3.198 GB, free: 67.46 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002042/7.505, allocations: 0.5948 MB / 3.198 GB, free: 67 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.003165/7.508, allocations: 2.559 MB / 3.201 GB, free: 64.49 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001924/7.51, allocations: 454.6 kB / 3.201 GB, free: 64.14 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1135/7.623, allocations: 51.36 MB / 3.251 GB, free: 10.14 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.928e-05/7.624, allocations: 42.52 kB / 3.251 GB, free: 10.09 MB / 490.7 MB Notification: Performance of pre-optimization done (n=25): time 3.621e-06/7.624, allocations: 0 / 3.251 GB, free: 10.09 MB / 490.7 MB Notification: Performance of matching and sorting (n=25): time 0.003281/7.627, allocations: 0.8052 MB / 3.252 GB, free: 9.277 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.671e-05/7.627, allocations: 102.8 kB / 3.252 GB, free: 9.152 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004444/7.627, allocations: 316.7 kB / 3.252 GB, free: 8.832 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 4.1e-05/7.627, allocations: 29.7 kB / 3.252 GB, free: 8.797 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001224/7.628, allocations: 290.2 kB / 3.253 GB, free: 8.512 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.765e-05/7.628, allocations: 81.73 kB / 3.253 GB, free: 8.434 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.626e-05/7.628, allocations: 8 kB / 3.253 GB, free: 8.426 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 6.129e-05/7.628, allocations: 326.8 kB / 3.253 GB, free: 8.098 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004778/7.628, allocations: 159.9 kB / 3.253 GB, free: 7.941 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005231/7.629, allocations: 288.1 kB / 3.254 GB, free: 7.602 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005216/7.629, allocations: 195.8 kB / 3.254 GB, free: 7.41 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.954e-06/7.629, allocations: 0 / 3.254 GB, free: 7.41 MB / 490.7 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.001312/7.631, allocations: 485.7 kB / 3.254 GB, free: 6.93 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002933/7.631, allocations: 1.481 MB / 3.256 GB, free: 5.332 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.1e-05/7.631, allocations: 4 kB / 3.256 GB, free: 5.328 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.342e-05/7.631, allocations: 12 kB / 3.256 GB, free: 5.316 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005509/7.632, allocations: 119.7 kB / 3.256 GB, free: 5.199 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.222e-05/7.632, allocations: 4 kB / 3.256 GB, free: 5.195 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005796/7.632, allocations: 79.55 kB / 3.256 GB, free: 5.117 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.933e-05/7.632, allocations: 20 kB / 3.256 GB, free: 5.098 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.08e-05/7.632, allocations: 4 kB / 3.256 GB, free: 5.094 MB / 490.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001207/7.634, allocations: 443.6 kB / 3.256 GB, free: 4.66 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.38e-06/7.634, allocations: 8.281 kB / 3.256 GB, free: 4.652 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.568e-06/7.634, allocations: 4 kB / 3.256 GB, free: 4.648 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005159/7.634, allocations: 119.8 kB / 3.256 GB, free: 4.531 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.846e-06/7.634, allocations: 4 kB / 3.256 GB, free: 4.527 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004283/7.635, allocations: 71.64 kB / 3.257 GB, free: 4.457 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.446e-05/7.635, allocations: 20 kB / 3.257 GB, free: 4.438 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.0002877/7.635, allocations: 244.9 kB / 3.257 GB, free: 4.188 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001156/7.635, allocations: 35.62 kB / 3.257 GB, free: 4.152 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002725/7.638, allocations: 1.964 MB / 3.259 GB, free: 2.172 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.034e-05/7.638, allocations: 35.89 kB / 3.259 GB, free: 2.137 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.463e-06/7.638, allocations: 4 kB / 3.259 GB, free: 2.133 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.535e-06/7.638, allocations: 4 kB / 3.259 GB, free: 2.129 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001167/7.639, allocations: 1.02 MB / 3.26 GB, free: 1.07 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.355e-06/7.639, allocations: 0 / 3.26 GB, free: 1.07 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004211/7.64, allocations: 83.94 kB / 3.26 GB, free: 0.9883 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.276e-06/7.64, allocations: 4 kB / 3.26 GB, free: 0.9844 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.938e-05/7.64, allocations: 15.92 kB / 3.26 GB, free: 0.9688 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.481e-06/7.64, allocations: 7.984 kB / 3.26 GB, free: 0.9609 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.927e-06/7.64, allocations: 0 / 3.26 GB, free: 0.9609 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2832/7.923, allocations: 1.112 MB / 3.261 GB, free: 82.6 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004579/7.923, allocations: 249.2 kB / 3.261 GB, free: 82.5 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.32e-05/7.923, allocations: 7.656 kB / 3.261 GB, free: 82.5 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005229/7.924, allocations: 47.11 kB / 3.261 GB, free: 82.5 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001178/7.924, allocations: 34.16 kB / 3.261 GB, free: 82.5 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.297e-05/7.924, allocations: 9.609 kB / 3.261 GB, free: 82.5 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.0006077/7.925, allocations: 313.9 kB / 3.262 GB, free: 82.42 MB / 490.7 MB Notification: Performance of sort global known variables: time 7.89e-07/7.925, allocations: 0 / 3.262 GB, free: 82.42 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.005006/7.93, allocations: 1.183 MB / 3.263 GB, free: 82.42 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.008006/7.938, allocations: 1.464 MB / 3.264 GB, free: 82.32 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.002291/7.94, allocations: 0.8758 MB / 3.265 GB, free: 82.31 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 4.712e-06/7.94, allocations: 0 / 3.265 GB, free: 82.31 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009443/7.941, allocations: 0.5246 MB / 3.266 GB, free: 82.3 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001347/7.943, allocations: 190.6 kB / 3.266 GB, free: 82.3 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1845/8.127, allocations: 77.24 MB / 3.341 GB, free: 79.48 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004507/8.128, allocations: 0.9928 MB / 3.342 GB, free: 78.77 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002107/8.128, allocations: 51.3 kB / 3.342 GB, free: 78.77 MB / 490.7 MB Notification: Performance of SimCode: time 1.767e-06/8.128, allocations: 4 kB / 3.342 GB, free: 78.76 MB / 490.7 MB Notification: Performance of Templates: time 0.04466/8.172, allocations: 27.94 MB / 3.369 GB, free: 66.04 MB / 490.7 MB