Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestPressureLossDerivatives.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.TestComponents.Fittings.TestPressureLossDerivatives,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Fluid_TestComponents_Fittings_TestPressureLossDerivatives",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.252/2.252, allocations: 234.9 MB / 250.5 MB, free: 9.559 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004353/0.0004352, allocations: 8 kB / 314.4 MB, free: 9.512 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3357/0.3362, allocations: 54.87 MB / 369.3 MB, free: 10.73 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Fittings.TestPressureLossDerivatives): time 0.001914/0.3381, allocations: 1.134 MB / 370.4 MB, free: 9.578 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.002412/0.3405, allocations: 1.269 MB / 371.7 MB, free: 8.301 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.954e-05/0.3406, allocations: 0 / 371.7 MB, free: 8.301 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001771/0.3408, allocations: 27.89 kB / 371.7 MB, free: 8.273 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001928/0.341, allocations: 35.88 kB / 371.7 MB, free: 8.238 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005628/0.3416, allocations: 163.5 kB / 371.9 MB, free: 8.078 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001022/0.3417, allocations: 39.88 kB / 371.9 MB, free: 8.039 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 5.128e-05/0.3418, allocations: 11.97 kB / 372 MB, free: 8.027 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 5.416e-05/0.3418, allocations: 15.94 kB / 372 MB, free: 8.012 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.221e-05/0.3419, allocations: 27.86 kB / 372 MB, free: 7.984 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.113e-05/0.3419, allocations: 0 / 372 MB, free: 7.984 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007331/0.3427, allocations: 303.6 kB / 372.3 MB, free: 7.688 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 1.16e-05/0.3427, allocations: 7.938 kB / 372.3 MB, free: 7.68 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 3.83e-05/0.3428, allocations: 41.64 kB / 372.3 MB, free: 7.633 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004364/0.3432, allocations: 176.7 kB / 372.5 MB, free: 7.461 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.464e-06/0.3432, allocations: 0 / 372.5 MB, free: 7.461 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.533e-06/0.3432, allocations: 0 / 372.5 MB, free: 7.461 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.519e-06/0.3432, allocations: 0 / 372.5 MB, free: 7.461 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0005617/0.3438, allocations: 407 kB / 372.9 MB, free: 7.016 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.327e-05/0.3439, allocations: 8.031 kB / 372.9 MB, free: 7.008 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.468e-05/0.3439, allocations: 38.55 kB / 373 MB, free: 6.961 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.062e-05/0.344, allocations: 11.91 kB / 373 MB, free: 6.949 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001419/0.3441, allocations: 167 kB / 373.1 MB, free: 6.746 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.097e-05/0.3441, allocations: 4 kB / 373.1 MB, free: 6.742 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.142e-05/0.3442, allocations: 3.938 kB / 373.1 MB, free: 6.738 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001631/0.3443, allocations: 69.61 kB / 373.2 MB, free: 6.664 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.566e-05/0.3444, allocations: 7.859 kB / 373.2 MB, free: 6.656 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.319e-05/0.3444, allocations: 4 kB / 373.2 MB, free: 6.652 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.889e-06/0.3444, allocations: 0 / 373.2 MB, free: 6.652 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001368/0.3445, allocations: 55.97 kB / 373.3 MB, free: 6.598 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002528/0.3448, allocations: 189.6 kB / 373.5 MB, free: 6.363 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000123/0.3449, allocations: 62.55 kB / 373.5 MB, free: 6.293 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.743e-05/0.345, allocations: 16 kB / 373.5 MB, free: 6.277 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.871e-05/0.3451, allocations: 42.42 kB / 373.6 MB, free: 6.227 MB / 298.7 MB Notification: Performance of pre-optimization done (n=8): time 1.583e-06/0.3451, allocations: 0 / 373.6 MB, free: 6.227 MB / 298.7 MB Notification: Performance of matching and sorting (n=12): time 0.03667/0.3818, allocations: 1.392 MB / 375 MB, free: 4.805 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.861e-05/0.3819, allocations: 51.41 kB / 375 MB, free: 4.742 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001677/0.382, allocations: 134 kB / 375.2 MB, free: 4.602 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 4.83e-05/0.3821, allocations: 25.7 kB / 375.2 MB, free: 4.57 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.478e-05/0.3822, allocations: 150.6 kB / 375.3 MB, free: 4.422 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.239e-05/0.3823, allocations: 47.38 kB / 375.4 MB, free: 4.375 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.09e-05/0.3823, allocations: 8 kB / 375.4 MB, free: 4.367 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001868/0.3825, allocations: 318.8 kB / 375.7 MB, free: 4.047 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007647/0.3833, allocations: 164.1 kB / 375.9 MB, free: 3.887 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007549/0.3841, allocations: 166.2 kB / 376 MB, free: 3.727 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008145/0.3849, allocations: 156.7 kB / 376.2 MB, free: 3.574 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.903e-06/0.3849, allocations: 0 / 376.2 MB, free: 3.574 MB / 298.7 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.001746/0.3867, allocations: 413.8 kB / 376.6 MB, free: 3.168 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.104e-05/0.3867, allocations: 7.953 kB / 376.6 MB, free: 3.16 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.756e-06/0.3867, allocations: 4 kB / 376.6 MB, free: 3.156 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.448e-05/0.3868, allocations: 0 / 376.6 MB, free: 3.156 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006954/0.3875, allocations: 51.92 kB / 376.6 MB, free: 3.105 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.093e-06/0.3875, allocations: 3.938 kB / 376.6 MB, free: 3.102 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005294/0.388, allocations: 19.98 kB / 376.7 MB, free: 3.082 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.242e-05/0.3881, allocations: 7.984 kB / 376.7 MB, free: 3.074 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 3 (data.zeta1_at_a,data.zeta2_at_a,data.zetaLaminarKnown) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (13): * Single equations (assignments): 12 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000154/0.3882, allocations: 113.8 kB / 376.8 MB, free: 2.953 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.733e-05/0.3883, allocations: 19.83 kB / 376.8 MB, free: 2.934 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001783/0.3901, allocations: 314 kB / 377.1 MB, free: 2.617 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.943e-06/0.3901, allocations: 4 kB / 377.1 MB, free: 2.613 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.949e-06/0.3901, allocations: 0 / 377.1 MB, free: 2.613 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.918e-06/0.3901, allocations: 0 / 377.1 MB, free: 2.613 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003454/0.3936, allocations: 0.6529 MB / 377.8 MB, free: 1.895 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.657e-06/0.3936, allocations: 0 / 377.8 MB, free: 1.895 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006406/0.3943, allocations: 55.86 kB / 377.8 MB, free: 1.84 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.594e-06/0.3943, allocations: 4 kB / 377.8 MB, free: 1.836 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.222e-05/0.3944, allocations: 7.984 kB / 377.8 MB, free: 1.828 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.038e-06/0.3944, allocations: 0 / 377.8 MB, free: 1.828 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.484e-06/0.3944, allocations: 4 kB / 377.8 MB, free: 1.824 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001522/0.3959, allocations: 378 kB / 378.2 MB, free: 1.43 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001322/0.3961, allocations: 104.9 kB / 378.3 MB, free: 1.309 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.171e-05/0.3961, allocations: 8 kB / 378.3 MB, free: 1.301 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005437/0.3967, allocations: 15.98 kB / 378.3 MB, free: 1.285 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.296e-05/0.3967, allocations: 11.98 kB / 378.3 MB, free: 1.273 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.005e-05/0.3968, allocations: 11.98 kB / 378.3 MB, free: 1.262 MB / 298.7 MB Notification: Performance of sorting global known variables: time 8.243e-05/0.3969, allocations: 105.6 kB / 378.5 MB, free: 1.16 MB / 298.7 MB Notification: Performance of sort global known variables: time 3.71e-07/0.3969, allocations: 0 / 378.5 MB, free: 1.16 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0007987/0.3977, allocations: 159.9 kB / 378.6 MB, free: 1.004 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * 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 (12): * Single equations (assignments): 12 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002668/0.4004, allocations: 1.066 MB / 379.7 MB, free: 15.9 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001536/0.4019, allocations: 315.7 kB / 380 MB, free: 15.59 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.715e-06/0.402, allocations: 0 / 380 MB, free: 15.59 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006822/0.4026, allocations: 119.8 kB / 380.1 MB, free: 15.48 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002814/0.4029, allocations: 8 kB / 380.1 MB, free: 15.47 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003576/0.4065, allocations: 0.7101 MB / 380.8 MB, free: 14.7 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002869/0.4068, allocations: 0.6965 MB / 381.5 MB, free: 13.98 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002728/0.4071, allocations: 51.86 kB / 381.6 MB, free: 13.93 MB / 314.7 MB Notification: Performance of SimCode: time 7.51e-07/0.4071, allocations: 7.938 kB / 381.6 MB, free: 13.92 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.314/2.722, allocations: 4.998 MB / 386.6 MB, free: 8.902 MB / 314.7 MB "Error: Could not read variable _derdummy in file ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestPressureLossDerivatives_res.mat. Warning: Get data of variable _derdummy from file ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestPressureLossDerivatives_res.mat failed! Error: Could not read variable _dummy in file ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestPressureLossDerivatives_res.mat. Warning: Get data of variable _dummy from file ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestPressureLossDerivatives_res.mat failed! Error: Could not read variable d2mu in file ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestPressureLossDerivatives_res.mat. Warning: Get data of variable d2mu from file ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestPressureLossDerivatives_res.mat failed! Error: Could not read variable t2d in file ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestPressureLossDerivatives_res.mat. Warning: Get data of variable t2d from file ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestPressureLossDerivatives_res.mat failed! Error: Could not read variable t2p in file ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestPressureLossDerivatives_res.mat. Warning: Get data of variable t2p from file ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestPressureLossDerivatives_res.mat failed! " Variables in the reference:time,rho_a,rho_b,mu_a,mu_b,dp,m_flow1,m_flow2,der_m_flow1 Variables in the result:data.D_Re,data.Re_turbulent,data.c0,data.diameter_a,data.diameter_b,data.zeta1,data.zeta1_at_a,data.zeta2,data.zeta2_at_a,data.zetaLaminarKnown,der(dp),der(m_flow1),der(rho_a),der(rho_b),der_m_flow1,diameter_a,diameter_b,dp,dp_small,m_flow1,m_flow2,mu_a,mu_b,rho_a,rho_b,time