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.337/2.337, allocations: 234.9 MB / 250.5 MB, free: 9.551 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004361/0.0004363, allocations: 8 kB / 314.3 MB, free: 9.598 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2859/0.2864, allocations: 54.88 MB / 369.2 MB, free: 10.72 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestCheckValve): time 0.06647/0.353, allocations: 24.02 MB / 393.2 MB, free: 2.621 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.03688/0.3899, allocations: 14.73 MB / 407.9 MB, free: 3.859 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000681/0.3906, allocations: 19.88 kB / 408 MB, free: 3.84 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0009693/0.3916, allocations: 270.7 kB / 408.2 MB, free: 3.574 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01259/0.4042, allocations: 3.518 MB / 411.7 MB, free: 48 kB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00912/0.4134, allocations: 2.486 MB / 414.2 MB, free: 13.55 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.001352/0.4147, allocations: 0.6177 MB / 414.9 MB, free: 12.94 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004846/0.4153, allocations: 228.7 kB / 415.1 MB, free: 12.71 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001176/0.4164, allocations: 446.4 kB / 415.5 MB, free: 12.27 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005992/0.4225, allocations: 2.932 MB / 418.4 MB, free: 9.34 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001056/0.4226, allocations: 16 kB / 418.5 MB, free: 9.324 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02343/0.4461, allocations: 7.269 MB / 425.7 MB, free: 2.047 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003007/0.4464, allocations: 83.66 kB / 425.8 MB, free: 1.965 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003313/0.4468, allocations: 109.5 kB / 425.9 MB, free: 1.852 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.008882/0.4557, allocations: 3.095 MB / 429 MB, free: 14.75 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.679e-06/0.4557, allocations: 0 / 429 MB, free: 14.75 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.651e-06/0.4557, allocations: 0 / 429 MB, free: 14.75 MB / 362.7 MB Notification: Performance of Transformations before backend: time 9.239e-06/0.4558, allocations: 0 / 429 MB, free: 14.75 MB / 362.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.003989/0.4598, allocations: 1.263 MB / 430.3 MB, free: 13.44 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.803e-05/0.4598, allocations: 8.031 kB / 430.3 MB, free: 13.43 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002631/0.4625, allocations: 243.2 kB / 430.5 MB, free: 13.19 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008503/0.4634, allocations: 394.7 kB / 430.9 MB, free: 12.76 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.56e-05/0.4634, allocations: 32.66 kB / 430.9 MB, free: 12.73 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.348e-05/0.4635, allocations: 28 kB / 431 MB, free: 12.7 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00222/0.4658, allocations: 0.6274 MB / 431.6 MB, free: 12.04 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.661e-05/0.4658, allocations: 0 / 431.6 MB, free: 12.04 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.056e-05/0.4659, allocations: 12 kB / 431.6 MB, free: 12.03 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.968e-05/0.4659, allocations: 8 kB / 431.6 MB, free: 12.02 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002361/0.4683, allocations: 0.6031 MB / 432.2 MB, free: 11.42 MB / 362.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.004306/0.4726, allocations: 2.594 MB / 434.8 MB, free: 8.574 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002018/0.4747, allocations: 474.1 kB / 435.3 MB, free: 8.102 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.4221/0.8969, allocations: 52.02 MB / 487.3 MB, free: 88.21 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.707e-05/0.8969, allocations: 34.28 kB / 487.3 MB, free: 88.17 MB / 394.7 MB Notification: Performance of pre-optimization done (n=25): time 3.718e-06/0.897, allocations: 0 / 487.3 MB, free: 88.17 MB / 394.7 MB Notification: Performance of matching and sorting (n=25): time 0.003591/0.9006, allocations: 0.8409 MB / 488.2 MB, free: 87.66 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.707e-05/0.9006, allocations: 110.8 kB / 488.3 MB, free: 87.53 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004674/0.9011, allocations: 353.8 kB / 488.6 MB, free: 87.18 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 3.922e-05/0.9012, allocations: 29.7 kB / 488.6 MB, free: 87.15 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001324/0.9013, allocations: 292.6 kB / 488.9 MB, free: 86.9 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.327e-05/0.9014, allocations: 85.11 kB / 489 MB, free: 86.82 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.618e-05/0.9014, allocations: 8 kB / 489 MB, free: 86.81 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 7.132e-05/0.9015, allocations: 323.3 kB / 489.3 MB, free: 86.49 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004947/0.902, allocations: 175.9 kB / 489.5 MB, free: 86.32 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005388/0.9026, allocations: 310.9 kB / 489.8 MB, free: 85.96 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000524/0.9031, allocations: 195 kB / 490 MB, free: 85.78 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.377e-06/0.9032, allocations: 4 kB / 490 MB, free: 85.77 MB / 394.7 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.001348/0.9045, allocations: 0.4933 MB / 490.5 MB, free: 85.27 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.75e-05/0.9046, allocations: 203 kB / 490.7 MB, free: 85.02 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.078e-05/0.9046, allocations: 4 kB / 490.7 MB, free: 85.02 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.262e-05/0.9047, allocations: 8 kB / 490.7 MB, free: 85.01 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000535/0.9052, allocations: 119.5 kB / 490.8 MB, free: 84.89 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.206e-05/0.9053, allocations: 7.938 kB / 490.8 MB, free: 84.89 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005248/0.9058, allocations: 80.58 kB / 490.9 MB, free: 84.81 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.12e-05/0.9059, allocations: 24.55 kB / 490.9 MB, free: 84.79 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.093e-05/0.9059, allocations: 5.719 kB / 490.9 MB, free: 84.78 MB / 394.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001183/0.9071, allocations: 459.6 kB / 491.4 MB, free: 84.33 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.603e-06/0.9071, allocations: 4 kB / 491.4 MB, free: 84.33 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.349e-05/0.9071, allocations: 11.95 kB / 491.4 MB, free: 84.32 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005024/0.9076, allocations: 116.1 kB / 491.5 MB, free: 84.2 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.039e-05/0.9077, allocations: 10.81 kB / 491.5 MB, free: 84.2 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003874/0.9081, allocations: 65.89 kB / 491.6 MB, free: 84.13 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.46e-05/0.9081, allocations: 19.98 kB / 491.6 MB, free: 84.11 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.0002543/0.9084, allocations: 241 kB / 491.9 MB, free: 83.87 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001072/0.9085, allocations: 35.53 kB / 491.9 MB, free: 83.83 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002721/0.9112, allocations: 1.992 MB / 493.9 MB, free: 81.83 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.06e-05/0.9113, allocations: 35.89 kB / 493.9 MB, free: 81.79 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.79e-06/0.9113, allocations: 4 kB / 493.9 MB, free: 81.79 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.689e-06/0.9113, allocations: 0 / 493.9 MB, free: 81.79 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001112/0.9125, allocations: 1.025 MB / 494.9 MB, free: 80.72 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.725e-06/0.9125, allocations: 4 kB / 494.9 MB, free: 80.72 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004097/0.9129, allocations: 87.88 kB / 495 MB, free: 80.63 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.026e-06/0.9129, allocations: 4 kB / 495 MB, free: 80.63 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.884e-05/0.913, allocations: 11.06 kB / 495 MB, free: 80.62 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.757e-06/0.913, allocations: 0 / 495 MB, free: 80.62 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.372e-06/0.913, allocations: 7.344 kB / 495.1 MB, free: 80.62 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001646/0.9147, allocations: 1.134 MB / 496.2 MB, free: 79.47 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002848/0.915, allocations: 255.4 kB / 496.4 MB, free: 79.2 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.288e-05/0.9151, allocations: 11.75 kB / 496.5 MB, free: 79.19 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004178/0.9155, allocations: 43.95 kB / 496.5 MB, free: 79.15 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.378e-05/0.9156, allocations: 35.91 kB / 496.5 MB, free: 79.11 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.333e-05/0.9157, allocations: 12 kB / 496.5 MB, free: 79.1 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.000406/0.9161, allocations: 310.9 kB / 496.8 MB, free: 78.8 MB / 394.7 MB Notification: Performance of sort global known variables: time 9.01e-07/0.9161, allocations: 4 kB / 496.8 MB, free: 78.79 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.003061/0.9192, allocations: 1.146 MB / 498 MB, free: 77.73 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.005448/0.9247, allocations: 1.247 MB / 499.2 MB, free: 76.65 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.002047/0.9267, allocations: 0.9132 MB / 0.4884 GB, free: 75.74 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 5.191e-06/0.9268, allocations: 0 / 0.4884 GB, free: 75.74 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007736/0.9276, allocations: 0.534 MB / 0.489 GB, free: 75.2 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001201/0.9288, allocations: 194.4 kB / 0.4891 GB, free: 75.02 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0028/0.9316, allocations: 2.114 MB / 0.4912 GB, free: 72.92 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004179/0.9321, allocations: 0.9953 MB / 0.4922 GB, free: 71.9 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001852/0.9323, allocations: 51.42 kB / 0.4922 GB, free: 71.85 MB / 394.7 MB Notification: Performance of SimCode: time 1.514e-06/0.9323, allocations: 0 / 0.4922 GB, free: 71.85 MB / 394.7 MB Notification: Performance of Templates: time 0.04438/0.9767, allocations: 28.52 MB / 0.5201 GB, free: 43.34 MB / 394.7 MB