Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Fittings.TestPressureLossDerivatives.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(ModelicaTest.Fluid.TestComponents.Fittings.TestPressureLossDerivatives,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|rho_a|rho_b|mu_a|mu_b|dp|m_flow1|m_flow2|der_m_flow1",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Fittings.TestPressureLossDerivatives") translateModel(ModelicaTest.Fluid.TestComponents.Fittings.TestPressureLossDerivatives,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|rho_a|rho_b|mu_a|mu_b|dp|m_flow1|m_flow2|der_m_flow1",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Fittings.TestPressureLossDerivatives") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001616/0.001616, allocations: 115.8 kB / 17.33 MB, free: 5.98 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002029/0.002029, allocations: 205.8 kB / 18.27 MB, free: 5.07 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.488/1.488, allocations: 227.4 MB / 246.4 MB, free: 10.75 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2358/0.2358, allocations: 46.1 MB / 343.8 MB, free: 11.73 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001534/0.001534, allocations: 78.45 kB / 417 MB, free: 20.06 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1262/0.1278, allocations: 62.45 MB / 479.5 MB, free: 5.594 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Fittings.TestPressureLossDerivatives): time 0.003986/0.1318, allocations: 1.511 MB / 481 MB, free: 4.066 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00232/0.1342, allocations: 1.441 MB / 482.4 MB, free: 2.617 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.639e-05/0.1343, allocations: 0 / 482.4 MB, free: 2.617 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002195/0.1346, allocations: 27.83 kB / 482.5 MB, free: 2.59 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002863/0.1349, allocations: 39.83 kB / 482.5 MB, free: 2.551 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007518/0.1356, allocations: 203.2 kB / 482.7 MB, free: 2.355 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001522/0.1358, allocations: 59.66 kB / 482.8 MB, free: 2.297 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.59e-05/0.1359, allocations: 4 kB / 482.8 MB, free: 2.293 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.931e-05/0.1359, allocations: 19.94 kB / 482.8 MB, free: 2.273 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.63e-05/0.136, allocations: 31.83 kB / 482.8 MB, free: 2.242 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.2e-05/0.1361, allocations: 4 kB / 482.8 MB, free: 2.238 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007501/0.1368, allocations: 339.6 kB / 483.2 MB, free: 1.906 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 2.105e-05/0.1369, allocations: 7.938 kB / 483.2 MB, free: 1.898 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.371e-05/0.1369, allocations: 31.78 kB / 483.2 MB, free: 1.867 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005266/0.1374, allocations: 271.4 kB / 483.5 MB, free: 1.602 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.654e-06/0.1375, allocations: 4 kB / 483.5 MB, free: 1.598 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.124e-06/0.1375, allocations: 3.938 kB / 483.5 MB, free: 1.594 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.993e-06/0.1375, allocations: 0 / 483.5 MB, free: 1.594 MB / 350.1 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.0006252/0.1381, allocations: 415.2 kB / 483.9 MB, free: 1.141 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.31e-05/0.1382, allocations: 12.03 kB / 483.9 MB, free: 1.129 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.603e-05/0.1382, allocations: 8.844 kB / 483.9 MB, free: 1.121 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000141/0.1384, allocations: 170.7 kB / 484.1 MB, free: 0.918 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.631e-05/0.1384, allocations: 4.375 kB / 484.1 MB, free: 0.9141 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.496e-05/0.1384, allocations: 8.375 kB / 484.1 MB, free: 0.9062 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001675/0.1386, allocations: 65.8 kB / 484.1 MB, free: 0.8359 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.439e-05/0.1386, allocations: 0 / 484.1 MB, free: 0.8359 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.026e-05/0.1386, allocations: 7.938 kB / 484.1 MB, free: 0.8281 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.35e-06/0.1386, allocations: 0 / 484.1 MB, free: 0.8281 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.947e-05/0.1387, allocations: 55.97 kB / 484.2 MB, free: 0.7734 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002423/0.139, allocations: 193.5 kB / 484.4 MB, free: 0.5352 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.902e-05/0.1391, allocations: 62.48 kB / 484.5 MB, free: 476 kB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.286e-05/0.1392, allocations: 44.84 kB / 484.5 MB, free: 428 kB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.574e-05/0.1393, allocations: 24.2 kB / 484.5 MB, free: 404 kB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.126e-05/0.1393, allocations: 34.5 kB / 484.6 MB, free: 360 kB / 350.1 MB Notification: Performance of pre-optimization done (n=8): time 2.425e-06/0.1393, allocations: 0 / 484.6 MB, free: 360 kB / 350.1 MB Notification: Performance of matching and sorting (n=12): time 0.0226/0.1619, allocations: 1.615 MB / 486.2 MB, free: 14.71 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.283e-05/0.162, allocations: 59.39 kB / 486.2 MB, free: 14.64 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000193/0.1623, allocations: 134 kB / 486.4 MB, free: 14.49 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.375e-05/0.1623, allocations: 29.7 kB / 486.4 MB, free: 14.46 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.402e-05/0.1624, allocations: 88.08 kB / 486.5 MB, free: 14.37 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.725e-05/0.1625, allocations: 39.39 kB / 486.5 MB, free: 14.33 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001235/0.1626, allocations: 45.69 kB / 486.6 MB, free: 14.28 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001236/0.1627, allocations: 322.8 kB / 486.9 MB, free: 13.95 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000647/0.1634, allocations: 195.9 kB / 487.1 MB, free: 13.76 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006254/0.164, allocations: 215.8 kB / 487.3 MB, free: 13.55 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00129/0.1653, allocations: 376.7 kB / 487.6 MB, free: 13.18 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.903e-06/0.1653, allocations: 0 / 487.6 MB, free: 13.18 MB / 366.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.001381/0.1667, allocations: 456.7 kB / 488.1 MB, free: 12.73 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.2e-05/0.1667, allocations: 10.97 kB / 488.1 MB, free: 12.72 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.107e-06/0.1668, allocations: 0 / 488.1 MB, free: 12.72 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.68e-05/0.1668, allocations: 4 kB / 488.1 MB, free: 12.72 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005565/0.1673, allocations: 67.88 kB / 488.2 MB, free: 12.65 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.063e-06/0.1674, allocations: 0 / 488.2 MB, free: 12.65 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004449/0.1678, allocations: 43.94 kB / 488.2 MB, free: 12.61 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.227e-05/0.1679, allocations: 11.98 kB / 488.2 MB, free: 12.6 MB / 366.1 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.zetaLaminarKnown,data.zeta2_at_a,data.zeta1_at_a) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001294/0.168, allocations: 117.8 kB / 488.3 MB, free: 12.47 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.701e-05/0.168, allocations: 15.81 kB / 488.4 MB, free: 12.46 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001451/0.1695, allocations: 362 kB / 488.7 MB, free: 12.1 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.019e-06/0.1695, allocations: 4 kB / 488.7 MB, free: 12.09 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.32e-06/0.1695, allocations: 0 / 488.7 MB, free: 12.09 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.522e-06/0.1695, allocations: 4 kB / 488.7 MB, free: 12.09 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003019/0.1726, allocations: 0.7778 MB / 489.5 MB, free: 11.25 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.246e-06/0.1726, allocations: 0 / 489.5 MB, free: 11.25 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005172/0.1731, allocations: 72.02 kB / 489.6 MB, free: 11.18 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.092e-06/0.1731, allocations: 0 / 489.6 MB, free: 11.18 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.897e-05/0.1731, allocations: 4 kB / 489.6 MB, free: 11.17 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.134e-06/0.1732, allocations: 3.984 kB / 489.6 MB, free: 11.17 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.042e-06/0.1732, allocations: 11.88 kB / 489.6 MB, free: 11.16 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001368/0.1745, allocations: 426 kB / 490 MB, free: 10.71 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001149/0.1747, allocations: 101 kB / 490.1 MB, free: 10.6 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.628e-05/0.1747, allocations: 8 kB / 490.1 MB, free: 10.59 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004543/0.1752, allocations: 39.95 kB / 490.1 MB, free: 10.55 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.59e-05/0.1752, allocations: 11.88 kB / 490.2 MB, free: 10.54 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.467e-05/0.1753, allocations: 15.98 kB / 490.2 MB, free: 10.52 MB / 366.1 MB Notification: Performance of sorting global known variables: time 6.666e-05/0.1753, allocations: 101.9 kB / 490.3 MB, free: 10.43 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.462e-06/0.1753, allocations: 0 / 490.3 MB, free: 10.43 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005967/0.1759, allocations: 171.8 kB / 490.4 MB, free: 10.26 MB / 366.1 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007455/0.1767, allocations: 251 kB / 490.7 MB, free: 10 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001327/0.178, allocations: 379.7 kB / 491.1 MB, free: 9.633 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.257e-06/0.178, allocations: 0 / 491.1 MB, free: 9.633 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005886/0.1786, allocations: 152 kB / 491.2 MB, free: 9.484 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004015/0.1791, allocations: 8.281 kB / 491.2 MB, free: 9.477 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00265/0.1817, allocations: 0.5419 MB / 491.8 MB, free: 8.902 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002621/0.182, allocations: 0.6968 MB / 492.5 MB, free: 8.18 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002471/0.1822, allocations: 36.64 kB / 492.5 MB, free: 8.141 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001525/0.1824, allocations: 35.41 kB / 492.5 MB, free: 8.105 MB / 366.1 MB Notification: Performance of SimCode: time 2.31e-07/0.1824, allocations: 0 / 492.5 MB, free: 8.105 MB / 366.1 MB Notification: Performance of Templates: time 0.01378/0.1962, allocations: 8.52 MB / 0.4893 GB, free: 15.58 MB / 382.1 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Fittings.TestPressureLossDerivatives.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Fittings.TestPressureLossDerivatives.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Fittings.TestPressureLossDerivatives.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Fittings.TestPressureLossDerivatives.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Fittings.TestPressureLossDerivatives.sim & ./ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Fittings.TestPressureLossDerivatives -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Fittings.TestPressureLossDerivatives.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Fittings.TestPressureLossDerivatives_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestComponents/Fittings/TestPressureLossDerivatives/TestPressureLossDerivatives.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Fittings.TestPressureLossDerivatives.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches