aklog: Couldn't determine realm of user:aklog: No credentials cache found  while getting realm
/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)


Waiting 184 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

number of points = 73886
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0253.9+5103_monthly_bin167
RA = 43.4933, Dec = 51.0633
tmin = 669859201, tmax = 672451201
emin = 100.0, emax = 100000.0
irfs = P8R3_SOURCE_V2
ROI = 12
zmax = 90

Fitting strategies:
Fix sources to their catalog values = True
Leave variable source normalizations free = True
Perform pre-fit where ALL sources are frozen to catalog values = False
Perform secondary fit with a free spectral index = True
Remove all catalog sources = False
Remove weak (TS < 2) catalog sources = False
Freeze Galactic component = False

Likelihood fit parameters:
Statistic: UNBINNED
Optimizer: MINUIT

Catalog: 4FGL

Repository job = True

LAT data source:
Data catalog

Updating database...

UPDATE lightcurve_data_v2 SET job_id='877615', job_status='RUN', time_executed='2022-04-24 01:00:25.050199', time_epoch_executed='1650787225.05' WHERE source_name='4FGL J0253.9+5103' and cadence='monthly' and bin_id='167'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/877615

Creating custom pfile directory:
/scratch/kocevski/877615/pfiles/

Retrieving the FT1 file...

Issuing command:
/afs/slac.stanford.edu/g/glast/ground/bin/datacat find --group FT1 --filter 'nMetStop>=669859201.0 && nMetStart<672451201.0' /Data/Flight/Reprocess/P305

Issuing command:
/afs/slac.stanford.edu/g/glast/ground/bin/datacat find --group FT1 --filter 'nMetStart>564945418 && nMetStop>=669859201.0 && nMetStart<672451201.0' /Data/Flight/Level1/LPA

Retrieving 456 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/877615/ft1_4FGL_J0253.9+5103_monthly_bin167.fits


Retrieving the FT1 file...

Issuing command:
/afs/slac.stanford.edu/g/glast/ground/bin/datacat find --group FT2 --filter 'nMetStop>=669859201.0 && nMetStart<672451201.0' /Data/Flight/Level1/LPA

Retrieving 456 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/877615/ft2_4FGL_J0253.9+5103_monthly_bin167.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/877615/ft1_4FGL_J0253.9+5103_monthly_bin167.fits outfile=/scratch/kocevski/877615/ft1_filteredMKT_4FGL_J0253.9+5103_monthly_bin167.fits ra=43.4933 dec=51.0633 rad=12.0 tmin=669859201.0 tmax=672451201.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 38.64
user 37.21
sys 0.97

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/877615/ft2_4FGL_J0253.9+5103_monthly_bin167.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/877615/ft2_4FGL_J0253.9+5103_monthly_bin167.fits sctable="SC_DATA" filter="IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))" roicut=no evfile=/scratch/kocevski/877615/ft1_filteredMKT_4FGL_J0253.9+5103_monthly_bin167.fits evtable="EVENTS" outfile="/scratch/kocevski/877615/ft1_filtered_4FGL_J0253.9+5103_monthly_bin167.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.93
user 0.66
sys 0.20

Number of photons that the gtmktime cut: 29763

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/877615/ft1_filtered_4FGL_J0253.9+5103_monthly_bin167.fits" evtable="EVENTS" scfile=/scratch/kocevski/877615/ft2_4FGL_J0253.9+5103_monthly_bin167.fits sctable="SC_DATA" outfile=/scratch/kocevski/877615/ltcube_669859201_672451201_4FGL_J0253.9+5103_monthly_bin167.fits dcostheta=0.025 binsz=1.0 phibins=0 tmin=0.0 tmax=0.0 file_version="1" zmin=0.0 zmax=90.0 chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Working on file /scratch/kocevski/877615/ft2_4FGL_J0253.9+5103_monthly_bin167.fits
.....................!
real 115.71
user 115.15
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/877615/ft1_filtered_4FGL_J0253.9+5103_monthly_bin167.fits evtable="EVENTS" scfile=/scratch/kocevski/877615/ft2_4FGL_J0253.9+5103_monthly_bin167.fits sctable="SC_DATA" expcube=/scratch/kocevski/877615/ltcube_669859201_672451201_4FGL_J0253.9+5103_monthly_bin167.fits outfile=/scratch/kocevski/877615/expmap_669859201_672451201_4FGL_J0253.9+5103_monthly_bin167.fits irfs="P8R3_SOURCE_V2" evtype="INDEF" srcrad=30.0 nlong=88 nlat=88 nenergies=10 submap=no nlongmin=0 nlongmax=0 nlatmin=0 nlatmax=0 chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

The exposure maps generated by this tool are meant
to be used for *unbinned* likelihood analysis only.
Do not use them for binned analyses.
Computing the ExposureMap using /scratch/kocevski/877615/ltcube_669859201_672451201_4FGL_J0253.9+5103_monthly_bin167.fits
.....................!
real 192.66
user 186.35
sys 5.96

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Extended source HB 3 in ROI with RadialDisk spatial model.
Extended source W 3 in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/W3.fits is the correct path to the extended template.
Extended source G150.3+4.5 in ROI with RadialDisk spatial model.
Extended source HB 9 in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/HB9.fits is the correct path to the extended template.
Added 180 point sources and 4 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J0253.9+5103 @ 43.4933 51.0633

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/877615/ft1_filtered_4FGL_J0253.9+5103_monthly_bin167.fits scfile=/scratch/kocevski/877615/ft2_4FGL_J0253.9+5103_monthly_bin167.fits outfile=/scratch/kocevski/877615/cmap_669859201_672451201_4FGL_J0253.9+5103_monthly_bin167.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=43.4933 yref=51.0633 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.84
user 0.65
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/877615/ft1_filtered_4FGL_J0253.9+5103_monthly_bin167.fits scfile=/scratch/kocevski/877615/ft2_4FGL_J0253.9+5103_monthly_bin167.fits outfile=/scratch/kocevski/877615/cmap_HighResolution_669859201_672451201_4FGL_J0253.9+5103_monthly_bin167.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=43.4933 yref=51.0633 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.84
user 0.64
sys 0.19

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/877615/ft1_filtered_4FGL_J0253.9+5103_monthly_bin167.fits evtable="EVENTS" scfile=/scratch/kocevski/877615/ft2_4FGL_J0253.9+5103_monthly_bin167.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/877615/Model_4FGL_J0253.9+5103_monthly_bin167.xml irfs="P8R3_SOURCE_V2" evclsmin=0 evclass="INDEF" evtype="INDEF" convert=yes chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

adding source EG_v02
adding source G150.3+4.5
adding source GAL_V02
adding source HB 3
adding source HB 9
adding source W 3
Working on...
/scratch/kocevski/877615/ft1_filtered_4FGL_J0253.9+5103_monthly_bin167.fits.....................!
real 5076.79
user 5066.64
sys 1.45

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/877615/ft1_filtered_4FGL_J0253.9+5103_monthly_bin167.fits', '/scratch/kocevski/877615/ft2_4FGL_J0253.9+5103_monthly_bin167.fits', expMap='/scratch/kocevski/877615/expmap_669859201_672451201_4FGL_J0253.9+5103_monthly_bin167.fits', expCube='/scratch/kocevski/877615/ltcube_669859201_672451201_4FGL_J0253.9+5103_monthly_bin167.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/877615/Model_4FGL_J0253.9+5103_monthly_bin167.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0253.9+5103'

4FGL J0253.9+5103
   Spectrum: PowerLaw
325    Prefactor:  1.069e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
326        Index:  2.468e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
327        Scale:  1.035e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/877615/ft1_filtered_4FGL_J0253.9+5103_monthly_bin167.fits
Spacecraft file(s): /scratch/kocevski/877615/ft2_4FGL_J0253.9+5103_monthly_bin167.fits
Exposure map: /scratch/kocevski/877615/expmap_669859201_672451201_4FGL_J0253.9+5103_monthly_bin167.fits
Exposure cube: /scratch/kocevski/877615/ltcube_669859201_672451201_4FGL_J0253.9+5103_monthly_bin167.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/877615/Model_4FGL_J0253.9+5103_monthly_bin167.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 0
logL (Fixed Index) = 279414.437584

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 0
logL (Fixed Index) = 279413.923288

Fit tolerance = 1e-08

Performing likelihood fit...
 **********
 **   14 **SET NOWARN 
 **********

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.1149       1.0000         .10000E-03   10000.    
     2 'norm      '    .43984       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    4.9826       1.0000         .10000E-03   10000.    
     5 'norm      '    4.3943       1.0000         .10000E-03   10000.    
     6 'norm      '    10.653       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .99904       1.0000         .10000E-03   10000.    
     8 'norm      '    2.5721       1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.7743       1.0000         .10000E-03   10000.    
    10 'Prefactor '    35.889       1.0000         .10000E-03   10000.    
    11 'norm      '    1.8839       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10087E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    10.320       1.0000         .10000E-03   10000.    
    14 'Prefactor '    7.0588       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .41969       1.0000         .10000E-03   10000.    
    16 'norm      '    13.801       1.0000         .10000E-03   10000.    
    17 'Normalizat'    1.2806       1.0000         .10000E-01   10.000    
    18 'Prefactor '    .99103       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6340E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   279413.9     FROM MIGRAD    STATUS=CONVERGED    385 CALLS     1570 TOTAL
                     EDM=   .29E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.0982        3.7788       -.85157E-06   -.48445E-05
   2  norm          .43984        .78401E-01   -.63615E-08   -.13576E-04
   3  Prefactor     .10000E-03    8.3010        .23942E-06** at limit **
   4  norm          4.9822        1.6155       -.21766E-07    .40366E-04
   5  norm          4.3944        .18468        .19233E-09   -.72281E-04
   6  norm          10.661        3.7773       -.91338E-06   -.41824E-04
   7  Prefactor     .99901        .58174        .63209E-07    .60080E-03
   8  norm          2.5724        .98185       -.12963E-07    .32623E-05
   9  Prefactor     1.7713        3.3874       -.90012E-06   -.11692E-03
  10  Prefactor     35.871        15.533        .18461E-05    .47455E-04
  11  norm          1.8841        .21149       -.17372E-07    .29726E-02
  12  Prefactor     .10000E-03    7.2923       -.45647E-06** at limit **
  13  norm          10.452        16.170        .76161E-06    .77621E-06
  14  Prefactor     7.0631        4.8107       -.92335E-06   -.37456E-05
  15  Prefactor     .41746        .30876E-01    .26696E-08   -.48176E-03
  16  norm          13.800        2.7644       -.26360E-07    .12803E-04
  17  Normalizat    1.2807        .74827E-01    .46573E-06    .10604E-03
  18  Prefactor     .99102        .10195E-01    .22073E-08    .32547E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.09815
  norm       = 0.439844
  Prefactor  = 0.0001
  norm       = 4.98216
  norm       = 4.39439
  norm       = 10.6614
  Prefactor  = 0.999007
  norm       = 2.57242
  Prefactor  = 1.77134
  Prefactor  = 35.8706
  norm       = 1.88406
  Prefactor  = 0.0001
  norm       = 10.4516
  Prefactor  = 7.06308
  Prefactor  = 0.417465
  norm       = 13.8002
  Normalizat = 1.28068
  Prefactor  = 0.99102
 **********
 **   18 **HESSE 
 **********

 FCN=   279413.9     FROM HESSE     STATUS=OK           254 CALLS     1824 TOTAL
                     EDM=   .25E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.0982        3.7748        .22974E-03   -1.5356    
   2  norm          .43984        .79018E-01    .60280E-04   -1.5575    
   3  Prefactor     .10000E-03    8.3128        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          4.9822        1.6154        .18016E-03   -1.5262    
   5  norm          4.3944        .18492        .44558E-04   -1.5289    
   6  norm          10.661        3.7605        .12275E-03   -1.5055    
   7  Prefactor     .99901        .56441        .28986E-03   -1.5508    
   8  norm          2.5724        .97907        .25450E-03   -1.5387    
   9  Prefactor     1.7713        3.3433        .31431E-03   -1.5442    
  10  Prefactor     35.871        15.585        .66897E-04   -1.4509    
  11  norm          1.8841        .21079        .70810E-04   -1.5433    
  12  Prefactor     .10000E-03    7.5013        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          10.452        16.585        .12472E-03   -1.5061    
  14  Prefactor     7.0631        4.8068        .15099E-03   -1.5176    
  15  Prefactor     .41746        .85337        .21877E-02   -1.5579    
  16  norm          13.800        2.7719        .10782E-03   -1.4965    
  17  Normalizat    1.2807        .75440E-01    .79251E-03   -.84145    
  18  Prefactor     .99102        .10497E-01    .12581E-03   -.93029    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.45158e-07
Minuit parameter uncertainties:
  1  3.77513
  2  0.079018
  3  1.03692e-06
  4  1.61544
  5  0.184921
  6  3.76057
  7  0.564417
  8  0.979073
  9  3.34362
  10  15.5866
  11  0.210791
  12  7.96865e-06
  13  16.5924
  14  4.80704
  15  0.853397
  16  2.77192
  17  0.075446
  18  0.0104968
Done.

MINUIT Return Code (Fixed Index): 0
logL (Fixed Index) = 279413.923241

Extracting fit parameters...

4FGL J0253.9+5103
   Spectrum: PowerLaw
325    Prefactor:  9.990e-01  5.644e-01  1.000e-04  1.000e+04 ( 1.000e-12)
326        Index:  2.468e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
327        Scale:  1.035e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
619    Prefactor:  9.910e-01  1.050e-02  0.000e+00  1.000e+01 ( 1.000e+00)
620        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
621        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
614   Normalization:  1.281e+00  7.545e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.86
Ra Dec: 43.493 51.063
Photon Index (Fixed Index): 2.47 +/- 0.00
Photon Flux (Fixed Index): 2.18e-08 +/- 1.23e-08
Energy Flux (Fixed Index): 6.55e-06 +/- 3.70e-06

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 279412.525872
delta logL = 1.39736860507

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 279412.517606
delta logL = 1.40563495416

Fit tolerance = 1e-08

Performing likelihood fit...
 **********
 **   14 **SET NOWARN 
 **********

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.2754       1.0000         .10000E-03   10000.    
     2 'Index     '    1.9041       1.0000          .0000       10.000    
     3 'Normalizat'    1.2890       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99071       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6340E+05   .2000E-04
 **********
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   279412.5     FROM MIGRAD    STATUS=CONVERGED     94 CALLS      284 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.2754        .68573        .15261E-02   -.18132E-01
   2  Index         1.9041        .30991        .13573E-01   -.72161E-03
   3  Normalizat    1.2890        .70237E-01    .79039E-03   -.94541E-03
   4  Prefactor     .99071        .10060E-01    .12582E-03   -.38975E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.27539
  Index      = 1.90412
  Normalizat = 1.28899
  Prefactor  = 0.990705
 **********
 **   18 **HESSE 
 **********

 FCN=   279412.5     FROM HESSE     STATUS=OK            25 CALLS      309 TOTAL
                     EDM=   .20E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.2754        .69464        .61044E-04   -1.5482    
   2  Index         1.9041        .31420        .54290E-03   -.66769    
   3  Normalizat    1.2890        .70238E-01    .31616E-04   -.83896    
   4  Prefactor     .99071        .10061E-01    .50330E-05   -.93040    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.97113e-08
Minuit parameter uncertainties:
  1  0.694647
  2  0.314533
  3  0.0702429
  4  0.0100614
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/877615': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 279412.517606
delta logL = 1.40563495416

Extracting fit parameters...

4FGL J0253.9+5103
   Spectrum: PowerLaw
325    Prefactor:  1.275e+00  6.946e-01  1.000e-04  1.000e+04 ( 1.000e-12)
326        Index:  1.904e+00  3.145e-01  0.000e+00  1.000e+01 (-1.000e+00)
327        Scale:  1.035e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
619    Prefactor:  9.907e-01  1.006e-02  0.000e+00  1.000e+01 ( 1.000e+00)
620        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
621        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
614   Normalization:  1.289e+00  7.024e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.65
Ra Dec: 43.493 51.063
Photon Index (Free Index): 1.90 +/- 0.31
Photon Flux (Free Index): 1.21e-08 +/- 9.13e-09
Energy Flux (Free Index): 1.07e-05 +/- 6.49e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to -4.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  4.440e+00 [aplpy.core]
Saving /scratch/kocevski/877615/cmap_HighResolution_669859201_672451201_4FGL_J0253.9+5103_monthly_bin167.png

Cleaning up...

** Nuclear option initiated! **
rmdir /scratch/kocevski/877615

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.18e-08', energy_flux2='1.07e-05', photon_flux_error='1.23e-08', dlogl='1.41e+00', energy_flux='6.55e-06', photon_flux2='1.21e-08', job_status='DONE', time_completed='2022-04-24 04:59:45.205497', photon_index_error2='0.31', photon_index2='1.90', ts='4.86', fit_tolerance='1e-08', GAL='0.99', photon_index_error='0.00', energy_flux_error2='6.49e-06', EG='1.28', time_epoch_completed='1650801585.21', return_code='0', job_id='877615', GAL2='0.99', EG2='1.29', return_code2='0', energy_flux_error='3.70e-06', photon_flux_error2='9.13e-09', ts2='7.65', photon_index='2.47' WHERE bin_id='167' AND source_name='4FGL J0253.9+5103' AND cadence='monthly';

Database successfully updated.


Analysis Complete.


Sun Apr 24 04:59:45 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0237>
Subject: Job 877615: <4FGL_J0253.9+5103_monthly_bin167> in cluster <slac> Done

Job <4FGL_J0253.9+5103_monthly_bin167> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sun Apr 24 00:50:48 2022
Job was executed on host(s) <bullet0237>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Apr 24 00:57:09 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Apr 24 00:57:09 2022
Terminated at Sun Apr 24 04:59:47 2022
Results reported at Sun Apr 24 04:59:47 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0253.9+5103_monthly_bin167 43.4933 51.0633 669859201 672451201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0253.9+5103 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   14311.00 sec.
    Max Memory :                                 782 MB
    Average Memory :                             694.25 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   14557 sec.
    Turnaround time :                            14939 sec.

The output (if any) is above this job summary.

