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 10 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 = 74146
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0228.1+8208_monthly_bin168
RA = 37.0303, Dec = 82.1434
tmin = 672451201, tmax = 675043201
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='607882', job_status='RUN', time_executed='2022-05-24 01:51:15.763189', time_epoch_executed='1653382275.76' WHERE source_name='4FGL J0228.1+8208' and cadence='monthly' and bin_id='168'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/607882

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

Retrieving the FT1 file...

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

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

Retrieving 455 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/607882/ft1_4FGL_J0228.1+8208_monthly_bin168.fits


Retrieving the FT1 file...

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

Retrieving 455 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/607882/ft2_4FGL_J0228.1+8208_monthly_bin168.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/607882/ft1_4FGL_J0228.1+8208_monthly_bin168.fits outfile=/scratch/kocevski/607882/ft1_filteredMKT_4FGL_J0228.1+8208_monthly_bin168.fits ra=37.0303 dec=82.1434 rad=12.0 tmin=672451201.0 tmax=675043201.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 29.12
user 28.25
sys 0.79

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/607882/ft2_4FGL_J0228.1+8208_monthly_bin168.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/607882/ft2_4FGL_J0228.1+8208_monthly_bin168.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/607882/ft1_filteredMKT_4FGL_J0228.1+8208_monthly_bin168.fits evtable="EVENTS" outfile="/scratch/kocevski/607882/ft1_filtered_4FGL_J0228.1+8208_monthly_bin168.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.87
user 0.65
sys 0.20

Number of photons that the gtmktime cut: 21407

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/607882/ft1_filtered_4FGL_J0228.1+8208_monthly_bin168.fits" evtable="EVENTS" scfile=/scratch/kocevski/607882/ft2_4FGL_J0228.1+8208_monthly_bin168.fits sctable="SC_DATA" outfile=/scratch/kocevski/607882/ltcube_672451201_675043201_4FGL_J0228.1+8208_monthly_bin168.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/607882/ft2_4FGL_J0228.1+8208_monthly_bin168.fits
.....................!
real 141.56
user 140.81
sys 0.43

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/607882/ft1_filtered_4FGL_J0228.1+8208_monthly_bin168.fits evtable="EVENTS" scfile=/scratch/kocevski/607882/ft2_4FGL_J0228.1+8208_monthly_bin168.fits sctable="SC_DATA" expcube=/scratch/kocevski/607882/ltcube_672451201_675043201_4FGL_J0228.1+8208_monthly_bin168.fits outfile=/scratch/kocevski/607882/expmap_672451201_675043201_4FGL_J0228.1+8208_monthly_bin168.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/607882/ltcube_672451201_675043201_4FGL_J0228.1+8208_monthly_bin168.fits
.....................!
real 193.10
user 187.16
sys 5.19

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.
Added 208 point sources and 2 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 J0228.1+8208 @ 37.0303 82.1434

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/607882/ft1_filtered_4FGL_J0228.1+8208_monthly_bin168.fits scfile=/scratch/kocevski/607882/ft2_4FGL_J0228.1+8208_monthly_bin168.fits outfile=/scratch/kocevski/607882/cmap_672451201_675043201_4FGL_J0228.1+8208_monthly_bin168.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=37.0303 yref=82.1434 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.82
user 0.65
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/607882/ft1_filtered_4FGL_J0228.1+8208_monthly_bin168.fits scfile=/scratch/kocevski/607882/ft2_4FGL_J0228.1+8208_monthly_bin168.fits outfile=/scratch/kocevski/607882/cmap_HighResolution_672451201_675043201_4FGL_J0228.1+8208_monthly_bin168.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=37.0303 yref=82.1434 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.83
user 0.62
sys 0.19

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/607882/ft1_filtered_4FGL_J0228.1+8208_monthly_bin168.fits evtable="EVENTS" scfile=/scratch/kocevski/607882/ft2_4FGL_J0228.1+8208_monthly_bin168.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/607882/Model_4FGL_J0228.1+8208_monthly_bin168.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 GAL_V02
adding source HB 3
adding source W 3
Working on...
/scratch/kocevski/607882/ft1_filtered_4FGL_J0228.1+8208_monthly_bin168.fits.....................!
real 2850.89
user 2839.74
sys 2.59

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/607882/ft1_filtered_4FGL_J0228.1+8208_monthly_bin168.fits', '/scratch/kocevski/607882/ft2_4FGL_J0228.1+8208_monthly_bin168.fits', expMap='/scratch/kocevski/607882/expmap_672451201_675043201_4FGL_J0228.1+8208_monthly_bin168.fits', expCube='/scratch/kocevski/607882/ltcube_672451201_675043201_4FGL_J0228.1+8208_monthly_bin168.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/607882/Model_4FGL_J0228.1+8208_monthly_bin168.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0228.1+8208'

4FGL J0228.1+8208
   Spectrum: PowerLaw
159    Prefactor:  1.549e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
160        Index:  2.469e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
161        Scale:  1.217e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/607882/ft1_filtered_4FGL_J0228.1+8208_monthly_bin168.fits
Spacecraft file(s): /scratch/kocevski/607882/ft2_4FGL_J0228.1+8208_monthly_bin168.fits
Exposure map: /scratch/kocevski/607882/expmap_672451201_675043201_4FGL_J0228.1+8208_monthly_bin168.fits
Exposure cube: /scratch/kocevski/607882/ltcube_672451201_675043201_4FGL_J0228.1+8208_monthly_bin168.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/607882/Model_4FGL_J0228.1+8208_monthly_bin168.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) = 215217.586387

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.8721       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.9930       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .17332E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .52467       1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.0648       1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.6452       1.0000         .10000E-03   10000.    
     8 'norm      '    .10022E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.0954       1.0000         .10000E-03   10000.    
    11 'Prefactor '    11.793       1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.0475       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
    14 'Normalizat'    1.0509       1.0000         .10000E-01   10.000    
    15 'Prefactor '    .98607       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6980E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   215216.9     FROM MIGRAD    STATUS=CONVERGED     62 CALLS      958 TOTAL
                     EDM=   .54E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.8722        .70356        .39934E-07   -.58687E-04
   2  Prefactor     .10000E-03    .87385        .11768E-07** at limit **
   3  Prefactor     3.9923        1.6410       -.55101E-07   -.65736E-05
   4  Prefactor     .10000E-03    22.368        .14736E-05** at limit **
   5  norm          .52377        1.1305       -.11163E-06   -.86332E-04
   6  Prefactor     3.0651        .81010       -.38979E-07   -.13116E-02
   7  Prefactor     4.6445        2.9728        .23701E-05   -.17485E-03
   8  norm          .10000E-03    3.7498        .28467E-08** at limit **
   9  Prefactor     .10000E-03    .38429       -.61118E-07** at limit **
  10  Prefactor     5.1153        5.6399       -.92432E-06    .16061E-04
  11  Prefactor     11.793        2.2847       -.45981E-06    .19740E-03
  12  Prefactor     2.0464        1.0399        .48228E-07   -.16404E-03
  13  Prefactor     .10000E-03    .60982       -.14396E-06** at limit **
  14  Normalizat    1.0509        .50525E-01   -.30189E-06    .21037E-03
  15  Prefactor     .98606        .15084E-01   -.11583E-07   -.74719E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.8722
  Prefactor  = 0.0001
  Prefactor  = 3.99232
  Prefactor  = 0.0001
  norm       = 0.523773
  Prefactor  = 3.06513
  Prefactor  = 4.6445
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.11528
  Prefactor  = 11.7926
  Prefactor  = 2.04644
  Prefactor  = 0.0001
  Normalizat = 1.05088
  Prefactor  = 0.986065
 **********
 **   18 **HESSE 
 **********

 FCN=   215216.9     FROM HESSE     STATUS=OK           230 CALLS     1188 TOTAL
                     EDM=   .13E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.8722        .70541        .76096E-02   -1.5434    
   2  Prefactor     .10000E-03    .87113        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     3.9923        1.6431        .50458E-02   -1.5308    
   4  Prefactor     .10000E-03    1.5919        .16783       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .52377        .86834        .11371       -1.5563    
   6  Prefactor     3.0651        .84139        .57929E-02   -1.5358    
   7  Prefactor     4.6445        2.9768        .46684E-02   -1.5277    
   8  norm          .10000E-03    .39674        .90712E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    .37793        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     5.1153        5.6459        .44530E-02   -1.5256    
  11  Prefactor     11.793        2.2820        .29163E-02   -1.5021    
  12  Prefactor     2.0464        4.3218        .72232E-02   -1.5422    
  13  Prefactor     .10000E-03    .59989        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Normalizat    1.0509        .47449E-01    .10358       -.91345    
  15  Prefactor     .98606        .14159E-01    .31788E-01   -.93195    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.3027e-06
Minuit parameter uncertainties:
  1  0.705409
  2  2.8381e-08
  3  1.64315
  4  4.74525e-05
  5  0.868363
  6  0.841395
  7  2.97693
  8  3.61467e-06
  9  1.03613e-07
  10  5.64644
  11  2.28199
  12  4.32241
  13  2.80996e-07
  14  0.0474511
  15  0.0141593
Done.

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

Extracting fit parameters...

4FGL J0228.1+8208
   Spectrum: PowerLaw
159    Prefactor:  4.645e+00  2.977e+00  1.000e-04  1.000e+04 ( 1.000e-13)
160        Index:  2.469e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
161        Scale:  1.217e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
687    Prefactor:  9.861e-01  1.416e-02  0.000e+00  1.000e+01 ( 1.000e+00)
688        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
689        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
686   Normalization:  1.051e+00  4.745e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.83
Ra Dec: 37.030 82.143
Photon Index (Fixed Index): 2.47 +/- 0.00
Photon Flux (Fixed Index): 1.51e-08 +/- 9.68e-09
Energy Flux (Fixed Index): 4.55e-06 +/- 2.91e-06

TS (Fixed Index): 2.83
Ra Dec: 37.030 82.143
Photon Flux Upper Limit: 3.22e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.50e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/607882/likelihoodResults_672451201_675043201_4FGL_J0228.1+8208_monthly_bin168.txt

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) = 215216.14753
delta logL = 0.765671712725

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 215216.117219
delta logL = 0.795983009564

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.2946       1.0000         .10000E-03   10000.    
     2 'Index     '    3.0878       1.0000          .0000       10.000    
     3 'Normalizat'    1.0404       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98745       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6980E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   215216.1     FROM MIGRAD    STATUS=FAILED        99 CALLS      356 TOTAL
                     EDM=   .27E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.2946        27.526        .13548E-02    .17866E-01
   2  Index         3.0877        3.1483        .11038E-01    .31188E-03
   3  Normalizat    1.0405        .42592E-01    .46107E-03    .27616E-04
   4  Prefactor     .98745        .12533E-01    .14038E-03   -.93297E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   215216.1     FROM SIMPLEX   STATUS=UNCHANGED     86 CALLS      442 TOTAL
                     EDM=   .14E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.2946        27.526        .90082E-04    .17866E-01
   2  Index         3.0877        3.1483        .48219E-03    .31188E-03
   3  Normalizat    1.0405        .42592E-01    .73465E-04    .27616E-04
   4  Prefactor     .98745        .12533E-01    .14829E-04   -.93297E-05
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   215216.1     FROM MIGRAD    STATUS=CONVERGED     42 CALLS      484 TOTAL
                     EDM=   .21E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.2946        2.9564        .27096E-03   -.15575E-03
   2  Index         3.0877        .64354        .44154E-03   -.25542E-04
   3  Normalizat    1.0405        .50337E-01    .92213E-04    .78903E-05
   4  Prefactor     .98745        .14781E-01    .28075E-04    .49240E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.29458
  Index      = 3.08774
  Normalizat = 1.04045
  Prefactor  = 0.987453
 **********
 **   18 **HESSE 
 **********

 FCN=   215216.1     FROM HESSE     STATUS=OK            23 CALLS      507 TOTAL
                     EDM=   .22E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.2946        2.6033        .10838E-04   -1.5405    
   2  Index         3.0877        .56705        .17662E-04   -.39245    
   3  Normalizat    1.0405        .50329E-01    .36885E-05   -.91687    
   4  Prefactor     .98745        .14771E-01    .56151E-05   -.93149    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.17908e-12
Minuit parameter uncertainties:
  1  2.60346
  2  0.568483
  3  0.0503312
  4  0.0147715
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/607882': 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) = 215216.117219
delta logL = 0.795983055927

Extracting fit parameters...

4FGL J0228.1+8208
   Spectrum: PowerLaw
159    Prefactor:  2.295e+00  2.603e+00  1.000e-04  1.000e+04 ( 1.000e-13)
160        Index:  3.088e+00  5.685e-01  0.000e+00  1.000e+01 (-1.000e+00)
161        Scale:  1.217e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
687    Prefactor:  9.875e-01  1.477e-02  0.000e+00  1.000e+01 ( 1.000e+00)
688        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
689        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
686   Normalization:  1.040e+00  5.033e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.52
Ra Dec: 37.030 82.143
Photon Index (Free Index): 3.09 +/- 0.57
Photon Flux (Free Index): 2.47e-08 +/- 1.28e-08
Energy Flux (Free Index): 4.73e-06 +/- 2.45e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to -3.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  3.330e+00 [aplpy.core]
Saving /scratch/kocevski/607882/cmap_HighResolution_672451201_675043201_4FGL_J0228.1+8208_monthly_bin168.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.50e-03', comment='SUCCESS', photon_flux='1.51e-08', energy_flux2='4.73e-06', photon_flux_error='9.68e-09', dlogl='7.96e-01', energy_flux='4.55e-06', photon_flux2='2.47e-08', job_status='DONE', time_completed='2022-05-24 04:54:28.155447', photon_index_error2='0.57', photon_index2='3.09', ts='2.83', fit_tolerance='1e-08', GAL='0.99', photon_index_error='0.00', photon_flux_upper_limit='3.22e-08', energy_flux_error2='2.45e-06', EG='1.05', time_epoch_completed='1653393268.16', return_code='0', job_id='607882', GAL2='0.99', EG2='1.04', return_code2='0', energy_flux_error='2.91e-06', photon_flux_error2='1.28e-08', ts2='4.52', photon_index='2.47' WHERE bin_id='168' AND source_name='4FGL J0228.1+8208' AND cadence='monthly';

Database successfully updated.


Analysis Complete.


Tue May 24 04:54:28 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0200>
Subject: Job 607882: <4FGL_J0228.1+8208_monthly_bin168> in cluster <slac> Done

Job <4FGL_J0228.1+8208_monthly_bin168> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Tue May 24 01:35:34 2022
Job was executed on host(s) <bullet0200>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue May 24 01:50:50 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue May 24 01:50:50 2022
Terminated at Tue May 24 04:54:29 2022
Results reported at Tue May 24 04:54:29 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0228.1+8208_monthly_bin168 37.0303 82.1434 672451201 675043201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0228.1+8208 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   10942.33 sec.
    Max Memory :                                 1110 MB
    Average Memory :                             651.47 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   3419 MB
    Max Processes :                              6
    Max Threads :                                21
    Run time :                                   11020 sec.
    Turnaround time :                            11935 sec.

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

