Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestCheckValve.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.1/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.1_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestCheckValve") Notification: Performance of loadModel(ModelicaTest): time 1.858/1.858, allocations: 209.2 MB / 225.4 MB, free: 0.6094 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006694/0.0006695, allocations: 12 kB / 283.1 MB, free: 9.691 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3454/0.3461, allocations: 48.7 MB / 331.8 MB, free: 6.496 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.823/7.169, allocations: 2.496 GB / 2.82 GB, free: 24.76 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003862/7.17, allocations: 94.67 kB / 2.82 GB, free: 24.7 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.472/8.642, allocations: 229 MB / 3.043 GB, free: 62.77 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.044e-06/8.642, allocations: 0 / 3.043 GB, free: 62.77 MB / 442.7 MB Notification: Performance of Transformations before backend: time 4.046e-05/8.643, allocations: 8.438 kB / 3.043 GB, free: 62.77 MB / 442.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.006058/8.649, allocations: 1.308 MB / 3.045 GB, free: 62.15 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.23e-05/8.649, allocations: 8.25 kB / 3.045 GB, free: 62.15 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002665/8.651, allocations: 234.9 kB / 3.045 GB, free: 62.13 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001132/8.652, allocations: 421 kB / 3.045 GB, free: 61.91 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.139e-05/8.653, allocations: 29.5 kB / 3.045 GB, free: 61.91 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.345e-05/8.653, allocations: 29.94 kB / 3.045 GB, free: 61.91 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002503/8.655, allocations: 0.629 MB / 3.046 GB, free: 61.8 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.523e-05/8.655, allocations: 4.984 kB / 3.046 GB, free: 61.8 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.024e-05/8.655, allocations: 16.03 kB / 3.046 GB, free: 61.8 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.452e-05/8.655, allocations: 7.062 kB / 3.046 GB, free: 61.8 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002595/8.658, allocations: 0.6031 MB / 3.047 GB, free: 61.79 MB / 442.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.003882/8.662, allocations: 2.551 MB / 3.049 GB, free: 59.98 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00217/8.664, allocations: 448.4 kB / 3.05 GB, free: 59.96 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1817/8.846, allocations: 51.31 MB / 3.1 GB, free: 31.82 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.106e-05/8.846, allocations: 41.69 kB / 3.1 GB, free: 31.78 MB / 442.7 MB Notification: Performance of pre-optimization done (n=25): time 3.487e-06/8.846, allocations: 0 / 3.1 GB, free: 31.78 MB / 442.7 MB Notification: Performance of matching and sorting (n=25): time 0.003981/8.85, allocations: 0.8096 MB / 3.101 GB, free: 31.71 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.876e-05/8.85, allocations: 106.8 kB / 3.101 GB, free: 31.59 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005322/8.851, allocations: 349.4 kB / 3.101 GB, free: 31.47 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 5.637e-05/8.851, allocations: 25.7 kB / 3.101 GB, free: 31.44 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001478/8.851, allocations: 289.6 kB / 3.101 GB, free: 31.24 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.822e-05/8.851, allocations: 84.98 kB / 3.101 GB, free: 31.2 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.205e-05/8.851, allocations: 7.844 kB / 3.101 GB, free: 31.2 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 6.855e-05/8.851, allocations: 325.4 kB / 3.102 GB, free: 30.89 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006532/8.852, allocations: 163.3 kB / 3.102 GB, free: 30.88 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007313/8.852, allocations: 291.6 kB / 3.102 GB, free: 30.73 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007158/8.853, allocations: 183 kB / 3.102 GB, free: 30.72 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.259e-06/8.853, allocations: 4 kB / 3.102 GB, free: 30.71 MB / 442.7 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.001738/8.855, allocations: 498.9 kB / 3.103 GB, free: 30.66 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001074/8.855, allocations: 193.9 kB / 3.103 GB, free: 30.44 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.052e-05/8.855, allocations: 6.031 kB / 3.103 GB, free: 30.44 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.584e-05/8.855, allocations: 7.781 kB / 3.103 GB, free: 30.44 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007913/8.856, allocations: 119.6 kB / 3.103 GB, free: 30.44 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.71e-05/8.856, allocations: 18.45 kB / 3.103 GB, free: 30.43 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007646/8.857, allocations: 69.17 kB / 3.103 GB, free: 30.42 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.44e-05/8.857, allocations: 26.78 kB / 3.103 GB, free: 30.41 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.786e-06/8.857, allocations: 3.688 kB / 3.103 GB, free: 30.41 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001611/8.858, allocations: 444.9 kB / 3.104 GB, free: 30.4 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.532e-06/8.858, allocations: 3.938 kB / 3.104 GB, free: 30.4 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.538e-06/8.858, allocations: 3.688 kB / 3.104 GB, free: 30.4 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000772/8.859, allocations: 116.9 kB / 3.104 GB, free: 30.4 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.134e-05/8.859, allocations: 13.77 kB / 3.104 GB, free: 30.4 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005662/8.86, allocations: 62.94 kB / 3.104 GB, free: 30.39 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.749e-05/8.86, allocations: 23.19 kB / 3.104 GB, free: 30.39 MB / 442.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.0003412/8.86, allocations: 248.3 kB / 3.104 GB, free: 30.2 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000128/8.86, allocations: 35.28 kB / 3.104 GB, free: 30.18 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003496/8.864, allocations: 1.969 MB / 3.106 GB, free: 29.91 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.821e-05/8.864, allocations: 32.12 kB / 3.106 GB, free: 29.91 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.702e-06/8.864, allocations: 1.125 kB / 3.106 GB, free: 29.91 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.534e-06/8.864, allocations: 0 / 3.106 GB, free: 29.91 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001395/8.865, allocations: 1.01 MB / 3.107 GB, free: 29.66 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.065e-06/8.865, allocations: 11.55 kB / 3.107 GB, free: 29.65 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006154/8.866, allocations: 88.55 kB / 3.107 GB, free: 29.65 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.374e-06/8.866, allocations: 3.75 kB / 3.107 GB, free: 29.65 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.17e-05/8.866, allocations: 10.78 kB / 3.107 GB, free: 29.65 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.049e-06/8.866, allocations: 0 / 3.107 GB, free: 29.65 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.108e-06/8.866, allocations: 7.344 kB / 3.107 GB, free: 29.65 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002082/8.868, allocations: 1.107 MB / 3.108 GB, free: 29.4 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003481/8.869, allocations: 263.5 kB / 3.108 GB, free: 29.23 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001149/8.869, allocations: 9.047 kB / 3.108 GB, free: 29.23 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005725/8.869, allocations: 54.58 kB / 3.109 GB, free: 29.22 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000103/8.869, allocations: 23.5 kB / 3.109 GB, free: 29.22 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.623e-05/8.869, allocations: 14.47 kB / 3.109 GB, free: 29.22 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0005186/8.87, allocations: 309 kB / 3.109 GB, free: 29.13 MB / 442.7 MB Notification: Performance of sort global known variables: time 3.5e-07/8.87, allocations: 0 / 3.109 GB, free: 29.13 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.005715/8.876, allocations: 1.173 MB / 3.11 GB, free: 28.95 MB / 442.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.009867/8.886, allocations: 1.475 MB / 3.111 GB, free: 28.6 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.002692/8.888, allocations: 0.8783 MB / 3.112 GB, free: 28.57 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 4.979e-06/8.888, allocations: 3.938 kB / 3.112 GB, free: 28.56 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009729/8.889, allocations: 0.5277 MB / 3.113 GB, free: 28.55 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001766/8.891, allocations: 194.2 kB / 3.113 GB, free: 28.54 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2322/9.123, allocations: 75.95 MB / 3.187 GB, free: 260 kB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.3059/9.429, allocations: 0.9996 MB / 3.188 GB, free: 57.65 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002959/9.43, allocations: 50.66 kB / 3.188 GB, free: 57.64 MB / 442.7 MB Notification: Performance of SimCode: time 1.433e-06/9.43, allocations: 0 / 3.188 GB, free: 57.64 MB / 442.7 MB Notification: Performance of Templates: time 0.06854/9.498, allocations: 27.77 MB / 3.215 GB, free: 56.5 MB / 442.7 MB