Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.2_ModelicaTest.Fluid.TestComponents.Fittings.TestPressureLossDerivatives.conf.json Using package ModelicaTest with version 3.2.2 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo) Using package ModelicaServices with version 3.2.2 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Fittings.TestPressureLossDerivatives,fileNamePrefix="ModelicaTest_3_2_2_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.2+maint.om/package.mo): time 0.01413/0.01413, allocations: 174.9 kB / 15.13 MB, free: 5.953 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 2.112/2.112, allocations: 194.5 MB / 210.3 MB, free: 7.605 MB / 170.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001822/0.001821, allocations: 120.1 kB / 255.6 MB, free: 10.22 MB / 218.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo): time 0.2992/0.2992, allocations: 40 MB / 340.8 MB, free: 11.4 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006714/0.0006719, allocations: 14.97 kB / 406.3 MB, free: 51.82 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1137/0.1144, allocations: 54.88 MB / 461.2 MB, free: 3.188 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Fittings.TestPressureLossDerivatives): time 0.002066/0.1166, allocations: 1.154 MB / 462.3 MB, free: 2.02 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.002387/0.119, allocations: 1.311 MB / 463.6 MB, free: 0.6992 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.556e-05/0.1191, allocations: 0 / 463.6 MB, free: 0.6992 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001775/0.1193, allocations: 27.84 kB / 463.7 MB, free: 0.6719 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002427/0.1196, allocations: 39.81 kB / 463.7 MB, free: 0.6328 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006275/0.1202, allocations: 167 kB / 463.9 MB, free: 484 kB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001006/0.1203, allocations: 47.72 kB / 463.9 MB, free: 436 kB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 5.179e-05/0.1204, allocations: 4 kB / 463.9 MB, free: 432 kB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 5.216e-05/0.1205, allocations: 23.92 kB / 463.9 MB, free: 408 kB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.081e-05/0.1206, allocations: 23.86 kB / 464 MB, free: 384 kB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.38e-05/0.1206, allocations: 8 kB / 464 MB, free: 376 kB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006575/0.1213, allocations: 299.6 kB / 464.3 MB, free: 76 kB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 1.406e-05/0.1213, allocations: 7.922 kB / 464.3 MB, free: 68 kB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 2.612e-05/0.1213, allocations: 37.64 kB / 464.3 MB, free: 24 kB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004264/0.1218, allocations: 171.7 kB / 464.5 MB, free: 15.86 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.59e-06/0.1218, allocations: 0 / 464.5 MB, free: 15.86 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.154e-06/0.1218, allocations: 0 / 464.5 MB, free: 15.86 MB / 314.7 MB Notification: Performance of Transformations before backend: time 5.169e-06/0.1218, allocations: 0 / 464.5 MB, free: 15.86 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.0006426/0.1225, allocations: 403.1 kB / 464.9 MB, free: 15.41 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.195e-05/0.1226, allocations: 12.03 kB / 464.9 MB, free: 15.4 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.676e-05/0.1226, allocations: 38.55 kB / 464.9 MB, free: 15.36 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.429e-05/0.1227, allocations: 7.906 kB / 464.9 MB, free: 15.35 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000141/0.1228, allocations: 171 kB / 465.1 MB, free: 15.14 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.318e-05/0.1228, allocations: 4 kB / 465.1 MB, free: 15.14 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.842e-05/0.1229, allocations: 7.984 kB / 465.1 MB, free: 15.13 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001769/0.1231, allocations: 65.61 kB / 465.2 MB, free: 15.06 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.498e-05/0.1231, allocations: 3.953 kB / 465.2 MB, free: 15.05 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.277e-05/0.1231, allocations: 4 kB / 465.2 MB, free: 15.05 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.69e-06/0.1231, allocations: 0 / 465.2 MB, free: 15.05 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001318/0.1233, allocations: 59.97 kB / 465.2 MB, free: 14.99 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002366/0.1235, allocations: 181.6 kB / 465.4 MB, free: 14.77 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001275/0.1237, allocations: 62.55 kB / 465.5 MB, free: 14.7 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.682e-05/0.1238, allocations: 36.84 kB / 465.5 MB, free: 14.66 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.2e-05/0.1239, allocations: 16 kB / 465.5 MB, free: 14.64 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.751e-05/0.1239, allocations: 38.55 kB / 465.6 MB, free: 14.59 MB / 314.7 MB Notification: Performance of pre-optimization done (n=8): time 1.823e-06/0.1239, allocations: 7.938 kB / 465.6 MB, free: 14.59 MB / 314.7 MB Notification: Performance of matching and sorting (n=12): time 0.03737/0.1613, allocations: 1.4 MB / 467 MB, free: 13.16 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.842e-05/0.1614, allocations: 51.41 kB / 467 MB, free: 13.09 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001589/0.1616, allocations: 136.8 kB / 467.1 MB, free: 12.95 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 3.569e-05/0.1616, allocations: 25.7 kB / 467.2 MB, free: 12.92 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.406e-05/0.1617, allocations: 84.14 kB / 467.3 MB, free: 12.84 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.542e-05/0.1618, allocations: 47.3 kB / 467.3 MB, free: 12.79 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.485e-05/0.1618, allocations: 0 / 467.3 MB, free: 12.79 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001287/0.1619, allocations: 318.8 kB / 467.6 MB, free: 12.47 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007486/0.1627, allocations: 168.1 kB / 467.8 MB, free: 12.3 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007424/0.1635, allocations: 168.3 kB / 467.9 MB, free: 12.14 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008228/0.1643, allocations: 164.7 kB / 468.1 MB, free: 11.98 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.765e-06/0.1643, allocations: 0 / 468.1 MB, free: 11.98 MB / 314.7 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.001764/0.1661, allocations: 407.1 kB / 468.5 MB, free: 11.58 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.607e-05/0.1661, allocations: 7.953 kB / 468.5 MB, free: 11.57 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.003e-05/0.1662, allocations: 0 / 468.5 MB, free: 11.57 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.79e-05/0.1662, allocations: 0 / 468.5 MB, free: 11.57 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007025/0.1669, allocations: 51.92 kB / 468.6 MB, free: 11.52 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.935e-06/0.1669, allocations: 4 kB / 468.6 MB, free: 11.52 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005265/0.1675, allocations: 11.98 kB / 468.6 MB, free: 11.5 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.982e-05/0.1675, allocations: 15.97 kB / 468.6 MB, free: 11.49 MB / 314.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.00015/0.1677, allocations: 113.8 kB / 468.7 MB, free: 11.37 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.447e-05/0.1677, allocations: 11.91 kB / 468.7 MB, free: 11.36 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001817/0.1696, allocations: 318 kB / 469 MB, free: 11.04 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.931e-06/0.1696, allocations: 0 / 469 MB, free: 11.04 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.909e-06/0.1696, allocations: 0 / 469 MB, free: 11.04 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.328e-06/0.1696, allocations: 4 kB / 469 MB, free: 11.03 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003572/0.1732, allocations: 0.6529 MB / 469.7 MB, free: 10.31 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.809e-06/0.1733, allocations: 0 / 469.7 MB, free: 10.31 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006705/0.1739, allocations: 55.86 kB / 469.7 MB, free: 10.26 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.414e-06/0.174, allocations: 4.094 kB / 469.7 MB, free: 10.25 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.989e-05/0.174, allocations: 7.984 kB / 469.7 MB, free: 10.25 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.953e-06/0.174, allocations: 4 kB / 469.7 MB, free: 10.24 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.866e-06/0.174, allocations: 0 / 469.7 MB, free: 10.24 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001543/0.1756, allocations: 381.6 kB / 470.1 MB, free: 9.844 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001469/0.1758, allocations: 109.1 kB / 470.2 MB, free: 9.719 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.843e-05/0.1758, allocations: 3.938 kB / 470.2 MB, free: 9.715 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005612/0.1764, allocations: 19.98 kB / 470.3 MB, free: 9.695 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.528e-05/0.1764, allocations: 11.98 kB / 470.3 MB, free: 9.684 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.394e-05/0.1765, allocations: 11.97 kB / 470.3 MB, free: 9.672 MB / 314.7 MB Notification: Performance of sorting global known variables: time 8.722e-05/0.1766, allocations: 95.27 kB / 470.4 MB, free: 9.578 MB / 314.7 MB Notification: Performance of sort global known variables: time 4.11e-07/0.1766, allocations: 0 / 470.4 MB, free: 9.578 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0007989/0.1775, allocations: 171.9 kB / 470.5 MB, free: 9.41 MB / 314.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.002716/0.1802, allocations: 1.05 MB / 471.6 MB, free: 8.324 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001588/0.1818, allocations: 311.8 kB / 471.9 MB, free: 8.02 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.347e-06/0.1818, allocations: 0 / 471.9 MB, free: 8.02 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006866/0.1825, allocations: 124 kB / 472 MB, free: 7.898 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004402/0.183, allocations: 8.438 kB / 472 MB, free: 7.891 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006357/0.1894, allocations: 1.296 MB / 473.3 MB, free: 6.539 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003054/0.1897, allocations: 0.6965 MB / 474 MB, free: 5.816 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0003785/0.1901, allocations: 44.86 kB / 474.1 MB, free: 5.773 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002641/0.1904, allocations: 55.36 kB / 474.1 MB, free: 5.719 MB / 314.7 MB Notification: Performance of SimCode: time 9.02e-07/0.1904, allocations: 0 / 474.1 MB, free: 5.719 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03559/0.226, allocations: 9.037 MB / 483.1 MB, free: 12.74 MB / 330.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0004107/0.2265, allocations: 220.3 kB / 483.4 MB, free: 12.5 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.733/2.96, allocations: 0 / 483.4 MB, free: 12.5 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