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.General.dp_idealGas_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.General.dp_idealGas_DPMFLOW,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_Fluid_Dissipation_Verifications_PressureLoss_General_dp_idealGas_DPMFLOW",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.074/2.074, allocations: 209.2 MB / 224.8 MB, free: 0.625 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004559/0.0004562, allocations: 12 kB / 282.6 MB, free: 9.57 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3438/0.3443, allocations: 48.71 MB / 331.3 MB, free: 6.52 MB / 266.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.General.dp_idealGas_DPMFLOW): time 0.002514/0.3468, allocations: 1.418 MB / 332.7 MB, free: 5.789 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001813/0.3487, allocations: 0.873 MB / 333.6 MB, free: 5.191 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001051/0.3489, allocations: 4.906 kB / 333.6 MB, free: 5.188 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002874/0.3492, allocations: 43.61 kB / 333.6 MB, free: 5.164 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002866/0.3495, allocations: 58.52 kB / 333.7 MB, free: 5.129 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004817/0.35, allocations: 96.02 kB / 333.8 MB, free: 5.082 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.00027/0.3503, allocations: 152.6 kB / 333.9 MB, free: 5.008 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.214e-05/0.3504, allocations: 27.7 kB / 334 MB, free: 4.996 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001368/0.3505, allocations: 72.14 kB / 334 MB, free: 4.965 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001698/0.3507, allocations: 80.94 kB / 334.1 MB, free: 4.934 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 3.065e-05/0.3507, allocations: 6.531 kB / 334.1 MB, free: 4.934 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005866/0.3513, allocations: 204.1 kB / 334.3 MB, free: 4.875 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001053/0.3514, allocations: 47.23 kB / 334.4 MB, free: 4.859 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 6.625e-05/0.3515, allocations: 58.61 kB / 334.4 MB, free: 4.812 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004804/0.352, allocations: 197.4 kB / 334.6 MB, free: 4.758 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.845e-06/0.352, allocations: 0 / 334.6 MB, free: 4.758 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.823e-06/0.352, allocations: 0 / 334.6 MB, free: 4.758 MB / 266.7 MB Notification: Performance of Transformations before backend: time 6.231e-06/0.3521, allocations: 0 / 334.6 MB, free: 4.758 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: 64 * Number of variables: 64 Notification: Performance of Generate backend data structure: time 0.0009094/0.353, allocations: 0.4985 MB / 335.1 MB, free: 4.316 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.043e-05/0.353, allocations: 9.875 kB / 335.1 MB, free: 4.316 MB / 266.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.04e-05/0.3531, allocations: 62.34 kB / 335.2 MB, free: 4.262 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001384/0.3545, allocations: 129.9 kB / 335.3 MB, free: 4.238 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004575/0.355, allocations: 260.1 kB / 335.6 MB, free: 4 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.618e-05/0.3551, allocations: 12.5 kB / 335.6 MB, free: 3.996 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.199e-05/0.3551, allocations: 22.11 kB / 335.6 MB, free: 3.988 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001081/0.3562, allocations: 437.2 kB / 336 MB, free: 3.789 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.646e-05/0.3563, allocations: 0 / 336 MB, free: 3.789 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.636e-05/0.3563, allocations: 7.203 kB / 336 MB, free: 3.785 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.878e-05/0.3564, allocations: 29.31 kB / 336.1 MB, free: 3.781 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001243/0.3576, allocations: 409.5 kB / 336.5 MB, free: 3.66 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002866/0.3606, allocations: 1.481 MB / 337.9 MB, free: 2.32 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004196/0.361, allocations: 93.05 kB / 338 MB, free: 2.273 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.767e-05/0.3611, allocations: 9.422 kB / 338 MB, free: 2.266 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.256e-05/0.3611, allocations: 32.09 kB / 338.1 MB, free: 2.227 MB / 266.7 MB Notification: Performance of pre-optimization done (n=7): time 2.575e-06/0.3611, allocations: 0 / 338.1 MB, free: 2.227 MB / 266.7 MB Notification: Performance of matching and sorting (n=7): time 0.001047/0.3622, allocations: 201.5 kB / 338.3 MB, free: 2.129 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.383e-05/0.3622, allocations: 56.66 kB / 338.3 MB, free: 2.062 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005378/0.3628, allocations: 335 kB / 338.7 MB, free: 1.848 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.232e-05/0.3628, allocations: 27.23 kB / 338.7 MB, free: 1.816 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001173/0.363, allocations: 230.6 kB / 338.9 MB, free: 1.598 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.563e-05/0.363, allocations: 32.09 kB / 338.9 MB, free: 1.57 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.288e-05/0.3631, allocations: 4 kB / 338.9 MB, free: 1.566 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 6.817e-05/0.3631, allocations: 321.6 kB / 339.3 MB, free: 1.246 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003517/0.3635, allocations: 72.62 kB / 339.3 MB, free: 1.219 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003538/0.3639, allocations: 120.2 kB / 339.4 MB, free: 1.129 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003702/0.3643, allocations: 93.31 kB / 339.5 MB, free: 1.09 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.099e-06/0.3643, allocations: 1.125 kB / 339.5 MB, free: 1.09 MB / 266.7 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0008586/0.3651, allocations: 231.8 kB / 339.8 MB, free: 0.9766 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.302e-05/0.3652, allocations: 6.906 kB / 339.8 MB, free: 0.9766 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.365e-05/0.3652, allocations: 0 / 339.8 MB, free: 0.9766 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.201e-05/0.3653, allocations: 3.875 kB / 339.8 MB, free: 0.9766 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002755/0.3681, allocations: 126.9 kB / 339.9 MB, free: 0.9258 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002953/0.3711, allocations: 1.841 MB / 341.7 MB, free: 15.1 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005919/0.3717, allocations: 37.2 kB / 341.8 MB, free: 15.08 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.534e-05/0.3718, allocations: 5.969 kB / 341.8 MB, free: 15.08 MB / 282.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * 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 (19): * Single equations (assignments): 16 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 3 * 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: 3 {1,1,1} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002987/0.3721, allocations: 158.1 kB / 341.9 MB, free: 14.94 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.573e-05/0.3722, allocations: 21.62 kB / 342 MB, free: 14.93 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009682/0.3732, allocations: 210.7 kB / 342.2 MB, free: 14.8 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.969e-06/0.3733, allocations: 5.25 kB / 342.2 MB, free: 14.8 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.027e-06/0.3733, allocations: 0 / 342.2 MB, free: 14.8 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.12e-05/0.3733, allocations: 5.391 kB / 342.2 MB, free: 14.8 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005938/0.3739, allocations: 279.8 kB / 342.5 MB, free: 14.53 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.075e-06/0.3739, allocations: 0 / 342.5 MB, free: 14.53 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002231/0.3762, allocations: 102.2 kB / 342.6 MB, free: 14.49 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.003e-05/0.3762, allocations: 1.125 kB / 342.6 MB, free: 14.49 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.406e-05/0.3763, allocations: 0.9062 kB / 342.6 MB, free: 14.49 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001956/0.3782, allocations: 1.795 MB / 344.3 MB, free: 12.68 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.058e-06/0.3783, allocations: 9.5 kB / 344.4 MB, free: 12.68 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008324/0.3791, allocations: 263.8 kB / 344.6 MB, free: 12.49 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001411/0.3793, allocations: 100.6 kB / 344.7 MB, free: 12.38 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.637e-05/0.3794, allocations: 1.094 kB / 344.7 MB, free: 12.38 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003543/0.3798, allocations: 13.67 kB / 344.7 MB, free: 12.37 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.866e-05/0.3799, allocations: 12.42 kB / 344.7 MB, free: 12.36 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.528e-05/0.3799, allocations: 2.438 kB / 344.7 MB, free: 12.36 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0004518/0.3804, allocations: 247.3 kB / 345 MB, free: 12.2 MB / 282.7 MB Notification: Performance of sort global known variables: time 3.4e-07/0.3804, allocations: 0 / 345 MB, free: 12.2 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0005305/0.3809, allocations: 72.14 kB / 345.1 MB, free: 12.19 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 (11): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 3 * 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: 3 {1,1,1} * Without analytic Jacobian: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001359/0.3823, allocations: 0.8127 MB / 345.9 MB, free: 11.46 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.004327/0.3867, allocations: 271.4 kB / 346.1 MB, free: 11.36 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 9.177e-06/0.3867, allocations: 0 / 346.1 MB, free: 11.36 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001865/0.3886, allocations: 114.8 kB / 346.2 MB, free: 11.31 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005588/0.3892, allocations: 43.88 kB / 346.3 MB, free: 11.29 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004632/0.3939, allocations: 1.656 MB / 347.9 MB, free: 10.2 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004448/0.3944, allocations: 0.791 MB / 348.7 MB, free: 9.445 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002368/0.3946, allocations: 70.25 kB / 348.8 MB, free: 9.391 MB / 282.7 MB Notification: Performance of SimCode: time 1.253e-06/0.3947, allocations: 0.9688 kB / 348.8 MB, free: 9.391 MB / 282.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3/3.394, allocations: 7.495 MB / 356.3 MB, free: 4.801 MB / 282.7 MB "Error: Could not read variable _derdummy in file ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.General.dp_idealGas_DPMFLOW_res.mat. Warning: Get data of variable _derdummy from file ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.General.dp_idealGas_DPMFLOW_res.mat failed! Error: Could not read variable _dummy in file ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.General.dp_idealGas_DPMFLOW_res.mat. Warning: Get data of variable _dummy from file ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.General.dp_idealGas_DPMFLOW_res.mat failed! " Variables in the reference:time,frac_KmToRs[1],frac_KmToRs[2],frac_KmToRs[3],dp_nom[1],dp_nom[2],dp_nom[3],p_2[1],p_2[2],p_2[3],m_flow_nom[1],m_flow_nom[2],m_flow_nom[3],Km[1],Km[2],Km[3],input_mdot[1],input_mdot[2],input_mdot[3],input_dp[1],input_dp[2],input_dp[3],M_FLOW[1],M_FLOW[2],M_FLOW[3],DP[1],DP[2],DP[3],DP_plot[1],DP_plot[2],DP_plot[3],input_DP.y Variables in the result:DP[1],DP[2],DP[3],DP_plot[1],DP_plot[2],DP_plot[3],Km[1],Km[2],Km[3],M_FLOW[1],M_FLOW[2],M_FLOW[3],R_s,T_m,dp_IN_con[1].Km,dp_IN_con[1].R_s,dp_IN_con[1].dp_smooth,dp_IN_con[1].exp,dp_IN_con[2].Km,dp_IN_con[2].R_s,dp_IN_con[2].dp_smooth,dp_IN_con[2].exp,dp_IN_con[3].Km,dp_IN_con[3].R_s,dp_IN_con[3].dp_smooth,dp_IN_con[3].exp,dp_IN_var[1].T_m,dp_IN_var[1].p_m,dp_IN_var[1].rho_m,dp_IN_var[2].T_m,dp_IN_var[2].p_m,dp_IN_var[2].rho_m,dp_IN_var[3].T_m,dp_IN_var[3].p_m,dp_IN_var[3].rho_m,dp_nom[1],dp_nom[2],dp_nom[3],exp,frac_KmToRs[1],frac_KmToRs[2],frac_KmToRs[3],input_DP.duration,input_DP.height,input_DP.offset,input_DP.startTime,input_DP.y,input_dp[1],input_dp[2],input_dp[3],input_mdot[1],input_mdot[2],input_mdot[3],m_flow_IN_con[1].Km,m_flow_IN_con[1].R_s,m_flow_IN_con[1].dp_smooth,m_flow_IN_con[1].exp,m_flow_IN_con[2].Km,m_flow_IN_con[2].R_s,m_flow_IN_con[2].dp_smooth,m_flow_IN_con[2].exp,m_flow_IN_con[3].Km,m_flow_IN_con[3].R_s,m_flow_IN_con[3].dp_smooth,m_flow_IN_con[3].exp,m_flow_IN_var[1].T_m,m_flow_IN_var[1].p_m,m_flow_IN_var[1].rho_m,m_flow_IN_var[2].T_m,m_flow_IN_var[2].p_m,m_flow_IN_var[2].rho_m,m_flow_IN_var[3].T_m,m_flow_IN_var[3].p_m,m_flow_IN_var[3].rho_m,m_flow_nom[1],m_flow_nom[2],m_flow_nom[3],n,p_1,p_2[1],p_2[2],p_2[3],p_m,rho_m,time