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 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.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.001126/0.001126, allocations: 98.19 kB / 15.36 MB, free: 0.7344 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.008531/0.008531, allocations: 170.2 kB / 16.27 MB, free: 6.652 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.325/1.325, allocations: 223.3 MB / 240.3 MB, free: 5.352 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.683/2.683, allocations: 462.6 MB / 0.7364 GB, free: 15.59 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003399/0.0003399, allocations: 10.78 kB / 0.9028 GB, free: 36.45 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2642/0.2645, allocations: 159.6 MB / 1.059 GB, free: 4.926 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Functions.Validation.InternalResistancesTwoUTubeNegative): time 0.001378/0.2659, allocations: 1.17 MB / 1.06 GB, free: 3.742 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.004096/0.2701, allocations: 2.95 MB / 1.063 GB, free: 0.7773 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.65e-05/0.2701, allocations: 0 / 1.063 GB, free: 0.7773 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 2.027e-05/0.2701, allocations: 3.938 kB / 1.063 GB, free: 0.7734 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 6.653e-05/0.2702, allocations: 19.84 kB / 1.063 GB, free: 0.7539 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.003075/0.2733, allocations: 1.397 MB / 1.064 GB, free: 15.38 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 5.903e-05/0.2734, allocations: 39.75 kB / 1.064 GB, free: 15.34 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 3.744e-05/0.2734, allocations: 7.984 kB / 1.064 GB, free: 15.33 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 2.513e-05/0.2734, allocations: 11.94 kB / 1.064 GB, free: 15.32 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 2.844e-05/0.2735, allocations: 19.88 kB / 1.064 GB, free: 15.3 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 9.067e-06/0.2735, allocations: 0 / 1.064 GB, free: 15.3 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001861/0.2753, allocations: 1.466 MB / 1.066 GB, free: 13.83 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 1.393e-05/0.2754, allocations: 12 kB / 1.066 GB, free: 13.82 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 3.858e-05/0.2754, allocations: 41.58 kB / 1.066 GB, free: 13.77 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.001272/0.2767, allocations: 1.123 MB / 1.067 GB, free: 12.65 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 2.985e-06/0.2767, allocations: 0 / 1.067 GB, free: 12.65 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.462e-06/0.2767, allocations: 0 / 1.067 GB, free: 12.65 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 3.146e-06/0.2767, allocations: 0 / 1.067 GB, free: 12.65 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.0005317/0.2773, allocations: 0.5185 MB / 1.067 GB, free: 12.08 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.649e-05/0.2773, allocations: 15.91 kB / 1.067 GB, free: 12.07 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.838e-05/0.2774, allocations: 88.16 kB / 1.067 GB, free: 11.98 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001231/0.2775, allocations: 251.5 kB / 1.068 GB, free: 11.7 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.651e-05/0.2775, allocations: 154.9 kB / 1.068 GB, free: 11.54 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.709e-05/0.2776, allocations: 154.9 kB / 1.068 GB, free: 11.39 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 5.818e-05/0.2777, allocations: 109.1 kB / 1.068 GB, free: 11.28 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.218e-05/0.2777, allocations: 75.28 kB / 1.068 GB, free: 11.2 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.683e-05/0.2777, allocations: 150.6 kB / 1.068 GB, free: 11.05 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.901e-05/0.2778, allocations: 154.6 kB / 1.068 GB, free: 10.9 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.496e-05/0.2778, allocations: 154.5 kB / 1.068 GB, free: 10.75 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002552/0.2781, allocations: 461.9 kB / 1.069 GB, free: 10.25 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 6.866e-05/0.2782, allocations: 165.1 kB / 1.069 GB, free: 10.08 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.705e-05/0.2782, allocations: 84.14 kB / 1.069 GB, free: 9.992 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 2.283e-05/0.2782, allocations: 75.28 kB / 1.069 GB, free: 9.918 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.932e-05/0.2783, allocations: 117.8 kB / 1.069 GB, free: 9.793 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=0): time 2.876e-06/0.2783, allocations: 0 / 1.069 GB, free: 9.793 MB / 0.8262 GB Notification: Performance of matching and sorting (n=0): time 6.463e-05/0.2783, allocations: 37.59 kB / 1.069 GB, free: 9.75 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.81e-05/0.2784, allocations: 130.7 kB / 1.07 GB, free: 9.609 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001169/0.2785, allocations: 143.9 kB / 1.07 GB, free: 9.461 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 1.302e-05/0.2785, allocations: 25.7 kB / 1.07 GB, free: 9.43 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 4.126e-05/0.2786, allocations: 88.14 kB / 1.07 GB, free: 9.34 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 1.552e-06/0.2786, allocations: 0 / 1.07 GB, free: 9.34 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.432e-05/0.2786, allocations: 13.72 kB / 1.07 GB, free: 9.32 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 9.287e-05/0.2787, allocations: 318.8 kB / 1.07 GB, free: 9 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.428e-05/0.2788, allocations: 8 kB / 1.07 GB, free: 8.992 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.297e-05/0.2788, allocations: 0 / 1.07 GB, free: 8.992 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.65e-05/0.2788, allocations: 20.83 kB / 1.07 GB, free: 8.969 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.643e-06/0.2788, allocations: 4 kB / 1.07 GB, free: 8.965 MB / 0.8262 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001207/0.279, allocations: 57.53 kB / 1.07 GB, free: 8.902 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.151e-05/0.279, allocations: 7.938 kB / 1.07 GB, free: 8.895 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.875e-05/0.279, allocations: 4 kB / 1.07 GB, free: 8.891 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.097e-06/0.279, allocations: 0 / 1.07 GB, free: 8.891 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.72e-07/0.279, allocations: 0 / 1.07 GB, free: 8.891 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.797e-06/0.279, allocations: 0 / 1.07 GB, free: 8.891 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.938e-05/0.279, allocations: 0 / 1.07 GB, free: 8.891 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.724e-06/0.2791, allocations: 4 kB / 1.07 GB, free: 8.887 MB / 0.8262 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 8.154e-05/0.2791, allocations: 185.2 kB / 1.07 GB, free: 8.695 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.54e-05/0.2792, allocations: 120.8 kB / 1.07 GB, free: 8.57 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.044e-05/0.2793, allocations: 108.9 kB / 1.071 GB, free: 8.457 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.557e-05/0.2793, allocations: 180.3 kB / 1.071 GB, free: 8.273 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.994e-05/0.2794, allocations: 180.2 kB / 1.071 GB, free: 8.09 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.923e-05/0.2794, allocations: 180.2 kB / 1.071 GB, free: 7.906 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001954/0.2796, allocations: 421.3 kB / 1.071 GB, free: 7.438 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.892e-05/0.2797, allocations: 112.9 kB / 1.072 GB, free: 7.32 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.172e-05/0.2797, allocations: 109.1 kB / 1.072 GB, free: 7.207 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.2e-05/0.2797, allocations: 184.2 kB / 1.072 GB, free: 7.02 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.1e-05/0.2798, allocations: 180.2 kB / 1.072 GB, free: 6.836 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.135e-05/0.2799, allocations: 184.2 kB / 1.072 GB, free: 6.648 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.931e-05/0.2799, allocations: 180.3 kB / 1.072 GB, free: 6.465 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001161/0.28, allocations: 307.7 kB / 1.073 GB, free: 6.141 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 6.514e-05/0.2801, allocations: 190 kB / 1.073 GB, free: 5.93 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.342e-05/0.2802, allocations: 188.2 kB / 1.073 GB, free: 5.738 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.824e-05/0.2802, allocations: 105 kB / 1.073 GB, free: 5.629 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.555e-05/0.2803, allocations: 180.2 kB / 1.073 GB, free: 5.445 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.149e-05/0.2803, allocations: 105 kB / 1.073 GB, free: 5.336 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 5.262e-05/0.2804, allocations: 100.8 kB / 1.074 GB, free: 5.238 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.2e-07/0.2804, allocations: 0 / 1.074 GB, free: 5.238 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0006342/0.281, allocations: 287.8 kB / 1.074 GB, free: 4.957 MB / 0.8262 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.0009626/0.282, allocations: 0.5292 MB / 1.074 GB, free: 4.418 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 8.616e-05/0.2821, allocations: 45.69 kB / 1.074 GB, free: 4.367 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 1.864e-06/0.2821, allocations: 0 / 1.074 GB, free: 4.367 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 3.106e-06/0.2821, allocations: 3.938 kB / 1.074 GB, free: 4.363 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003802/0.2825, allocations: 0.5302 MB / 1.075 GB, free: 3.828 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002643/0.2828, allocations: 268.8 kB / 1.075 GB, free: 3.539 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001998/0.283, allocations: 0.6848 MB / 1.076 GB, free: 2.828 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 1.172e-05/0.283, allocations: 0 / 1.076 GB, free: 2.828 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.646e-06/0.283, allocations: 7.438 kB / 1.076 GB, free: 2.82 MB / 0.8262 GB Notification: Performance of SimCode: time 1.743e-06/0.283, allocations: 0 / 1.076 GB, free: 2.82 MB / 0.8262 GB Notification: Performance of Templates: time 0.008923/0.292, allocations: 5.672 MB / 1.081 GB, free: 13.19 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