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.TestCheckValve.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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.798/1.798, allocations: 209.3 MB / 222.4 MB, free: 1.941 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.664e-05/2.684e-05, allocations: 4 kB / 277.8 MB, free: 12.38 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1077/0.1078, allocations: 48.71 MB / 326.5 MB, free: 11.58 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.33/6.437, allocations: 2.496 GB / 2.815 GB, free: 59.75 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002466/6.438, allocations: 82.89 kB / 2.815 GB, free: 59.7 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.9419/7.38, allocations: 228.3 MB / 3.038 GB, free: 1.734 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.174e-06/7.38, allocations: 0 / 3.038 GB, free: 1.734 MB / 426.7 MB Notification: Performance of Transformations before backend: time 3.431e-05/7.38, allocations: 11.94 kB / 3.038 GB, free: 1.723 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: 78 * Number of variables: 78 Notification: Performance of Generate backend data structure: time 0.005043/7.385, allocations: 1.247 MB / 3.039 GB, free: 440 kB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.991e-05/7.385, allocations: 8.031 kB / 3.039 GB, free: 432 kB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005812/7.391, allocations: 239.2 kB / 3.039 GB, free: 192 kB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.2853/7.676, allocations: 418.5 kB / 3.039 GB, free: 47.28 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.186e-05/7.676, allocations: 27 kB / 3.039 GB, free: 47.28 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.272e-05/7.676, allocations: 30.22 kB / 3.039 GB, free: 47.28 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001937/7.678, allocations: 0.6015 MB / 3.04 GB, free: 47.16 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.148e-05/7.678, allocations: 2.266 kB / 3.04 GB, free: 47.16 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.271e-05/7.678, allocations: 17.14 kB / 3.04 GB, free: 47.16 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.619e-05/7.678, allocations: 8.344 kB / 3.04 GB, free: 47.16 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001748/7.68, allocations: 0.5187 MB / 3.041 GB, free: 47.16 MB / 426.7 MB Warning: The model contains alias variables with conflicting start and/or 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.003619/7.684, allocations: 2.554 MB / 3.043 GB, free: 45.35 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001601/7.685, allocations: 413.8 kB / 3.043 GB, free: 45.33 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002991/7.686, allocations: 139.6 kB / 3.044 GB, free: 45.32 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1273/7.813, allocations: 51.59 MB / 3.094 GB, free: 33.08 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.033e-05/7.813, allocations: 31.44 kB / 3.094 GB, free: 33.04 MB / 442.7 MB Notification: Performance of pre-optimization done (n=25): time 4.795e-06/7.813, allocations: 0 / 3.094 GB, free: 33.04 MB / 442.7 MB Notification: Performance of matching and sorting (n=25): time 0.0026/7.816, allocations: 0.6389 MB / 3.095 GB, free: 32.99 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.216e-05/7.816, allocations: 110.4 kB / 3.095 GB, free: 32.86 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004534/7.816, allocations: 306.5 kB / 3.095 GB, free: 32.75 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 5.952e-05/7.816, allocations: 27.95 kB / 3.095 GB, free: 32.72 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001792/7.817, allocations: 282.2 kB / 3.095 GB, free: 32.53 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.106e-05/7.817, allocations: 92.33 kB / 3.095 GB, free: 32.48 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.786e-05/7.817, allocations: 10.59 kB / 3.095 GB, free: 32.48 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001785/7.817, allocations: 329.2 kB / 3.096 GB, free: 32.17 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000241/7.817, allocations: 106.8 kB / 3.096 GB, free: 32.17 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003092/7.817, allocations: 240.6 kB / 3.096 GB, free: 32.01 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003061/7.818, allocations: 126.8 kB / 3.096 GB, free: 32.01 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.565e-06/7.818, allocations: 7.312 kB / 3.096 GB, free: 32 MB / 442.7 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.0008807/7.819, allocations: 385.3 kB / 3.097 GB, free: 31.96 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0007437/7.819, allocations: 1.484 MB / 3.098 GB, free: 30.41 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.324e-05/7.819, allocations: 3.969 kB / 3.098 GB, free: 30.41 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.224e-05/7.819, allocations: 7.781 kB / 3.098 GB, free: 30.41 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006111/7.82, allocations: 117.4 kB / 3.098 GB, free: 30.4 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.695e-05/7.82, allocations: 11.27 kB / 3.098 GB, free: 30.4 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000672/7.821, allocations: 74.95 kB / 3.098 GB, free: 30.39 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.71e-05/7.821, allocations: 21.72 kB / 3.098 GB, free: 30.39 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.265e-05/7.821, allocations: 0.9688 kB / 3.098 GB, free: 30.39 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0008002/7.822, allocations: 335.8 kB / 3.099 GB, free: 30.38 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.916e-06/7.822, allocations: 8.344 kB / 3.099 GB, free: 30.38 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.206e-05/7.822, allocations: 11.94 kB / 3.099 GB, free: 30.38 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006072/7.822, allocations: 119.6 kB / 3.099 GB, free: 30.38 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.161e-05/7.822, allocations: 6.625 kB / 3.099 GB, free: 30.38 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004964/7.823, allocations: 68.3 kB / 3.099 GB, free: 30.36 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.005e-05/7.823, allocations: 20.03 kB / 3.099 GB, free: 30.36 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 () * 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.0001912/7.823, allocations: 127.6 kB / 3.099 GB, free: 30.26 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001338/7.823, allocations: 34.91 kB / 3.099 GB, free: 30.24 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002526/7.826, allocations: 1.918 MB / 3.101 GB, free: 30 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.216e-05/7.826, allocations: 27.3 kB / 3.101 GB, free: 30 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.149e-06/7.826, allocations: 3.906 kB / 3.101 GB, free: 30 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.023e-05/7.826, allocations: 7.312 kB / 3.101 GB, free: 30 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001316/7.827, allocations: 1.013 MB / 3.102 GB, free: 29.77 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.769e-06/7.827, allocations: 3.844 kB / 3.102 GB, free: 29.77 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004955/7.828, allocations: 89.12 kB / 3.102 GB, free: 29.77 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.171e-06/7.828, allocations: 3.781 kB / 3.102 GB, free: 29.77 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.208e-05/7.828, allocations: 8.656 kB / 3.102 GB, free: 29.77 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.762e-06/7.828, allocations: 3.953 kB / 3.102 GB, free: 29.77 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.214e-06/7.828, allocations: 0 / 3.102 GB, free: 29.77 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001439/7.829, allocations: 1.024 MB / 3.103 GB, free: 29.53 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000369/7.83, allocations: 252.3 kB / 3.103 GB, free: 29.39 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.745e-05/7.83, allocations: 6.531 kB / 3.103 GB, free: 29.39 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000477/7.83, allocations: 45.09 kB / 3.103 GB, free: 29.38 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.842e-05/7.831, allocations: 32.73 kB / 3.103 GB, free: 29.38 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.809e-05/7.831, allocations: 20.94 kB / 3.103 GB, free: 29.38 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0004363/7.831, allocations: 301.5 kB / 3.104 GB, free: 29.29 MB / 442.7 MB Notification: Performance of sort global known variables: time 9.67e-07/7.831, allocations: 1.5 kB / 3.104 GB, free: 29.29 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.005049/7.836, allocations: 1.178 MB / 3.105 GB, free: 29.28 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 () * 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.008641/7.845, allocations: 1.461 MB / 3.106 GB, free: 29.09 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.001445/7.846, allocations: 0.7244 MB / 3.107 GB, free: 29.08 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 5.827e-06/7.846, allocations: 0.5625 kB / 3.107 GB, free: 29.08 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006449/7.847, allocations: 488 kB / 3.107 GB, free: 29.07 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001439/7.848, allocations: 194.4 kB / 3.108 GB, free: 29.06 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1849/8.033, allocations: 75.1 MB / 3.181 GB, free: 12.44 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006978/8.034, allocations: 0.9939 MB / 3.182 GB, free: 11.53 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002199/8.034, allocations: 50.09 kB / 3.182 GB, free: 11.48 MB / 442.7 MB Notification: Performance of SimCode: time 1.851e-06/8.034, allocations: 5.969 kB / 3.182 GB, free: 11.48 MB / 442.7 MB Notification: Performance of Templates: time 0.3145/8.349, allocations: 27.55 MB / 3.209 GB, free: 53 MB / 442.7 MB