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.0009887/0.0009887, allocations: 100.1 kB / 15.05 MB, free: 1.105 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.001077/0.001077, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.415/1.415, allocations: 223.2 MB / 239.9 MB, free: 5.434 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.687/2.687, allocations: 436.5 MB / 0.7104 GB, free: 7.859 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0004572/0.0004572, allocations: 15.98 kB / 0.8708 GB, free: 4.727 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8855/0.886, allocations: 153.7 MB / 1.021 GB, free: 1.078 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Functions.Validation.InternalResistancesTwoUTubeNegative): time 0.001929/0.8879, allocations: 1.133 MB / 1.022 GB, free: 15.93 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.004682/0.8927, allocations: 2.587 MB / 1.024 GB, free: 13.34 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.687e-05/0.8928, allocations: 0 / 1.024 GB, free: 13.34 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 2.671e-05/0.8928, allocations: 3.984 kB / 1.025 GB, free: 13.33 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 8.464e-05/0.8929, allocations: 23.91 kB / 1.025 GB, free: 13.31 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.004294/0.8972, allocations: 1.23 MB / 1.026 GB, free: 12.1 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0001005/0.8973, allocations: 31.94 kB / 1.026 GB, free: 12.07 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 6.413e-05/0.8974, allocations: 15.83 kB / 1.026 GB, free: 12.05 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 3.567e-05/0.8974, allocations: 19.92 kB / 1.026 GB, free: 12.03 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 3.572e-05/0.8975, allocations: 15.94 kB / 1.026 GB, free: 12.02 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 1.23e-05/0.8975, allocations: 0 / 1.026 GB, free: 12.02 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002315/0.8998, allocations: 1.197 MB / 1.027 GB, free: 10.82 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 2.577e-05/0.8999, allocations: 7.938 kB / 1.027 GB, free: 10.81 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 4.906e-05/0.8999, allocations: 29.7 kB / 1.027 GB, free: 10.77 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.001156/0.9011, allocations: 0.7194 MB / 1.028 GB, free: 10.05 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 4.498e-06/0.9011, allocations: 0 / 1.028 GB, free: 10.05 MB / 0.7794 GB Notification: Performance of FrontEnd: time 2.925e-06/0.9011, allocations: 0 / 1.028 GB, free: 10.05 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 5.37e-06/0.9011, allocations: 0 / 1.028 GB, free: 10.05 MB / 0.7794 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.0005787/0.9017, allocations: 0.5068 MB / 1.028 GB, free: 9.5 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.379e-05/0.9017, allocations: 8.031 kB / 1.028 GB, free: 9.492 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.131e-05/0.9018, allocations: 87.17 kB / 1.028 GB, free: 9.406 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001591/0.902, allocations: 258.1 kB / 1.029 GB, free: 9.113 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.677e-05/0.902, allocations: 154.5 kB / 1.029 GB, free: 8.961 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.59e-05/0.9021, allocations: 150.6 kB / 1.029 GB, free: 8.812 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 6.171e-05/0.9022, allocations: 105 kB / 1.029 GB, free: 8.703 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.784e-05/0.9022, allocations: 79.28 kB / 1.029 GB, free: 8.625 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.994e-05/0.9023, allocations: 154.5 kB / 1.029 GB, free: 8.473 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.928e-05/0.9023, allocations: 154.6 kB / 1.029 GB, free: 8.32 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.073e-05/0.9024, allocations: 158.5 kB / 1.029 GB, free: 8.164 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000279/0.9027, allocations: 465.9 kB / 1.03 GB, free: 7.66 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 8.7e-05/0.9028, allocations: 169.1 kB / 1.03 GB, free: 7.484 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 3.059e-05/0.9028, allocations: 79.27 kB / 1.03 GB, free: 7.406 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.986e-05/0.9029, allocations: 105.8 kB / 1.03 GB, free: 7.293 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=0): time 8.92e-07/0.9029, allocations: 0 / 1.03 GB, free: 7.293 MB / 0.7794 GB Notification: Performance of matching and sorting (n=0): time 7.447e-05/0.9029, allocations: 41.55 kB / 1.03 GB, free: 7.246 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.557e-05/0.903, allocations: 130.7 kB / 1.03 GB, free: 7.105 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001376/0.9032, allocations: 128.7 kB / 1.031 GB, free: 6.973 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.567e-05/0.9032, allocations: 29.7 kB / 1.031 GB, free: 6.938 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 5.407e-05/0.9032, allocations: 92.12 kB / 1.031 GB, free: 6.844 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 1.994e-06/0.9032, allocations: 0 / 1.031 GB, free: 6.844 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.534e-06/0.9033, allocations: 0 / 1.031 GB, free: 6.844 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001083/0.9034, allocations: 318.8 kB / 1.031 GB, free: 6.523 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.201e-05/0.9034, allocations: 8 kB / 1.031 GB, free: 6.516 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.301e-05/0.9034, allocations: 0 / 1.031 GB, free: 6.516 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.954e-05/0.9034, allocations: 12 kB / 1.031 GB, free: 6.504 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.344e-06/0.9035, allocations: 0 / 1.031 GB, free: 6.504 MB / 0.7794 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001422/0.9036, allocations: 57.48 kB / 1.031 GB, free: 6.441 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.413e-05/0.9036, allocations: 4 kB / 1.031 GB, free: 6.438 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.099e-05/0.9037, allocations: 4 kB / 1.031 GB, free: 6.434 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.48e-05/0.9037, allocations: 3.938 kB / 1.031 GB, free: 6.43 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.192e-06/0.9037, allocations: 0 / 1.031 GB, free: 6.43 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.482e-06/0.9037, allocations: 7.984 kB / 1.031 GB, free: 6.422 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.072e-05/0.9037, allocations: 4.062 kB / 1.031 GB, free: 6.418 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.584e-06/0.9037, allocations: 0 / 1.031 GB, free: 6.418 MB / 0.7794 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001127/0.9038, allocations: 194.6 kB / 1.031 GB, free: 6.219 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.899e-05/0.9039, allocations: 112.8 kB / 1.031 GB, free: 6.102 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.9e-05/0.904, allocations: 112.8 kB / 1.031 GB, free: 5.984 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.642e-05/0.904, allocations: 180.3 kB / 1.032 GB, free: 5.801 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.308e-05/0.9041, allocations: 184.3 kB / 1.032 GB, free: 5.613 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.82e-05/0.9042, allocations: 188.2 kB / 1.032 GB, free: 5.422 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002118/0.9044, allocations: 409.2 kB / 1.032 GB, free: 4.965 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.458e-05/0.9044, allocations: 108.9 kB / 1.032 GB, free: 4.852 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.646e-05/0.9045, allocations: 101 kB / 1.033 GB, free: 4.746 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.825e-05/0.9046, allocations: 180.2 kB / 1.033 GB, free: 4.562 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.516e-05/0.9046, allocations: 188.2 kB / 1.033 GB, free: 4.371 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.699e-05/0.9047, allocations: 184.3 kB / 1.033 GB, free: 4.184 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.978e-05/0.9048, allocations: 180.2 kB / 1.033 GB, free: 4 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001238/0.9049, allocations: 311.7 kB / 1.034 GB, free: 3.672 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 7.697e-05/0.905, allocations: 194 kB / 1.034 GB, free: 3.457 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.423e-05/0.905, allocations: 176.3 kB / 1.034 GB, free: 3.277 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.221e-05/0.9051, allocations: 108.9 kB / 1.034 GB, free: 3.164 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.026e-05/0.9052, allocations: 176.3 kB / 1.034 GB, free: 2.984 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.717e-05/0.9052, allocations: 112.9 kB / 1.034 GB, free: 2.867 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 5.786e-05/0.9053, allocations: 99.27 kB / 1.034 GB, free: 2.77 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.01e-07/0.9053, allocations: 4 kB / 1.034 GB, free: 2.766 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0008176/0.9061, allocations: 271.8 kB / 1.035 GB, free: 2.5 MB / 0.7794 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0009609/0.9071, allocations: 0.4924 MB / 1.035 GB, free: 1.996 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0001134/0.9072, allocations: 41.69 kB / 1.035 GB, free: 1.949 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.084e-06/0.9072, allocations: 0 / 1.035 GB, free: 1.949 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 2.204e-06/0.9072, allocations: 0 / 1.035 GB, free: 1.949 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003641/0.9076, allocations: 0.5264 MB / 1.036 GB, free: 1.418 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003564/0.908, allocations: 264.2 kB / 1.036 GB, free: 1.137 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002406/0.9082, allocations: 0.6887 MB / 1.037 GB, free: 432 kB / 0.7794 GB Notification: Performance of simCode: alias equations: time 1.522e-05/0.9083, allocations: 0 / 1.037 GB, free: 432 kB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.393e-05/0.9083, allocations: 11.44 kB / 1.037 GB, free: 420 kB / 0.7794 GB Notification: Performance of SimCode: time 6.31e-07/0.9083, allocations: 0 / 1.037 GB, free: 420 kB / 0.7794 GB Notification: Performance of Templates: time 0.009852/0.9181, allocations: 5.613 MB / 1.042 GB, free: 10.85 MB / 0.795 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","../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