Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.Bend.dp_curvedOverall_DPMFLOW.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.1/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.Bend.dp_curvedOverall_DPMFLOW,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_Fluid_Dissipation_Verifications_PressureLoss_Bend_dp_curvedOverall_DPMFLOW",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.071/2.071, allocations: 209.3 MB / 224.8 MB, free: 0.6133 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004881/0.0004881, allocations: 12.22 kB / 282.6 MB, free: 9.582 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4077/0.4082, allocations: 48.7 MB / 331.3 MB, free: 6.52 MB / 266.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.Bend.dp_curvedOverall_DPMFLOW): time 0.002958/0.4113, allocations: 1.716 MB / 333 MB, free: 5.594 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.003882/0.4152, allocations: 1.67 MB / 334.7 MB, free: 4.461 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000261/0.4155, allocations: 1.344 kB / 334.7 MB, free: 4.461 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003677/0.4159, allocations: 57.77 kB / 334.7 MB, free: 4.43 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000519/0.4164, allocations: 107.8 kB / 334.8 MB, free: 4.367 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002185/0.4186, allocations: 0.511 MB / 335.4 MB, free: 4.199 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005439/0.4192, allocations: 246.1 kB / 335.6 MB, free: 4.082 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001113/0.4193, allocations: 34.67 kB / 335.6 MB, free: 4.07 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003107/0.4196, allocations: 125.9 kB / 335.8 MB, free: 4.016 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002642/0.4199, allocations: 134.8 kB / 335.9 MB, free: 3.969 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 4.829e-05/0.42, allocations: 9.125 kB / 335.9 MB, free: 3.969 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003439/0.4234, allocations: 1.605 MB / 337.5 MB, free: 3.117 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002502/0.4237, allocations: 85.41 kB / 337.6 MB, free: 3.066 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001735/0.4239, allocations: 72.17 kB / 337.7 MB, free: 3.016 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001736/0.4257, allocations: 0.5121 MB / 338.2 MB, free: 2.766 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.127e-06/0.4257, allocations: 1.531 kB / 338.2 MB, free: 2.766 MB / 266.7 MB Notification: Performance of FrontEnd: time 2.775e-06/0.4257, allocations: 0 / 338.2 MB, free: 2.766 MB / 266.7 MB Notification: Performance of Transformations before backend: time 8.516e-06/0.4258, allocations: 0 / 338.2 MB, free: 2.766 MB / 266.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 103 * Number of variables: 103 Notification: Performance of Generate backend data structure: time 0.001396/0.4272, allocations: 0.6286 MB / 338.8 MB, free: 2.199 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.331e-05/0.4272, allocations: 9.25 kB / 338.8 MB, free: 2.199 MB / 266.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001192/0.4274, allocations: 81.91 kB / 338.9 MB, free: 2.125 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001025/0.4275, allocations: 32.41 kB / 338.9 MB, free: 2.109 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004365/0.4279, allocations: 261.4 kB / 339.2 MB, free: 1.855 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.557e-05/0.428, allocations: 25.2 kB / 339.2 MB, free: 1.844 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.833e-05/0.4281, allocations: 31.89 kB / 339.2 MB, free: 1.832 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001283/0.4294, allocations: 0.5031 MB / 339.7 MB, free: 1.555 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.298e-05/0.4294, allocations: 8 kB / 339.7 MB, free: 1.547 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.745e-05/0.4295, allocations: 10.91 kB / 339.7 MB, free: 1.539 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001054/0.4296, allocations: 45.22 kB / 339.8 MB, free: 1.531 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001451/0.4311, allocations: 0.5333 MB / 340.3 MB, free: 1.305 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002962/0.4341, allocations: 1.342 MB / 341.7 MB, free: 216 kB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001301/0.4354, allocations: 369.6 kB / 342 MB, free: 56 kB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.081e-05/0.4355, allocations: 16.72 kB / 342 MB, free: 44 kB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.165e-05/0.4356, allocations: 35.59 kB / 342.1 MB, free: 0 / 266.7 MB Notification: Performance of pre-optimization done (n=26): time 1.933e-06/0.4356, allocations: 0 / 342.1 MB, free: 0 / 266.7 MB Notification: Performance of matching and sorting (n=26): time 0.001727/0.4373, allocations: 437.3 kB / 342.5 MB, free: 15.8 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.051e-05/0.4374, allocations: 58.78 kB / 342.6 MB, free: 15.73 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00056/0.438, allocations: 308 kB / 342.9 MB, free: 15.54 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 6.717e-05/0.4381, allocations: 31.08 kB / 342.9 MB, free: 15.5 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001921/0.4383, allocations: 250.1 kB / 343.1 MB, free: 15.26 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001384/0.4384, allocations: 95 kB / 343.2 MB, free: 15.18 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.123e-05/0.4385, allocations: 4.656 kB / 343.2 MB, free: 15.18 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001383/0.4386, allocations: 331.9 kB / 343.6 MB, free: 14.85 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005029/0.4391, allocations: 124.4 kB / 343.7 MB, free: 14.8 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005051/0.4397, allocations: 157.8 kB / 343.8 MB, free: 14.71 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000536/0.4402, allocations: 155.3 kB / 344 MB, free: 14.64 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.368e-06/0.4402, allocations: 0 / 344 MB, free: 14.64 MB / 282.7 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.001211/0.4415, allocations: 367.3 kB / 344.3 MB, free: 14.48 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.404e-05/0.4415, allocations: 5.781 kB / 344.4 MB, free: 14.48 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.746e-06/0.4415, allocations: 1.25 kB / 344.4 MB, free: 14.48 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.917e-05/0.4416, allocations: 2.219 kB / 344.4 MB, free: 14.48 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001084/0.4427, allocations: 124.9 kB / 344.5 MB, free: 14.45 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002418/0.4451, allocations: 3.009 MB / 347.5 MB, free: 11.43 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005197/0.4457, allocations: 41.72 kB / 347.5 MB, free: 11.4 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.42e-05/0.4457, allocations: 18.3 kB / 347.5 MB, free: 11.39 MB / 282.7 MB Notification: Model statistics after passing the back-end for initialization: * 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 initialization (36): * Single equations (assignments): 31 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 5 * 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: 5 {1,1,1,1,1} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003519/0.4461, allocations: 180.8 kB / 347.7 MB, free: 11.24 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.755e-05/0.4462, allocations: 31.86 kB / 347.8 MB, free: 11.22 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001792/0.448, allocations: 469.2 kB / 348.2 MB, free: 10.98 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.027e-05/0.448, allocations: 3.125 kB / 348.2 MB, free: 10.98 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.983e-06/0.4481, allocations: 0 / 348.2 MB, free: 10.98 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.969e-06/0.4481, allocations: 5.016 kB / 348.2 MB, free: 10.97 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008319/0.4489, allocations: 370.8 kB / 348.6 MB, free: 10.67 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.338e-06/0.449, allocations: 0 / 348.6 MB, free: 10.67 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001035/0.45, allocations: 123.5 kB / 348.7 MB, free: 10.63 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.145e-06/0.45, allocations: 0 / 348.7 MB, free: 10.63 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.179e-05/0.4501, allocations: 12.36 kB / 348.7 MB, free: 10.62 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002041/0.4521, allocations: 3.006 MB / 351.7 MB, free: 7.609 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.146e-06/0.4522, allocations: 4.094 kB / 351.7 MB, free: 7.605 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001436/0.4536, allocations: 447.7 kB / 352.2 MB, free: 7.34 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001775/0.4538, allocations: 110.4 kB / 352.3 MB, free: 7.223 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.897e-05/0.4539, allocations: 9.5 kB / 352.3 MB, free: 7.215 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003522/0.4543, allocations: 15.48 kB / 352.3 MB, free: 7.207 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000107/0.4544, allocations: 27.95 kB / 352.3 MB, free: 7.191 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.147e-05/0.4545, allocations: 17.45 kB / 352.3 MB, free: 7.184 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0003725/0.4549, allocations: 222 kB / 352.6 MB, free: 7.043 MB / 282.7 MB Notification: Performance of sort global known variables: time 2.615e-06/0.4549, allocations: 0 / 352.6 MB, free: 7.043 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0008741/0.4558, allocations: 186.1 kB / 352.7 MB, free: 6.988 MB / 282.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 (31): * Single equations (assignments): 26 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 5 * 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: 5 {1,1,1,1,1} * Without analytic Jacobian: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002234/0.458, allocations: 1.105 MB / 353.8 MB, free: 6.121 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.001736/0.4598, allocations: 372.2 kB / 354.2 MB, free: 5.988 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 5.01e-06/0.4598, allocations: 1.375 kB / 354.2 MB, free: 5.988 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001106/0.4609, allocations: 234.1 kB / 354.4 MB, free: 5.902 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006307/0.4616, allocations: 62.48 kB / 354.5 MB, free: 5.863 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005529/0.4671, allocations: 2.188 MB / 356.7 MB, free: 4.395 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005338/0.4677, allocations: 0.8341 MB / 357.5 MB, free: 3.535 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003487/0.4681, allocations: 119.4 kB / 357.6 MB, free: 3.418 MB / 282.7 MB Notification: Performance of SimCode: time 1.022e-06/0.4681, allocations: 4 kB / 357.6 MB, free: 3.414 MB / 282.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.945/3.413, allocations: 14.14 MB / 371.8 MB, free: 5.266 MB / 298.7 MB "Error: Could not read variable _derdummy in file ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.Bend.dp_curvedOverall_DPMFLOW_res.mat. Warning: Get data of variable _derdummy from file ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.Bend.dp_curvedOverall_DPMFLOW_res.mat failed! Error: Could not read variable _dummy in file ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.Bend.dp_curvedOverall_DPMFLOW_res.mat. Warning: Get data of variable _dummy from file ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.Bend.dp_curvedOverall_DPMFLOW_res.mat failed! " Variables in the reference:time,delta[1],delta[2],delta[3],R_0[1],R_0[2],eta,rho,input_mdot_1[1],input_mdot_1[2],input_dp_1[1],input_dp_1[2],M_FLOW_1[1],M_FLOW_1[2],DP_1[1],DP_1[2],input_mdot_2[1],input_mdot_2[2],input_mdot_2[3],input_dp_2[1],input_dp_2[2],input_dp_2[3],M_FLOW_2[1],M_FLOW_2[2],M_FLOW_2[3],DP_2[1],DP_2[2],DP_2[3],frac_RD[1],frac_RD[2],velocity_1[1],velocity_1[2],Re_1[1],Re_1[2],velocity_2[1],velocity_2[2],velocity_2[3],Re_2[1],Re_2[2],Re_2[3],DP_plot_1[1],DP_plot_1[2],DP_plot_2[1],DP_plot_2[2],DP_plot_2[3],zeta_TOT_1[1],zeta_TOT_1[2],zeta_TOT_2[1],zeta_TOT_2[2],zeta_TOT_2[3],input_DP.y Variables in the result:A_cross,DP_1[1],DP_1[2],DP_2[1],DP_2[2],DP_2[3],DP_plot_1[1],DP_plot_1[2],DP_plot_2[1],DP_plot_2[2],DP_plot_2[3],K,M_FLOW_1[1],M_FLOW_1[2],M_FLOW_2[1],M_FLOW_2[2],M_FLOW_2[3],R_0[1],R_0[2],Re_1[1],Re_1[2],Re_2[1],Re_2[2],Re_2[3],d_hyd,delta[1],delta[2],delta[3],dp_IN_con_1[1].K,dp_IN_con_1[1].R_0,dp_IN_con_1[1].d_hyd,dp_IN_con_1[1].delta,dp_IN_con_1[2].K,dp_IN_con_1[2].R_0,dp_IN_con_1[2].d_hyd,dp_IN_con_1[2].delta,dp_IN_con_2[1].K,dp_IN_con_2[1].R_0,dp_IN_con_2[1].d_hyd,dp_IN_con_2[1].delta,dp_IN_con_2[2].K,dp_IN_con_2[2].R_0,dp_IN_con_2[2].d_hyd,dp_IN_con_2[2].delta,dp_IN_con_2[3].K,dp_IN_con_2[3].R_0,dp_IN_con_2[3].d_hyd,dp_IN_con_2[3].delta,dp_IN_var_1[1].eta,dp_IN_var_1[1].rho,dp_IN_var_1[2].eta,dp_IN_var_1[2].rho,dp_IN_var_2[1].eta,dp_IN_var_2[1].rho,dp_IN_var_2[2].eta,dp_IN_var_2[2].rho,dp_IN_var_2[3].eta,dp_IN_var_2[3].rho,eta,frac_RD[1],frac_RD[2],input_DP.duration,input_DP.height,input_DP.offset,input_DP.startTime,input_DP.y,input_dp_1[1],input_dp_1[2],input_dp_2[1],input_dp_2[2],input_dp_2[3],input_mdot_1[1],input_mdot_1[2],input_mdot_2[1],input_mdot_2[2],input_mdot_2[3],m,m_flow_IN_con_1[1].K,m_flow_IN_con_1[1].R_0,m_flow_IN_con_1[1].d_hyd,m_flow_IN_con_1[1].delta,m_flow_IN_con_1[2].K,m_flow_IN_con_1[2].R_0,m_flow_IN_con_1[2].d_hyd,m_flow_IN_con_1[2].delta,m_flow_IN_con_2[1].K,m_flow_IN_con_2[1].R_0,m_flow_IN_con_2[1].d_hyd,m_flow_IN_con_2[1].delta,m_flow_IN_con_2[2].K,m_flow_IN_con_2[2].R_0,m_flow_IN_con_2[2].d_hyd,m_flow_IN_con_2[2].delta,m_flow_IN_con_2[3].K,m_flow_IN_con_2[3].R_0,m_flow_IN_con_2[3].d_hyd,m_flow_IN_con_2[3].delta,m_flow_IN_var_1[1].eta,m_flow_IN_var_1[1].rho,m_flow_IN_var_1[2].eta,m_flow_IN_var_1[2].rho,m_flow_IN_var_2[1].eta,m_flow_IN_var_2[1].rho,m_flow_IN_var_2[2].eta,m_flow_IN_var_2[2].rho,m_flow_IN_var_2[3].eta,m_flow_IN_var_2[3].rho,n,rho,time,velocity_1[1],velocity_1[2],velocity_2[1],velocity_2[2],velocity_2[3],zeta_TOT_1[1],zeta_TOT_1[2],zeta_TOT_2[1],zeta_TOT_2[2],zeta_TOT_2[3]