Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.1_ModelicaTest.Fluid.TestComponents.Fittings.TestPressureLossDerivatives.conf.json Using package ModelicaTest with version 3.2.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo) Using package ModelicaServices with version 3.2.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo) Using package Modelica with version 3.2.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo) Using package Complex with version 3.2.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Fittings.TestPressureLossDerivatives,fileNamePrefix="ModelicaTest_3_2_1_ModelicaTest_Fluid_TestComponents_Fittings_TestPressureLossDerivatives",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo): time 0.00905/0.009054, allocations: 161.4 kB / 15.11 MB, free: 5.957 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo): time 1.671/1.671, allocations: 170.8 MB / 186.6 MB, free: 1.105 MB / 154.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo): time 0.001813/0.001814, allocations: 102.8 kB / 226.2 MB, free: 10.09 MB / 186.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo): time 0.437/0.437, allocations: 38.05 MB / 303.7 MB, free: 42.47 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006213/0.0006216, allocations: 12 kB / 363 MB, free: 5.48 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1043/0.105, allocations: 48.72 MB / 411.7 MB, free: 4.684 MB / 314.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Fittings.TestPressureLossDerivatives): time 0.001936/0.107, allocations: 1.134 MB / 412.8 MB, free: 3.539 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.002611/0.1097, allocations: 1.31 MB / 414.2 MB, free: 2.223 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.648e-05/0.1098, allocations: 4 kB / 414.2 MB, free: 2.219 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001784/0.11, allocations: 19.91 kB / 414.2 MB, free: 2.199 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00023/0.1102, allocations: 43.7 kB / 414.2 MB, free: 2.156 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006422/0.1109, allocations: 167.4 kB / 414.4 MB, free: 1.992 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001216/0.111, allocations: 51.73 kB / 414.4 MB, free: 1.941 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 5.04e-05/0.1111, allocations: 3.984 kB / 414.4 MB, free: 1.938 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 6.06e-05/0.1111, allocations: 23.92 kB / 414.5 MB, free: 1.914 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.972e-05/0.1112, allocations: 31.84 kB / 414.5 MB, free: 1.883 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 1.229e-05/0.1113, allocations: 0 / 414.5 MB, free: 1.883 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007983/0.1121, allocations: 299.6 kB / 414.8 MB, free: 1.59 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 1.736e-05/0.1121, allocations: 7.938 kB / 414.8 MB, free: 1.582 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 4.096e-05/0.1122, allocations: 33.7 kB / 414.8 MB, free: 1.543 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004292/0.1126, allocations: 175.9 kB / 415 MB, free: 1.371 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.55e-06/0.1126, allocations: 0 / 415 MB, free: 1.371 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.984e-06/0.1126, allocations: 4 kB / 415 MB, free: 1.367 MB / 314.7 MB Notification: Performance of Transformations before backend: time 4.489e-06/0.1127, allocations: 4 kB / 415 MB, free: 1.363 MB / 314.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.0006291/0.1133, allocations: 403 kB / 415.4 MB, free: 0.9219 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.718e-05/0.1134, allocations: 8.031 kB / 415.4 MB, free: 0.9141 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.059e-05/0.1134, allocations: 42.48 kB / 415.4 MB, free: 0.8633 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.467e-05/0.1135, allocations: 11.86 kB / 415.5 MB, free: 0.8516 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001485/0.1136, allocations: 167 kB / 415.6 MB, free: 0.6484 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.608e-06/0.1136, allocations: 0 / 415.6 MB, free: 0.6484 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.766e-05/0.1137, allocations: 4 kB / 415.6 MB, free: 0.6445 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001674/0.1139, allocations: 69.66 kB / 415.7 MB, free: 0.5703 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.205e-05/0.1139, allocations: 0 / 415.7 MB, free: 0.5703 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.356e-05/0.1139, allocations: 8 kB / 415.7 MB, free: 0.5625 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.24e-06/0.1139, allocations: 0 / 415.7 MB, free: 0.5625 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001321/0.1141, allocations: 55.91 kB / 415.8 MB, free: 0.5078 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002417/0.1143, allocations: 197.4 kB / 415.9 MB, free: 272 kB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001264/0.1145, allocations: 58.56 kB / 416 MB, free: 204 kB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.051e-05/0.1146, allocations: 44.84 kB / 416 MB, free: 156 kB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.883e-05/0.1146, allocations: 19.98 kB / 416.1 MB, free: 136 kB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.159e-05/0.1147, allocations: 30.56 kB / 416.1 MB, free: 96 kB / 314.7 MB Notification: Performance of pre-optimization done (n=8): time 1.663e-06/0.1147, allocations: 0 / 416.1 MB, free: 96 kB / 314.7 MB Notification: Performance of matching and sorting (n=12): time 0.03569/0.1504, allocations: 1.4 MB / 417.5 MB, free: 14.66 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5e-05/0.1505, allocations: 55.34 kB / 417.6 MB, free: 14.6 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001567/0.1507, allocations: 141.6 kB / 417.7 MB, free: 14.45 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 4.091e-05/0.1507, allocations: 25.7 kB / 417.7 MB, free: 14.42 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.441e-05/0.1508, allocations: 96.11 kB / 417.8 MB, free: 14.32 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.054e-05/0.1509, allocations: 31.47 kB / 417.8 MB, free: 14.29 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.536e-05/0.1509, allocations: 0 / 417.8 MB, free: 14.29 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001283/0.151, allocations: 326.8 kB / 418.2 MB, free: 13.96 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007425/0.1518, allocations: 160.1 kB / 418.3 MB, free: 13.8 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007247/0.1525, allocations: 168.3 kB / 418.5 MB, free: 13.64 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008442/0.1534, allocations: 168.8 kB / 418.6 MB, free: 13.48 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.866e-06/0.1534, allocations: 0 / 418.6 MB, free: 13.48 MB / 330.7 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.001719/0.1551, allocations: 399.2 kB / 419 MB, free: 13.08 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.418e-05/0.1552, allocations: 4 kB / 419 MB, free: 13.08 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.095e-05/0.1552, allocations: 0 / 419 MB, free: 13.08 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.786e-05/0.1552, allocations: 4 kB / 419 MB, free: 13.07 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006894/0.1559, allocations: 51.86 kB / 419.1 MB, free: 13.02 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.724e-06/0.156, allocations: 0 / 419.1 MB, free: 13.02 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005182/0.1565, allocations: 15.94 kB / 419.1 MB, free: 13.01 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.737e-05/0.1566, allocations: 27.91 kB / 419.1 MB, free: 12.98 MB / 330.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.0001601/0.1567, allocations: 114.9 kB / 419.2 MB, free: 12.86 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.518e-05/0.1568, allocations: 7.906 kB / 419.3 MB, free: 12.85 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001771/0.1586, allocations: 317.9 kB / 419.6 MB, free: 12.53 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.658e-06/0.1586, allocations: 0 / 419.6 MB, free: 12.53 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.079e-06/0.1586, allocations: 0 / 419.6 MB, free: 12.53 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.304e-06/0.1586, allocations: 4 kB / 419.6 MB, free: 12.53 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003452/0.1621, allocations: 0.653 MB / 420.2 MB, free: 11.81 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.914e-06/0.1621, allocations: 4 kB / 420.2 MB, free: 11.8 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006384/0.1628, allocations: 47.92 kB / 420.3 MB, free: 11.76 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.925e-06/0.1628, allocations: 0 / 420.3 MB, free: 11.76 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.186e-05/0.1628, allocations: 15.94 kB / 420.3 MB, free: 11.74 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.073e-06/0.1629, allocations: 3.984 kB / 420.3 MB, free: 11.74 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.92e-06/0.1629, allocations: 3.938 kB / 420.3 MB, free: 11.73 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00155/0.1644, allocations: 373.9 kB / 420.7 MB, free: 11.34 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001543/0.1646, allocations: 105 kB / 420.8 MB, free: 11.22 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.52e-05/0.1647, allocations: 7.984 kB / 420.8 MB, free: 11.21 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005847/0.1653, allocations: 19.94 kB / 420.8 MB, free: 11.2 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.742e-05/0.1653, allocations: 7.938 kB / 420.8 MB, free: 11.19 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.358e-05/0.1654, allocations: 15.97 kB / 420.8 MB, free: 11.17 MB / 330.7 MB Notification: Performance of sorting global known variables: time 8.645e-05/0.1655, allocations: 103.2 kB / 420.9 MB, free: 11.07 MB / 330.7 MB Notification: Performance of sort global known variables: time 3.61e-07/0.1655, allocations: 4 kB / 420.9 MB, free: 11.07 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0008065/0.1663, allocations: 160 kB / 421.1 MB, free: 10.91 MB / 330.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.002743/0.169, allocations: 1.054 MB / 422.1 MB, free: 9.816 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001494/0.1706, allocations: 307.8 kB / 422.4 MB, free: 9.516 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.386e-06/0.1706, allocations: 4 kB / 422.4 MB, free: 9.512 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006665/0.1713, allocations: 119.8 kB / 422.6 MB, free: 9.395 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004518/0.1717, allocations: 19.94 kB / 422.6 MB, free: 9.375 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00614/0.1779, allocations: 1.278 MB / 423.8 MB, free: 8.039 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002938/0.1782, allocations: 0.7082 MB / 424.6 MB, free: 7.305 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0003571/0.1786, allocations: 36.73 kB / 424.6 MB, free: 7.27 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002628/0.1789, allocations: 55.36 kB / 424.6 MB, free: 7.215 MB / 330.7 MB Notification: Performance of SimCode: time 1.002e-06/0.1789, allocations: 0 / 424.6 MB, free: 7.215 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2886/0.4674, allocations: 9.032 MB / 433.7 MB, free: 47.09 MB / 330.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003436/0.4679, allocations: 219.3 kB / 433.9 MB, free: 46.84 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.809/3.277, allocations: 0 / 433.9 MB, free: 46.84 MB / 330.7 MB "" 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