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.001261/0.001261, allocations: 112.8 kB / 17.78 MB, free: 5.277 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.001314/0.001315, allocations: 180.9 kB / 18.71 MB, free: 4.363 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.424/1.424, allocations: 222.9 MB / 242.4 MB, free: 15.15 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.2237/0.2237, allocations: 44.19 MB / 336.8 MB, free: 2.668 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001849/0.001849, allocations: 67.89 kB / 470.1 MB, free: 13.64 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3686/0.3705, allocations: 60.83 MB / 0.5185 GB, free: 3.297 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.Dissipation.Verifications.HeatTransfer.StraightPipe.kc_turbulent_KC): time 0.003349/0.3739, allocations: 1.858 MB / 0.5203 GB, free: 2.02 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001592/0.3755, allocations: 0.8049 MB / 0.5211 GB, free: 1.457 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.333e-05/0.3756, allocations: 1.406 kB / 0.5211 GB, free: 1.457 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003386/0.376, allocations: 54.7 kB / 0.5211 GB, free: 1.43 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003495/0.3764, allocations: 86.58 kB / 0.5212 GB, free: 1.383 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003086/0.3767, allocations: 74.16 kB / 0.5213 GB, free: 1.352 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003791/0.3771, allocations: 258.5 kB / 0.5215 GB, free: 1.242 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.401e-05/0.3771, allocations: 35.52 kB / 0.5215 GB, free: 1.223 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000205/0.3774, allocations: 99.7 kB / 0.5216 GB, free: 1.18 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002055/0.3776, allocations: 111.9 kB / 0.5217 GB, free: 1.137 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 2.925e-05/0.3776, allocations: 6.625 kB / 0.5218 GB, free: 1.137 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002703/0.3779, allocations: 127.6 kB / 0.5219 GB, free: 1.09 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 9.945e-05/0.378, allocations: 61.72 kB / 0.5219 GB, free: 1.066 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001369/0.3781, allocations: 114.6 kB / 0.522 GB, free: 0.9961 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004226/0.3786, allocations: 302.8 kB / 0.5223 GB, free: 0.875 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.639e-06/0.3786, allocations: 1.406 kB / 0.5223 GB, free: 0.875 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.044e-06/0.3786, allocations: 0 / 0.5223 GB, free: 0.875 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.091e-06/0.3786, allocations: 0 / 0.5223 GB, free: 0.875 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: 73 * Number of variables: 73 Notification: Performance of Generate backend data structure: time 0.0007569/0.3794, allocations: 0.5522 MB / 0.5229 GB, free: 412 kB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.081e-05/0.3794, allocations: 9.531 kB / 0.5229 GB, free: 412 kB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.503e-05/0.3795, allocations: 65.55 kB / 0.5229 GB, free: 356 kB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.442e-05/0.3795, allocations: 33.12 kB / 0.523 GB, free: 336 kB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002051/0.3798, allocations: 245.6 kB / 0.5232 GB, free: 96 kB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.164e-05/0.3798, allocations: 19.44 kB / 0.5232 GB, free: 88 kB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.996e-05/0.3798, allocations: 23.47 kB / 0.5232 GB, free: 80 kB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000744/0.3806, allocations: 379.8 kB / 0.5236 GB, free: 15.94 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.305e-05/0.3806, allocations: 1.188 kB / 0.5236 GB, free: 15.94 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.11e-05/0.3806, allocations: 10.22 kB / 0.5236 GB, free: 15.93 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.556e-05/0.3807, allocations: 24.47 kB / 0.5236 GB, free: 15.93 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007289/0.3814, allocations: 375.7 kB / 0.524 GB, free: 15.84 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001485/0.3829, allocations: 0.8393 MB / 0.5248 GB, free: 15.37 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005071/0.3834, allocations: 258.3 kB / 0.5251 GB, free: 15.32 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002255/0.3837, allocations: 108.3 kB / 0.5252 GB, free: 15.28 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.052e-05/0.3837, allocations: 11.44 kB / 0.5252 GB, free: 15.27 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.02e-05/0.3838, allocations: 33.48 kB / 0.5252 GB, free: 15.23 MB / 398.1 MB Notification: Performance of pre-optimization done (n=16): time 1.943e-06/0.3838, allocations: 0 / 0.5252 GB, free: 15.23 MB / 398.1 MB Notification: Performance of matching and sorting (n=16): time 0.0008103/0.3846, allocations: 323.5 kB / 0.5255 GB, free: 15.16 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.778e-05/0.3846, allocations: 53.81 kB / 0.5256 GB, free: 15.09 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003896/0.385, allocations: 352.1 kB / 0.5259 GB, free: 14.92 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.022e-05/0.3851, allocations: 33.64 kB / 0.5259 GB, free: 14.88 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001391/0.3852, allocations: 173.7 kB / 0.5261 GB, free: 14.72 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.919e-05/0.3853, allocations: 54.98 kB / 0.5262 GB, free: 14.68 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001011/0.3854, allocations: 58.08 kB / 0.5262 GB, free: 14.63 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.000153/0.3856, allocations: 339.7 kB / 0.5265 GB, free: 14.3 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002163/0.3858, allocations: 99.2 kB / 0.5266 GB, free: 14.26 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002928/0.3861, allocations: 187.4 kB / 0.5268 GB, free: 14.11 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005354/0.3866, allocations: 314.9 kB / 0.5271 GB, free: 13.89 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.128e-06/0.3866, allocations: 1.312 kB / 0.5271 GB, free: 13.89 MB / 398.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0006248/0.3873, allocations: 342.2 kB / 0.5274 GB, free: 13.72 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.88e-05/0.3873, allocations: 6.875 kB / 0.5274 GB, free: 13.72 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.625e-06/0.3873, allocations: 2.531 kB / 0.5275 GB, free: 13.72 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.972e-05/0.3873, allocations: 4.375 kB / 0.5275 GB, free: 13.72 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005685/0.3879, allocations: 123.8 kB / 0.5276 GB, free: 13.69 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002313/0.3902, allocations: 3.655 MB / 0.5311 GB, free: 10.05 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002778/0.3905, allocations: 49.11 kB / 0.5312 GB, free: 10.01 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.82e-05/0.3906, allocations: 11.09 kB / 0.5312 GB, free: 10.01 MB / 398.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.0003177/0.3909, allocations: 185.3 kB / 0.5314 GB, free: 9.852 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.95e-05/0.391, allocations: 23.67 kB / 0.5314 GB, free: 9.84 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007241/0.3917, allocations: 332.3 kB / 0.5317 GB, free: 9.656 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.06e-06/0.3917, allocations: 2.062 kB / 0.5317 GB, free: 9.656 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.558e-06/0.3917, allocations: 0 / 0.5317 GB, free: 9.656 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.201e-06/0.3917, allocations: 8.859 kB / 0.5317 GB, free: 9.648 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003888/0.3921, allocations: 293.5 kB / 0.532 GB, free: 9.383 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.974e-06/0.3921, allocations: 0 / 0.532 GB, free: 9.383 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004609/0.3926, allocations: 109.1 kB / 0.5321 GB, free: 9.352 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.648e-06/0.3926, allocations: 1.156 kB / 0.5321 GB, free: 9.352 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.478e-05/0.3926, allocations: 6.312 kB / 0.5321 GB, free: 9.348 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002253/0.3949, allocations: 3.651 MB / 0.5357 GB, free: 5.707 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.723e-06/0.3949, allocations: 3.938 kB / 0.5357 GB, free: 5.703 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005708/0.3955, allocations: 356.7 kB / 0.536 GB, free: 5.473 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.406e-05/0.3956, allocations: 102.7 kB / 0.5361 GB, free: 5.363 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.493e-05/0.3956, allocations: 5.281 kB / 0.5361 GB, free: 5.359 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001656/0.3958, allocations: 12.27 kB / 0.5361 GB, free: 5.352 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.187e-05/0.3959, allocations: 10.58 kB / 0.5362 GB, free: 5.348 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.896e-05/0.3959, allocations: 9.438 kB / 0.5362 GB, free: 5.344 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002636/0.3962, allocations: 249.5 kB / 0.5364 GB, free: 5.184 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3962, allocations: 0 / 0.5364 GB, free: 5.184 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004066/0.3966, allocations: 79.61 kB / 0.5365 GB, free: 5.168 MB / 398.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.001022/0.3976, allocations: 0.9146 MB / 0.5374 GB, free: 4.387 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0009273/0.3986, allocations: 317.1 kB / 0.5377 GB, free: 4.273 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 5.641e-06/0.3986, allocations: 0.75 kB / 0.5377 GB, free: 4.273 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005591/0.3992, allocations: 194.7 kB / 0.5379 GB, free: 4.203 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004208/0.3996, allocations: 58.11 kB / 0.5379 GB, free: 4.172 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004444/0.404, allocations: 3.395 MB / 0.5412 GB, free: 1.789 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004267/0.4045, allocations: 0.7826 MB / 0.542 GB, free: 1.047 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0002138/0.4047, allocations: 82.83 kB / 0.5421 GB, free: 1.012 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001209/0.4048, allocations: 73.62 kB / 0.5421 GB, free: 0.957 MB / 398.1 MB Notification: Performance of SimCode: time 2.865e-06/0.4049, allocations: 0 / 0.5421 GB, free: 0.957 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03306/0.4379, allocations: 8.599 MB / 0.5505 GB, free: 10.64 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.88/12.32, allocations: 19.67 kB / 0.5506 GB, free: 10.63 MB / 414.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