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: "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Fittings.TestPressureLossDerivatives,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Fluid_TestComponents_Fittings_TestPressureLossDerivatives",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Fittings.TestPressureLossDerivatives,fileNamePrefix="ModelicaTest_3_2_3_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.004299/0.004299, allocations: 99.98 kB / 15.87 MB, free: 6.309 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.001142/0.001142, allocations: 196.1 kB / 16.79 MB, free: 6.238 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.155/1.155, allocations: 205.1 MB / 222.6 MB, free: 4.754 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.265/0.265, allocations: 43.5 MB / 313.5 MB, free: 8.594 MB / 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.001255/0.001255, allocations: 67.89 kB / 382.1 MB, free: 8.625 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08402/0.08528, allocations: 57.78 MB / 439.9 MB, free: 14.74 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Fittings.TestPressureLossDerivatives): time 0.00217/0.08749, allocations: 1.513 MB / 441.4 MB, free: 13.21 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001539/0.08904, allocations: 1.496 MB / 442.9 MB, free: 11.7 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.023e-05/0.08907, allocations: 0 / 442.9 MB, free: 11.7 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001277/0.08921, allocations: 32.11 kB / 443 MB, free: 11.67 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001288/0.08935, allocations: 39.7 kB / 443 MB, free: 11.63 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003219/0.08968, allocations: 171.5 kB / 443.2 MB, free: 11.46 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 7.465e-05/0.08976, allocations: 59.66 kB / 443.2 MB, free: 11.41 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.123e-05/0.0898, allocations: 7.984 kB / 443.2 MB, free: 11.4 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.595e-05/0.08984, allocations: 15.94 kB / 443.3 MB, free: 11.38 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.832e-05/0.0899, allocations: 27.86 kB / 443.3 MB, free: 11.36 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 8.065e-06/0.08991, allocations: 0 / 443.3 MB, free: 11.36 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004384/0.09035, allocations: 339.5 kB / 443.6 MB, free: 11.02 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 1.278e-05/0.09038, allocations: 15.94 kB / 443.6 MB, free: 11.01 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 2.991e-05/0.09041, allocations: 23.86 kB / 443.6 MB, free: 10.98 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003495/0.09077, allocations: 271.4 kB / 443.9 MB, free: 10.72 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.989e-06/0.09078, allocations: 0 / 443.9 MB, free: 10.72 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.793e-06/0.09079, allocations: 7.922 kB / 443.9 MB, free: 10.71 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.81e-06/0.0908, allocations: 0 / 443.9 MB, free: 10.71 MB / 382.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.0003996/0.0912, allocations: 411.2 kB / 444.3 MB, free: 10.26 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.339e-05/0.09124, allocations: 12.03 kB / 444.3 MB, free: 10.25 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.468e-05/0.09127, allocations: 38.69 kB / 444.4 MB, free: 10.2 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.457e-05/0.0913, allocations: 12.84 kB / 444.4 MB, free: 10.19 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.177e-05/0.0914, allocations: 172.3 kB / 444.6 MB, free: 9.984 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.176e-06/0.09141, allocations: 384 / 444.6 MB, free: 9.984 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.549e-05/0.09143, allocations: 8.375 kB / 444.6 MB, free: 9.977 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000105/0.09154, allocations: 65.61 kB / 444.6 MB, free: 9.906 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.424e-06/0.09156, allocations: 0 / 444.6 MB, free: 9.906 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.724e-06/0.09157, allocations: 4 kB / 444.6 MB, free: 9.902 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.19e-06/0.09158, allocations: 4 kB / 444.6 MB, free: 9.898 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.866e-05/0.09166, allocations: 59.91 kB / 444.7 MB, free: 9.84 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001491/0.09181, allocations: 193.5 kB / 444.9 MB, free: 9.602 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.411e-05/0.0919, allocations: 54.56 kB / 444.9 MB, free: 9.539 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.985e-05/0.09195, allocations: 40.84 kB / 445 MB, free: 9.496 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.355e-05/0.092, allocations: 23.92 kB / 445 MB, free: 9.473 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.739e-05/0.09202, allocations: 38.55 kB / 445 MB, free: 9.426 MB / 382.1 MB Notification: Performance of pre-optimization done (n=8): time 2.785e-06/0.09203, allocations: 0 / 445 MB, free: 9.426 MB / 382.1 MB Notification: Performance of matching and sorting (n=12): time 0.02011/0.1121, allocations: 1.626 MB / 446.7 MB, free: 7.77 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.352e-05/0.1122, allocations: 51.41 kB / 446.7 MB, free: 7.707 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.602e-05/0.1123, allocations: 141.9 kB / 446.8 MB, free: 7.562 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.456e-05/0.1123, allocations: 29.7 kB / 446.9 MB, free: 7.527 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.038e-05/0.1123, allocations: 88.05 kB / 447 MB, free: 7.438 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.44e-05/0.1124, allocations: 39.39 kB / 447 MB, free: 7.398 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.175e-05/0.1125, allocations: 45.69 kB / 447 MB, free: 7.348 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 7.763e-05/0.1126, allocations: 322.8 kB / 447.4 MB, free: 7.023 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006055/0.1132, allocations: 199.8 kB / 447.6 MB, free: 6.828 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005929/0.1138, allocations: 211.9 kB / 447.8 MB, free: 6.621 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001208/0.115, allocations: 376.7 kB / 448.1 MB, free: 6.25 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.092e-06/0.115, allocations: 0 / 448.1 MB, free: 6.25 MB / 382.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.001305/0.1163, allocations: 457.4 kB / 448.6 MB, free: 5.797 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.214e-05/0.1163, allocations: 8 kB / 448.6 MB, free: 5.789 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.22e-06/0.1163, allocations: 0 / 448.6 MB, free: 5.789 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.035e-06/0.1164, allocations: 0 / 448.6 MB, free: 5.789 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004942/0.1169, allocations: 67.94 kB / 448.7 MB, free: 5.723 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.938e-06/0.1169, allocations: 0 / 448.7 MB, free: 5.723 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003997/0.1173, allocations: 39.95 kB / 448.7 MB, free: 5.684 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.453e-05/0.1173, allocations: 15.92 kB / 448.7 MB, free: 5.668 MB / 382.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 9.489e-05/0.1174, allocations: 117.8 kB / 448.8 MB, free: 5.543 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.164e-05/0.1174, allocations: 7.906 kB / 448.8 MB, free: 5.535 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001337/0.1188, allocations: 366.1 kB / 449.2 MB, free: 5.172 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.787e-06/0.1188, allocations: 4 kB / 449.2 MB, free: 5.168 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.935e-06/0.1188, allocations: 0 / 449.2 MB, free: 5.168 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.118e-06/0.1188, allocations: 7.922 kB / 449.2 MB, free: 5.16 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002554/0.1214, allocations: 0.7777 MB / 450 MB, free: 4.316 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.166e-06/0.1214, allocations: 4 kB / 450 MB, free: 4.312 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004637/0.1219, allocations: 75.97 kB / 450.1 MB, free: 4.238 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.165e-06/0.1219, allocations: 0 / 450.1 MB, free: 4.238 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.29e-05/0.1219, allocations: 7.984 kB / 450.1 MB, free: 4.23 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.557e-06/0.1219, allocations: 3.938 kB / 450.1 MB, free: 4.227 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.164e-06/0.1219, allocations: 4 kB / 450.1 MB, free: 4.223 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001196/0.1231, allocations: 421.7 kB / 450.5 MB, free: 3.785 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.34e-05/0.1232, allocations: 105 kB / 450.6 MB, free: 3.664 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.67e-05/0.1232, allocations: 8 kB / 450.6 MB, free: 3.656 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004302/0.1237, allocations: 43.89 kB / 450.6 MB, free: 3.613 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.801e-05/0.1237, allocations: 4 kB / 450.6 MB, free: 3.609 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.43e-05/0.1237, allocations: 15.98 kB / 450.7 MB, free: 3.594 MB / 382.1 MB Notification: Performance of sorting global known variables: time 4.752e-05/0.1238, allocations: 95.27 kB / 450.7 MB, free: 3.5 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1238, allocations: 0 / 450.7 MB, free: 3.5 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.000457/0.1243, allocations: 171.9 kB / 450.9 MB, free: 3.332 MB / 382.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.001863/0.1261, allocations: 1.101 MB / 452 MB, free: 2.191 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001184/0.1273, allocations: 371.7 kB / 452.4 MB, free: 1.828 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.713e-06/0.1273, allocations: 4 kB / 452.4 MB, free: 1.824 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005684/0.1279, allocations: 148 kB / 452.5 MB, free: 1.68 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002984/0.1282, allocations: 20.31 kB / 452.5 MB, free: 1.66 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1302/0.2584, allocations: 2.764 MB / 455.3 MB, free: 48 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.469e-05/0.2585, allocations: 0.6949 MB / 456 MB, free: 47.3 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0002249/0.2588, allocations: 38.92 kB / 456 MB, free: 47.3 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001561/0.2589, allocations: 37.69 kB / 456.1 MB, free: 47.29 MB / 382.1 MB Notification: Performance of SimCode: time 6.91e-07/0.2589, allocations: 3.969 kB / 456.1 MB, free: 47.29 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.929/2.188, allocations: 9.593 MB / 465.7 MB, free: 46.71 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001484/2.188, allocations: 243.9 kB / 465.9 MB, free: 46.45 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.644/4.832, allocations: 0 / 465.9 MB, free: 46.45 MB / 382.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Fittings.TestPressureLossDerivatives_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Fluid_TestComponents_Fittings_TestPressureLossDerivatives_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_Fluid_TestComponents_Fittings_TestPressureLossDerivatives.fmu > 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","../files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Fittings.TestPressureLossDerivatives.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches