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: "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Fittings.TestPressureLossDerivatives,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Fittings_TestPressureLossDerivatives",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Fittings.TestPressureLossDerivatives,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Fittings_TestPressureLossDerivatives",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001105/0.001105, allocations: 107.7 kB / 17.21 MB, free: 6.27 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.001091/0.001091, allocations: 194 kB / 18.12 MB, free: 5.363 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.337/1.337, allocations: 222.9 MB / 241.8 MB, free: 13.85 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1892/0.1892, allocations: 44.17 MB / 336.1 MB, free: 2.816 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001284/0.001284, allocations: 64.38 kB / 407.8 MB, free: 27.59 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1034/0.1047, allocations: 60.82 MB / 468.6 MB, free: 14.73 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Fittings.TestPressureLossDerivatives): time 0.002361/0.1071, allocations: 1.514 MB / 470.1 MB, free: 13.21 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001709/0.1088, allocations: 1.456 MB / 471.6 MB, free: 11.74 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.635e-05/0.1088, allocations: 0 / 471.6 MB, free: 11.74 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001564/0.109, allocations: 31.84 kB / 471.6 MB, free: 11.71 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000145/0.1092, allocations: 35.77 kB / 471.7 MB, free: 11.68 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003484/0.1095, allocations: 174.5 kB / 471.8 MB, free: 11.51 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 8.728e-05/0.1096, allocations: 51.73 kB / 471.9 MB, free: 11.46 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.774e-05/0.1097, allocations: 11.94 kB / 471.9 MB, free: 11.45 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.365e-05/0.1097, allocations: 19.92 kB / 471.9 MB, free: 11.43 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.469e-05/0.1098, allocations: 27.84 kB / 471.9 MB, free: 11.4 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.051e-05/0.1098, allocations: 4 kB / 471.9 MB, free: 11.39 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004791/0.1103, allocations: 331.6 kB / 472.3 MB, free: 11.07 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.482e-05/0.1103, allocations: 11.92 kB / 472.3 MB, free: 11.06 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.149e-05/0.1103, allocations: 31.8 kB / 472.3 MB, free: 11.03 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003739/0.1107, allocations: 271.4 kB / 472.6 MB, free: 10.76 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.747e-06/0.1107, allocations: 0 / 472.6 MB, free: 10.76 MB / 350.1 MB Notification: Performance of FrontEnd: time 7.61e-07/0.1107, allocations: 0 / 472.6 MB, free: 10.76 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.347e-06/0.1107, allocations: 7.938 kB / 472.6 MB, free: 10.75 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.0004594/0.1112, allocations: 415.2 kB / 473 MB, free: 10.3 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.555e-05/0.1113, allocations: 8.031 kB / 473 MB, free: 10.29 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.996e-05/0.1113, allocations: 34.75 kB / 473 MB, free: 10.25 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.479e-05/0.1113, allocations: 4.844 kB / 473 MB, free: 10.25 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.884e-05/0.1114, allocations: 172.3 kB / 473.2 MB, free: 10.04 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.085e-05/0.1114, allocations: 4.375 kB / 473.2 MB, free: 10.04 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.081e-05/0.1115, allocations: 12.28 kB / 473.2 MB, free: 10.02 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001174/0.1116, allocations: 65.62 kB / 473.3 MB, free: 9.953 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.958e-06/0.1116, allocations: 11.86 kB / 473.3 MB, free: 9.941 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.504e-06/0.1116, allocations: 0 / 473.3 MB, free: 9.941 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.919e-06/0.1116, allocations: 4 kB / 473.3 MB, free: 9.938 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.293e-05/0.1117, allocations: 55.97 kB / 473.4 MB, free: 9.883 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001623/0.1119, allocations: 181.6 kB / 473.5 MB, free: 9.656 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.408e-05/0.112, allocations: 54.64 kB / 473.6 MB, free: 9.594 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.667e-05/0.112, allocations: 45 kB / 473.6 MB, free: 9.547 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.409e-05/0.1121, allocations: 27.91 kB / 473.7 MB, free: 9.52 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.258e-05/0.1121, allocations: 34.56 kB / 473.7 MB, free: 9.477 MB / 350.1 MB Notification: Performance of pre-optimization done (n=8): time 2.374e-06/0.1121, allocations: 0 / 473.7 MB, free: 9.477 MB / 350.1 MB Notification: Performance of matching and sorting (n=12): time 0.02099/0.1331, allocations: 1.626 MB / 475.3 MB, free: 7.82 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.373e-05/0.1332, allocations: 51.41 kB / 475.4 MB, free: 7.758 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001083/0.1333, allocations: 134 kB / 475.5 MB, free: 7.613 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.595e-05/0.1334, allocations: 25.7 kB / 475.5 MB, free: 7.582 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.151e-05/0.1334, allocations: 92.12 kB / 475.6 MB, free: 7.488 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.738e-05/0.1335, allocations: 35.38 kB / 475.6 MB, free: 7.453 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001017/0.1336, allocations: 53.67 kB / 475.7 MB, free: 7.395 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001003/0.1337, allocations: 318.8 kB / 476 MB, free: 7.074 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006221/0.1343, allocations: 207.8 kB / 476.2 MB, free: 6.871 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006058/0.1349, allocations: 203.9 kB / 476.4 MB, free: 6.672 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001226/0.1361, allocations: 378.2 kB / 476.8 MB, free: 6.301 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.232e-06/0.1362, allocations: 0 / 476.8 MB, free: 6.301 MB / 350.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.001343/0.1375, allocations: 453.3 kB / 477.2 MB, free: 5.852 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.545e-05/0.1375, allocations: 4 kB / 477.2 MB, free: 5.848 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.624e-06/0.1375, allocations: 0 / 477.2 MB, free: 5.848 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.452e-05/0.1376, allocations: 4 kB / 477.2 MB, free: 5.844 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005354/0.1381, allocations: 71.92 kB / 477.3 MB, free: 5.773 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.141e-06/0.1381, allocations: 240 / 477.3 MB, free: 5.773 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000427/0.1386, allocations: 31.97 kB / 477.3 MB, free: 5.742 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.862e-05/0.1386, allocations: 15.97 kB / 477.3 MB, free: 5.727 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.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.0001094/0.1387, allocations: 122.2 kB / 477.5 MB, free: 5.598 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.572e-05/0.1388, allocations: 7.906 kB / 477.5 MB, free: 5.59 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001417/0.1402, allocations: 370.1 kB / 477.8 MB, free: 5.223 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.145e-06/0.1402, allocations: 0 / 477.8 MB, free: 5.223 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.34e-06/0.1402, allocations: 4 kB / 477.8 MB, free: 5.219 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.392e-06/0.1402, allocations: 3.984 kB / 477.8 MB, free: 5.215 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002812/0.143, allocations: 0.7817 MB / 478.6 MB, free: 4.367 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.074e-06/0.143, allocations: 0 / 478.6 MB, free: 4.367 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004946/0.1435, allocations: 63.88 kB / 478.7 MB, free: 4.305 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.118e-06/0.1436, allocations: 4.094 kB / 478.7 MB, free: 4.301 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.52e-05/0.1436, allocations: 11.98 kB / 478.7 MB, free: 4.289 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.119e-06/0.1436, allocations: 3.938 kB / 478.7 MB, free: 4.285 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.766e-06/0.1436, allocations: 4 kB / 478.7 MB, free: 4.281 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001256/0.1449, allocations: 417.8 kB / 479.1 MB, free: 3.848 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.713e-05/0.145, allocations: 112.9 kB / 479.2 MB, free: 3.719 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.12e-05/0.145, allocations: 11.98 kB / 479.2 MB, free: 3.707 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004377/0.1455, allocations: 39.91 kB / 479.3 MB, free: 3.668 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.803e-05/0.1455, allocations: 7.984 kB / 479.3 MB, free: 3.66 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.275e-05/0.1455, allocations: 8 kB / 479.3 MB, free: 3.652 MB / 350.1 MB Notification: Performance of sorting global known variables: time 5.251e-05/0.1456, allocations: 109.8 kB / 479.4 MB, free: 3.547 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.1456, allocations: 3.938 kB / 479.4 MB, free: 3.543 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005348/0.1461, allocations: 164 kB / 479.6 MB, free: 3.383 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 (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.00202/0.1481, allocations: 1.1 MB / 480.7 MB, free: 2.25 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001249/0.1494, allocations: 379.7 kB / 481 MB, free: 1.879 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.565e-06/0.1494, allocations: 0 / 481 MB, free: 1.879 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000582/0.15, allocations: 156.1 kB / 481.2 MB, free: 1.727 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003463/0.1504, allocations: 8 kB / 481.2 MB, free: 1.719 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006472/0.1568, allocations: 2.768 MB / 484 MB, free: 14.85 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002213/0.1571, allocations: 0.7004 MB / 484.7 MB, free: 14.12 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002344/0.1573, allocations: 36.75 kB / 484.7 MB, free: 14.09 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001758/0.1575, allocations: 39.34 kB / 484.7 MB, free: 14.05 MB / 366.1 MB Notification: Performance of SimCode: time 2.3e-07/0.1575, allocations: 0 / 484.7 MB, free: 14.05 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.157/1.314, allocations: 9.594 MB / 494.3 MB, free: 4.586 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002425/1.314, allocations: 232.5 kB / 494.6 MB, free: 4.332 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.926/3.241, allocations: 7.234 kB / 494.6 MB, free: 4.328 MB / 366.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Fittings.TestPressureLossDerivatives_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Fittings_TestPressureLossDerivatives_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Fittings_TestPressureLossDerivatives.fmu > 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/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_4.0.0_ModelicaTest.Fluid.TestComponents.Fittings.TestPressureLossDerivatives.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches