Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Functions.Validation.InternalResistancesTwoUTubeNegative.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/Buildings 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/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: translateModel(Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Functions.Validation.InternalResistancesTwoUTubeNegative,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Rgb|Rgg1|Rgg2|RCondGro|x",fileNamePrefix="Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Functions.Validation.InternalResistancesTwoUTubeNegative") translateModel(Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Functions.Validation.InternalResistancesTwoUTubeNegative,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Rgb|Rgg1|Rgg2|RCondGro|x",fileNamePrefix="Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Functions.Validation.InternalResistancesTwoUTubeNegative") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001593/0.001593, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001954/0.001954, allocations: 194.5 kB / 16.53 MB, free: 6.391 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.345/1.345, allocations: 222.9 MB / 240.2 MB, free: 4.391 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.741/2.741, allocations: 472.6 MB / 0.7451 GB, free: 4.664 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001304/0.001304, allocations: 62.52 kB / 0.9121 GB, free: 33.48 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2725/0.2738, allocations: 159.9 MB / 1.068 GB, free: 10.36 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Functions.Validation.InternalResistancesTwoUTubeNegative): time 0.002701/0.2765, allocations: 1.438 MB / 1.07 GB, free: 8.906 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.00426/0.2808, allocations: 2.891 MB / 1.072 GB, free: 6.004 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.542e-05/0.2809, allocations: 0 / 1.072 GB, free: 6.004 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 2.498e-05/0.2809, allocations: 7.922 kB / 1.072 GB, free: 5.996 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 6.681e-05/0.281, allocations: 19.8 kB / 1.072 GB, free: 5.977 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.003901/0.2849, allocations: 1.59 MB / 1.074 GB, free: 4.41 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 7.643e-05/0.285, allocations: 47.73 kB / 1.074 GB, free: 4.363 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 4.104e-05/0.2851, allocations: 3.984 kB / 1.074 GB, free: 4.359 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 2.901e-05/0.2851, allocations: 15.94 kB / 1.074 GB, free: 4.344 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 2.929e-05/0.2851, allocations: 19.86 kB / 1.074 GB, free: 4.324 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 1.096e-05/0.2851, allocations: 4 kB / 1.074 GB, free: 4.32 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002192/0.2873, allocations: 1.462 MB / 1.076 GB, free: 2.855 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 1.66e-05/0.2874, allocations: 4 kB / 1.076 GB, free: 2.852 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 4.003e-05/0.2874, allocations: 23.81 kB / 1.076 GB, free: 2.828 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.001768/0.2892, allocations: 1.107 MB / 1.077 GB, free: 1.719 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 4.298e-06/0.2892, allocations: 4 kB / 1.077 GB, free: 1.715 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.593e-06/0.2892, allocations: 0 / 1.077 GB, free: 1.715 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 5.921e-06/0.2892, allocations: 0 / 1.077 GB, free: 1.715 MB / 0.8262 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 0 * Number of variables: 0 Notification: Performance of Generate backend data structure: time 0.0007723/0.29, allocations: 0.5184 MB / 1.077 GB, free: 1.148 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.945e-05/0.2901, allocations: 8.031 kB / 1.077 GB, free: 1.141 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.952e-05/0.2901, allocations: 88.2 kB / 1.077 GB, free: 1.055 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001451/0.2903, allocations: 249.4 kB / 1.078 GB, free: 0.7734 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.856e-05/0.2903, allocations: 150.9 kB / 1.078 GB, free: 0.625 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.218e-05/0.2904, allocations: 154.9 kB / 1.078 GB, free: 484 kB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 5.562e-05/0.2905, allocations: 105.1 kB / 1.078 GB, free: 372 kB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.443e-05/0.2905, allocations: 75.28 kB / 1.078 GB, free: 296 kB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.177e-05/0.2905, allocations: 150.6 kB / 1.078 GB, free: 144 kB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.276e-05/0.2906, allocations: 154.6 kB / 1.078 GB, free: 15.99 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.923e-05/0.2907, allocations: 154.6 kB / 1.078 GB, free: 15.84 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002854/0.291, allocations: 477.7 kB / 1.079 GB, free: 15.32 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 7.592e-05/0.291, allocations: 169.1 kB / 1.079 GB, free: 15.14 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.49e-05/0.2911, allocations: 84.17 kB / 1.079 GB, free: 15.06 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 2.528e-05/0.2911, allocations: 83.28 kB / 1.079 GB, free: 14.98 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.956e-05/0.2912, allocations: 113.8 kB / 1.079 GB, free: 14.86 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=0): time 9.12e-07/0.2912, allocations: 4 kB / 1.079 GB, free: 14.85 MB / 0.8419 GB Notification: Performance of matching and sorting (n=0): time 7.898e-05/0.2912, allocations: 33.58 kB / 1.079 GB, free: 14.81 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.048e-05/0.2913, allocations: 126.7 kB / 1.079 GB, free: 14.68 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001396/0.2915, allocations: 137.7 kB / 1.08 GB, free: 14.53 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 1.145e-05/0.2915, allocations: 25.7 kB / 1.08 GB, free: 14.5 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 4.837e-05/0.2915, allocations: 100.1 kB / 1.08 GB, free: 14.4 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 3.657e-06/0.2915, allocations: 4 kB / 1.08 GB, free: 14.39 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.405e-05/0.2916, allocations: 13.72 kB / 1.08 GB, free: 14.38 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001028/0.2917, allocations: 318.8 kB / 1.08 GB, free: 14.05 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.551e-05/0.2917, allocations: 4 kB / 1.08 GB, free: 14.05 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.93e-05/0.2917, allocations: 8 kB / 1.08 GB, free: 14.04 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.786e-05/0.2918, allocations: 8.859 kB / 1.08 GB, free: 14.03 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.246e-06/0.2918, allocations: 4 kB / 1.08 GB, free: 14.03 MB / 0.8419 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001288/0.2919, allocations: 61.45 kB / 1.08 GB, free: 13.96 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 1.578e-05/0.2919, allocations: 9.25 kB / 1.08 GB, free: 13.95 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.081e-05/0.292, allocations: 3.984 kB / 1.08 GB, free: 13.95 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.116e-05/0.292, allocations: 0 / 1.08 GB, free: 13.95 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.364e-06/0.292, allocations: 4 kB / 1.08 GB, free: 13.95 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.17e-06/0.292, allocations: 0 / 1.08 GB, free: 13.95 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.207e-05/0.292, allocations: 0 / 1.08 GB, free: 13.95 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.633e-06/0.292, allocations: 0 / 1.08 GB, free: 13.95 MB / 0.8419 GB Notification: Model statistics after passing the back-end for initialization: * 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 initialization (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * 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 9.287e-05/0.2921, allocations: 189.7 kB / 1.08 GB, free: 13.75 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.6e-05/0.2922, allocations: 112.9 kB / 1.08 GB, free: 13.63 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.151e-05/0.2923, allocations: 116.8 kB / 1.081 GB, free: 13.51 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.383e-05/0.2923, allocations: 176.3 kB / 1.081 GB, free: 13.33 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.321e-05/0.2924, allocations: 184.2 kB / 1.081 GB, free: 13.14 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.687e-05/0.2924, allocations: 184.2 kB / 1.081 GB, free: 12.95 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000229/0.2927, allocations: 413.2 kB / 1.081 GB, free: 12.49 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.995e-05/0.2927, allocations: 112.9 kB / 1.082 GB, free: 12.38 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.828e-05/0.2928, allocations: 101 kB / 1.082 GB, free: 12.27 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.035e-05/0.2928, allocations: 184.2 kB / 1.082 GB, free: 12.08 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.639e-05/0.2929, allocations: 176.3 kB / 1.082 GB, free: 11.9 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.131e-05/0.2929, allocations: 184.3 kB / 1.082 GB, free: 11.71 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.805e-05/0.293, allocations: 188.2 kB / 1.082 GB, free: 11.52 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001284/0.2931, allocations: 307.8 kB / 1.083 GB, free: 11.2 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 6.7e-05/0.2932, allocations: 189.9 kB / 1.083 GB, free: 10.99 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.166e-05/0.2933, allocations: 184.2 kB / 1.083 GB, free: 10.8 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.503e-05/0.2934, allocations: 101 kB / 1.083 GB, free: 10.7 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.345e-05/0.2934, allocations: 180.3 kB / 1.083 GB, free: 10.51 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.621e-05/0.2935, allocations: 112.9 kB / 1.083 GB, free: 10.39 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 5.877e-05/0.2935, allocations: 96.67 kB / 1.083 GB, free: 10.3 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.1e-07/0.2935, allocations: 0 / 1.083 GB, free: 10.3 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0007991/0.2943, allocations: 283.8 kB / 1.084 GB, free: 10.02 MB / 0.8419 GB 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 (0): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * 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.001309/0.2957, allocations: 0.5408 MB / 1.084 GB, free: 9.473 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 9.798e-05/0.2958, allocations: 37.7 kB / 1.084 GB, free: 9.43 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 1.853e-06/0.2958, allocations: 0 / 1.084 GB, free: 9.43 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 2.405e-06/0.2958, allocations: 0 / 1.084 GB, free: 9.43 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004016/0.2962, allocations: 471.6 kB / 1.085 GB, free: 8.965 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003584/0.2966, allocations: 240.9 kB / 1.085 GB, free: 8.703 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002438/0.2968, allocations: 0.6846 MB / 1.086 GB, free: 7.992 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 1.354e-05/0.2968, allocations: 0 / 1.086 GB, free: 7.992 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.486e-05/0.2969, allocations: 11.44 kB / 1.086 GB, free: 7.98 MB / 0.8419 GB Notification: Performance of SimCode: time 2.21e-07/0.2969, allocations: 0 / 1.086 GB, free: 7.98 MB / 0.8419 GB Notification: Performance of Templates: time 0.009854/0.3067, allocations: 5.671 MB / 1.091 GB, free: 2.363 MB / 0.8419 GB make -j1 -f Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Functions.Validation.InternalResistancesTwoUTubeNegative.makefile (rm -f Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Functions.Validation.InternalResistancesTwoUTubeNegative.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Functions.Validation.InternalResistancesTwoUTubeNegative.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Functions.Validation.InternalResistancesTwoUTubeNegative.pipe >> ../files/Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Functions.Validation.InternalResistancesTwoUTubeNegative.sim & ./Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Functions.Validation.InternalResistancesTwoUTubeNegative -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Functions.Validation.InternalResistancesTwoUTubeNegative.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Functions.Validation.InternalResistancesTwoUTubeNegative_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Functions_Validation_InternalResistancesTwoUTubeNegative.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Functions.Validation.InternalResistancesTwoUTubeNegative.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,Rgb,Rgg1,Rgg2,RCondGro,x Variables in the result:RCondGro,Rb,Rgb,Rgg1,Rgg2,cpMed,eTub,hSeg,kFil,kMed,kSoi,kTub,m_flow_nominal,muMed,rBor,rTub,sha,time,x