Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Fluid.Dissipation.Verifications.HeatTransfer.StraightPipe.kc_turbulent.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.Dissipation.Verifications.HeatTransfer.StraightPipe.kc_turbulent,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Fluid_Dissipation_Verifications_HeatTransfer_StraightPipe_kc_turbulent",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.Dissipation.Verifications.HeatTransfer.StraightPipe.kc_turbulent,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Fluid_Dissipation_Verifications_HeatTransfer_StraightPipe_kc_turbulent",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.001198/0.001198, allocations: 104.8 kB / 16.4 MB, free: 6.457 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.001189/0.001189, allocations: 192.2 kB / 17.34 MB, free: 5.715 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.356/1.356, allocations: 205.1 MB / 223.2 MB, free: 12.22 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.1911/0.1911, allocations: 43.52 MB / 314.1 MB, free: 452 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.001406/0.001406, allocations: 72.47 kB / 441.3 MB, free: 6.109 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09787/0.09929, allocations: 57.79 MB / 499.1 MB, free: 12.25 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.Dissipation.Verifications.HeatTransfer.StraightPipe.kc_turbulent): time 0.003532/0.1029, allocations: 2.002 MB / 0.4894 GB, free: 10.23 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001712/0.1046, allocations: 1.119 MB / 0.4905 GB, free: 9.105 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001254/0.1047, allocations: 0 / 0.4905 GB, free: 9.105 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003039/0.1051, allocations: 55.67 kB / 0.4905 GB, free: 9.051 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000252/0.1053, allocations: 91.44 kB / 0.4906 GB, free: 8.961 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006173/0.106, allocations: 163.4 kB / 0.4908 GB, free: 8.801 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004239/0.1064, allocations: 326.5 kB / 0.4911 GB, free: 8.48 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 7.453e-05/0.1065, allocations: 40.7 kB / 0.4911 GB, free: 8.441 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000196/0.1067, allocations: 111.4 kB / 0.4912 GB, free: 8.332 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001836/0.1069, allocations: 143.3 kB / 0.4914 GB, free: 8.191 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 2.672e-05/0.1069, allocations: 8 kB / 0.4914 GB, free: 8.184 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003321/0.1073, allocations: 187.8 kB / 0.4916 GB, free: 8 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 8.768e-05/0.1074, allocations: 87.59 kB / 0.4916 GB, free: 7.914 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001208/0.1075, allocations: 119.2 kB / 0.4918 GB, free: 7.797 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000555/0.108, allocations: 390.3 kB / 0.4921 GB, free: 7.414 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.216e-06/0.1081, allocations: 0 / 0.4921 GB, free: 7.414 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.412e-06/0.1081, allocations: 0 / 0.4921 GB, free: 7.414 MB / 382.1 MB Notification: Performance of Transformations before backend: time 9.588e-06/0.1081, allocations: 0 / 0.4921 GB, free: 7.414 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: 74 * Number of variables: 74 Notification: Performance of Generate backend data structure: time 0.001125/0.1092, allocations: 0.6311 MB / 0.4927 GB, free: 6.734 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.993e-05/0.1093, allocations: 12.03 kB / 0.4928 GB, free: 6.723 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.925e-05/0.1093, allocations: 62.72 kB / 0.4928 GB, free: 6.652 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.668e-05/0.1094, allocations: 40.7 kB / 0.4928 GB, free: 6.613 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002987/0.1097, allocations: 259.4 kB / 0.4931 GB, free: 6.32 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.974e-05/0.1097, allocations: 16.56 kB / 0.4931 GB, free: 6.305 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.142e-05/0.1098, allocations: 28 kB / 0.4931 GB, free: 6.277 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006931/0.1105, allocations: 425.9 kB / 0.4935 GB, free: 5.844 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.203e-05/0.1105, allocations: 0 / 0.4935 GB, free: 5.844 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.805e-05/0.1105, allocations: 15.98 kB / 0.4936 GB, free: 5.828 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.366e-05/0.1106, allocations: 20.5 kB / 0.4936 GB, free: 5.809 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006662/0.1113, allocations: 322 kB / 0.4939 GB, free: 5.492 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001417/0.1127, allocations: 1.112 MB / 0.495 GB, free: 4.316 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004793/0.1132, allocations: 235.7 kB / 0.4952 GB, free: 4.059 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002761/0.1135, allocations: 110.5 kB / 0.4953 GB, free: 3.941 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.209e-05/0.1135, allocations: 11.98 kB / 0.4953 GB, free: 3.93 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.33e-05/0.1135, allocations: 46.48 kB / 0.4954 GB, free: 3.875 MB / 382.1 MB Notification: Performance of pre-optimization done (n=14): time 1.663e-06/0.1135, allocations: 0 / 0.4954 GB, free: 3.875 MB / 382.1 MB Notification: Performance of matching and sorting (n=14): time 0.0009675/0.1145, allocations: 353.3 kB / 0.4957 GB, free: 3.523 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.208e-05/0.1146, allocations: 114.7 kB / 0.4958 GB, free: 3.387 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004055/0.115, allocations: 401.6 kB / 0.4962 GB, free: 2.984 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.419e-05/0.115, allocations: 29.7 kB / 0.4962 GB, free: 2.949 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001308/0.1152, allocations: 196 kB / 0.4964 GB, free: 2.754 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.463e-05/0.1152, allocations: 47.58 kB / 0.4964 GB, free: 2.707 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.936e-05/0.1153, allocations: 69.88 kB / 0.4965 GB, free: 2.633 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.000122/0.1155, allocations: 342.8 kB / 0.4968 GB, free: 2.289 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002983/0.1158, allocations: 112.1 kB / 0.4969 GB, free: 2.18 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003518/0.1161, allocations: 235.8 kB / 0.4972 GB, free: 1.895 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006371/0.1168, allocations: 359 kB / 0.4975 GB, free: 1.488 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.15e-06/0.1168, allocations: 4 kB / 0.4975 GB, free: 1.484 MB / 382.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.000836/0.1176, allocations: 400.9 kB / 0.4979 GB, free: 1.086 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.097e-05/0.1177, allocations: 11.94 kB / 0.4979 GB, free: 1.074 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.311e-05/0.1177, allocations: 20 kB / 0.4979 GB, free: 1.055 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.025e-05/0.1177, allocations: 8 kB / 0.4979 GB, free: 1.047 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002491/0.118, allocations: 56.3 kB / 0.498 GB, free: 0.9922 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.672e-05/0.118, allocations: 8 kB / 0.498 GB, free: 0.9844 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002915/0.1183, allocations: 59.59 kB / 0.4981 GB, free: 0.9258 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.36e-05/0.1184, allocations: 16 kB / 0.4981 GB, free: 0.9102 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 18 * Number of states: 0 () * Number of discrete variables: 6 (m_flow_IN_con_2[3].roughness,m_flow_IN_con_2[2].roughness,m_flow_IN_con_2[1].roughness,m_flow_IN_con_1[3].roughness,m_flow_IN_con_1[2].roughness,m_flow_IN_con_1[1].roughness) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (27): * Single equations (assignments): 21 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 6 * 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.0001925/0.1185, allocations: 185.5 kB / 0.4983 GB, free: 0.7188 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.936e-05/0.1187, allocations: 27.81 kB / 0.4983 GB, free: 0.6914 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005792/0.1192, allocations: 288.6 kB / 0.4986 GB, free: 416 kB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.849e-06/0.1193, allocations: 7.938 kB / 0.4986 GB, free: 408 kB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.739e-06/0.1193, allocations: 0 / 0.4986 GB, free: 408 kB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.917e-06/0.1193, allocations: 0 / 0.4986 GB, free: 408 kB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004789/0.1198, allocations: 309.4 kB / 0.4989 GB, free: 48 kB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.395e-05/0.1198, allocations: 24.08 kB / 0.4989 GB, free: 24 kB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001643/0.12, allocations: 27.97 kB / 0.4989 GB, free: 15.99 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.461e-06/0.12, allocations: 4 kB / 0.4989 GB, free: 15.99 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.088e-05/0.12, allocations: 11.94 kB / 0.4989 GB, free: 15.98 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.557e-06/0.12, allocations: 3.938 kB / 0.4989 GB, free: 15.98 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.773e-06/0.12, allocations: 0 / 0.4989 GB, free: 15.98 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007201/0.1208, allocations: 0.5094 MB / 0.4994 GB, free: 15.45 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001149/0.1209, allocations: 112.8 kB / 0.4995 GB, free: 15.32 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.176e-05/0.1209, allocations: 4 kB / 0.4995 GB, free: 15.32 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002657/0.1212, allocations: 19.92 kB / 0.4996 GB, free: 15.3 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.355e-05/0.1213, allocations: 15.97 kB / 0.4996 GB, free: 15.28 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.08e-05/0.1213, allocations: 12 kB / 0.4996 GB, free: 15.27 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002797/0.1216, allocations: 283.1 kB / 0.4998 GB, free: 15 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.21e-07/0.1216, allocations: 4 kB / 0.4999 GB, free: 14.99 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0005148/0.1221, allocations: 103.8 kB / 0.5 GB, free: 14.89 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * 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 (11): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 6 * 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.001201/0.1233, allocations: 1.078 MB / 0.501 GB, free: 13.78 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0008497/0.1242, allocations: 442.7 kB / 0.5014 GB, free: 13.31 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.835e-06/0.1242, allocations: 0 / 0.5014 GB, free: 13.31 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003967/0.1246, allocations: 274.1 kB / 0.5017 GB, free: 13.01 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006176/0.1252, allocations: 73.69 kB / 0.5018 GB, free: 12.94 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005124/0.1304, allocations: 3.837 MB / 0.5055 GB, free: 8.906 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003745/0.1308, allocations: 0.8025 MB / 0.5063 GB, free: 8.078 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001854/0.131, allocations: 62.92 kB / 0.5063 GB, free: 8.012 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001286/0.1311, allocations: 91.06 kB / 0.5064 GB, free: 7.926 MB / 398.1 MB Notification: Performance of SimCode: time 6.11e-07/0.1311, allocations: 0 / 0.5064 GB, free: 7.926 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02718/0.1583, allocations: 9.034 MB / 0.5153 GB, free: 14.9 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.588/7.746, allocations: 16.02 kB / 0.5153 GB, free: 14.88 MB / 414.1 MB (rm -f ModelicaTest_3.2.3_ModelicaTest.Fluid.Dissipation.Verifications.HeatTransfer.StraightPipe.kc_turbulent.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Fluid.Dissipation.Verifications.HeatTransfer.StraightPipe.kc_turbulent.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Fluid.Dissipation.Verifications.HeatTransfer.StraightPipe.kc_turbulent.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Fluid.Dissipation.Verifications.HeatTransfer.StraightPipe.kc_turbulent.sim & python3 -m fmpy simulate --output-file ModelicaTest_3.2.3_ModelicaTest.Fluid.Dissipation.Verifications.HeatTransfer.StraightPipe.kc_turbulent_res.csv --start-time 0 --stop-time 1.01 --timeout 50 --relative-tolerance 1e-05 --interface-type ModelExchange --solver CVode --output-interval 0.000404 ModelicaTest_3_2_3_ModelicaTest_Fluid_Dissipation_Verifications_HeatTransfer_StraightPipe_kc_turbulent.fmu > ModelicaTest_3.2.3_ModelicaTest.Fluid.Dissipation.Verifications.HeatTransfer.StraightPipe.kc_turbulent.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Fluid.Dissipation.Verifications.HeatTransfer.StraightPipe.kc_turbulent_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Fluid/Dissipation/Verifications/HeatTransfer/StraightPipe/kc_turbulent/kc_turbulent.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.Fluid.Dissipation.Verifications.HeatTransfer.StraightPipe.kc_turbulent.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches