Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_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_3.2.3_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.001223/0.001223, allocations: 109.2 kB / 17.04 MB, free: 5.809 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.001002/0.001002, allocations: 195 kB / 17.97 MB, free: 5.027 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.453/1.453, allocations: 205.1 MB / 223.8 MB, free: 12.27 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2114/0.2114, allocations: 43.52 MB / 314.7 MB, free: 492 kB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001539/0.001539, allocations: 68.27 kB / 384.2 MB, free: 56.39 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1088/0.1103, allocations: 57.79 MB / 442 MB, free: 6.141 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Fittings.TestPressureLossDerivatives): time 0.002987/0.1134, allocations: 1.443 MB / 443.4 MB, free: 4.688 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001776/0.1152, allocations: 1.444 MB / 444.9 MB, free: 3.234 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.707e-05/0.1153, allocations: 0 / 444.9 MB, free: 3.234 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001816/0.1155, allocations: 43.69 kB / 444.9 MB, free: 3.191 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002371/0.1157, allocations: 47.7 kB / 445 MB, free: 3.145 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005873/0.1163, allocations: 223.1 kB / 445.2 MB, free: 2.926 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001255/0.1165, allocations: 63.66 kB / 445.2 MB, free: 2.863 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.418e-05/0.1165, allocations: 0 / 445.2 MB, free: 2.863 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.278e-05/0.1166, allocations: 27.86 kB / 445.3 MB, free: 2.836 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.645e-05/0.1167, allocations: 31.84 kB / 445.3 MB, free: 2.805 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.228e-05/0.1167, allocations: 0 / 445.3 MB, free: 2.805 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005623/0.1172, allocations: 335.6 kB / 445.6 MB, free: 2.477 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 2.244e-05/0.1173, allocations: 11.92 kB / 445.6 MB, free: 2.465 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 4.047e-05/0.1173, allocations: 27.86 kB / 445.7 MB, free: 2.438 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005213/0.1179, allocations: 271.4 kB / 445.9 MB, free: 2.172 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.871e-06/0.1179, allocations: 4 kB / 445.9 MB, free: 2.168 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.953e-06/0.1179, allocations: 0 / 445.9 MB, free: 2.168 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.883e-06/0.1179, allocations: 0 / 445.9 MB, free: 2.168 MB / 318.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.0004818/0.1184, allocations: 415.2 kB / 446.3 MB, free: 1.715 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.791e-05/0.1184, allocations: 15.89 kB / 446.4 MB, free: 1.699 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.012e-05/0.1185, allocations: 4.844 kB / 446.4 MB, free: 1.695 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.651e-05/0.1186, allocations: 184.1 kB / 446.5 MB, free: 1.477 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.298e-05/0.1186, allocations: 4.375 kB / 446.5 MB, free: 1.473 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.172e-05/0.1186, allocations: 384 / 446.5 MB, free: 1.473 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001253/0.1187, allocations: 69.81 kB / 446.6 MB, free: 1.398 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.118e-05/0.1188, allocations: 0 / 446.6 MB, free: 1.398 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.041e-05/0.1188, allocations: 0 / 446.6 MB, free: 1.398 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.713e-06/0.1188, allocations: 7.984 kB / 446.6 MB, free: 1.391 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.833e-05/0.1189, allocations: 55.97 kB / 446.7 MB, free: 1.336 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000169/0.1191, allocations: 185.6 kB / 446.9 MB, free: 1.105 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.66e-05/0.1191, allocations: 58.5 kB / 446.9 MB, free: 1.039 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.756e-05/0.1192, allocations: 36.84 kB / 446.9 MB, free: 1 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.08e-05/0.1193, allocations: 20.22 kB / 447 MB, free: 0.9805 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.168e-05/0.1193, allocations: 42.5 kB / 447 MB, free: 0.9297 MB / 318.1 MB Notification: Performance of pre-optimization done (n=8): time 1.392e-06/0.1193, allocations: 0 / 447 MB, free: 0.9297 MB / 318.1 MB Notification: Performance of matching and sorting (n=12): time 0.01949/0.1388, allocations: 1.638 MB / 448.6 MB, free: 15.26 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.767e-05/0.1389, allocations: 51.41 kB / 448.7 MB, free: 15.2 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00013/0.139, allocations: 134 kB / 448.8 MB, free: 15.06 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.985e-05/0.1391, allocations: 25.7 kB / 448.9 MB, free: 15.03 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.41e-05/0.1391, allocations: 92.05 kB / 448.9 MB, free: 14.93 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.552e-05/0.1392, allocations: 39.45 kB / 449 MB, free: 14.89 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001179/0.1393, allocations: 45.67 kB / 449 MB, free: 14.84 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001195/0.1394, allocations: 314.8 kB / 449.3 MB, free: 14.53 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005701/0.14, allocations: 211.8 kB / 449.5 MB, free: 14.32 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005576/0.1406, allocations: 207.8 kB / 449.7 MB, free: 14.12 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00118/0.1417, allocations: 376.7 kB / 450.1 MB, free: 13.75 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.593e-06/0.1418, allocations: 4 kB / 450.1 MB, free: 13.74 MB / 334.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.00127/0.143, allocations: 458 kB / 450.6 MB, free: 13.29 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.688e-05/0.1431, allocations: 8 kB / 450.6 MB, free: 13.28 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.1e-05/0.1431, allocations: 4 kB / 450.6 MB, free: 13.28 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.605e-05/0.1431, allocations: 0 / 450.6 MB, free: 13.28 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005246/0.1436, allocations: 67.86 kB / 450.6 MB, free: 13.21 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.383e-06/0.1437, allocations: 8 kB / 450.6 MB, free: 13.2 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003714/0.1441, allocations: 35.97 kB / 450.7 MB, free: 13.17 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.495e-05/0.1441, allocations: 7.984 kB / 450.7 MB, free: 13.16 MB / 334.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.0001196/0.1442, allocations: 121.8 kB / 450.8 MB, free: 13.03 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.128e-05/0.1443, allocations: 11.84 kB / 450.8 MB, free: 13.02 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001287/0.1456, allocations: 366 kB / 451.2 MB, free: 12.65 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.587e-06/0.1456, allocations: 0 / 451.2 MB, free: 12.65 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.059e-06/0.1456, allocations: 0 / 451.2 MB, free: 12.65 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.648e-06/0.1456, allocations: 4 kB / 451.2 MB, free: 12.65 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002628/0.1482, allocations: 0.7816 MB / 452 MB, free: 11.8 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.096e-06/0.1482, allocations: 0 / 452 MB, free: 11.8 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004342/0.1487, allocations: 64.03 kB / 452 MB, free: 11.74 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.778e-06/0.1487, allocations: 0 / 452 MB, free: 11.74 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.719e-05/0.1487, allocations: 15.98 kB / 452 MB, free: 11.72 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.314e-06/0.1487, allocations: 0 / 452 MB, free: 11.72 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.578e-06/0.1487, allocations: 4.094 kB / 452 MB, free: 11.72 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001164/0.1499, allocations: 421.7 kB / 452.5 MB, free: 11.28 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001074/0.15, allocations: 109 kB / 452.6 MB, free: 11.16 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.567e-05/0.1501, allocations: 0 / 452.6 MB, free: 11.16 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004117/0.1505, allocations: 47.95 kB / 452.6 MB, free: 11.11 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.227e-05/0.1505, allocations: 11.92 kB / 452.6 MB, free: 11.1 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.25e-05/0.1506, allocations: 4 kB / 452.6 MB, free: 11.09 MB / 334.1 MB Notification: Performance of sorting global known variables: time 5.96e-05/0.1506, allocations: 106.6 kB / 452.7 MB, free: 10.99 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1506, allocations: 3.938 kB / 452.7 MB, free: 10.99 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0005656/0.1512, allocations: 167.9 kB / 452.9 MB, free: 10.82 MB / 334.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.0006013/0.1518, allocations: 252.3 kB / 453.1 MB, free: 10.57 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.00122/0.153, allocations: 379.7 kB / 453.5 MB, free: 10.2 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.505e-06/0.1531, allocations: 3.938 kB / 453.5 MB, free: 10.2 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005306/0.1536, allocations: 144 kB / 453.7 MB, free: 10.05 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000373/0.154, allocations: 27.97 kB / 453.7 MB, free: 10.03 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002337/0.1563, allocations: 0.4991 MB / 454.2 MB, free: 9.492 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002529/0.1566, allocations: 0.6924 MB / 454.9 MB, free: 8.773 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001725/0.1568, allocations: 44.62 kB / 454.9 MB, free: 8.727 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001443/0.1569, allocations: 27.41 kB / 455 MB, free: 8.699 MB / 334.1 MB Notification: Performance of SimCode: time 2.4e-07/0.1569, allocations: 0 / 455 MB, free: 8.699 MB / 334.1 MB Notification: Performance of Templates: time 0.01224/0.1692, allocations: 8.537 MB / 463.5 MB, free: 164 kB / 334.1 MB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Fittings.TestPressureLossDerivatives.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Fittings.TestPressureLossDerivatives.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Fittings.TestPressureLossDerivatives.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Fittings.TestPressureLossDerivatives.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Fittings.TestPressureLossDerivatives.sim & ./ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Fittings.TestPressureLossDerivatives -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Fittings.TestPressureLossDerivatives.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Fittings.TestPressureLossDerivatives_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Fluid/TestComponents/Fittings/TestPressureLossDerivatives/TestPressureLossDerivatives.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Fittings.TestPressureLossDerivatives.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches