Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Functions.Validation.InternalResistancesOneUTubeNegative.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: translateModel(Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Functions.Validation.InternalResistancesOneUTubeNegative,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Rgb|Rgg|RCondGro|x",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Functions.Validation.InternalResistancesOneUTubeNegative") translateModel(Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Functions.Validation.InternalResistancesOneUTubeNegative,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Rgb|Rgg|RCondGro|x",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Functions.Validation.InternalResistancesOneUTubeNegative") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.345/1.345, allocations: 251.9 MB / 266.9 MB, free: 11.02 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001089/0.001089, allocations: 178.5 kB / 326.5 MB, free: 2.258 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.705/1.705, allocations: 205.4 MB / 0.5775 GB, free: 20.23 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009978/0.0009979, allocations: 94.34 kB / 0.6821 GB, free: 12.9 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003494/0.0003494, allocations: 14.78 kB / 0.7963 GB, free: 135.2 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2321/0.2325, allocations: 106.3 MB / 0.9002 GB, free: 63.9 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1848/0.4174, allocations: 152.2 MB / 1.049 GB, free: 7.457 MB / 0.698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003164/0.4177, allocations: 123.9 kB / 1.049 GB, free: 7.336 MB / 0.698 GB Notification: Performance of FrontEnd - DAE generated: time 0.4701/0.8878, allocations: 15.01 MB / 1.064 GB, free: 150.7 MB / 0.698 GB Notification: Performance of FrontEnd: time 2.504e-06/0.8879, allocations: 0 / 1.064 GB, free: 150.7 MB / 0.698 GB Notification: Performance of Transformations before backend: time 8.476e-06/0.8879, allocations: 0 / 1.064 GB, free: 150.7 MB / 0.698 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.001033/0.8889, allocations: 0.5648 MB / 1.064 GB, free: 150.2 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 4.784e-05/0.889, allocations: 9.625 kB / 1.064 GB, free: 150.2 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.243e-05/0.889, allocations: 90.52 kB / 1.064 GB, free: 150.1 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001183/0.8892, allocations: 250.2 kB / 1.064 GB, free: 149.8 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.134e-05/0.8892, allocations: 152.2 kB / 1.065 GB, free: 149.7 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.325e-05/0.8892, allocations: 154.5 kB / 1.065 GB, free: 149.5 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 5.043e-05/0.8893, allocations: 104.9 kB / 1.065 GB, free: 149.4 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.587e-05/0.8893, allocations: 76.41 kB / 1.065 GB, free: 149.4 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.876e-05/0.8894, allocations: 154.6 kB / 1.065 GB, free: 149.2 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.428e-05/0.8894, allocations: 154.4 kB / 1.065 GB, free: 149.1 MB / 0.698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.853e-05/0.8894, allocations: 151.7 kB / 1.065 GB, free: 148.9 MB / 0.698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000231/0.8897, allocations: 469.8 kB / 1.066 GB, free: 148.4 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 5.48e-05/0.8897, allocations: 173.5 kB / 1.066 GB, free: 148.2 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 1.871e-05/0.8897, allocations: 75.28 kB / 1.066 GB, free: 148.2 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.688e-05/0.8898, allocations: 112.7 kB / 1.066 GB, free: 148.1 MB / 0.698 GB Notification: Performance of pre-optimization done (n=0): time 1.914e-06/0.8898, allocations: 0 / 1.066 GB, free: 148.1 MB / 0.698 GB Notification: Performance of matching and sorting (n=0): time 7.716e-05/0.8899, allocations: 30.23 kB / 1.066 GB, free: 148 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.313e-05/0.8899, allocations: 127.4 kB / 1.066 GB, free: 147.9 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001204/0.89, allocations: 129 kB / 1.066 GB, free: 147.8 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 8.787e-06/0.8901, allocations: 26.36 kB / 1.066 GB, free: 147.8 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 3.691e-05/0.8901, allocations: 90.25 kB / 1.067 GB, free: 147.7 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 3.327e-06/0.8901, allocations: 0 / 1.067 GB, free: 147.7 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.785e-06/0.8901, allocations: 3.938 kB / 1.067 GB, free: 147.7 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 6.888e-05/0.8902, allocations: 322.3 kB / 1.067 GB, free: 147.4 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.274e-05/0.8902, allocations: 6.75 kB / 1.067 GB, free: 147.4 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.54e-05/0.8902, allocations: 3.688 kB / 1.067 GB, free: 147.4 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.969e-05/0.8903, allocations: 7.641 kB / 1.067 GB, free: 147.3 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.414e-06/0.8903, allocations: 0 / 1.067 GB, free: 147.3 MB / 0.698 GB Notification: Performance of matching and sorting (n=4) (initialization): time 0.000126/0.8904, allocations: 52.14 kB / 1.067 GB, free: 147.3 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 1.604e-05/0.8904, allocations: 3.75 kB / 1.067 GB, free: 147.3 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.813e-05/0.8905, allocations: 3.594 kB / 1.067 GB, free: 147.3 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.282e-05/0.8905, allocations: 0 / 1.067 GB, free: 147.3 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.354e-06/0.8905, allocations: 3.438 kB / 1.067 GB, free: 147.3 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.91e-06/0.8905, allocations: 0 / 1.067 GB, free: 147.3 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.204e-05/0.8905, allocations: 3.25 kB / 1.067 GB, free: 147.3 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.947e-06/0.8905, allocations: 3.766 kB / 1.067 GB, free: 147.3 MB / 0.698 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 6.765e-05/0.8906, allocations: 197 kB / 1.067 GB, free: 147.1 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.651e-05/0.8907, allocations: 110 kB / 1.067 GB, free: 147 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.326e-05/0.8907, allocations: 110.6 kB / 1.067 GB, free: 146.9 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.812e-05/0.8908, allocations: 178 kB / 1.068 GB, free: 146.7 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.681e-05/0.8908, allocations: 184.3 kB / 1.068 GB, free: 146.5 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.188e-05/0.8908, allocations: 187.8 kB / 1.068 GB, free: 146.3 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001753/0.891, allocations: 419.1 kB / 1.068 GB, free: 145.9 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.732e-05/0.891, allocations: 101 kB / 1.068 GB, free: 145.8 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.71e-05/0.8911, allocations: 106.1 kB / 1.068 GB, free: 145.7 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.771e-05/0.8911, allocations: 179.9 kB / 1.069 GB, free: 145.5 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.938e-05/0.8911, allocations: 176.9 kB / 1.069 GB, free: 145.3 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.102e-05/0.8912, allocations: 188.1 kB / 1.069 GB, free: 145.1 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.608e-05/0.8912, allocations: 180 kB / 1.069 GB, free: 145 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.385e-05/0.8913, allocations: 302.8 kB / 1.069 GB, free: 144.6 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 4.504e-05/0.8913, allocations: 191.5 kB / 1.07 GB, free: 144.4 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.141e-05/0.8914, allocations: 188.1 kB / 1.07 GB, free: 144.2 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.692e-05/0.8915, allocations: 104.8 kB / 1.07 GB, free: 144.1 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.437e-05/0.8915, allocations: 180.9 kB / 1.07 GB, free: 144 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.927e-05/0.8915, allocations: 105.4 kB / 1.07 GB, free: 143.9 MB / 0.698 GB Notification: Performance of sorting global known variables: time 5.094e-05/0.8916, allocations: 95.16 kB / 1.07 GB, free: 143.8 MB / 0.698 GB Notification: Performance of sort global known variables: time 1.41e-07/0.8916, allocations: 0 / 1.07 GB, free: 143.8 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.001214/0.8928, allocations: 322 kB / 1.071 GB, free: 143.7 MB / 0.698 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.001712/0.8945, allocations: 0.5656 MB / 1.071 GB, free: 143.4 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 9.99e-05/0.8946, allocations: 37.98 kB / 1.071 GB, free: 143.4 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 2.044e-06/0.8946, allocations: 0.6562 kB / 1.071 GB, free: 143.4 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 4.188e-06/0.8947, allocations: 4.625 kB / 1.071 GB, free: 143.4 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000258/0.8949, allocations: 0.5319 MB / 1.072 GB, free: 142.9 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003236/0.8952, allocations: 257.5 kB / 1.072 GB, free: 142.6 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001511/0.8954, allocations: 0.6959 MB / 1.073 GB, free: 141.9 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 1.786e-05/0.8954, allocations: 5.5 kB / 1.073 GB, free: 141.9 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.429e-05/0.8955, allocations: 8.969 kB / 1.073 GB, free: 141.9 MB / 0.698 GB Notification: Performance of SimCode: time 2.3e-07/0.8955, allocations: 0.625 kB / 1.073 GB, free: 141.9 MB / 0.698 GB Notification: Performance of Templates: time 0.01256/0.908, allocations: 5.218 MB / 1.078 GB, free: 141.6 MB / 0.698 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Functions.Validation.InternalResistancesOneUTubeNegative.makefile (rm -f Buildings_maint.7.0.x_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Functions.Validation.InternalResistancesOneUTubeNegative.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Functions.Validation.InternalResistancesOneUTubeNegative.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Functions.Validation.InternalResistancesOneUTubeNegative.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Functions.Validation.InternalResistancesOneUTubeNegative.sim & ./Buildings_maint.7.0.x_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Functions.Validation.InternalResistancesOneUTubeNegative -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Functions.Validation.InternalResistancesOneUTubeNegative.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Functions.Validation.InternalResistancesOneUTubeNegative_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Functions_Validation_InternalResistancesOneUTubeNegative.csv","../files/Buildings_maint.7.0.x_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Functions.Validation.InternalResistancesOneUTubeNegative.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,Rgb,Rgg,RCondGro,x Variables in the result:RCondGro,Rb,Rgb,Rgg,cpMed,eTub,hSeg,kFil,kMed,kSoi,kTub,m_flow_nominal,muMed,rBor,rTub,sha,time,x