Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.ShaGFunction.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.HeatTransfer.ThermalResponseFactors.Validation.ShaGFunction,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|cmp",fileNamePrefix="Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.ShaGFunction") translateModel(Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.ShaGFunction,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|cmp",fileNamePrefix="Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.ShaGFunction") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.004344/0.004344, allocations: 101.6 kB / 15.73 MB, free: 6.43 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.001103/0.001103, allocations: 191.8 kB / 16.67 MB, free: 6.336 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.34/1.34, allocations: 222.9 MB / 240.4 MB, free: 4.305 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.763/2.763, allocations: 472.6 MB / 0.7453 GB, free: 4.539 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001221/0.001221, allocations: 63.91 kB / 1.07 GB, free: 9.094 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.291/0.2922, allocations: 159.9 MB / 1.226 GB, free: 9.074 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.ShaGFunction): time 0.001528/0.2938, allocations: 0.5741 MB / 1.226 GB, free: 8.504 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.001149/0.2949, allocations: 0.9992 MB / 1.227 GB, free: 7.488 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.043e-05/0.295, allocations: 0 / 1.227 GB, free: 7.488 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 1.342e-05/0.295, allocations: 0 / 1.227 GB, free: 7.488 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 0.0007099/0.2957, allocations: 91.78 kB / 1.227 GB, free: 7.398 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 3.5e-05/0.2957, allocations: 15.97 kB / 1.227 GB, free: 7.383 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 4.575e-05/0.2958, allocations: 7.938 kB / 1.227 GB, free: 7.375 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 4.23e-05/0.2958, allocations: 8 kB / 1.227 GB, free: 7.367 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 1.618e-05/0.2959, allocations: 0 / 1.227 GB, free: 7.367 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002111/0.2961, allocations: 35.91 kB / 1.227 GB, free: 7.332 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 9.037e-06/0.2961, allocations: 4 kB / 1.227 GB, free: 7.328 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001648/0.2963, allocations: 79.91 kB / 1.227 GB, free: 7.25 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 9.949e-06/0.2963, allocations: 4 kB / 1.227 GB, free: 7.246 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 1.751e-05/0.2963, allocations: 0 / 1.227 GB, free: 7.246 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0001664/0.2965, allocations: 75.78 kB / 1.228 GB, free: 7.172 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 5.831e-06/0.2965, allocations: 4 kB / 1.228 GB, free: 7.168 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.172e-06/0.2965, allocations: 0 / 1.228 GB, free: 7.168 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 5.42e-06/0.2965, allocations: 4 kB / 1.228 GB, free: 7.164 MB / 0.9825 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.000297/0.2968, allocations: 331.3 kB / 1.228 GB, free: 6.793 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 3.174e-05/0.2968, allocations: 8.031 kB / 1.228 GB, free: 6.785 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.663e-05/0.2969, allocations: 0.9375 kB / 1.228 GB, free: 6.785 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000121/0.297, allocations: 176.3 kB / 1.228 GB, free: 6.574 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.071e-05/0.297, allocations: 384 / 1.228 GB, free: 6.574 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.212e-06/0.297, allocations: 4.312 kB / 1.228 GB, free: 6.57 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 7.971e-05/0.2971, allocations: 33.83 kB / 1.228 GB, free: 6.531 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.921e-06/0.2971, allocations: 4 kB / 1.228 GB, free: 6.527 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.824e-06/0.2971, allocations: 0 / 1.228 GB, free: 6.527 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.007e-06/0.2972, allocations: 3.938 kB / 1.228 GB, free: 6.523 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.59e-05/0.2972, allocations: 0 / 1.228 GB, free: 6.523 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004252/0.2976, allocations: 464.6 kB / 1.229 GB, free: 6 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 6.754e-05/0.2977, allocations: 169.1 kB / 1.229 GB, free: 5.824 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.695e-05/0.2977, allocations: 84.14 kB / 1.229 GB, free: 5.738 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 2.814e-05/0.2977, allocations: 87.25 kB / 1.229 GB, free: 5.652 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.362e-05/0.2978, allocations: 109.8 kB / 1.229 GB, free: 5.535 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=0): time 1.102e-06/0.2978, allocations: 0 / 1.229 GB, free: 5.535 MB / 0.9825 GB Notification: Performance of matching and sorting (n=0): time 6.183e-05/0.2979, allocations: 25.7 kB / 1.229 GB, free: 5.504 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.234e-05/0.2979, allocations: 130.6 kB / 1.229 GB, free: 5.363 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.932e-05/0.298, allocations: 113.8 kB / 1.229 GB, free: 5.242 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 1.009e-05/0.298, allocations: 25.7 kB / 1.229 GB, free: 5.211 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 3.101e-05/0.2981, allocations: 80.14 kB / 1.229 GB, free: 5.129 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 2.064e-06/0.2981, allocations: 0 / 1.229 GB, free: 5.129 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.528e-05/0.2981, allocations: 9.719 kB / 1.229 GB, free: 5.113 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 9.345e-05/0.2982, allocations: 318.8 kB / 1.23 GB, free: 4.793 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.508e-06/0.2982, allocations: 0 / 1.23 GB, free: 4.793 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.374e-06/0.2982, allocations: 0 / 1.23 GB, free: 4.793 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.846e-05/0.2983, allocations: 20.86 kB / 1.23 GB, free: 4.77 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.016e-06/0.2983, allocations: 4 kB / 1.23 GB, free: 4.766 MB / 0.9825 GB Notification: Performance of matching and sorting (n=1) (initialization): time 8.886e-05/0.2984, allocations: 33.69 kB / 1.23 GB, free: 4.727 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.424e-05/0.2984, allocations: 9.875 kB / 1.23 GB, free: 4.719 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.286e-06/0.2984, allocations: 3.938 kB / 1.23 GB, free: 4.715 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.217e-06/0.2984, allocations: 0 / 1.23 GB, free: 4.715 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.381e-05/0.2984, allocations: 0 / 1.23 GB, free: 4.715 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.098e-06/0.2984, allocations: 0 / 1.23 GB, free: 4.715 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.262e-05/0.2984, allocations: 0 / 1.23 GB, free: 4.715 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.049e-06/0.2985, allocations: 4.031 kB / 1.23 GB, free: 4.711 MB / 0.9825 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (cmp) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1): * Single equations (assignments): 1 * 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 prepare postOptimizeDAE: time 8.435e-05/0.2985, allocations: 192.9 kB / 1.23 GB, free: 4.516 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.23e-05/0.2986, allocations: 101 kB / 1.23 GB, free: 4.41 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.75e-05/0.2987, allocations: 116 kB / 1.23 GB, free: 4.289 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.013e-05/0.2987, allocations: 180.3 kB / 1.23 GB, free: 4.105 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.789e-05/0.2988, allocations: 180.3 kB / 1.23 GB, free: 3.922 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.311e-05/0.2988, allocations: 184.3 kB / 1.231 GB, free: 3.734 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002516/0.2991, allocations: 413.2 kB / 1.231 GB, free: 3.273 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.731e-05/0.2991, allocations: 104.9 kB / 1.231 GB, free: 3.164 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001084/0.2993, allocations: 101 kB / 1.231 GB, free: 3.059 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.823e-05/0.2993, allocations: 176.3 kB / 1.231 GB, free: 2.879 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001019/0.2994, allocations: 192.2 kB / 1.232 GB, free: 2.684 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.098e-05/0.2995, allocations: 180.2 kB / 1.232 GB, free: 2.5 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.763e-05/0.2996, allocations: 184.2 kB / 1.232 GB, free: 2.312 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001181/0.2997, allocations: 299.8 kB / 1.232 GB, free: 1.996 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 6.324e-05/0.2997, allocations: 194 kB / 1.232 GB, free: 1.781 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.436e-05/0.2998, allocations: 184.3 kB / 1.233 GB, free: 1.594 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.062e-05/0.2999, allocations: 104.9 kB / 1.233 GB, free: 1.484 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.539e-05/0.3, allocations: 176.3 kB / 1.233 GB, free: 1.305 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.338e-05/0.3, allocations: 105 kB / 1.233 GB, free: 1.195 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 4.008e-05/0.3, allocations: 83.22 kB / 1.233 GB, free: 1.113 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1.1e-07/0.3, allocations: 0 / 1.233 GB, free: 1.113 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.000264/0.3003, allocations: 27.94 kB / 1.233 GB, free: 1.086 MB / 0.9825 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.0003444/0.3007, allocations: 235.9 kB / 1.233 GB, free: 0.8516 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 5.916e-05/0.3007, allocations: 4 kB / 1.233 GB, free: 0.8477 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 1.984e-06/0.3007, allocations: 0 / 1.233 GB, free: 0.8477 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 2.795e-06/0.3007, allocations: 8.062 kB / 1.233 GB, free: 0.8398 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003332/0.3011, allocations: 459.6 kB / 1.234 GB, free: 396 kB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003345/0.3014, allocations: 208 kB / 1.234 GB, free: 160 kB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002109/0.3017, allocations: 0.669 MB / 1.235 GB, free: 15.46 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 2.59e-05/0.3017, allocations: 12 kB / 1.235 GB, free: 15.45 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.931e-05/0.3017, allocations: 11.44 kB / 1.235 GB, free: 15.44 MB / 0.9981 GB Notification: Performance of SimCode: time 2.61e-07/0.3017, allocations: 0 / 1.235 GB, free: 15.44 MB / 0.9981 GB Notification: Performance of Templates: time 0.002657/0.3044, allocations: 0.6713 MB / 1.235 GB, free: 14.81 MB / 0.9981 GB make -j1 -f Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.ShaGFunction.makefile (rm -f Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.ShaGFunction.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.ShaGFunction.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.ShaGFunction.pipe >> ../files/Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.ShaGFunction.sim & ./Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.ShaGFunction -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.ShaGFunction.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.ShaGFunction_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_Geothermal_Borefields_BaseClasses_HeatTransfer_ThermalResponseFactors_Validation_ShaGFunction.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.ShaGFunction.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches