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.001064/0.001064, allocations: 107.4 kB / 16.41 MB, free: 5.973 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.001061/0.001061, allocations: 190.6 kB / 17.34 MB, free: 5.582 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.232/1.232, allocations: 205.1 MB / 223.2 MB, free: 12.19 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.1963/0.1963, allocations: 43.54 MB / 314.1 MB, free: 424 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.001369/0.001369, allocations: 71.89 kB / 441.3 MB, free: 6.121 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08738/0.08876, allocations: 57.79 MB / 499.1 MB, free: 12.25 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Fittings.TestPressureLossDerivatives): time 0.002122/0.09091, allocations: 1.446 MB / 0.4888 GB, free: 10.8 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.00167/0.0926, allocations: 1.453 MB / 0.4902 GB, free: 9.336 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.217e-05/0.09265, allocations: 3.938 kB / 0.4902 GB, free: 9.332 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001395/0.09279, allocations: 35.81 kB / 0.4903 GB, free: 9.297 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001638/0.09296, allocations: 43.7 kB / 0.4903 GB, free: 9.254 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004069/0.09338, allocations: 231.1 kB / 0.4905 GB, free: 9.027 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 8.899e-05/0.09348, allocations: 51.72 kB / 0.4906 GB, free: 8.977 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.54e-05/0.09352, allocations: 11.92 kB / 0.4906 GB, free: 8.965 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.51e-05/0.09357, allocations: 27.86 kB / 0.4906 GB, free: 8.938 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.539e-05/0.09363, allocations: 27.84 kB / 0.4907 GB, free: 8.91 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 9.889e-06/0.09365, allocations: 4 kB / 0.4907 GB, free: 8.906 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000476/0.09413, allocations: 331.6 kB / 0.491 GB, free: 8.582 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 1.616e-05/0.09415, allocations: 11.98 kB / 0.491 GB, free: 8.57 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 3.158e-05/0.09419, allocations: 27.8 kB / 0.491 GB, free: 8.543 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003642/0.09456, allocations: 271.2 kB / 0.4913 GB, free: 8.277 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.334e-06/0.09457, allocations: 0 / 0.4913 GB, free: 8.277 MB / 382.1 MB Notification: Performance of FrontEnd: time 8.82e-07/0.09458, allocations: 0 / 0.4913 GB, free: 8.277 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.624e-06/0.09459, allocations: 4 kB / 0.4913 GB, free: 8.273 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.0004559/0.09505, allocations: 426.6 kB / 0.4917 GB, free: 7.809 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.315e-05/0.09509, allocations: 11.89 kB / 0.4917 GB, free: 7.797 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.872e-05/0.09512, allocations: 38.69 kB / 0.4917 GB, free: 7.75 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.469e-05/0.09515, allocations: 8.891 kB / 0.4917 GB, free: 7.742 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001096/0.09527, allocations: 172.4 kB / 0.4919 GB, free: 7.535 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.045e-05/0.09529, allocations: 8.375 kB / 0.4919 GB, free: 7.527 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.909e-05/0.09531, allocations: 8.375 kB / 0.4919 GB, free: 7.52 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001274/0.09544, allocations: 69.61 kB / 0.492 GB, free: 7.445 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.026e-05/0.09546, allocations: 3.953 kB / 0.492 GB, free: 7.441 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.127e-06/0.09547, allocations: 3.984 kB / 0.492 GB, free: 7.438 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.291e-06/0.09548, allocations: 0 / 0.492 GB, free: 7.438 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.384e-05/0.09557, allocations: 59.97 kB / 0.4921 GB, free: 7.379 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001637/0.09574, allocations: 185.5 kB / 0.4922 GB, free: 7.148 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.767e-05/0.09583, allocations: 54.56 kB / 0.4923 GB, free: 7.086 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.317e-05/0.09589, allocations: 40.84 kB / 0.4923 GB, free: 7.043 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.635e-05/0.09594, allocations: 23.92 kB / 0.4923 GB, free: 7.02 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.782e-05/0.09597, allocations: 34.8 kB / 0.4924 GB, free: 6.977 MB / 382.1 MB Notification: Performance of pre-optimization done (n=8): time 1.022e-06/0.09598, allocations: 4 kB / 0.4924 GB, free: 6.973 MB / 382.1 MB Notification: Performance of matching and sorting (n=12): time 0.01984/0.1158, allocations: 1.634 MB / 0.494 GB, free: 5.309 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.983e-05/0.1159, allocations: 55.41 kB / 0.494 GB, free: 5.242 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001081/0.116, allocations: 141.1 kB / 0.4942 GB, free: 5.098 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.727e-05/0.116, allocations: 25.7 kB / 0.4942 GB, free: 5.066 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.8e-05/0.1161, allocations: 92.12 kB / 0.4943 GB, free: 4.973 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.444e-05/0.1161, allocations: 35.66 kB / 0.4943 GB, free: 4.938 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.987e-05/0.1162, allocations: 53.67 kB / 0.4944 GB, free: 4.879 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001018/0.1163, allocations: 314.8 kB / 0.4947 GB, free: 4.562 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006301/0.117, allocations: 207.8 kB / 0.4949 GB, free: 4.359 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006103/0.1176, allocations: 199.9 kB / 0.495 GB, free: 4.164 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001275/0.1189, allocations: 380.7 kB / 0.4954 GB, free: 3.789 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.172e-06/0.1189, allocations: 0 / 0.4954 GB, free: 3.789 MB / 382.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.001379/0.1203, allocations: 453.6 kB / 0.4958 GB, free: 3.34 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.427e-05/0.1203, allocations: 4 kB / 0.4958 GB, free: 3.336 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.76e-06/0.1203, allocations: 0 / 0.4958 GB, free: 3.336 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.304e-05/0.1203, allocations: 0 / 0.4958 GB, free: 3.336 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000528/0.1209, allocations: 75.86 kB / 0.4959 GB, free: 3.262 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.501e-06/0.1209, allocations: 0 / 0.4959 GB, free: 3.262 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00042/0.1213, allocations: 39.97 kB / 0.496 GB, free: 3.223 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.357e-05/0.1213, allocations: 7.984 kB / 0.496 GB, free: 3.215 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 0.0001112/0.1215, allocations: 125.7 kB / 0.4961 GB, free: 3.082 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.465e-05/0.1215, allocations: 11.89 kB / 0.4961 GB, free: 3.07 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001367/0.1229, allocations: 374 kB / 0.4965 GB, free: 2.695 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.745e-06/0.1229, allocations: 0 / 0.4965 GB, free: 2.695 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.563e-06/0.1229, allocations: 8 kB / 0.4965 GB, free: 2.688 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.048e-06/0.1229, allocations: 3.984 kB / 0.4965 GB, free: 2.684 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002773/0.1257, allocations: 0.77 MB / 0.4972 GB, free: 1.848 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.164e-06/0.1257, allocations: 4 kB / 0.4972 GB, free: 1.844 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000485/0.1262, allocations: 68.03 kB / 0.4973 GB, free: 1.777 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.555e-06/0.1262, allocations: 0 / 0.4973 GB, free: 1.777 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.321e-05/0.1262, allocations: 7.984 kB / 0.4973 GB, free: 1.77 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.791e-06/0.1262, allocations: 11.88 kB / 0.4973 GB, free: 1.758 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.483e-06/0.1263, allocations: 0 / 0.4973 GB, free: 1.758 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001276/0.1275, allocations: 417.8 kB / 0.4977 GB, free: 1.324 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001012/0.1276, allocations: 113 kB / 0.4978 GB, free: 1.195 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.968e-05/0.1277, allocations: 7.984 kB / 0.4978 GB, free: 1.188 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004477/0.1281, allocations: 39.91 kB / 0.4979 GB, free: 1.148 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.067e-05/0.1282, allocations: 15.92 kB / 0.4979 GB, free: 1.133 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2e-05/0.1282, allocations: 8 kB / 0.4979 GB, free: 1.125 MB / 382.1 MB Notification: Performance of sorting global known variables: time 6.792e-05/0.1283, allocations: 99.25 kB / 0.498 GB, free: 1.027 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1283, allocations: 0 / 0.498 GB, free: 1.027 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0005079/0.1288, allocations: 167.6 kB / 0.4981 GB, free: 0.8633 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.002021/0.1308, allocations: 1.109 MB / 0.4992 GB, free: 15.72 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001286/0.1321, allocations: 383.8 kB / 0.4996 GB, free: 15.34 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.417e-06/0.1321, allocations: 4 kB / 0.4996 GB, free: 15.34 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000584/0.1327, allocations: 144 kB / 0.4997 GB, free: 15.2 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003329/0.1331, allocations: 16 kB / 0.4997 GB, free: 15.18 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006536/0.1396, allocations: 2.744 MB / 0.5024 GB, free: 12.34 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002329/0.1399, allocations: 0.7002 MB / 0.5031 GB, free: 11.61 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0002027/0.1401, allocations: 40.73 kB / 0.5031 GB, free: 11.57 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001702/0.1402, allocations: 35.41 kB / 0.5032 GB, free: 11.54 MB / 398.1 MB Notification: Performance of SimCode: time 2.41e-07/0.1403, allocations: 3.938 kB / 0.5032 GB, free: 11.53 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02695/0.1672, allocations: 9.931 MB / 0.5129 GB, free: 1.574 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.79/7.957, allocations: 23.83 kB / 0.5129 GB, free: 1.551 MB / 398.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 & python3 -m fmpy simulate --output-file ModelicaTest_3.2.3_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_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.csv","/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