Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_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 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.Dissipation.Verifications.HeatTransfer.StraightPipe.kc_turbulent_KC,fileNamePrefix="ModelicaTest_4_0_0_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_4_0_0_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.001185/0.001185, allocations: 104.1 kB / 17.64 MB, free: 5.48 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.001132/0.001132, allocations: 192 kB / 18.55 MB, free: 4.566 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.482/1.482, allocations: 222.9 MB / 242.3 MB, free: 15.17 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.2678/0.2678, allocations: 44.18 MB / 336.6 MB, free: 2.762 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001811/0.001811, allocations: 59.86 kB / 408.6 MB, free: 27.11 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.115/0.1169, allocations: 60.83 MB / 469.4 MB, free: 14.25 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.Dissipation.Verifications.HeatTransfer.StraightPipe.kc_turbulent_KC): time 0.003525/0.1204, allocations: 1.86 MB / 471.2 MB, free: 12.37 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001322/0.1218, allocations: 0.7944 MB / 472 MB, free: 11.57 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.443e-05/0.1219, allocations: 7.938 kB / 472 MB, free: 11.57 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002417/0.1221, allocations: 55.67 kB / 472.1 MB, free: 11.51 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000285/0.1224, allocations: 91.53 kB / 472.2 MB, free: 11.42 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002452/0.1227, allocations: 78.84 kB / 472.3 MB, free: 11.35 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002676/0.123, allocations: 258.8 kB / 472.5 MB, free: 11.09 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 7.023e-05/0.123, allocations: 36.38 kB / 472.6 MB, free: 11.05 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001804/0.1232, allocations: 95.52 kB / 472.6 MB, free: 10.96 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001957/0.1234, allocations: 115.5 kB / 472.8 MB, free: 10.85 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.078e-05/0.1235, allocations: 8 kB / 472.8 MB, free: 10.84 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002484/0.1237, allocations: 119.8 kB / 472.9 MB, free: 10.72 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.67e-05/0.1238, allocations: 71.67 kB / 473 MB, free: 10.65 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001141/0.1239, allocations: 103.3 kB / 473.1 MB, free: 10.55 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004198/0.1244, allocations: 295.1 kB / 473.3 MB, free: 10.26 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.568e-06/0.1244, allocations: 4 kB / 473.4 MB, free: 10.26 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.1244, allocations: 0 / 473.4 MB, free: 10.26 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.257e-05/0.1244, allocations: 0 / 473.4 MB, free: 10.26 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: 73 * Number of variables: 73 Notification: Performance of Generate backend data structure: time 0.0009377/0.1254, allocations: 0.5497 MB / 473.9 MB, free: 9.66 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.225e-05/0.1254, allocations: 12.03 kB / 473.9 MB, free: 9.648 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.627e-05/0.1255, allocations: 66.72 kB / 474 MB, free: 9.574 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.819e-05/0.1256, allocations: 32.56 kB / 474 MB, free: 9.543 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002675/0.1259, allocations: 231.9 kB / 474.2 MB, free: 9.277 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.349e-05/0.1259, allocations: 24.92 kB / 474.3 MB, free: 9.254 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.603e-05/0.1259, allocations: 27.94 kB / 474.3 MB, free: 9.227 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006027/0.1265, allocations: 373.2 kB / 474.7 MB, free: 8.855 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.183e-05/0.1266, allocations: 0 / 474.7 MB, free: 8.855 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.739e-05/0.1266, allocations: 12 kB / 474.7 MB, free: 8.844 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.333e-05/0.1266, allocations: 28.64 kB / 474.7 MB, free: 8.812 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006059/0.1273, allocations: 378.2 kB / 475.1 MB, free: 8.445 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001241/0.1285, allocations: 0.8384 MB / 475.9 MB, free: 7.555 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004563/0.129, allocations: 254.4 kB / 476.1 MB, free: 7.297 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002008/0.1292, allocations: 104.7 kB / 476.2 MB, free: 7.191 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.04e-05/0.1292, allocations: 7.922 kB / 476.3 MB, free: 7.184 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.459e-05/0.1293, allocations: 34.56 kB / 476.3 MB, free: 7.141 MB / 350.1 MB Notification: Performance of pre-optimization done (n=16): time 1.393e-06/0.1293, allocations: 0 / 476.3 MB, free: 7.141 MB / 350.1 MB Notification: Performance of matching and sorting (n=16): time 0.0007443/0.13, allocations: 332.2 kB / 476.6 MB, free: 6.812 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.535e-05/0.1301, allocations: 55.41 kB / 476.7 MB, free: 6.746 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003185/0.1304, allocations: 346.8 kB / 477 MB, free: 6.398 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.315e-05/0.1304, allocations: 29.7 kB / 477 MB, free: 6.363 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001073/0.1305, allocations: 160 kB / 477.2 MB, free: 6.203 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.809e-05/0.1306, allocations: 55.2 kB / 477.2 MB, free: 6.148 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001067/0.1307, allocations: 65.86 kB / 477.3 MB, free: 6.074 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001498/0.1309, allocations: 342.8 kB / 477.6 MB, free: 5.73 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002206/0.1311, allocations: 96.36 kB / 477.7 MB, free: 5.637 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003002/0.1314, allocations: 193.8 kB / 477.9 MB, free: 5.41 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004983/0.1319, allocations: 306.7 kB / 478.2 MB, free: 5.07 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.825e-06/0.1319, allocations: 0 / 478.2 MB, free: 5.07 MB / 350.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0006102/0.1325, allocations: 344.8 kB / 478.6 MB, free: 4.727 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.694e-05/0.1326, allocations: 8 kB / 478.6 MB, free: 4.719 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.686e-06/0.1326, allocations: 4 kB / 478.6 MB, free: 4.715 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.618e-05/0.1326, allocations: 8.375 kB / 478.6 MB, free: 4.707 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005561/0.1332, allocations: 123.9 kB / 478.7 MB, free: 4.586 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001808/0.135, allocations: 3.649 MB / 482.4 MB, free: 0.7969 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002192/0.1352, allocations: 47.52 kB / 482.4 MB, free: 0.75 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.311e-05/0.1352, allocations: 12 kB / 482.4 MB, free: 0.7383 MB / 350.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.0002197/0.1355, allocations: 177.7 kB / 482.6 MB, free: 0.5547 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.482e-05/0.1355, allocations: 27.62 kB / 482.6 MB, free: 0.5273 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006627/0.1362, allocations: 326.7 kB / 482.9 MB, free: 208 kB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.71e-06/0.1362, allocations: 4 kB / 482.9 MB, free: 204 kB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.348e-06/0.1362, allocations: 0 / 482.9 MB, free: 204 kB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.547e-06/0.1362, allocations: 0 / 482.9 MB, free: 204 kB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003435/0.1366, allocations: 305.3 kB / 483.2 MB, free: 15.85 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.543e-06/0.1366, allocations: 0 / 483.2 MB, free: 15.85 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004646/0.1371, allocations: 107.9 kB / 483.3 MB, free: 15.75 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.445e-06/0.1371, allocations: 0 / 483.3 MB, free: 15.75 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.876e-05/0.1371, allocations: 8 kB / 483.3 MB, free: 15.74 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00171/0.1388, allocations: 3.649 MB / 487 MB, free: 11.95 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.557e-06/0.1388, allocations: 3.984 kB / 487 MB, free: 11.95 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005178/0.1394, allocations: 351.2 kB / 487.3 MB, free: 11.59 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.677e-05/0.1394, allocations: 104.8 kB / 487.4 MB, free: 11.46 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.352e-05/0.1395, allocations: 7.938 kB / 487.5 MB, free: 11.46 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001642/0.1397, allocations: 8 kB / 487.5 MB, free: 11.45 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.347e-05/0.1397, allocations: 19.97 kB / 487.5 MB, free: 11.43 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.175e-05/0.1397, allocations: 4 kB / 487.5 MB, free: 11.43 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002198/0.14, allocations: 249.9 kB / 487.7 MB, free: 11.18 MB / 366.1 MB Notification: Performance of sort global known variables: time 2e-07/0.14, allocations: 0 / 487.7 MB, free: 11.18 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003665/0.1403, allocations: 75.94 kB / 487.8 MB, free: 11.11 MB / 366.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.0008508/0.1412, allocations: 0.9126 MB / 488.7 MB, free: 10.17 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0008717/0.1421, allocations: 351.1 kB / 489.1 MB, free: 9.828 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.485e-06/0.1421, allocations: 0 / 489.1 MB, free: 9.828 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000553/0.1427, allocations: 187.8 kB / 489.2 MB, free: 9.645 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003994/0.1431, allocations: 76.75 kB / 489.3 MB, free: 9.57 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003828/0.1469, allocations: 3.381 MB / 492.7 MB, free: 6.039 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003496/0.1473, allocations: 0.7912 MB / 493.5 MB, free: 5.219 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002081/0.1475, allocations: 86.88 kB / 493.6 MB, free: 5.133 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000115/0.1476, allocations: 71.41 kB / 493.6 MB, free: 5.062 MB / 366.1 MB Notification: Performance of SimCode: time 3.6e-07/0.1476, allocations: 0 / 493.6 MB, free: 5.062 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02738/0.175, allocations: 8.43 MB / 0.4903 GB, free: 12.88 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.1/11.27, allocations: 12.33 kB / 0.4903 GB, free: 12.88 MB / 382.1 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.Fluid.Dissipation.Verifications.HeatTransfer.StraightPipe.kc_turbulent_KC.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Fluid.Dissipation.Verifications.HeatTransfer.StraightPipe.kc_turbulent_KC.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Fluid.Dissipation.Verifications.HeatTransfer.StraightPipe.kc_turbulent_KC.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.Dissipation.Verifications.HeatTransfer.StraightPipe.kc_turbulent_KC.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.0.0_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_4_0_0_ModelicaTest_Fluid_Dissipation_Verifications_HeatTransfer_StraightPipe_kc_turbulent_KC.fmu > ModelicaTest_4.0.0_ModelicaTest.Fluid.Dissipation.Verifications.HeatTransfer.StraightPipe.kc_turbulent_KC.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Fluid.Dissipation.Verifications.HeatTransfer.StraightPipe.kc_turbulent_KC_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/Dissipation/Verifications/HeatTransfer/StraightPipe/kc_turbulent_KC/kc_turbulent_KC.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Fluid.Dissipation.Verifications.HeatTransfer.StraightPipe.kc_turbulent_KC.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches