Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.Dissipation.Verifications.HeatTransfer.StraightPipe.kc_turbulent_KC.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Fluid.Dissipation.Verifications.HeatTransfer.StraightPipe.kc_turbulent_KC,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Fluid_Dissipation_Verifications_HeatTransfer_StraightPipe_kc_turbulent_KC",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.483/2.483, allocations: 234.9 MB / 250.4 MB, free: 9.566 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006345/0.0006347, allocations: 15.98 kB / 314.4 MB, free: 9.488 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3652/0.3658, allocations: 54.85 MB / 369.3 MB, free: 12.77 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.Dissipation.Verifications.HeatTransfer.StraightPipe.kc_turbulent_KC): time 0.002833/0.3687, allocations: 1.501 MB / 370.8 MB, free: 11.25 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001765/0.3706, allocations: 0.7496 MB / 371.5 MB, free: 10.49 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.26e-05/0.3707, allocations: 4 kB / 371.5 MB, free: 10.49 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002937/0.371, allocations: 39.75 kB / 371.6 MB, free: 10.45 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003173/0.3713, allocations: 55.83 kB / 371.6 MB, free: 10.39 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003648/0.3717, allocations: 83.77 kB / 371.7 MB, free: 10.31 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003371/0.3721, allocations: 163.7 kB / 371.9 MB, free: 10.15 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.018e-05/0.3722, allocations: 24.39 kB / 371.9 MB, free: 10.12 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001784/0.3724, allocations: 75.64 kB / 372 MB, free: 10.05 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001801/0.3726, allocations: 95.61 kB / 372.1 MB, free: 9.957 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 3.294e-05/0.3726, allocations: 4 kB / 372.1 MB, free: 9.953 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003721/0.373, allocations: 127.8 kB / 372.2 MB, free: 9.828 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 8.81e-05/0.3731, allocations: 51.81 kB / 372.2 MB, free: 9.777 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 7.757e-05/0.3732, allocations: 61.58 kB / 372.3 MB, free: 9.711 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003792/0.3736, allocations: 188.5 kB / 372.5 MB, free: 9.527 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.075e-06/0.3736, allocations: 0 / 372.5 MB, free: 9.527 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.565e-06/0.3736, allocations: 0 / 372.5 MB, free: 9.527 MB / 298.7 MB Notification: Performance of Transformations before backend: time 6.042e-06/0.3736, allocations: 0 / 372.5 MB, free: 9.527 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 73 * Number of variables: 73 Notification: Performance of Generate backend data structure: time 0.001093/0.3747, allocations: 0.5145 MB / 373 MB, free: 8.965 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.025e-05/0.3748, allocations: 11.97 kB / 373 MB, free: 8.953 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001011/0.3749, allocations: 66.53 kB / 373.1 MB, free: 8.879 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.621e-05/0.375, allocations: 23.72 kB / 373.1 MB, free: 8.855 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000358/0.3754, allocations: 238.6 kB / 373.3 MB, free: 8.582 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.176e-05/0.3754, allocations: 20.55 kB / 373.4 MB, free: 8.562 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.921e-05/0.3755, allocations: 24 kB / 373.4 MB, free: 8.539 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001016/0.3765, allocations: 389.1 kB / 373.8 MB, free: 8.152 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.675e-05/0.3765, allocations: 0 / 373.8 MB, free: 8.152 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.818e-05/0.3766, allocations: 8 kB / 373.8 MB, free: 8.145 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.256e-05/0.3767, allocations: 24.64 kB / 373.8 MB, free: 8.121 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001057/0.3777, allocations: 386.3 kB / 374.2 MB, free: 7.742 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002053/0.3798, allocations: 0.8463 MB / 375 MB, free: 6.844 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008595/0.3807, allocations: 273.4 kB / 375.3 MB, free: 6.57 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.703e-05/0.3808, allocations: 7.984 kB / 375.3 MB, free: 6.562 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.13e-05/0.3808, allocations: 30.56 kB / 375.3 MB, free: 6.523 MB / 298.7 MB Notification: Performance of pre-optimization done (n=16): time 3.256e-06/0.3808, allocations: 0 / 375.3 MB, free: 6.523 MB / 298.7 MB Notification: Performance of matching and sorting (n=16): time 0.001333/0.3822, allocations: 345.3 kB / 375.7 MB, free: 6.18 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.057e-05/0.3822, allocations: 51.41 kB / 375.7 MB, free: 6.117 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005519/0.3828, allocations: 346.8 kB / 376 MB, free: 5.773 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 3.813e-05/0.3828, allocations: 29.7 kB / 376.1 MB, free: 5.738 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000155/0.383, allocations: 218.4 kB / 376.3 MB, free: 5.523 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.859e-05/0.3831, allocations: 59.19 kB / 376.3 MB, free: 5.465 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.306e-05/0.3831, allocations: 7.938 kB / 376.4 MB, free: 5.457 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001349/0.3833, allocations: 322.8 kB / 376.7 MB, free: 5.133 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003903/0.3837, allocations: 104.4 kB / 376.8 MB, free: 5.031 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004935/0.3842, allocations: 196 kB / 377 MB, free: 4.801 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004547/0.3847, allocations: 131.8 kB / 377.1 MB, free: 4.672 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.268e-06/0.3847, allocations: 0 / 377.1 MB, free: 4.672 MB / 298.7 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.001079/0.3858, allocations: 339.2 kB / 377.4 MB, free: 4.336 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.274e-05/0.3858, allocations: 4 kB / 377.4 MB, free: 4.332 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.143e-05/0.3858, allocations: 4 kB / 377.4 MB, free: 4.328 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.318e-05/0.3859, allocations: 4 kB / 377.4 MB, free: 4.324 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001075/0.387, allocations: 123.8 kB / 377.6 MB, free: 4.203 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00262/0.3896, allocations: 3.653 MB / 381.2 MB, free: 420 kB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004173/0.3901, allocations: 51.81 kB / 381.3 MB, free: 368 kB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.208e-05/0.3901, allocations: 19.94 kB / 381.3 MB, free: 348 kB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 6 (m_flow_IN_con_2[3].roughness,m_flow_IN_con_2[2].roughness,m_flow_IN_con_2[1].roughness,m_flow_IN_con_1[3].roughness,m_flow_IN_con_1[2].roughness,m_flow_IN_con_1[1].roughness) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (28): * Single equations (assignments): 22 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 6 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 6 {1,1,1,1,1,1} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003258/0.3905, allocations: 173.7 kB / 381.5 MB, free: 164 kB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.29e-05/0.3905, allocations: 27.7 kB / 381.5 MB, free: 136 kB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001224/0.3918, allocations: 347.5 kB / 381.8 MB, free: 15.78 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.229e-06/0.3918, allocations: 0 / 381.8 MB, free: 15.78 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.965e-06/0.3918, allocations: 4 kB / 381.8 MB, free: 15.78 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.189e-06/0.3918, allocations: 0 / 381.8 MB, free: 15.78 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005865/0.3924, allocations: 293.5 kB / 382.1 MB, free: 15.44 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.276e-06/0.3925, allocations: 3.938 kB / 382.1 MB, free: 15.44 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009541/0.3934, allocations: 103.9 kB / 382.2 MB, free: 15.34 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.312e-06/0.3934, allocations: 4 kB / 382.2 MB, free: 15.33 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.055e-05/0.3935, allocations: 8 kB / 382.2 MB, free: 15.32 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00256/0.3961, allocations: 3.649 MB / 385.9 MB, free: 11.54 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.317e-06/0.3961, allocations: 0 / 385.9 MB, free: 11.54 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009592/0.3971, allocations: 365.6 kB / 386.2 MB, free: 11.16 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001227/0.3972, allocations: 100.8 kB / 386.3 MB, free: 11.05 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.817e-05/0.3973, allocations: 8 kB / 386.3 MB, free: 11.04 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002949/0.3976, allocations: 7.984 kB / 386.3 MB, free: 11.03 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.484e-05/0.3977, allocations: 19.97 kB / 386.4 MB, free: 11.01 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.247e-05/0.3978, allocations: 8 kB / 386.4 MB, free: 11 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0003989/0.3982, allocations: 241.9 kB / 386.6 MB, free: 10.77 MB / 314.7 MB Notification: Performance of sort global known variables: time 4e-07/0.3982, allocations: 0 / 386.6 MB, free: 10.77 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0005408/0.3987, allocations: 79.91 kB / 386.7 MB, free: 10.69 MB / 314.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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (16): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 6 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 6 {1,1,1,1,1,1} * Without analytic Jacobian: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001478/0.4002, allocations: 0.9235 MB / 387.6 MB, free: 9.742 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001696/0.402, allocations: 324.2 kB / 387.9 MB, free: 9.426 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.777e-06/0.402, allocations: 0 / 387.9 MB, free: 9.426 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001157/0.4032, allocations: 206.8 kB / 388.1 MB, free: 9.227 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005574/0.4037, allocations: 61.39 kB / 388.2 MB, free: 9.164 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004618/0.4084, allocations: 1.958 MB / 390.1 MB, free: 7.121 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004601/0.4089, allocations: 0.7912 MB / 390.9 MB, free: 6.301 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002256/0.4091, allocations: 83.39 kB / 391 MB, free: 6.219 MB / 314.7 MB Notification: Performance of SimCode: time 1.734e-06/0.4091, allocations: 0 / 391 MB, free: 6.219 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.953/3.362, allocations: 11.82 MB / 402.8 MB, free: 10.41 MB / 330.7 MB "Warning: Resultfile and Reference have different end time points! Reffile[5004]=1.010000 File[14]=0.132626 Error: Could not read variable _derdummy in file ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.Dissipation.Verifications.HeatTransfer.StraightPipe.kc_turbulent_KC_res.mat. Warning: Get data of variable _derdummy from file ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.Dissipation.Verifications.HeatTransfer.StraightPipe.kc_turbulent_KC_res.mat failed! Error: Could not read variable _dummy in file ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.Dissipation.Verifications.HeatTransfer.StraightPipe.kc_turbulent_KC_res.mat. Warning: Get data of variable _dummy from file ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.Dissipation.Verifications.HeatTransfer.StraightPipe.kc_turbulent_KC_res.mat failed! " Variables in the reference:time,cp[1],cp[2],cp[3],eta[1],eta[2],eta[3],lambda[1],lambda[2],lambda[3],rho[1],rho[2],rho[3],Nu[1],Nu[2],Nu[3],m_flow_1[1],m_flow_1[2],m_flow_1[3],m_flow_2[1],m_flow_2[2],m_flow_2[3],kc[1],kc[2],kc[3],Re_1[1],Re_1[2],Re_1[3],Re_2[1],Re_2[2],Re_2[3],input_Nu.y Variables in the result:L,Nu[1],Nu[2],Nu[3],Re_1[1],Re_1[2],Re_1[3],Re_2[1],Re_2[2],Re_2[3],cp[1],cp[2],cp[3],d_hyd,eta[1],eta[2],eta[3],input_Nu.duration,input_Nu.height,input_Nu.offset,input_Nu.startTime,input_Nu.y,kc[1],kc[2],kc[3],lambda[1],lambda[2],lambda[3],m_flow_1[1],m_flow_1[2],m_flow_1[3],m_flow_2[1],m_flow_2[2],m_flow_2[3],m_flow_IN_con_1[1].K,m_flow_IN_con_1[1].L,m_flow_IN_con_1[1].d_hyd,m_flow_IN_con_1[1].roughness,m_flow_IN_con_1[2].K,m_flow_IN_con_1[2].L,m_flow_IN_con_1[2].d_hyd,m_flow_IN_con_1[2].roughness,m_flow_IN_con_1[3].K,m_flow_IN_con_1[3].L,m_flow_IN_con_1[3].d_hyd,m_flow_IN_con_1[3].roughness,m_flow_IN_con_2[1].K,m_flow_IN_con_2[1].L,m_flow_IN_con_2[1].d_hyd,m_flow_IN_con_2[1].roughness,m_flow_IN_con_2[2].K,m_flow_IN_con_2[2].L,m_flow_IN_con_2[2].d_hyd,m_flow_IN_con_2[2].roughness,m_flow_IN_con_2[3].K,m_flow_IN_con_2[3].L,m_flow_IN_con_2[3].d_hyd,m_flow_IN_con_2[3].roughness,m_flow_IN_var_1[1].cp,m_flow_IN_var_1[1].eta,m_flow_IN_var_1[1].lambda,m_flow_IN_var_1[1].m_flow,m_flow_IN_var_1[1].rho,m_flow_IN_var_1[2].cp,m_flow_IN_var_1[2].eta,m_flow_IN_var_1[2].lambda,m_flow_IN_var_1[2].m_flow,m_flow_IN_var_1[2].rho,m_flow_IN_var_1[3].cp,m_flow_IN_var_1[3].eta,m_flow_IN_var_1[3].lambda,m_flow_IN_var_1[3].m_flow,m_flow_IN_var_1[3].rho,m_flow_IN_var_2[1].cp,m_flow_IN_var_2[1].eta,m_flow_IN_var_2[1].lambda,m_flow_IN_var_2[1].m_flow,m_flow_IN_var_2[1].rho,m_flow_IN_var_2[2].cp,m_flow_IN_var_2[2].eta,m_flow_IN_var_2[2].lambda,m_flow_IN_var_2[2].m_flow,m_flow_IN_var_2[2].rho,m_flow_IN_var_2[3].cp,m_flow_IN_var_2[3].eta,m_flow_IN_var_2[3].lambda,m_flow_IN_var_2[3].m_flow,m_flow_IN_var_2[3].rho,n,rho[1],rho[2],rho[3],time