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.001722/0.001722, allocations: 110.9 kB / 16.37 MB, free: 6.469 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.001891/0.001892, allocations: 189.9 kB / 17.3 MB, free: 5.828 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.404/1.404, allocations: 222.9 MB / 241 MB, free: 15.19 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.694/2.694, allocations: 442.5 MB / 0.7165 GB, free: 14.7 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001272/0.001272, allocations: 69.92 kB / 0.8774 GB, free: 10.95 MB / 0.6544 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3292/0.3305, allocations: 153 MB / 1.027 GB, free: 2.027 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Functions.Validation.InternalResistancesTwoUTubeNegative): time 0.00263/0.3331, allocations: 1.453 MB / 1.028 GB, free: 0.5664 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.004094/0.3372, allocations: 2.887 MB / 1.031 GB, free: 13.66 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.765e-05/0.3373, allocations: 4 kB / 1.031 GB, free: 13.66 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 2.5e-05/0.3374, allocations: 7.922 kB / 1.031 GB, free: 13.65 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 5.959e-05/0.3374, allocations: 11.86 kB / 1.031 GB, free: 13.64 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.003716/0.3412, allocations: 1.585 MB / 1.033 GB, free: 12.07 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 9.349e-05/0.3413, allocations: 43.67 kB / 1.033 GB, free: 12.03 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 4.001e-05/0.3413, allocations: 4 kB / 1.033 GB, free: 12.02 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 2.711e-05/0.3413, allocations: 15.94 kB / 1.033 GB, free: 12.01 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 2.673e-05/0.3414, allocations: 15.92 kB / 1.033 GB, free: 11.99 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.148e-05/0.3414, allocations: 4 kB / 1.033 GB, free: 11.99 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001992/0.3434, allocations: 1.533 MB / 1.034 GB, free: 10.45 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 1.914e-05/0.3434, allocations: 11.94 kB / 1.034 GB, free: 10.44 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 2.98e-05/0.3435, allocations: 15.88 kB / 1.034 GB, free: 10.43 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.00137/0.3448, allocations: 1.111 MB / 1.035 GB, free: 9.312 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 4.959e-06/0.3449, allocations: 0 / 1.035 GB, free: 9.312 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.903e-06/0.3449, allocations: 0 / 1.035 GB, free: 9.312 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 6.673e-06/0.3449, allocations: 0 / 1.035 GB, free: 9.312 MB / 0.8106 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.0005772/0.3455, allocations: 0.5224 MB / 1.036 GB, free: 8.742 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.492e-05/0.3455, allocations: 8.031 kB / 1.036 GB, free: 8.734 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.636e-05/0.3456, allocations: 80.12 kB / 1.036 GB, free: 8.656 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001462/0.3457, allocations: 251.5 kB / 1.036 GB, free: 8.371 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.436e-05/0.3458, allocations: 154.9 kB / 1.036 GB, free: 8.219 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.592e-05/0.3458, allocations: 154.9 kB / 1.036 GB, free: 8.066 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 6.72e-05/0.3459, allocations: 109.1 kB / 1.037 GB, free: 7.953 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.327e-05/0.3459, allocations: 75.28 kB / 1.037 GB, free: 7.879 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.645e-05/0.346, allocations: 154.5 kB / 1.037 GB, free: 7.727 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.056e-05/0.3461, allocations: 150.6 kB / 1.037 GB, free: 7.578 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.429e-05/0.3461, allocations: 158.6 kB / 1.037 GB, free: 7.422 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002865/0.3464, allocations: 473.8 kB / 1.037 GB, free: 6.91 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 9.036e-05/0.3465, allocations: 169.2 kB / 1.038 GB, free: 6.734 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.597e-05/0.3466, allocations: 80.14 kB / 1.038 GB, free: 6.652 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 2.896e-05/0.3466, allocations: 75.28 kB / 1.038 GB, free: 6.578 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.983e-05/0.3466, allocations: 121.7 kB / 1.038 GB, free: 6.449 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=0): time 1.022e-06/0.3466, allocations: 4 kB / 1.038 GB, free: 6.445 MB / 0.8106 GB Notification: Performance of matching and sorting (n=0): time 7.523e-05/0.3467, allocations: 37.55 kB / 1.038 GB, free: 6.402 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.987e-05/0.3468, allocations: 126.7 kB / 1.038 GB, free: 6.266 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001352/0.3469, allocations: 133.8 kB / 1.038 GB, free: 6.125 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.273e-05/0.3469, allocations: 25.7 kB / 1.038 GB, free: 6.094 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 5.607e-05/0.347, allocations: 92.03 kB / 1.038 GB, free: 6 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 2.875e-06/0.347, allocations: 0 / 1.038 GB, free: 6 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.417e-05/0.3471, allocations: 21.72 kB / 1.038 GB, free: 5.973 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001087/0.3472, allocations: 318.8 kB / 1.039 GB, free: 5.652 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.635e-05/0.3472, allocations: 8 kB / 1.039 GB, free: 5.645 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.894e-05/0.3472, allocations: 8 kB / 1.039 GB, free: 5.637 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.122e-05/0.3473, allocations: 12.86 kB / 1.039 GB, free: 5.621 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.435e-06/0.3473, allocations: 0 / 1.039 GB, free: 5.621 MB / 0.8106 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001247/0.3474, allocations: 57.56 kB / 1.039 GB, free: 5.559 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.594e-05/0.3474, allocations: 6.656 kB / 1.039 GB, free: 5.555 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.436e-05/0.3475, allocations: 4 kB / 1.039 GB, free: 5.551 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.272e-05/0.3475, allocations: 0 / 1.039 GB, free: 5.551 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.52e-07/0.3475, allocations: 4.062 kB / 1.039 GB, free: 5.547 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.309e-06/0.3475, allocations: 0 / 1.039 GB, free: 5.547 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.152e-05/0.3475, allocations: 7.906 kB / 1.039 GB, free: 5.539 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.933e-06/0.3475, allocations: 0 / 1.039 GB, free: 5.539 MB / 0.8106 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 0.0001067/0.3476, allocations: 189.1 kB / 1.039 GB, free: 5.344 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.345e-05/0.3477, allocations: 108.9 kB / 1.039 GB, free: 5.23 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.916e-05/0.3478, allocations: 116.8 kB / 1.039 GB, free: 5.109 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.908e-05/0.3478, allocations: 180.3 kB / 1.039 GB, free: 4.926 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.968e-05/0.3479, allocations: 180.2 kB / 1.039 GB, free: 4.742 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.761e-05/0.348, allocations: 180.3 kB / 1.04 GB, free: 4.559 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002262/0.3482, allocations: 413.2 kB / 1.04 GB, free: 4.098 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.384e-05/0.3482, allocations: 108.9 kB / 1.04 GB, free: 3.984 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.918e-05/0.3483, allocations: 108.9 kB / 1.04 GB, free: 3.871 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.919e-05/0.3483, allocations: 184.2 kB / 1.04 GB, free: 3.684 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.539e-05/0.3484, allocations: 176.3 kB / 1.041 GB, free: 3.504 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.452e-05/0.3485, allocations: 184.2 kB / 1.041 GB, free: 3.316 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.835e-05/0.3486, allocations: 188.2 kB / 1.041 GB, free: 3.125 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001339/0.3487, allocations: 307.7 kB / 1.041 GB, free: 2.801 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 9.148e-05/0.3488, allocations: 197.9 kB / 1.041 GB, free: 2.582 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.92e-05/0.3489, allocations: 184.3 kB / 1.042 GB, free: 2.395 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.591e-05/0.349, allocations: 104.9 kB / 1.042 GB, free: 2.285 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.354e-05/0.349, allocations: 176.3 kB / 1.042 GB, free: 2.105 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.288e-05/0.3491, allocations: 108.9 kB / 1.042 GB, free: 1.992 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 5.886e-05/0.3491, allocations: 107.2 kB / 1.042 GB, free: 1.887 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.1e-07/0.3491, allocations: 0 / 1.042 GB, free: 1.887 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0007947/0.3499, allocations: 279.8 kB / 1.042 GB, free: 1.613 MB / 0.8106 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.001084/0.351, allocations: 0.5482 MB / 1.043 GB, free: 1.055 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0001077/0.3511, allocations: 41.64 kB / 1.043 GB, free: 1.008 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.3512, allocations: 0 / 1.043 GB, free: 1.008 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 1.974e-06/0.3512, allocations: 0 / 1.043 GB, free: 1.008 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004106/0.3516, allocations: 472 kB / 1.043 GB, free: 0.543 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003602/0.352, allocations: 232.2 kB / 1.044 GB, free: 296 kB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002669/0.3522, allocations: 0.6846 MB / 1.044 GB, free: 15.58 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 1.338e-05/0.3522, allocations: 0 / 1.044 GB, free: 15.58 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.203e-05/0.3523, allocations: 11.44 kB / 1.044 GB, free: 15.57 MB / 0.8262 GB Notification: Performance of SimCode: time 3.5e-07/0.3523, allocations: 0 / 1.044 GB, free: 15.57 MB / 0.8262 GB Notification: Performance of Templates: time 0.009542/0.3618, allocations: 5.627 MB / 1.05 GB, free: 9.996 MB / 0.8262 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 -s cvode -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/jenkins1/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