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.HeatExchanger.kc_flatTube_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.HeatExchanger.kc_flatTube_KC,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Fluid_Dissipation_Verifications_HeatTransfer_HeatExchanger_kc_flatTube_KC",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.338/2.338, allocations: 234.9 MB / 250.5 MB, free: 9.559 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004295/0.0004297, allocations: 11.94 kB / 314.4 MB, free: 9.492 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3363/0.3368, allocations: 54.87 MB / 369.3 MB, free: 10.71 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.Dissipation.Verifications.HeatTransfer.HeatExchanger.kc_flatTube_KC): time 0.003064/0.3399, allocations: 1.747 MB / 371 MB, free: 8.945 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.00203/0.342, allocations: 0.9639 MB / 372 MB, free: 7.977 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001296/0.3422, allocations: 11.94 kB / 372 MB, free: 7.965 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003866/0.3426, allocations: 83.55 kB / 372.1 MB, free: 7.883 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003956/0.343, allocations: 83.7 kB / 372.2 MB, free: 7.801 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003886/0.3434, allocations: 87.81 kB / 372.3 MB, free: 7.715 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002514/0.3436, allocations: 135.6 kB / 372.4 MB, free: 7.582 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.586e-05/0.3437, allocations: 21.38 kB / 372.4 MB, free: 7.559 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00016/0.3439, allocations: 67.64 kB / 372.5 MB, free: 7.492 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001601/0.3441, allocations: 83.55 kB / 372.6 MB, free: 7.41 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.697e-05/0.3441, allocations: 4 kB / 372.6 MB, free: 7.406 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006387/0.3448, allocations: 259.7 kB / 372.8 MB, free: 7.152 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 6.032e-05/0.3449, allocations: 23.84 kB / 372.8 MB, free: 7.129 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 6.356e-05/0.3449, allocations: 57.58 kB / 372.9 MB, free: 7.066 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003999/0.3453, allocations: 183.5 kB / 373.1 MB, free: 6.887 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.955e-06/0.3454, allocations: 4 kB / 373.1 MB, free: 6.883 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.743e-06/0.3454, allocations: 0 / 373.1 MB, free: 6.883 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.16e-06/0.3454, allocations: 0 / 373.1 MB, free: 6.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: 52 * Number of variables: 52 Notification: Performance of Generate backend data structure: time 0.0007343/0.3461, allocations: 486.9 kB / 373.6 MB, free: 6.359 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.624e-05/0.3462, allocations: 8.031 kB / 373.6 MB, free: 6.352 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.934e-05/0.3463, allocations: 54.55 kB / 373.6 MB, free: 6.289 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.223e-05/0.3463, allocations: 23.72 kB / 373.6 MB, free: 6.266 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002661/0.3466, allocations: 211.2 kB / 373.9 MB, free: 6.02 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.075e-05/0.3467, allocations: 20.44 kB / 373.9 MB, free: 6 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.072e-05/0.3467, allocations: 19.98 kB / 373.9 MB, free: 5.98 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006532/0.3474, allocations: 227.3 kB / 374.1 MB, free: 5.754 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.434e-05/0.3474, allocations: 0 / 374.1 MB, free: 5.754 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.948e-05/0.3475, allocations: 15.89 kB / 374.1 MB, free: 5.738 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.178e-05/0.3475, allocations: 8 kB / 374.1 MB, free: 5.73 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007257/0.3482, allocations: 257.6 kB / 374.4 MB, free: 5.477 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001362/0.3496, allocations: 0.6233 MB / 375 MB, free: 4.805 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004401/0.3501, allocations: 106.6 kB / 375.1 MB, free: 4.691 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.652e-05/0.3501, allocations: 4.062 kB / 375.1 MB, free: 4.688 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.622e-05/0.3501, allocations: 34.56 kB / 375.2 MB, free: 4.645 MB / 298.7 MB Notification: Performance of pre-optimization done (n=9): time 2.355e-06/0.3502, allocations: 4 kB / 375.2 MB, free: 4.641 MB / 298.7 MB Notification: Performance of matching and sorting (n=9): time 0.0008767/0.351, allocations: 181.5 kB / 375.3 MB, free: 4.457 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.006e-05/0.3511, allocations: 55.41 kB / 375.4 MB, free: 4.391 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003681/0.3515, allocations: 267 kB / 375.6 MB, free: 4.125 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.574e-05/0.3515, allocations: 33.64 kB / 375.7 MB, free: 4.086 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001631/0.3517, allocations: 221.8 kB / 375.9 MB, free: 3.867 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.784e-05/0.3518, allocations: 35.53 kB / 375.9 MB, free: 3.832 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.121e-05/0.3518, allocations: 4 kB / 375.9 MB, free: 3.828 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001258/0.3519, allocations: 326.8 kB / 376.3 MB, free: 3.5 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002654/0.3522, allocations: 55.91 kB / 376.3 MB, free: 3.445 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003418/0.3526, allocations: 152.8 kB / 376.5 MB, free: 3.25 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003017/0.3529, allocations: 67.92 kB / 376.5 MB, free: 3.184 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.013e-06/0.3529, allocations: 4 kB / 376.5 MB, free: 3.18 MB / 298.7 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0007855/0.3537, allocations: 233.1 kB / 376.8 MB, free: 2.945 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.2e-05/0.3537, allocations: 8 kB / 376.8 MB, free: 2.938 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.041e-05/0.3538, allocations: 4 kB / 376.8 MB, free: 2.934 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.032e-05/0.3538, allocations: 4.438 kB / 376.8 MB, free: 2.93 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006673/0.3545, allocations: 95.84 kB / 376.9 MB, free: 2.836 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000924/0.3554, allocations: 1.211 MB / 378.1 MB, free: 1.578 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003376/0.3558, allocations: 39.86 kB / 378.1 MB, free: 1.539 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.887e-05/0.3558, allocations: 12 kB / 378.1 MB, free: 1.527 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * Number of states: 0 () * Number of discrete variables: 2 (m_flow_IN_con_2.geometry,m_flow_IN_con_1.geometry) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (25): * Single equations (assignments): 23 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * 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: 2 {1,1} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000175/0.356, allocations: 134.1 kB / 378.3 MB, free: 1.387 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.16e-05/0.3561, allocations: 23.72 kB / 378.3 MB, free: 1.363 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007422/0.3568, allocations: 191.1 kB / 378.5 MB, free: 1.168 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.779e-06/0.3568, allocations: 0 / 378.5 MB, free: 1.168 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.19e-06/0.3568, allocations: 4 kB / 378.5 MB, free: 1.164 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.907e-06/0.3569, allocations: 0 / 378.5 MB, free: 1.164 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009866/0.3579, allocations: 448.1 kB / 378.9 MB, free: 0.6641 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.657e-06/0.3579, allocations: 4.062 kB / 378.9 MB, free: 0.6602 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004842/0.3584, allocations: 67.89 kB / 379 MB, free: 0.5938 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.321e-06/0.3584, allocations: 96 / 379 MB, free: 0.5938 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.11e-05/0.3584, allocations: 7.938 kB / 379 MB, free: 0.5859 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000899/0.3593, allocations: 1.215 MB / 380.2 MB, free: 15.32 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.929e-06/0.3594, allocations: 3.938 kB / 380.2 MB, free: 15.32 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006367/0.36, allocations: 261 kB / 380.5 MB, free: 15.04 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.429e-05/0.3601, allocations: 96.81 kB / 380.6 MB, free: 14.93 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.893e-05/0.3602, allocations: 8 kB / 380.6 MB, free: 14.92 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002503/0.3605, allocations: 4 kB / 380.6 MB, free: 14.92 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.526e-05/0.3605, allocations: 15.92 kB / 380.6 MB, free: 14.9 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.91e-05/0.3606, allocations: 4 kB / 380.6 MB, free: 14.9 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0002564/0.3608, allocations: 190 kB / 380.8 MB, free: 14.71 MB / 314.7 MB Notification: Performance of sort global known variables: time 4.21e-07/0.3608, allocations: 0 / 380.8 MB, free: 14.71 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0004947/0.3613, allocations: 71.92 kB / 380.8 MB, free: 14.64 MB / 314.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 (9): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * 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: 2 {1,1} * Without analytic Jacobian: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001164/0.3625, allocations: 0.8349 MB / 381.7 MB, free: 13.77 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0009774/0.3635, allocations: 175.9 kB / 381.9 MB, free: 13.6 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.356e-06/0.3635, allocations: 0 / 381.9 MB, free: 13.6 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005423/0.3641, allocations: 91.88 kB / 381.9 MB, free: 13.51 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003604/0.3645, allocations: 32.14 kB / 382 MB, free: 13.48 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003244/0.3677, allocations: 1.432 MB / 383.4 MB, free: 11.95 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003384/0.3681, allocations: 0.7323 MB / 384.1 MB, free: 11.19 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001654/0.3683, allocations: 63.42 kB / 384.2 MB, free: 11.13 MB / 314.7 MB Notification: Performance of SimCode: time 8.62e-07/0.3683, allocations: 0 / 384.2 MB, free: 11.13 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.76/3.129, allocations: 5.12 MB / 389.3 MB, free: 6.012 MB / 314.7 MB "Error: Could not read variable _derdummy in file ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.Dissipation.Verifications.HeatTransfer.HeatExchanger.kc_flatTube_KC_res.mat. Warning: Get data of variable _derdummy from file ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.Dissipation.Verifications.HeatTransfer.HeatExchanger.kc_flatTube_KC_res.mat failed! Error: Could not read variable _dummy in file ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.Dissipation.Verifications.HeatTransfer.HeatExchanger.kc_flatTube_KC_res.mat. Warning: Get data of variable _dummy from file ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.Dissipation.Verifications.HeatTransfer.HeatExchanger.kc_flatTube_KC_res.mat failed! " Variables in the reference:time,h_2,l_2,s_2,t_2,Nu,m_flow[1],m_flow[2],kc_1,kc_2,Re_1,Re_2,input_Nu.y Variables in the result:A_fr,D_h_2,D_m_1,D_m_2,F_l_1,F_p_1,L_l_1,L_p_1,Nu,Phi_1,Re_1,Re_2,T_d_1,T_p_1,alpha_2,cp,delta_2,delta_f_1,eta,gamma_2,h_2,input_Nu.duration,input_Nu.height,input_Nu.offset,input_Nu.startTime,input_Nu.y,kc_1,kc_2,l_2,lambda,m_flow[1],m_flow[2],m_flow_IN_con_1.A_fr,m_flow_IN_con_1.D_h,m_flow_IN_con_1.D_m,m_flow_IN_con_1.F_l,m_flow_IN_con_1.F_p,m_flow_IN_con_1.L_l,m_flow_IN_con_1.L_p,m_flow_IN_con_1.Phi,m_flow_IN_con_1.T_d,m_flow_IN_con_1.T_p,m_flow_IN_con_1.alpha,m_flow_IN_con_1.delta,m_flow_IN_con_1.delta_f,m_flow_IN_con_1.gamma,m_flow_IN_con_1.geometry,m_flow_IN_con_2.A_fr,m_flow_IN_con_2.D_h,m_flow_IN_con_2.D_m,m_flow_IN_con_2.F_l,m_flow_IN_con_2.F_p,m_flow_IN_con_2.L_l,m_flow_IN_con_2.L_p,m_flow_IN_con_2.Phi,m_flow_IN_con_2.T_d,m_flow_IN_con_2.T_p,m_flow_IN_con_2.alpha,m_flow_IN_con_2.delta,m_flow_IN_con_2.delta_f,m_flow_IN_con_2.gamma,m_flow_IN_con_2.geometry,m_flow_IN_var_1.cp,m_flow_IN_var_1.eta,m_flow_IN_var_1.lambda,m_flow_IN_var_1.m_flow,m_flow_IN_var_1.rho,m_flow_IN_var_2.cp,m_flow_IN_var_2.eta,m_flow_IN_var_2.lambda,m_flow_IN_var_2.m_flow,m_flow_IN_var_2.rho,n,rho,s_2,t_2,time