Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Fittings.TestPressureLossDerivatives.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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_4.0.0_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_4.0.0_ModelicaTest.Fluid.TestComponents.Fittings.TestPressureLossDerivatives") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007949/0.000795, allocations: 97.11 kB / 17 MB, free: 6.418 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009977/0.0009978, allocations: 191.4 kB / 17.89 MB, free: 5.945 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.491/1.491, allocations: 223.2 MB / 241.9 MB, free: 224 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2387/0.2387, allocations: 44.25 MB / 337.3 MB, free: 2.742 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003823/0.0003824, allocations: 8.719 kB / 409.7 MB, free: 27.64 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1778/0.1782, allocations: 61.93 MB / 471.6 MB, free: 13.68 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Fittings.TestPressureLossDerivatives): time 0.00209/0.1804, allocations: 1.152 MB / 472.7 MB, free: 12.52 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002179/0.1826, allocations: 1.282 MB / 474 MB, free: 11.23 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.946e-05/0.1826, allocations: 0 / 474 MB, free: 11.23 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001602/0.1828, allocations: 35.83 kB / 474.1 MB, free: 11.19 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000195/0.183, allocations: 31.83 kB / 474.1 MB, free: 11.16 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003782/0.1834, allocations: 166.3 kB / 474.3 MB, free: 11 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000127/0.1835, allocations: 55.7 kB / 474.3 MB, free: 10.95 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.081e-05/0.1836, allocations: 4 kB / 474.3 MB, free: 10.94 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.088e-05/0.1837, allocations: 19.94 kB / 474.3 MB, free: 10.92 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.294e-05/0.1838, allocations: 31.84 kB / 474.4 MB, free: 10.89 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.201e-05/0.1838, allocations: 0 / 474.4 MB, free: 10.89 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000535/0.1843, allocations: 311.6 kB / 474.7 MB, free: 10.59 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.414e-05/0.1843, allocations: 8 kB / 474.7 MB, free: 10.58 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.887e-05/0.1844, allocations: 37.64 kB / 474.7 MB, free: 10.54 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003062/0.1847, allocations: 187.8 kB / 474.9 MB, free: 10.35 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.432e-06/0.1847, allocations: 0 / 474.9 MB, free: 10.35 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.845e-06/0.1847, allocations: 0 / 474.9 MB, free: 10.35 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.867e-06/0.1847, allocations: 4 kB / 474.9 MB, free: 10.35 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.000662/0.1854, allocations: 413.2 kB / 475.3 MB, free: 9.898 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.772e-05/0.1855, allocations: 8.031 kB / 475.3 MB, free: 9.891 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.153e-05/0.1855, allocations: 7.906 kB / 475.3 MB, free: 9.883 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001842/0.1857, allocations: 173.9 kB / 475.5 MB, free: 9.676 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.208e-05/0.1857, allocations: 4 kB / 475.5 MB, free: 9.672 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.378e-05/0.1858, allocations: 7.953 kB / 475.5 MB, free: 9.664 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001986/0.186, allocations: 65.67 kB / 475.6 MB, free: 9.594 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.773e-05/0.186, allocations: 4 kB / 475.6 MB, free: 9.59 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.383e-05/0.186, allocations: 0 / 475.6 MB, free: 9.59 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.959e-06/0.186, allocations: 3.984 kB / 475.6 MB, free: 9.586 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001073/0.1862, allocations: 55.91 kB / 475.6 MB, free: 9.531 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000285/0.1864, allocations: 197.5 kB / 475.8 MB, free: 9.289 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001095/0.1866, allocations: 54.5 kB / 475.9 MB, free: 9.227 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.078e-05/0.1866, allocations: 40.84 kB / 475.9 MB, free: 9.184 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.837e-05/0.1867, allocations: 27.94 kB / 475.9 MB, free: 9.156 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.14e-05/0.1868, allocations: 34.56 kB / 476 MB, free: 9.113 MB / 350.1 MB Notification: Performance of pre-optimization done (n=8): time 1.523e-06/0.1868, allocations: 0 / 476 MB, free: 9.113 MB / 350.1 MB Notification: Performance of matching and sorting (n=12): time 0.01771/0.2045, allocations: 1.673 MB / 477.6 MB, free: 7.41 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.949e-05/0.2046, allocations: 59.41 kB / 477.7 MB, free: 7.34 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001335/0.2047, allocations: 138 kB / 477.8 MB, free: 7.191 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.794e-05/0.2048, allocations: 25.7 kB / 477.9 MB, free: 7.16 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.051e-05/0.2048, allocations: 92.03 kB / 478 MB, free: 7.066 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.547e-05/0.2049, allocations: 35.45 kB / 478 MB, free: 7.031 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.191e-05/0.2049, allocations: 8 kB / 478 MB, free: 7.023 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001428/0.2051, allocations: 318.8 kB / 478.3 MB, free: 6.703 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006474/0.2057, allocations: 204.1 kB / 478.5 MB, free: 6.504 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006331/0.2064, allocations: 228.2 kB / 478.7 MB, free: 6.281 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006653/0.207, allocations: 194.3 kB / 478.9 MB, free: 6.094 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.296e-06/0.2071, allocations: 3.953 kB / 478.9 MB, free: 6.09 MB / 350.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.001395/0.2085, allocations: 484.6 kB / 479.4 MB, free: 5.613 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.248e-05/0.2085, allocations: 4 kB / 479.4 MB, free: 5.609 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.026e-05/0.2085, allocations: 0 / 479.4 MB, free: 5.609 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.456e-05/0.2085, allocations: 0 / 479.4 MB, free: 5.609 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005737/0.2091, allocations: 83.89 kB / 479.5 MB, free: 5.527 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.396e-05/0.2091, allocations: 0 / 479.5 MB, free: 5.527 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000419/0.2096, allocations: 43.91 kB / 479.5 MB, free: 5.484 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.315e-05/0.2096, allocations: 15.97 kB / 479.5 MB, free: 5.469 MB / 350.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.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.0001397/0.2097, allocations: 122.4 kB / 479.7 MB, free: 5.34 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.824e-05/0.2098, allocations: 11.86 kB / 479.7 MB, free: 5.328 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001443/0.2112, allocations: 398 kB / 480.1 MB, free: 4.934 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.428e-06/0.2113, allocations: 0 / 480.1 MB, free: 4.934 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.913e-06/0.2113, allocations: 4 kB / 480.1 MB, free: 4.93 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.388e-06/0.2113, allocations: 0 / 480.1 MB, free: 4.93 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002937/0.2142, allocations: 0.8205 MB / 480.9 MB, free: 4.043 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.145e-06/0.2142, allocations: 4.094 kB / 480.9 MB, free: 4.039 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004837/0.2147, allocations: 79.98 kB / 481 MB, free: 3.961 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.684e-06/0.2148, allocations: 3.938 kB / 481 MB, free: 3.957 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.292e-05/0.2148, allocations: 15.97 kB / 481 MB, free: 3.941 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.18e-06/0.2148, allocations: 8 kB / 481 MB, free: 3.934 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.594e-06/0.2148, allocations: 0 / 481 MB, free: 3.934 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001349/0.2162, allocations: 453.6 kB / 481.4 MB, free: 3.465 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001281/0.2163, allocations: 105 kB / 481.5 MB, free: 3.344 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.364e-05/0.2164, allocations: 11.98 kB / 481.6 MB, free: 3.332 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004287/0.2168, allocations: 35.97 kB / 481.6 MB, free: 3.297 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.74e-05/0.2168, allocations: 11.98 kB / 481.6 MB, free: 3.285 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.864e-05/0.2169, allocations: 19.97 kB / 481.6 MB, free: 3.266 MB / 350.1 MB Notification: Performance of sorting global known variables: time 6.937e-05/0.2169, allocations: 95.27 kB / 481.7 MB, free: 3.172 MB / 350.1 MB Notification: Performance of sort global known variables: time 3.01e-07/0.217, allocations: 0 / 481.7 MB, free: 3.172 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006646/0.2176, allocations: 167.9 kB / 481.9 MB, free: 3.008 MB / 350.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 (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.0006598/0.2183, allocations: 260 kB / 482.1 MB, free: 2.746 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001345/0.2197, allocations: 399.6 kB / 482.5 MB, free: 2.355 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.815e-06/0.2197, allocations: 0 / 482.5 MB, free: 2.355 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005866/0.2203, allocations: 164 kB / 482.7 MB, free: 2.195 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003591/0.2206, allocations: 20.45 kB / 482.7 MB, free: 2.176 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002724/0.2234, allocations: 0.5782 MB / 483.3 MB, free: 1.566 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002938/0.2237, allocations: 0.6965 MB / 484 MB, free: 0.8438 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002432/0.2239, allocations: 52.75 kB / 484 MB, free: 0.7891 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001551/0.2241, allocations: 47.34 kB / 484.1 MB, free: 0.7422 MB / 350.1 MB Notification: Performance of SimCode: time 6.31e-07/0.2241, allocations: 0 / 484.1 MB, free: 0.7422 MB / 350.1 MB Notification: Performance of Templates: time 0.01431/0.2384, allocations: 8.334 MB / 492.4 MB, free: 8.402 MB / 366.1 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Fittings.TestPressureLossDerivatives.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Fittings.TestPressureLossDerivatives.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Fittings.TestPressureLossDerivatives.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Fittings.TestPressureLossDerivatives.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Fittings.TestPressureLossDerivatives.sim & ./ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Fittings.TestPressureLossDerivatives -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Fittings.TestPressureLossDerivatives.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_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_4.0.0_ModelicaTest.Fluid.TestComponents.Fittings.TestPressureLossDerivatives.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches