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.Orifice.dp_suddenChange_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.Orifice.dp_suddenChange_DPMFLOW,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_Fluid_Dissipation_Verifications_PressureLoss_Orifice_dp_suddenChange_DPMFLOW",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.108/2.108, allocations: 209.3 MB / 224.8 MB, free: 288 kB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005998/0.0005999, allocations: 8 kB / 282.6 MB, free: 9.531 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3571/0.3578, allocations: 48.7 MB / 331.3 MB, free: 6.523 MB / 266.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.Orifice.dp_suddenChange_DPMFLOW): time 0.002558/0.3604, allocations: 1.429 MB / 332.7 MB, free: 5.77 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.002472/0.3629, allocations: 1.204 MB / 333.9 MB, free: 4.949 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.484e-05/0.363, allocations: 1.844 kB / 333.9 MB, free: 4.949 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002362/0.3633, allocations: 39.66 kB / 334 MB, free: 4.926 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002774/0.3636, allocations: 51.3 kB / 334 MB, free: 4.891 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007783/0.3644, allocations: 197 kB / 334.2 MB, free: 4.809 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001536/0.3645, allocations: 71.75 kB / 334.3 MB, free: 4.773 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 5.656e-05/0.3646, allocations: 7.062 kB / 334.3 MB, free: 4.773 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001668/0.3648, allocations: 51.62 kB / 334.3 MB, free: 4.746 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001168/0.3649, allocations: 49.41 kB / 334.4 MB, free: 4.723 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 2.173e-05/0.3649, allocations: 7.594 kB / 334.4 MB, free: 4.719 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001125/0.3661, allocations: 490.1 kB / 334.9 MB, free: 4.578 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 2.936e-05/0.3661, allocations: 18.25 kB / 334.9 MB, free: 4.566 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 3.81e-05/0.3662, allocations: 40.64 kB / 334.9 MB, free: 4.527 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005683/0.3668, allocations: 216.9 kB / 335.1 MB, free: 4.48 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.246e-06/0.3668, allocations: 0 / 335.1 MB, free: 4.48 MB / 266.7 MB Notification: Performance of FrontEnd: time 2.084e-06/0.3668, allocations: 0 / 335.1 MB, free: 4.48 MB / 266.7 MB Notification: Performance of Transformations before backend: time 5.159e-06/0.3668, allocations: 4 kB / 335.2 MB, free: 4.477 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: 29 * Number of variables: 29 Notification: Performance of Generate backend data structure: time 0.000664/0.3675, allocations: 427.2 kB / 335.6 MB, free: 4.066 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.057e-05/0.3675, allocations: 9.969 kB / 335.6 MB, free: 4.066 MB / 266.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.052e-05/0.3676, allocations: 45.81 kB / 335.6 MB, free: 4.02 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.692e-05/0.3676, allocations: 9.438 kB / 335.6 MB, free: 4.016 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001109/0.3678, allocations: 175.8 kB / 335.8 MB, free: 3.809 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.112e-05/0.3678, allocations: 9.875 kB / 335.8 MB, free: 3.805 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.401e-05/0.3679, allocations: 15.62 kB / 335.8 MB, free: 3.797 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004518/0.3683, allocations: 146.9 kB / 336 MB, free: 3.727 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.343e-05/0.3683, allocations: 0 / 336 MB, free: 3.727 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.008e-05/0.3684, allocations: 5.094 kB / 336 MB, free: 3.723 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.425e-06/0.3684, allocations: 3.312 kB / 336 MB, free: 3.723 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00052/0.3689, allocations: 145.8 kB / 336.1 MB, free: 3.684 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001129/0.3701, allocations: 0.5292 MB / 336.7 MB, free: 3.227 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003889/0.3705, allocations: 101.4 kB / 336.8 MB, free: 3.18 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.936e-05/0.3705, allocations: 9.219 kB / 336.8 MB, free: 3.172 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.022e-05/0.3706, allocations: 33.77 kB / 336.8 MB, free: 3.133 MB / 266.7 MB Notification: Performance of pre-optimization done (n=11): time 2.274e-06/0.3706, allocations: 4 kB / 336.8 MB, free: 3.129 MB / 266.7 MB Notification: Performance of matching and sorting (n=11): time 0.0008277/0.3714, allocations: 183 kB / 337 MB, free: 3.055 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.166e-05/0.3715, allocations: 56.62 kB / 337 MB, free: 2.988 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.436e-05/0.3716, allocations: 111.7 kB / 337.1 MB, free: 2.887 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.802e-05/0.3716, allocations: 29.7 kB / 337.2 MB, free: 2.852 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.353e-05/0.3717, allocations: 187.2 kB / 337.4 MB, free: 2.672 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.776e-05/0.3717, allocations: 35.98 kB / 337.4 MB, free: 2.641 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.152e-05/0.3717, allocations: 5.219 kB / 337.4 MB, free: 2.637 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 5.965e-05/0.3718, allocations: 319.8 kB / 337.7 MB, free: 2.316 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002023/0.372, allocations: 45.88 kB / 337.8 MB, free: 2.297 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002292/0.3723, allocations: 79.66 kB / 337.8 MB, free: 2.23 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002282/0.3725, allocations: 54.5 kB / 337.9 MB, free: 2.207 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.378e-06/0.3725, allocations: 3.938 kB / 337.9 MB, free: 2.203 MB / 266.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0005481/0.3731, allocations: 169.6 kB / 338.1 MB, free: 2.109 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.156e-05/0.3731, allocations: 6.438 kB / 338.1 MB, free: 2.109 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.536e-06/0.3731, allocations: 1.656 kB / 338.1 MB, free: 2.109 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.858e-05/0.3732, allocations: 1.438 kB / 338.1 MB, free: 2.109 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004032/0.3736, allocations: 48.12 kB / 338.1 MB, free: 2.098 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003102/0.3739, allocations: 0.5965 MB / 338.7 MB, free: 1.492 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002133/0.3741, allocations: 21.11 kB / 338.7 MB, free: 1.48 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.244e-05/0.3742, allocations: 10.42 kB / 338.7 MB, free: 1.477 MB / 266.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.0001133/0.3743, allocations: 114.2 kB / 338.8 MB, free: 1.359 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.141e-05/0.3743, allocations: 6.875 kB / 338.9 MB, free: 1.355 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006843/0.375, allocations: 198.7 kB / 339 MB, free: 1.23 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.259e-06/0.3751, allocations: 1.781 kB / 339 MB, free: 1.23 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.382e-06/0.3751, allocations: 1.5 kB / 339.1 MB, free: 1.23 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.23e-06/0.3751, allocations: 0 / 339.1 MB, free: 1.23 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003505/0.3754, allocations: 209.7 kB / 339.3 MB, free: 1.004 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.755e-06/0.3755, allocations: 0 / 339.3 MB, free: 1.004 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000378/0.3758, allocations: 45.66 kB / 339.3 MB, free: 0.9922 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.935e-06/0.3759, allocations: 3.984 kB / 339.3 MB, free: 0.9883 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.039e-05/0.3759, allocations: 6.75 kB / 339.3 MB, free: 0.9844 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002719/0.3762, allocations: 0.5908 MB / 339.9 MB, free: 392 kB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.883e-06/0.3762, allocations: 0 / 339.9 MB, free: 392 kB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007672/0.377, allocations: 302.3 kB / 340.2 MB, free: 180 kB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.524e-05/0.3771, allocations: 102.9 kB / 340.3 MB, free: 64 kB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.292e-05/0.3771, allocations: 0 / 340.3 MB, free: 64 kB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001838/0.3773, allocations: 10.88 kB / 340.3 MB, free: 60 kB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.428e-05/0.3774, allocations: 20.19 kB / 340.3 MB, free: 44 kB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.754e-05/0.3774, allocations: 7.422 kB / 340.3 MB, free: 40 kB / 266.7 MB Notification: Performance of sorting global known variables: time 8.644e-05/0.3775, allocations: 91.12 kB / 340.4 MB, free: 15.96 MB / 282.7 MB Notification: Performance of sort global known variables: time 4.41e-07/0.3775, allocations: 0 / 340.4 MB, free: 15.96 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0005412/0.3781, allocations: 76.48 kB / 340.5 MB, free: 15.93 MB / 282.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.001534/0.3796, allocations: 0.9196 MB / 341.4 MB, free: 15.14 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0006905/0.3803, allocations: 143.6 kB / 341.6 MB, free: 15.08 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 3.527e-06/0.3804, allocations: 0 / 341.6 MB, free: 15.08 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003555/0.3807, allocations: 78.33 kB / 341.6 MB, free: 15.05 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000268/0.381, allocations: 10.73 kB / 341.6 MB, free: 15.05 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002317/0.3833, allocations: 0.8551 MB / 342.5 MB, free: 14.36 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003521/0.3837, allocations: 0.7073 MB / 343.2 MB, free: 13.65 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001228/0.3839, allocations: 35.33 kB / 343.2 MB, free: 13.62 MB / 282.7 MB Notification: Performance of SimCode: time 1.001e-06/0.3839, allocations: 1.125 kB / 343.2 MB, free: 13.62 MB / 282.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.791/3.175, allocations: 2.934 MB / 346.2 MB, free: 12.11 MB / 282.7 MB "Error: Could not read variable MIN in file ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.Orifice.dp_suddenChange_DPMFLOW_res.mat. Warning: Get data of variable MIN from file ModelicaTest_3.2.1_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