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: "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Fittings.TestPressureLossDerivatives,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Fittings_TestPressureLossDerivatives",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Fittings.TestPressureLossDerivatives,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Fittings_TestPressureLossDerivatives",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001318/0.001318, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00134/0.00134, allocations: 206.4 kB / 18.58 MB, free: 4.582 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.35/1.35, allocations: 227.4 MB / 246.8 MB, free: 10.63 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2053/0.2053, allocations: 46.11 MB / 344.1 MB, free: 11.6 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001614/0.001615, allocations: 73.59 kB / 417.7 MB, free: 19.65 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1045/0.1061, allocations: 62.45 MB / 480.1 MB, free: 5.191 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Fittings.TestPressureLossDerivatives): time 0.002704/0.1089, allocations: 1.465 MB / 481.6 MB, free: 3.715 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001874/0.1108, allocations: 1.452 MB / 483.1 MB, free: 2.254 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.903e-05/0.1108, allocations: 0 / 483.1 MB, free: 2.254 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001537/0.111, allocations: 31.77 kB / 483.1 MB, free: 2.223 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001914/0.1112, allocations: 51.69 kB / 483.1 MB, free: 2.172 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004493/0.1116, allocations: 227.4 kB / 483.4 MB, free: 1.949 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 9.568e-05/0.1118, allocations: 51.67 kB / 483.4 MB, free: 1.898 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.082e-05/0.1118, allocations: 4 kB / 483.4 MB, free: 1.895 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.047e-05/0.1119, allocations: 27.86 kB / 483.4 MB, free: 1.867 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.728e-05/0.1119, allocations: 35.84 kB / 483.5 MB, free: 1.832 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.134e-05/0.1119, allocations: 0 / 483.5 MB, free: 1.832 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005721/0.1125, allocations: 335.6 kB / 483.8 MB, free: 1.504 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.917e-05/0.1126, allocations: 15.92 kB / 483.8 MB, free: 1.488 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.959e-05/0.1126, allocations: 27.8 kB / 483.8 MB, free: 1.461 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003796/0.113, allocations: 267.4 kB / 484.1 MB, free: 1.199 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.985e-06/0.113, allocations: 0 / 484.1 MB, free: 1.199 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.302e-06/0.113, allocations: 4 kB / 484.1 MB, free: 1.195 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.613e-06/0.113, allocations: 0 / 484.1 MB, free: 1.195 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.0004613/0.1135, allocations: 419.2 kB / 484.5 MB, free: 0.7383 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.607e-05/0.1135, allocations: 8.031 kB / 484.5 MB, free: 0.7305 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.095e-05/0.1136, allocations: 34.69 kB / 484.6 MB, free: 0.6875 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.906e-05/0.1136, allocations: 12.83 kB / 484.6 MB, free: 0.6758 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001055/0.1137, allocations: 172.3 kB / 484.7 MB, free: 480 kB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.136e-05/0.1137, allocations: 4.375 kB / 484.7 MB, free: 476 kB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.455e-05/0.1138, allocations: 8.359 kB / 484.8 MB, free: 468 kB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001185/0.1139, allocations: 73.55 kB / 484.8 MB, free: 388 kB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.285e-06/0.1139, allocations: 0 / 484.8 MB, free: 388 kB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.983e-06/0.1139, allocations: 0 / 484.8 MB, free: 388 kB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.288e-06/0.1139, allocations: 4 kB / 484.8 MB, free: 384 kB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.453e-05/0.114, allocations: 63.91 kB / 484.9 MB, free: 320 kB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001629/0.1142, allocations: 181.6 kB / 485.1 MB, free: 88 kB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.796e-05/0.1143, allocations: 54.55 kB / 485.1 MB, free: 24 kB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.248e-05/0.1143, allocations: 41.16 kB / 485.2 MB, free: 15.98 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.262e-05/0.1144, allocations: 23.84 kB / 485.2 MB, free: 15.96 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.02e-05/0.1144, allocations: 38.56 kB / 485.2 MB, free: 15.91 MB / 366.1 MB Notification: Performance of pre-optimization done (n=8): time 1.102e-06/0.1144, allocations: 4 kB / 485.2 MB, free: 15.91 MB / 366.1 MB Notification: Performance of matching and sorting (n=12): time 0.02155/0.136, allocations: 1.615 MB / 486.8 MB, free: 14.26 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.847e-05/0.1361, allocations: 59.34 kB / 486.9 MB, free: 14.19 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001139/0.1362, allocations: 136.5 kB / 487 MB, free: 14.05 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.833e-05/0.1362, allocations: 25.7 kB / 487.1 MB, free: 14.02 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.247e-05/0.1363, allocations: 88.12 kB / 487.1 MB, free: 13.93 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.126e-05/0.1363, allocations: 39.39 kB / 487.2 MB, free: 13.89 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001058/0.1365, allocations: 53.59 kB / 487.2 MB, free: 13.83 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 9.877e-05/0.1366, allocations: 322.8 kB / 487.5 MB, free: 13.5 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006591/0.1372, allocations: 207.8 kB / 487.8 MB, free: 13.3 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006448/0.1379, allocations: 203.5 kB / 487.9 MB, free: 13.11 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001321/0.1392, allocations: 376.7 kB / 488.3 MB, free: 12.73 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.382e-06/0.1392, allocations: 4 kB / 488.3 MB, free: 12.73 MB / 366.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.001439/0.1407, allocations: 452.9 kB / 488.8 MB, free: 12.29 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.761e-05/0.1407, allocations: 11.94 kB / 488.8 MB, free: 12.27 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.958e-06/0.1407, allocations: 3.984 kB / 488.8 MB, free: 12.27 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.45e-05/0.1407, allocations: 0 / 488.8 MB, free: 12.27 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000567/0.1413, allocations: 63.94 kB / 488.8 MB, free: 12.21 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.484e-06/0.1413, allocations: 8 kB / 488.8 MB, free: 12.2 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000443/0.1418, allocations: 39.95 kB / 488.9 MB, free: 12.16 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.442e-05/0.1418, allocations: 4.156 kB / 488.9 MB, free: 12.16 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.0001238/0.1419, allocations: 125.8 kB / 489 MB, free: 12.02 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.647e-05/0.142, allocations: 7.906 kB / 489 MB, free: 12.02 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001473/0.1435, allocations: 370 kB / 489.4 MB, free: 11.65 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.851e-06/0.1435, allocations: 3.984 kB / 489.4 MB, free: 11.64 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.15e-05/0.1435, allocations: 0 / 489.4 MB, free: 11.64 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.017e-06/0.1435, allocations: 3.938 kB / 489.4 MB, free: 11.64 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002925/0.1464, allocations: 0.77 MB / 490.2 MB, free: 10.8 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.405e-06/0.1465, allocations: 4.094 kB / 490.2 MB, free: 10.8 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005063/0.147, allocations: 67.94 kB / 490.2 MB, free: 10.73 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.076e-06/0.147, allocations: 0 / 490.2 MB, free: 10.73 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.468e-05/0.147, allocations: 7.984 kB / 490.2 MB, free: 10.73 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.685e-06/0.147, allocations: 11.88 kB / 490.3 MB, free: 10.71 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.493e-06/0.147, allocations: 4 kB / 490.3 MB, free: 10.71 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001317/0.1484, allocations: 413.8 kB / 490.7 MB, free: 10.28 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.873e-05/0.1485, allocations: 112.9 kB / 490.8 MB, free: 10.15 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.025e-05/0.1485, allocations: 4 kB / 490.8 MB, free: 10.15 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004735/0.149, allocations: 43.91 kB / 490.8 MB, free: 10.11 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.412e-05/0.149, allocations: 11.92 kB / 490.8 MB, free: 10.09 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.497e-05/0.1491, allocations: 11.98 kB / 490.8 MB, free: 10.08 MB / 366.1 MB Notification: Performance of sorting global known variables: time 5.778e-05/0.1491, allocations: 99.2 kB / 490.9 MB, free: 9.984 MB / 366.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1491, allocations: 0 / 490.9 MB, free: 9.984 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005627/0.1497, allocations: 167.9 kB / 491.1 MB, free: 9.82 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.002099/0.1518, allocations: 1.104 MB / 492.2 MB, free: 8.684 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001366/0.1532, allocations: 383.7 kB / 492.6 MB, free: 8.309 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.274e-06/0.1532, allocations: 0 / 492.6 MB, free: 8.309 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006153/0.1538, allocations: 144 kB / 492.7 MB, free: 8.168 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003611/0.1542, allocations: 19.98 kB / 492.7 MB, free: 8.148 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006843/0.161, allocations: 2.741 MB / 495.5 MB, free: 5.309 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002136/0.1613, allocations: 0.6963 MB / 496.2 MB, free: 4.586 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002366/0.1615, allocations: 40.73 kB / 496.2 MB, free: 4.547 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000167/0.1617, allocations: 43.39 kB / 496.3 MB, free: 4.504 MB / 366.1 MB Notification: Performance of SimCode: time 5.31e-07/0.1617, allocations: 0 / 496.3 MB, free: 4.504 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0255/0.1872, allocations: 9.879 MB / 0.4943 GB, free: 10.72 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.477/7.664, allocations: 15.75 kB / 0.4943 GB, free: 10.71 MB / 382.1 MB (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 & python3 -m fmpy simulate --output-file ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Fittings.TestPressureLossDerivatives_res.csv --start-time 0 --stop-time 3 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0012 ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Fittings_TestPressureLossDerivatives.fmu > ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Fittings.TestPressureLossDerivatives.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Fittings.TestPressureLossDerivatives_res.csv","/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