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.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,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Fluid_Dissipation_Verifications_HeatTransfer_StraightPipe_kc_turbulent",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.213/2.213, allocations: 234.9 MB / 250.4 MB, free: 9.695 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005529/0.0005532, allocations: 8 kB / 314.4 MB, free: 9.617 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3998/0.4004, 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): time 0.00304/0.4035, allocations: 1.63 MB / 370.9 MB, free: 11.11 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.002177/0.4057, allocations: 0.9758 MB / 371.9 MB, free: 10.13 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.803e-05/0.4058, allocations: 0 / 371.9 MB, free: 10.13 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002783/0.4061, allocations: 51.67 kB / 371.9 MB, free: 10.08 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00019/0.4063, allocations: 55.81 kB / 372 MB, free: 10.03 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006165/0.4069, allocations: 127.7 kB / 372.1 MB, free: 9.902 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003916/0.4073, allocations: 211.5 kB / 372.3 MB, free: 9.695 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.398e-05/0.4074, allocations: 36.72 kB / 372.4 MB, free: 9.66 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002123/0.4077, allocations: 99.55 kB / 372.5 MB, free: 9.562 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000211/0.4079, allocations: 111.5 kB / 372.6 MB, free: 9.453 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 4.561e-05/0.4079, allocations: 8 kB / 372.6 MB, free: 9.445 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000525/0.4085, allocations: 191.8 kB / 372.8 MB, free: 9.258 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001062/0.4086, allocations: 59.8 kB / 372.8 MB, free: 9.199 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 8.034e-05/0.4087, allocations: 65.52 kB / 372.9 MB, free: 9.129 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004989/0.4092, allocations: 248.4 kB / 373.1 MB, free: 8.887 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.405e-06/0.4092, allocations: 0 / 373.1 MB, free: 8.887 MB / 298.7 MB Notification: Performance of FrontEnd: time 4.418e-06/0.4092, allocations: 0 / 373.1 MB, free: 8.887 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.067e-05/0.4093, allocations: 3.938 kB / 373.1 MB, free: 8.883 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: 74 * Number of variables: 74 Notification: Performance of Generate backend data structure: time 0.001478/0.4107, allocations: 0.5962 MB / 373.7 MB, free: 8.238 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.093e-05/0.4108, allocations: 12.03 kB / 373.7 MB, free: 8.227 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001114/0.4109, allocations: 70.52 kB / 373.8 MB, free: 8.148 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.968e-05/0.411, allocations: 27.62 kB / 373.8 MB, free: 8.121 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003977/0.4114, allocations: 254.5 kB / 374.1 MB, free: 7.832 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.456e-05/0.4115, allocations: 20.56 kB / 374.1 MB, free: 7.812 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.279e-05/0.4115, allocations: 24 kB / 374.1 MB, free: 7.789 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001198/0.4128, allocations: 449.8 kB / 374.6 MB, free: 7.328 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.758e-05/0.4128, allocations: 8 kB / 374.6 MB, free: 7.32 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.972e-05/0.4129, allocations: 15.95 kB / 374.6 MB, free: 7.305 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.542e-05/0.4129, allocations: 12.56 kB / 374.6 MB, free: 7.293 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001256/0.4142, allocations: 345.9 kB / 374.9 MB, free: 6.953 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00223/0.4164, allocations: 1.104 MB / 376 MB, free: 5.789 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008769/0.4173, allocations: 259.7 kB / 376.3 MB, free: 5.508 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.464e-05/0.4174, allocations: 0 / 376.3 MB, free: 5.508 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.774e-05/0.4174, allocations: 38.56 kB / 376.3 MB, free: 5.461 MB / 298.7 MB Notification: Performance of pre-optimization done (n=14): time 2.124e-06/0.4175, allocations: 0 / 376.3 MB, free: 5.461 MB / 298.7 MB Notification: Performance of matching and sorting (n=14): time 0.001952/0.4194, allocations: 0.6214 MB / 377 MB, free: 4.777 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.013e-05/0.4195, allocations: 106.9 kB / 377.1 MB, free: 4.648 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006847/0.4202, allocations: 405.5 kB / 377.5 MB, free: 4.242 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 3.611e-05/0.4203, allocations: 25.7 kB / 377.5 MB, free: 4.211 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001929/0.4205, allocations: 242.2 kB / 377.7 MB, free: 3.973 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.575e-05/0.4206, allocations: 55.28 kB / 377.8 MB, free: 3.918 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.751e-05/0.4206, allocations: 4 kB / 377.8 MB, free: 3.914 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001532/0.4208, allocations: 322.8 kB / 378.1 MB, free: 3.59 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005889/0.4214, allocations: 128.1 kB / 378.2 MB, free: 3.465 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006649/0.422, allocations: 247.7 kB / 378.5 MB, free: 3.168 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006561/0.4227, allocations: 163.8 kB / 378.6 MB, free: 3.008 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.094e-06/0.4227, allocations: 4 kB / 378.6 MB, free: 3.004 MB / 298.7 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.00148/0.4242, allocations: 397.4 kB / 379 MB, free: 2.609 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.399e-05/0.4243, allocations: 8 kB / 379 MB, free: 2.602 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.684e-05/0.4243, allocations: 23.92 kB / 379 MB, free: 2.578 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.555e-05/0.4244, allocations: 11.98 kB / 379.1 MB, free: 2.566 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004399/0.4248, allocations: 55.89 kB / 379.1 MB, free: 2.512 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.516e-05/0.4249, allocations: 7.953 kB / 379.1 MB, free: 2.504 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005027/0.4254, allocations: 71.5 kB / 379.2 MB, free: 2.434 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.873e-05/0.4254, allocations: 16 kB / 379.2 MB, free: 2.418 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 18 * 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 (27): * Single equations (assignments): 21 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 6 * 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.0002852/0.4257, allocations: 169.7 kB / 379.4 MB, free: 2.242 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001198/0.4259, allocations: 31.62 kB / 379.4 MB, free: 2.211 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001069/0.4269, allocations: 300.1 kB / 379.7 MB, free: 1.91 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.604e-05/0.427, allocations: 4 kB / 379.7 MB, free: 1.906 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.223e-06/0.427, allocations: 3.984 kB / 379.7 MB, free: 1.902 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.783e-06/0.427, allocations: 7.953 kB / 379.7 MB, free: 1.895 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006718/0.4277, allocations: 297.4 kB / 380 MB, free: 1.555 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.346e-05/0.4278, allocations: 23.97 kB / 380 MB, free: 1.531 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002768/0.4281, allocations: 27.97 kB / 380.1 MB, free: 1.504 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.385e-06/0.4281, allocations: 4 kB / 380.1 MB, free: 1.5 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.993e-05/0.4281, allocations: 8 kB / 380.1 MB, free: 1.492 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.476e-06/0.4281, allocations: 0 / 380.1 MB, free: 1.492 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.366e-06/0.4281, allocations: 7.938 kB / 380.1 MB, free: 1.484 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001272/0.4294, allocations: 0.5287 MB / 380.6 MB, free: 0.9375 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001378/0.4296, allocations: 116.7 kB / 380.7 MB, free: 0.8047 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.251e-05/0.4297, allocations: 0 / 380.7 MB, free: 0.8047 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004335/0.4301, allocations: 23.98 kB / 380.7 MB, free: 0.7812 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.649e-05/0.4302, allocations: 19.97 kB / 380.8 MB, free: 0.7617 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.046e-05/0.4303, allocations: 12 kB / 380.8 MB, free: 0.75 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0004703/0.4307, allocations: 291.1 kB / 381.1 MB, free: 480 kB / 298.7 MB Notification: Performance of sort global known variables: time 3.7e-07/0.4308, allocations: 0 / 381.1 MB, free: 480 kB / 298.7 MB Notification: Performance of remove unused functions: time 0.0006662/0.4314, allocations: 87.98 kB / 381.1 MB, free: 392 kB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * 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 (11): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 6 * 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.001864/0.4333, allocations: 1.121 MB / 382.3 MB, free: 15.23 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001367/0.4347, allocations: 454.8 kB / 382.7 MB, free: 14.75 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.825e-06/0.4347, allocations: 4.062 kB / 382.7 MB, free: 14.75 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006798/0.4354, allocations: 278.1 kB / 383 MB, free: 14.44 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000651/0.4361, allocations: 73.55 kB / 383.1 MB, free: 14.37 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005754/0.4418, allocations: 2.214 MB / 385.3 MB, free: 12.04 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005207/0.4424, allocations: 0.7989 MB / 386.1 MB, free: 11.21 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002266/0.4427, allocations: 87.41 kB / 386.2 MB, free: 11.13 MB / 314.7 MB Notification: Performance of SimCode: time 1.072e-06/0.4427, allocations: 0 / 386.2 MB, free: 11.13 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.598/3.041, allocations: 6.873 MB / 393 MB, free: 4.281 MB / 314.7 MB "Error: Could not read variable _derdummy in file ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.Dissipation.Verifications.HeatTransfer.StraightPipe.kc_turbulent_res.mat. Warning: Get data of variable _derdummy from file ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.Dissipation.Verifications.HeatTransfer.StraightPipe.kc_turbulent_res.mat failed! Error: Could not read variable _dummy in file ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.Dissipation.Verifications.HeatTransfer.StraightPipe.kc_turbulent_res.mat. Warning: Get data of variable _dummy from file ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.Dissipation.Verifications.HeatTransfer.StraightPipe.kc_turbulent_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],m_flow[1],m_flow[2],m_flow[3],Re_1[1],Re_1[2],Re_1[3],Nu_1[1],Nu_1[2],Nu_1[3],Nu_2[1],Nu_2[2],Nu_2[3],Re,Pr[1],Pr[2],Pr[3],input_mflow_0.y,input_mflow_1.y,input_mflow_2.y Variables in the result:L,Nu_1[1],Nu_1[2],Nu_1[3],Nu_2[1],Nu_2[2],Nu_2[3],Pr[1],Pr[2],Pr[3],Re,Re_1[1],Re_1[2],Re_1[3],cp[1],cp[2],cp[3],d_hyd,eta[1],eta[2],eta[3],frac_dtoL,input_mflow_0.duration,input_mflow_0.height,input_mflow_0.offset,input_mflow_0.startTime,input_mflow_0.y,input_mflow_1.amplitude,input_mflow_1.freqHz,input_mflow_1.offset,input_mflow_1.phase,input_mflow_1.startTime,input_mflow_1.y,input_mflow_2.fallTimeConst,input_mflow_2.offset,input_mflow_2.outMax,input_mflow_2.riseTime,input_mflow_2.riseTimeConst,input_mflow_2.startTime,input_mflow_2.y,input_mflow_2.y_riseTime,lambda[1],lambda[2],lambda[3],m_flow[1],m_flow[2],m_flow[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