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.887/1.887, allocations: 209.3 MB / 224.8 MB, free: 208 kB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000441/0.0004411, allocations: 15.98 kB / 282.5 MB, free: 9.629 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.346/0.3464, allocations: 48.7 MB / 331.2 MB, free: 6.477 MB / 266.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestCheckValve): time 0.03326/0.3797, allocations: 23.85 MB / 355.1 MB, free: 4.691 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.02599/0.4058, allocations: 14.66 MB / 369.7 MB, free: 7.945 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007254/0.4066, allocations: 23.75 kB / 369.7 MB, free: 7.922 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0009844/0.4075, allocations: 262.9 kB / 370 MB, free: 7.664 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01352/0.4211, allocations: 3.487 MB / 373.5 MB, free: 4.168 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00921/0.4303, allocations: 2.477 MB / 376 MB, free: 1.691 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.001389/0.4317, allocations: 0.6216 MB / 376.6 MB, free: 1.066 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005037/0.4323, allocations: 216.7 kB / 376.8 MB, free: 0.8477 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001248/0.4335, allocations: 442.5 kB / 377.2 MB, free: 424 kB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005932/0.4395, allocations: 2.904 MB / 380.1 MB, free: 13.51 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001082/0.4396, allocations: 20 kB / 380.1 MB, free: 13.49 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.018/0.4577, allocations: 7.152 MB / 387.3 MB, free: 6.328 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002016/0.4579, allocations: 87.64 kB / 387.4 MB, free: 6.242 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002164/0.4581, allocations: 109.5 kB / 387.5 MB, free: 6.129 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.007353/0.4655, allocations: 3.06 MB / 390.5 MB, free: 3.059 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.341e-06/0.4655, allocations: 4 kB / 390.5 MB, free: 3.055 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.788e-06/0.4656, allocations: 0 / 390.5 MB, free: 3.055 MB / 314.7 MB Notification: Performance of Transformations before backend: time 8.883e-06/0.4656, allocations: 0 / 390.5 MB, free: 3.055 MB / 314.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.003642/0.4692, allocations: 1.232 MB / 391.8 MB, free: 1.773 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.965e-05/0.4693, allocations: 12.03 kB / 391.8 MB, free: 1.762 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002483/0.4718, allocations: 231.2 kB / 392 MB, free: 1.535 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008115/0.4726, allocations: 398.6 kB / 392.4 MB, free: 1.105 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.885e-05/0.4727, allocations: 28.66 kB / 392.4 MB, free: 1.078 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.486e-05/0.4728, allocations: 32 kB / 392.5 MB, free: 1.047 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002182/0.475, allocations: 0.6235 MB / 393.1 MB, free: 396 kB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.803e-05/0.475, allocations: 0 / 393.1 MB, free: 396 kB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.21e-05/0.4751, allocations: 16 kB / 393.1 MB, free: 380 kB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.801e-05/0.4751, allocations: 8 kB / 393.1 MB, free: 372 kB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002384/0.4775, allocations: 0.5953 MB / 393.7 MB, free: 15.77 MB / 330.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.004185/0.4817, allocations: 2.586 MB / 396.3 MB, free: 12.93 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001997/0.4838, allocations: 478.1 kB / 396.8 MB, free: 12.46 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1351/0.6189, allocations: 51.96 MB / 448.7 MB, free: 3.039 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.801e-05/0.619, allocations: 38.52 kB / 448.8 MB, free: 2.992 MB / 378.7 MB Notification: Performance of pre-optimization done (n=25): time 9.424e-06/0.619, allocations: 3.984 kB / 448.8 MB, free: 2.988 MB / 378.7 MB Notification: Performance of matching and sorting (n=25): time 0.003668/0.6227, allocations: 0.8481 MB / 449.6 MB, free: 2.133 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.192e-05/0.6228, allocations: 106.8 kB / 449.7 MB, free: 2.004 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005694/0.6234, allocations: 349.5 kB / 450.1 MB, free: 1.656 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 5.583e-05/0.6234, allocations: 33.7 kB / 450.1 MB, free: 1.617 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002341/0.6237, allocations: 294.2 kB / 450.4 MB, free: 1.328 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001104/0.6238, allocations: 82.75 kB / 450.5 MB, free: 1.246 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.196e-05/0.6238, allocations: 12 kB / 450.5 MB, free: 1.234 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001811/0.624, allocations: 322.8 kB / 450.8 MB, free: 0.9102 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005706/0.6246, allocations: 171.8 kB / 451 MB, free: 0.7422 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006899/0.6253, allocations: 312 kB / 451.3 MB, free: 388 kB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006088/0.626, allocations: 191.9 kB / 451.4 MB, free: 196 kB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.119e-06/0.626, allocations: 0 / 451.4 MB, free: 196 kB / 378.7 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.001554/0.6275, allocations: 0.5051 MB / 451.9 MB, free: 15.68 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001839/0.6278, allocations: 202.9 kB / 452.1 MB, free: 15.42 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.519e-05/0.6278, allocations: 8 kB / 452.2 MB, free: 15.41 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.557e-05/0.6278, allocations: 4 kB / 452.2 MB, free: 15.41 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00059/0.6284, allocations: 115.9 kB / 452.3 MB, free: 15.3 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.829e-05/0.6285, allocations: 11.94 kB / 452.3 MB, free: 15.29 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005383/0.629, allocations: 71.64 kB / 452.4 MB, free: 15.21 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.326e-05/0.6291, allocations: 20 kB / 452.4 MB, free: 15.2 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.07e-05/0.6291, allocations: 8 kB / 452.4 MB, free: 15.19 MB / 394.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001409/0.6305, allocations: 463.6 kB / 452.8 MB, free: 14.73 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.006e-05/0.6306, allocations: 4 kB / 452.8 MB, free: 14.73 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.195e-05/0.6306, allocations: 4 kB / 452.8 MB, free: 14.73 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005529/0.6312, allocations: 111.9 kB / 452.9 MB, free: 14.62 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.141e-05/0.6312, allocations: 20.16 kB / 453 MB, free: 14.6 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004174/0.6316, allocations: 63.72 kB / 453 MB, free: 14.54 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.407e-05/0.6317, allocations: 23.98 kB / 453.1 MB, free: 14.51 MB / 394.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.0003456/0.6321, allocations: 237 kB / 453.3 MB, free: 14.27 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001271/0.6322, allocations: 39.53 kB / 453.3 MB, free: 14.23 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003548/0.6358, allocations: 1.991 MB / 455.3 MB, free: 12.23 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.502e-05/0.6358, allocations: 27.95 kB / 455.3 MB, free: 12.2 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.228e-06/0.6359, allocations: 3.953 kB / 455.3 MB, free: 12.2 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.144e-05/0.6359, allocations: 3.984 kB / 455.4 MB, free: 12.2 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001553/0.6374, allocations: 1.032 MB / 456.4 MB, free: 11.11 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.107e-06/0.6375, allocations: 0 / 456.4 MB, free: 11.11 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004605/0.6379, allocations: 95.86 kB / 456.5 MB, free: 11.02 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.986e-06/0.638, allocations: 0 / 456.5 MB, free: 11.02 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.182e-05/0.638, allocations: 12 kB / 456.5 MB, free: 11 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.489e-06/0.638, allocations: 0 / 456.5 MB, free: 11 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.036e-06/0.638, allocations: 0 / 456.5 MB, free: 11 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002107/0.6402, allocations: 1.138 MB / 457.6 MB, free: 9.855 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003769/0.6406, allocations: 251.4 kB / 457.9 MB, free: 9.59 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.493e-05/0.6407, allocations: 8 kB / 457.9 MB, free: 9.582 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000454/0.6411, allocations: 43.88 kB / 457.9 MB, free: 9.539 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001068/0.6412, allocations: 31.95 kB / 458 MB, free: 9.508 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.291e-05/0.6413, allocations: 15.98 kB / 458 MB, free: 9.492 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0005268/0.6418, allocations: 318.8 kB / 458.3 MB, free: 9.18 MB / 394.7 MB Notification: Performance of sort global known variables: time 7.9e-07/0.6419, allocations: 0 / 458.3 MB, free: 9.18 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.003517/0.6454, allocations: 1.14 MB / 459.4 MB, free: 8.039 MB / 394.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 ($cse4.phase,$cse4.region,$cse5.phase,$cse5.region,$cse7.phase,$cse7.region,$cse8.phase,$cse8.region,$cse9.region3boundary,$cse10.region3boundary,$cse11.phase,$cse11.region,$cse12.phase,$cse12.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.005533/0.6509, allocations: 1.252 MB / 460.7 MB, free: 6.777 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.002426/0.6534, allocations: 0.9063 MB / 461.6 MB, free: 5.871 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 5.799e-06/0.6534, allocations: 0 / 461.6 MB, free: 5.871 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001014/0.6545, allocations: 0.5409 MB / 462.1 MB, free: 5.328 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00127/0.6557, allocations: 197.6 kB / 462.3 MB, free: 5.141 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003623/0.6594, allocations: 2.111 MB / 464.4 MB, free: 2.992 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007793/0.6602, allocations: 0.9953 MB / 465.4 MB, free: 1.973 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002029/0.6604, allocations: 51.42 kB / 465.5 MB, free: 1.922 MB / 394.7 MB Notification: Performance of SimCode: time 1.683e-06/0.6604, allocations: 0 / 465.5 MB, free: 1.922 MB / 394.7 MB Notification: Performance of Templates: time 0.2742/0.9346, allocations: 28.33 MB / 493.8 MB, free: 125.7 MB / 410.7 MB