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_KC.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_KC,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Fluid_Dissipation_Verifications_HeatTransfer_StraightPipe_kc_turbulent_KC",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.Dissipation.Verifications.HeatTransfer.StraightPipe.kc_turbulent_KC,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Fluid_Dissipation_Verifications_HeatTransfer_StraightPipe_kc_turbulent_KC",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.001432/0.001432, allocations: 105.2 kB / 16.27 MB, free: 5.965 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.002122/0.002122, allocations: 189.4 kB / 17.19 MB, free: 5.602 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.465/1.465, allocations: 205.1 MB / 223.1 MB, free: 12.28 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.2084/0.2084, allocations: 43.53 MB / 313.9 MB, free: 0.5312 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.001458/0.001458, allocations: 65.38 kB / 382.9 MB, free: 56.69 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1106/0.1121, allocations: 57.79 MB / 440.7 MB, free: 6.789 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.Dissipation.Verifications.HeatTransfer.StraightPipe.kc_turbulent_KC): time 0.002906/0.115, allocations: 1.878 MB / 442.5 MB, free: 4.887 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001161/0.1162, allocations: 0.8304 MB / 443.4 MB, free: 4.051 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.895e-05/0.1163, allocations: 0 / 443.4 MB, free: 4.051 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002468/0.1165, allocations: 47.73 kB / 443.4 MB, free: 4.004 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002479/0.1168, allocations: 87.56 kB / 443.5 MB, free: 3.918 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002182/0.117, allocations: 75.72 kB / 443.6 MB, free: 3.844 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001989/0.1172, allocations: 262.7 kB / 443.8 MB, free: 3.586 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.852e-05/0.1173, allocations: 28.38 kB / 443.8 MB, free: 3.555 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001173/0.1174, allocations: 103.5 kB / 444 MB, free: 3.453 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001333/0.1176, allocations: 123.4 kB / 444.1 MB, free: 3.332 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.178e-05/0.1176, allocations: 4 kB / 444.1 MB, free: 3.328 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002/0.1178, allocations: 123.8 kB / 444.2 MB, free: 3.207 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 8.217e-05/0.1179, allocations: 67.69 kB / 444.3 MB, free: 3.141 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 8.029e-05/0.118, allocations: 103.3 kB / 444.4 MB, free: 3.039 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002781/0.1183, allocations: 294.9 kB / 444.7 MB, free: 2.75 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.777e-06/0.1183, allocations: 0 / 444.7 MB, free: 2.75 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.242e-06/0.1183, allocations: 0 / 444.7 MB, free: 2.75 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.681e-06/0.1183, allocations: 0 / 444.7 MB, free: 2.75 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 73 * Number of variables: 73 Notification: Performance of Generate backend data structure: time 0.0006705/0.119, allocations: 0.5575 MB / 445.2 MB, free: 2.145 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.652e-05/0.119, allocations: 8.031 kB / 445.2 MB, free: 2.137 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.594e-05/0.1191, allocations: 66.72 kB / 445.3 MB, free: 2.062 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.115e-05/0.1191, allocations: 32.66 kB / 445.3 MB, free: 2.031 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001972/0.1193, allocations: 233.1 kB / 445.5 MB, free: 1.766 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.361e-05/0.1193, allocations: 20.88 kB / 445.6 MB, free: 1.746 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.421e-05/0.1194, allocations: 31.92 kB / 445.6 MB, free: 1.715 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004908/0.1199, allocations: 377.2 kB / 446 MB, free: 1.344 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.244e-05/0.1199, allocations: 0 / 446 MB, free: 1.344 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.271e-05/0.1199, allocations: 11.98 kB / 446 MB, free: 1.332 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.407e-05/0.12, allocations: 28.62 kB / 446 MB, free: 1.305 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004834/0.1205, allocations: 374.3 kB / 446.4 MB, free: 0.9375 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009545/0.1214, allocations: 0.8345 MB / 447.2 MB, free: 52 kB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000474/0.1219, allocations: 262.3 kB / 447.5 MB, free: 15.78 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002265/0.1221, allocations: 96.78 kB / 447.6 MB, free: 15.68 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.148e-05/0.1222, allocations: 7.984 kB / 447.6 MB, free: 15.68 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.946e-05/0.1222, allocations: 34.56 kB / 447.6 MB, free: 15.63 MB / 334.1 MB Notification: Performance of pre-optimization done (n=16): time 1.293e-06/0.1222, allocations: 0 / 447.6 MB, free: 15.63 MB / 334.1 MB Notification: Performance of matching and sorting (n=16): time 0.0007766/0.123, allocations: 332.4 kB / 447.9 MB, free: 15.3 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.653e-05/0.123, allocations: 55.41 kB / 448 MB, free: 15.24 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003434/0.1234, allocations: 339 kB / 448.3 MB, free: 14.89 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.432e-05/0.1234, allocations: 29.7 kB / 448.3 MB, free: 14.86 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001436/0.1236, allocations: 183.8 kB / 448.5 MB, free: 14.68 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.827e-05/0.1236, allocations: 55.2 kB / 448.6 MB, free: 14.62 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.514e-05/0.1237, allocations: 57.92 kB / 448.6 MB, free: 14.56 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001324/0.1239, allocations: 338.8 kB / 449 MB, free: 14.22 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002076/0.1241, allocations: 96.38 kB / 449 MB, free: 14.13 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002685/0.1244, allocations: 189.4 kB / 449.2 MB, free: 13.91 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004929/0.1249, allocations: 302.8 kB / 449.5 MB, free: 13.57 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.444e-06/0.1249, allocations: 0 / 449.5 MB, free: 13.57 MB / 334.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0006049/0.1255, allocations: 353 kB / 449.9 MB, free: 13.22 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.382e-05/0.1255, allocations: 4 kB / 449.9 MB, free: 13.21 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.434e-06/0.1255, allocations: 4 kB / 449.9 MB, free: 13.21 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.935e-05/0.1255, allocations: 4 kB / 449.9 MB, free: 13.21 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005821/0.1261, allocations: 123.9 kB / 450 MB, free: 13.09 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001964/0.1281, allocations: 3.661 MB / 453.7 MB, free: 9.285 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002266/0.1283, allocations: 39.62 kB / 453.7 MB, free: 9.246 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.612e-05/0.1284, allocations: 11.98 kB / 453.7 MB, free: 9.234 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * 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 (28): * Single equations (assignments): 22 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 6 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 6 systems {1, 1, 1, 1, 1, 1} * Without analytic Jacobian (size): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0003261/0.1287, allocations: 187.6 kB / 453.9 MB, free: 9.043 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.006e-05/0.1288, allocations: 23.91 kB / 453.9 MB, free: 9.02 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007111/0.1295, allocations: 338.6 kB / 454.3 MB, free: 8.684 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.053e-06/0.1295, allocations: 3.984 kB / 454.3 MB, free: 8.68 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.087e-06/0.1295, allocations: 0 / 454.3 MB, free: 8.68 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.848e-06/0.1295, allocations: 3.938 kB / 454.3 MB, free: 8.676 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003988/0.1299, allocations: 297.4 kB / 454.6 MB, free: 8.336 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.154e-06/0.13, allocations: 0 / 454.6 MB, free: 8.336 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004794/0.1304, allocations: 108 kB / 454.7 MB, free: 8.23 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.158e-06/0.1305, allocations: 0 / 454.7 MB, free: 8.23 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.477e-05/0.1305, allocations: 11.98 kB / 454.7 MB, free: 8.219 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002199/0.1327, allocations: 3.649 MB / 458.3 MB, free: 4.43 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.074e-06/0.1327, allocations: 0 / 458.3 MB, free: 4.43 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005987/0.1333, allocations: 347 kB / 458.7 MB, free: 4.074 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001622/0.1335, allocations: 104.7 kB / 458.8 MB, free: 3.953 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.242e-05/0.1335, allocations: 3.938 kB / 458.8 MB, free: 3.949 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001684/0.1337, allocations: 16.08 kB / 458.8 MB, free: 3.934 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.288e-05/0.1338, allocations: 15.98 kB / 458.8 MB, free: 3.918 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.73e-05/0.1338, allocations: 7.984 kB / 458.8 MB, free: 3.91 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002373/0.1341, allocations: 241.9 kB / 459 MB, free: 3.68 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.473e-06/0.1341, allocations: 0 / 459 MB, free: 3.68 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003958/0.1345, allocations: 83.86 kB / 459.1 MB, free: 3.598 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 (16): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 6 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 6 systems {1, 1, 1, 1, 1, 1} * Without analytic Jacobian (size): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0009958/0.1355, allocations: 0.8995 MB / 460 MB, free: 2.672 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0009898/0.1365, allocations: 350.7 kB / 460.4 MB, free: 2.332 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.885e-06/0.1365, allocations: 0 / 460.4 MB, free: 2.332 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000562/0.1371, allocations: 188.5 kB / 460.5 MB, free: 2.148 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004049/0.1375, allocations: 72.78 kB / 460.6 MB, free: 2.078 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004458/0.142, allocations: 3.393 MB / 464 MB, free: 14.54 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004176/0.1424, allocations: 0.7951 MB / 464.8 MB, free: 13.71 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002414/0.1427, allocations: 78.89 kB / 464.9 MB, free: 13.64 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000125/0.1428, allocations: 75.41 kB / 465 MB, free: 13.56 MB / 350.1 MB Notification: Performance of SimCode: time 7.82e-07/0.1428, allocations: 3.938 kB / 465 MB, free: 13.56 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02708/0.1699, allocations: 8.448 MB / 473.4 MB, free: 5.152 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.34/11.51, allocations: 4.391 kB / 473.4 MB, free: 5.148 MB / 350.1 MB (rm -f ModelicaTest_3.2.3_ModelicaTest.Fluid.Dissipation.Verifications.HeatTransfer.StraightPipe.kc_turbulent_KC.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Fluid.Dissipation.Verifications.HeatTransfer.StraightPipe.kc_turbulent_KC.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Fluid.Dissipation.Verifications.HeatTransfer.StraightPipe.kc_turbulent_KC.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Fluid.Dissipation.Verifications.HeatTransfer.StraightPipe.kc_turbulent_KC.sim & python3 -m fmpy simulate --output-file ModelicaTest_3.2.3_ModelicaTest.Fluid.Dissipation.Verifications.HeatTransfer.StraightPipe.kc_turbulent_KC_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_KC.fmu > ModelicaTest_3.2.3_ModelicaTest.Fluid.Dissipation.Verifications.HeatTransfer.StraightPipe.kc_turbulent_KC.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Fluid.Dissipation.Verifications.HeatTransfer.StraightPipe.kc_turbulent_KC_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/kc_turbulent_KC.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.Fluid.Dissipation.Verifications.HeatTransfer.StraightPipe.kc_turbulent_KC.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches