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.001541/0.001541, allocations: 104.5 kB / 17.85 MB, free: 5.656 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001737/0.001738, allocations: 205.8 kB / 18.79 MB, free: 4.727 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.938/1.938, allocations: 227.4 MB / 246.9 MB, free: 10.72 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2401/0.2401, allocations: 46.1 MB / 344.3 MB, free: 11.8 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002617/0.002617, allocations: 75.88 kB / 417.5 MB, free: 7.539 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1783/0.1809, allocations: 62.44 MB / 479.9 MB, free: 9.039 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Fittings.TestPressureLossDerivatives): time 0.004818/0.1858, allocations: 1.523 MB / 481.5 MB, free: 7.5 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003464/0.1893, allocations: 1.488 MB / 483 MB, free: 6.004 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.708e-05/0.1894, allocations: 0 / 483 MB, free: 6.004 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00026/0.1897, allocations: 23.84 kB / 483 MB, free: 5.98 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002866/0.19, allocations: 47.75 kB / 483 MB, free: 5.934 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008872/0.1909, allocations: 163.5 kB / 483.2 MB, free: 5.773 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001733/0.1911, allocations: 59.66 kB / 483.2 MB, free: 5.715 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.867e-05/0.1912, allocations: 4.281 kB / 483.2 MB, free: 5.711 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.266e-05/0.1913, allocations: 23.92 kB / 483.3 MB, free: 5.688 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.515e-05/0.1914, allocations: 19.86 kB / 483.3 MB, free: 5.668 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 1.709e-05/0.1914, allocations: 4 kB / 483.3 MB, free: 5.664 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009975/0.1924, allocations: 339.5 kB / 483.6 MB, free: 5.332 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 2.546e-05/0.1925, allocations: 15.92 kB / 483.6 MB, free: 5.316 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 6.057e-05/0.1925, allocations: 23.81 kB / 483.7 MB, free: 5.293 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005105/0.1931, allocations: 191.6 kB / 483.9 MB, free: 5.105 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.6e-06/0.1931, allocations: 0 / 483.9 MB, free: 5.105 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.634e-06/0.1931, allocations: 0 / 483.9 MB, free: 5.105 MB / 398.1 MB Notification: Performance of Transformations before backend: time 9.959e-06/0.1931, allocations: 0 / 483.9 MB, free: 5.105 MB / 398.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.0007914/0.1939, allocations: 415.2 kB / 484.3 MB, free: 4.652 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.634e-05/0.194, allocations: 12.88 kB / 484.3 MB, free: 4.641 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.142e-05/0.194, allocations: 4.844 kB / 484.3 MB, free: 4.637 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001986/0.1943, allocations: 180.2 kB / 484.5 MB, free: 4.422 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.705e-05/0.1943, allocations: 4.375 kB / 484.5 MB, free: 4.418 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.604e-05/0.1943, allocations: 4.375 kB / 484.5 MB, free: 4.414 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001981/0.1945, allocations: 73.78 kB / 484.5 MB, free: 4.336 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.371e-05/0.1946, allocations: 0 / 484.5 MB, free: 4.336 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.565e-05/0.1946, allocations: 0 / 484.5 MB, free: 4.336 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.46e-06/0.1946, allocations: 3.938 kB / 484.5 MB, free: 4.332 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001479/0.1948, allocations: 59.97 kB / 484.6 MB, free: 4.273 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002961/0.1951, allocations: 185.5 kB / 484.8 MB, free: 4.043 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001519/0.1952, allocations: 62.5 kB / 484.8 MB, free: 3.973 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000103/0.1954, allocations: 48.83 kB / 484.9 MB, free: 3.922 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.015e-05/0.1954, allocations: 8 kB / 484.9 MB, free: 3.914 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.13e-05/0.1955, allocations: 42.5 kB / 484.9 MB, free: 3.863 MB / 398.1 MB Notification: Performance of pre-optimization done (n=8): time 1.994e-06/0.1955, allocations: 0 / 484.9 MB, free: 3.863 MB / 398.1 MB Notification: Performance of matching and sorting (n=12): time 0.03346/0.229, allocations: 1.619 MB / 486.6 MB, free: 2.215 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.848e-05/0.2291, allocations: 51.41 kB / 486.6 MB, free: 2.152 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001936/0.2293, allocations: 132.9 kB / 486.7 MB, free: 2.012 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.694e-05/0.2294, allocations: 25.7 kB / 486.8 MB, free: 1.98 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.875e-05/0.2295, allocations: 104 kB / 486.9 MB, free: 1.875 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.53e-05/0.2296, allocations: 31.47 kB / 486.9 MB, free: 1.844 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001855/0.2298, allocations: 49.67 kB / 486.9 MB, free: 1.789 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001622/0.2299, allocations: 318.8 kB / 487.2 MB, free: 1.469 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001114/0.2311, allocations: 199.9 kB / 487.4 MB, free: 1.273 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001105/0.2322, allocations: 215.8 kB / 487.7 MB, free: 1.062 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002255/0.2345, allocations: 384.6 kB / 488 MB, free: 0.6836 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.966e-06/0.2345, allocations: 0 / 488 MB, free: 0.6836 MB / 398.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.002448/0.2369, allocations: 452.9 kB / 488.5 MB, free: 244 kB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.916e-05/0.237, allocations: 4 kB / 488.5 MB, free: 240 kB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.209e-05/0.237, allocations: 3.938 kB / 488.5 MB, free: 236 kB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.279e-05/0.237, allocations: 3.984 kB / 488.5 MB, free: 232 kB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008863/0.2379, allocations: 71.88 kB / 488.6 MB, free: 160 kB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.143e-05/0.238, allocations: 4 kB / 488.6 MB, free: 156 kB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006721/0.2387, allocations: 35.97 kB / 488.6 MB, free: 120 kB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.555e-05/0.2387, allocations: 11.97 kB / 488.6 MB, free: 108 kB / 398.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.0002544/0.239, allocations: 117.8 kB / 488.7 MB, free: 15.98 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.011e-05/0.2391, allocations: 7.906 kB / 488.7 MB, free: 15.97 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002497/0.2416, allocations: 362.1 kB / 489.1 MB, free: 15.61 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.132e-06/0.2416, allocations: 4 kB / 489.1 MB, free: 15.61 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.374e-06/0.2416, allocations: 0 / 489.1 MB, free: 15.61 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.026e-05/0.2417, allocations: 7.984 kB / 489.1 MB, free: 15.6 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004759/0.2464, allocations: 0.7816 MB / 489.9 MB, free: 14.75 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.61e-06/0.2465, allocations: 0 / 489.9 MB, free: 14.75 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008214/0.2473, allocations: 64.03 kB / 489.9 MB, free: 14.69 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.22e-05/0.2473, allocations: 4 kB / 489.9 MB, free: 14.69 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.154e-05/0.2474, allocations: 7.984 kB / 489.9 MB, free: 14.68 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.01e-06/0.2474, allocations: 0 / 489.9 MB, free: 14.68 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.472e-06/0.2474, allocations: 3.938 kB / 490 MB, free: 14.68 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002265/0.2497, allocations: 421.8 kB / 490.4 MB, free: 14.24 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001713/0.2499, allocations: 109 kB / 490.5 MB, free: 14.11 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.452e-05/0.25, allocations: 11.98 kB / 490.5 MB, free: 14.1 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007283/0.2507, allocations: 39.97 kB / 490.5 MB, free: 14.06 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.734e-05/0.2508, allocations: 11.92 kB / 490.5 MB, free: 14.05 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.709e-05/0.2508, allocations: 12.08 kB / 490.5 MB, free: 14.04 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0001092/0.251, allocations: 103.1 kB / 490.6 MB, free: 13.94 MB / 414.1 MB Notification: Performance of sort global known variables: time 2.715e-06/0.251, allocations: 0 / 490.6 MB, free: 13.94 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001073/0.2521, allocations: 167.9 kB / 490.8 MB, free: 13.77 MB / 414.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.001187/0.2533, allocations: 255 kB / 491.1 MB, free: 13.52 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.00227/0.2556, allocations: 371.7 kB / 491.4 MB, free: 13.15 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 5.049e-06/0.2556, allocations: 0 / 491.4 MB, free: 13.15 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001042/0.2566, allocations: 148 kB / 491.6 MB, free: 13.01 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006755/0.2573, allocations: 20.12 kB / 491.6 MB, free: 12.99 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004275/0.2616, allocations: 0.5493 MB / 492.1 MB, free: 12.4 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003842/0.262, allocations: 0.6971 MB / 492.8 MB, free: 11.68 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002879/0.2623, allocations: 27.36 kB / 492.9 MB, free: 11.65 MB / 414.1 MB Notification: Performance of SimCode: time 1.413e-06/0.2624, allocations: 0 / 492.9 MB, free: 11.65 MB / 414.1 MB Notification: Performance of Templates: time 0.01285/0.2752, allocations: 4.602 MB / 497.5 MB, free: 7.039 MB / 414.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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestComponents/Fittings/TestPressureLossDerivatives/TestPressureLossDerivatives.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Fittings.TestPressureLossDerivatives.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches