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.PressureLoss.Orifice.dp_suddenChange_DPMFLOW.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.PressureLoss.Orifice.dp_suddenChange_DPMFLOW,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Fluid_Dissipation_Verifications_PressureLoss_Orifice_dp_suddenChange_DPMFLOW",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.476/2.476, allocations: 234.9 MB / 250.5 MB, free: 9.562 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006653/0.0006655, allocations: 8 kB / 314.4 MB, free: 9.5 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.365/0.3657, allocations: 54.87 MB / 369.3 MB, free: 10.72 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.Orifice.dp_suddenChange_DPMFLOW): time 0.002695/0.3684, allocations: 1.435 MB / 370.7 MB, free: 9.27 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.002752/0.3712, allocations: 1.222 MB / 371.9 MB, free: 8.039 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001021/0.3714, allocations: 0 / 371.9 MB, free: 8.039 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002526/0.3717, allocations: 35.81 kB / 372 MB, free: 8.004 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002653/0.3719, allocations: 51.78 kB / 372 MB, free: 7.953 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008198/0.3728, allocations: 199.5 kB / 372.2 MB, free: 7.758 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001652/0.373, allocations: 71.81 kB / 372.3 MB, free: 7.688 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 6.198e-05/0.373, allocations: 5.125 kB / 372.3 MB, free: 7.684 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001725/0.3732, allocations: 51.77 kB / 372.4 MB, free: 7.633 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001069/0.3733, allocations: 43.83 kB / 372.4 MB, free: 7.59 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.025e-05/0.3734, allocations: 4 kB / 372.4 MB, free: 7.586 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001113/0.3745, allocations: 499.1 kB / 372.9 MB, free: 7.098 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 3.419e-05/0.3745, allocations: 15.97 kB / 372.9 MB, free: 7.082 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 4.963e-05/0.3746, allocations: 41.64 kB / 372.9 MB, free: 7.035 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006066/0.3752, allocations: 216.6 kB / 373.2 MB, free: 6.824 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.046e-06/0.3752, allocations: 0 / 373.2 MB, free: 6.824 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.154e-06/0.3753, allocations: 0 / 373.2 MB, free: 6.824 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.09e-06/0.3753, allocations: 0 / 373.2 MB, free: 6.824 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: 29 * Number of variables: 29 Notification: Performance of Generate backend data structure: time 0.0007221/0.376, allocations: 427 kB / 373.6 MB, free: 6.359 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.825e-05/0.3761, allocations: 8.031 kB / 373.6 MB, free: 6.352 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.516e-05/0.3761, allocations: 46.55 kB / 373.6 MB, free: 6.297 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.26e-05/0.3762, allocations: 23.75 kB / 373.6 MB, free: 6.273 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001556/0.3764, allocations: 174.9 kB / 373.8 MB, free: 6.062 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.988e-05/0.3764, allocations: 8 kB / 373.8 MB, free: 6.055 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.431e-05/0.3764, allocations: 12 kB / 373.8 MB, free: 6.043 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004542/0.3769, allocations: 149.5 kB / 374 MB, free: 5.891 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.153e-05/0.3769, allocations: 0 / 374 MB, free: 5.891 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.226e-05/0.377, allocations: 7.953 kB / 374 MB, free: 5.883 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.044e-05/0.377, allocations: 7.984 kB / 374 MB, free: 5.875 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005266/0.3775, allocations: 139.9 kB / 374.1 MB, free: 5.738 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001272/0.3788, allocations: 0.5222 MB / 374.7 MB, free: 5.148 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004141/0.3793, allocations: 106.6 kB / 374.8 MB, free: 5.035 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.099e-05/0.3793, allocations: 4 kB / 374.8 MB, free: 5.031 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.605e-05/0.3793, allocations: 30.56 kB / 374.8 MB, free: 4.992 MB / 298.7 MB Notification: Performance of pre-optimization done (n=11): time 2.234e-06/0.3794, allocations: 3.938 kB / 374.8 MB, free: 4.988 MB / 298.7 MB Notification: Performance of matching and sorting (n=11): time 0.0008319/0.3802, allocations: 181.4 kB / 375 MB, free: 4.805 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.085e-05/0.3803, allocations: 55.41 kB / 375 MB, free: 4.738 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000118/0.3804, allocations: 114 kB / 375.1 MB, free: 4.617 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 3.43e-05/0.3804, allocations: 33.7 kB / 375.2 MB, free: 4.578 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001191/0.3806, allocations: 193.8 kB / 375.4 MB, free: 4.387 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.134e-05/0.3806, allocations: 39.44 kB / 375.4 MB, free: 4.348 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.547e-05/0.3807, allocations: 8 kB / 375.4 MB, free: 4.34 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001431/0.3808, allocations: 310.8 kB / 375.7 MB, free: 4.027 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000215/0.381, allocations: 39.97 kB / 375.8 MB, free: 3.988 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002629/0.3813, allocations: 91.22 kB / 375.8 MB, free: 3.883 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002453/0.3816, allocations: 47.98 kB / 375.9 MB, free: 3.836 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.342e-06/0.3816, allocations: 4 kB / 375.9 MB, free: 3.832 MB / 298.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0006391/0.3822, allocations: 169.6 kB / 376.1 MB, free: 3.66 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.009e-05/0.3823, allocations: 4 kB / 376.1 MB, free: 3.656 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.873e-06/0.3823, allocations: 0 / 376.1 MB, free: 3.656 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.319e-05/0.3823, allocations: 4 kB / 376.1 MB, free: 3.652 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004115/0.3827, allocations: 51.89 kB / 376.1 MB, free: 3.602 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000485/0.3832, allocations: 0.5899 MB / 376.7 MB, free: 2.988 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001948/0.3835, allocations: 27.95 kB / 376.7 MB, free: 2.961 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.152e-05/0.3835, allocations: 4 kB / 376.7 MB, free: 2.957 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * 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 (16): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * 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: 1 {1} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001452/0.3837, allocations: 117.8 kB / 376.9 MB, free: 2.832 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.4e-05/0.3837, allocations: 11.86 kB / 376.9 MB, free: 2.82 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007461/0.3845, allocations: 198.2 kB / 377.1 MB, free: 2.613 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.369e-06/0.3845, allocations: 0 / 377.1 MB, free: 2.613 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.14e-06/0.3845, allocations: 4 kB / 377.1 MB, free: 2.609 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.143e-06/0.3845, allocations: 3.984 kB / 377.1 MB, free: 2.605 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003819/0.3849, allocations: 209.5 kB / 377.3 MB, free: 2.352 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.685e-06/0.3849, allocations: 0 / 377.3 MB, free: 2.352 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000378/0.3853, allocations: 39.97 kB / 377.3 MB, free: 2.312 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.922e-06/0.3853, allocations: 4 kB / 377.3 MB, free: 2.309 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.039e-05/0.3854, allocations: 3.953 kB / 377.3 MB, free: 2.305 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004386/0.3858, allocations: 0.5899 MB / 377.9 MB, free: 1.691 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.475e-06/0.3858, allocations: 3.938 kB / 377.9 MB, free: 1.688 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008236/0.3867, allocations: 307.4 kB / 378.2 MB, free: 1.371 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001024/0.3868, allocations: 96.97 kB / 378.3 MB, free: 1.258 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.31e-05/0.3868, allocations: 8 kB / 378.3 MB, free: 1.25 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001862/0.387, allocations: 11.98 kB / 378.3 MB, free: 1.238 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.452e-05/0.3871, allocations: 15.97 kB / 378.3 MB, free: 1.223 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.749e-05/0.3871, allocations: 7.938 kB / 378.4 MB, free: 1.215 MB / 298.7 MB Notification: Performance of sorting global known variables: time 6.955e-05/0.3872, allocations: 95.27 kB / 378.4 MB, free: 1.121 MB / 298.7 MB Notification: Performance of sort global known variables: time 3.8e-07/0.3872, allocations: 0 / 378.4 MB, free: 1.121 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0005006/0.3877, allocations: 79.83 kB / 378.5 MB, free: 1.043 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (frac_A1toA2) * 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 (14): * Single equations (assignments): 13 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * 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: 1 {1} * Without analytic Jacobian: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001614/0.3894, allocations: 0.9114 MB / 379.4 MB, free: 108 kB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0007157/0.3901, allocations: 127.9 kB / 379.6 MB, free: 15.98 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.166e-06/0.3901, allocations: 8.312 kB / 379.6 MB, free: 15.97 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003593/0.3905, allocations: 75.89 kB / 379.6 MB, free: 15.9 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002805/0.3908, allocations: 12.75 kB / 379.7 MB, free: 15.89 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002255/0.3931, allocations: 0.8512 MB / 380.5 MB, free: 14.97 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003615/0.3935, allocations: 0.7082 MB / 381.2 MB, free: 14.24 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001205/0.3936, allocations: 35.42 kB / 381.2 MB, free: 14.2 MB / 314.7 MB Notification: Performance of SimCode: time 1.102e-06/0.3936, allocations: 0 / 381.2 MB, free: 14.2 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.679/3.072, allocations: 2.94 MB / 384.2 MB, free: 11.27 MB / 314.7 MB "Error: Could not read variable MIN in file ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.Orifice.dp_suddenChange_DPMFLOW_res.mat. Warning: Get data of variable MIN from file ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.Orifice.dp_suddenChange_DPMFLOW_res.mat failed! " Variables in the reference:time,frac_A1toA2,frac_A1toA2,A_1,A_2,C_1,C_2,eta,rho,input_mdot,input_dp,M_FLOW,DP,d_hyd,velocity,Re,DP_plot,zeta_TOT,input_DP.y Variables in the result:A_1,A_2,C_1,C_2,DP,DP_plot,M_FLOW,Re,d_hyd,der(frac_A1toA2),dp_IN_con.A_1,dp_IN_con.A_2,dp_IN_con.C_1,dp_IN_con.C_2,dp_IN_var.eta,dp_IN_var.rho,dpoo,eta,frac_A1toA2,input_DP.duration,input_DP.height,input_DP.offset,input_DP.startTime,input_DP.y,input_dp,input_mdot,m_flow_IN_con.A_1,m_flow_IN_con.A_2,m_flow_IN_con.C_1,m_flow_IN_con.C_2,m_flow_IN_var.eta,m_flow_IN_var.rho,rho,time,velocity,zeta_TOT