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.001056/0.001056, allocations: 117.2 kB / 17.78 MB, free: 5.258 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.0009834/0.0009834, allocations: 185 kB / 18.72 MB, free: 4.332 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.341/1.341, allocations: 222.9 MB / 242.4 MB, free: 15.07 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.1951/0.1951, allocations: 44.19 MB / 336.7 MB, free: 2.648 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0012/0.0012, allocations: 59.91 kB / 470.1 MB, free: 13.64 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3544/0.3556, allocations: 60.83 MB / 0.5185 GB, free: 3.277 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.Dissipation.Verifications.HeatTransfer.StraightPipe.kc_turbulent_KC): time 0.002977/0.3587, allocations: 1.858 MB / 0.5203 GB, free: 1.996 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001128/0.3598, allocations: 0.8006 MB / 0.521 GB, free: 1.438 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.878e-05/0.3599, allocations: 1.281 kB / 0.521 GB, free: 1.438 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002618/0.3602, allocations: 55.16 kB / 0.5211 GB, free: 1.41 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002806/0.3605, allocations: 87.92 kB / 0.5212 GB, free: 1.363 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002654/0.3607, allocations: 78.67 kB / 0.5213 GB, free: 1.332 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002835/0.361, allocations: 266.5 kB / 0.5215 GB, free: 1.215 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.521e-05/0.3611, allocations: 27.42 kB / 0.5215 GB, free: 1.203 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001491/0.3612, allocations: 94.81 kB / 0.5216 GB, free: 1.164 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000172/0.3614, allocations: 116.2 kB / 0.5217 GB, free: 1.117 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 2.444e-05/0.3615, allocations: 6.25 kB / 0.5217 GB, free: 1.117 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002434/0.3617, allocations: 128.1 kB / 0.5219 GB, free: 1.07 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 9.73e-05/0.3618, allocations: 62.03 kB / 0.5219 GB, free: 1.047 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 9.531e-05/0.3619, allocations: 101.1 kB / 0.522 GB, free: 0.9883 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004044/0.3623, allocations: 315.6 kB / 0.5223 GB, free: 0.8555 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.637e-06/0.3623, allocations: 1.219 kB / 0.5223 GB, free: 0.8555 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.412e-06/0.3623, allocations: 0 / 0.5223 GB, free: 0.8555 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.343e-06/0.3624, allocations: 0.75 kB / 0.5223 GB, free: 0.8555 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.0007555/0.3631, allocations: 0.5581 MB / 0.5229 GB, free: 388 kB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.912e-05/0.3632, allocations: 9.797 kB / 0.5229 GB, free: 388 kB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.93e-05/0.3632, allocations: 64.91 kB / 0.5229 GB, free: 332 kB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.782e-05/0.3633, allocations: 29.66 kB / 0.523 GB, free: 316 kB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002305/0.3635, allocations: 245.9 kB / 0.5232 GB, free: 76 kB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.609e-05/0.3635, allocations: 22.91 kB / 0.5232 GB, free: 64 kB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.129e-05/0.3636, allocations: 27.92 kB / 0.5233 GB, free: 52 kB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006422/0.3642, allocations: 373.2 kB / 0.5236 GB, free: 15.91 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.133e-05/0.3643, allocations: 0 / 0.5236 GB, free: 15.91 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.772e-05/0.3643, allocations: 13.94 kB / 0.5236 GB, free: 15.91 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.295e-05/0.3643, allocations: 28.5 kB / 0.5237 GB, free: 15.9 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006511/0.365, allocations: 375.1 kB / 0.524 GB, free: 15.81 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001381/0.3664, allocations: 0.8416 MB / 0.5248 GB, free: 15.34 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000507/0.3669, allocations: 255.8 kB / 0.5251 GB, free: 15.29 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002079/0.3671, allocations: 97.31 kB / 0.5252 GB, free: 15.27 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.505e-05/0.3672, allocations: 16.27 kB / 0.5252 GB, free: 15.25 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.101e-05/0.3672, allocations: 31.94 kB / 0.5252 GB, free: 15.21 MB / 398.1 MB Notification: Performance of pre-optimization done (n=16): time 1.242e-06/0.3672, allocations: 0 / 0.5252 GB, free: 15.21 MB / 398.1 MB Notification: Performance of matching and sorting (n=16): time 0.0007542/0.368, allocations: 331.5 kB / 0.5255 GB, free: 15.13 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.243e-05/0.368, allocations: 57.38 kB / 0.5256 GB, free: 15.07 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003533/0.3684, allocations: 344.1 kB / 0.5259 GB, free: 14.9 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.23e-05/0.3684, allocations: 25.7 kB / 0.5259 GB, free: 14.87 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001193/0.3685, allocations: 180.2 kB / 0.5261 GB, free: 14.7 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.691e-05/0.3686, allocations: 56.02 kB / 0.5262 GB, free: 14.66 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.073e-05/0.3687, allocations: 58.42 kB / 0.5262 GB, free: 14.61 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001296/0.3688, allocations: 339.8 kB / 0.5265 GB, free: 14.28 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002124/0.369, allocations: 101.7 kB / 0.5266 GB, free: 14.24 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002709/0.3693, allocations: 184.6 kB / 0.5268 GB, free: 14.09 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000493/0.3698, allocations: 312.3 kB / 0.5271 GB, free: 13.87 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.885e-06/0.3698, allocations: 1.344 kB / 0.5271 GB, free: 13.87 MB / 398.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0006078/0.3704, allocations: 349.1 kB / 0.5274 GB, free: 13.7 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.867e-05/0.3705, allocations: 6.562 kB / 0.5275 GB, free: 13.7 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.596e-06/0.3705, allocations: 2.75 kB / 0.5275 GB, free: 13.7 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.687e-05/0.3705, allocations: 4.031 kB / 0.5275 GB, free: 13.7 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000579/0.3711, allocations: 125 kB / 0.5276 GB, free: 13.66 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001859/0.373, allocations: 3.649 MB / 0.5311 GB, free: 10.03 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002275/0.3732, allocations: 52.83 kB / 0.5312 GB, free: 9.988 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.603e-05/0.3732, allocations: 15.28 kB / 0.5312 GB, free: 9.984 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.0002567/0.3735, allocations: 185.8 kB / 0.5314 GB, free: 9.828 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.544e-05/0.3736, allocations: 22.86 kB / 0.5314 GB, free: 9.816 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006682/0.3742, allocations: 321.2 kB / 0.5317 GB, free: 9.645 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.609e-06/0.3743, allocations: 5.344 kB / 0.5317 GB, free: 9.641 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.24e-06/0.3743, allocations: 0 / 0.5317 GB, free: 9.641 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.56e-06/0.3743, allocations: 5.172 kB / 0.5317 GB, free: 9.637 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003634/0.3746, allocations: 296.7 kB / 0.532 GB, free: 9.367 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.793e-06/0.3747, allocations: 1.094 kB / 0.532 GB, free: 9.367 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004737/0.3751, allocations: 112.3 kB / 0.5321 GB, free: 9.332 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.569e-06/0.3751, allocations: 1.625 kB / 0.5321 GB, free: 9.332 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.712e-05/0.3752, allocations: 2.75 kB / 0.5321 GB, free: 9.332 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001802/0.377, allocations: 3.654 MB / 0.5357 GB, free: 5.688 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.964e-06/0.377, allocations: 1.125 kB / 0.5357 GB, free: 5.688 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005472/0.3775, allocations: 360.3 kB / 0.536 GB, free: 5.449 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.223e-05/0.3776, allocations: 106 kB / 0.5361 GB, free: 5.336 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.374e-05/0.3777, allocations: 5.188 kB / 0.5361 GB, free: 5.332 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000168/0.3779, allocations: 12.58 kB / 0.5362 GB, free: 5.324 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.478e-05/0.3779, allocations: 14.8 kB / 0.5362 GB, free: 5.316 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.917e-05/0.378, allocations: 9.688 kB / 0.5362 GB, free: 5.312 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002535/0.3782, allocations: 246.2 kB / 0.5364 GB, free: 5.156 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3782, allocations: 4 kB / 0.5364 GB, free: 5.152 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004449/0.3787, allocations: 78.48 kB / 0.5365 GB, free: 5.137 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.0009552/0.3796, allocations: 0.9073 MB / 0.5374 GB, free: 4.367 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0008923/0.3805, allocations: 326.9 kB / 0.5377 GB, free: 4.246 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.915e-06/0.3806, allocations: 0 / 0.5377 GB, free: 4.246 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005398/0.3811, allocations: 185.2 kB / 0.5379 GB, free: 4.184 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004225/0.3815, allocations: 65.95 kB / 0.5379 GB, free: 4.145 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00413/0.3857, allocations: 3.375 MB / 0.5412 GB, free: 1.781 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000364/0.3861, allocations: 0.7979 MB / 0.542 GB, free: 1.023 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.00021/0.3863, allocations: 75.41 kB / 0.5421 GB, free: 0.9961 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001222/0.3864, allocations: 80.67 kB / 0.5421 GB, free: 0.9375 MB / 398.1 MB Notification: Performance of SimCode: time 3.61e-07/0.3864, allocations: 0 / 0.5421 GB, free: 0.9375 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0274/0.4138, allocations: 8.594 MB / 0.5505 GB, free: 10.59 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.3/11.72, allocations: 20.2 kB / 0.5506 GB, free: 10.58 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