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


Performing analysis on: 4FGL_J0028.4+2001_weekly_bin717
RA = 7.1222, Dec = 20.0311
tmin = 672624001, tmax = 673228801
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='363789', job_status='RUN', time_executed='2022-05-03 00:49:04.832875', time_epoch_executed='1651564144.83' WHERE source_name='4FGL J0028.4+2001' and cadence='weekly' and bin_id='717'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/363789

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/363789/ft1_4FGL_J0028.4+2001_weekly_bin717.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/363789/ft2_4FGL_J0028.4+2001_weekly_bin717.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/363789/ft1_4FGL_J0028.4+2001_weekly_bin717.fits outfile=/scratch/kocevski/363789/ft1_filteredMKT_4FGL_J0028.4+2001_weekly_bin717.fits ra=7.1222 dec=20.0311 rad=12.0 tmin=672624001.0 tmax=673228801.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 6.34
user 6.06
sys 0.24

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/363789/ft2_4FGL_J0028.4+2001_weekly_bin717.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/363789/ft2_4FGL_J0028.4+2001_weekly_bin717.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/363789/ft1_filteredMKT_4FGL_J0028.4+2001_weekly_bin717.fits evtable="EVENTS" outfile="/scratch/kocevski/363789/ft1_filtered_4FGL_J0028.4+2001_weekly_bin717.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.56
user 0.38
sys 0.18

Number of photons that the gtmktime cut: 997

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/363789/ft1_filtered_4FGL_J0028.4+2001_weekly_bin717.fits" evtable="EVENTS" scfile=/scratch/kocevski/363789/ft2_4FGL_J0028.4+2001_weekly_bin717.fits sctable="SC_DATA" outfile=/scratch/kocevski/363789/ltcube_672624001_673228801_4FGL_J0028.4+2001_weekly_bin717.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/363789/ft2_4FGL_J0028.4+2001_weekly_bin717.fits
.....................!
real 31.19
user 30.64
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/363789/ft1_filtered_4FGL_J0028.4+2001_weekly_bin717.fits evtable="EVENTS" scfile=/scratch/kocevski/363789/ft2_4FGL_J0028.4+2001_weekly_bin717.fits sctable="SC_DATA" expcube=/scratch/kocevski/363789/ltcube_672624001_673228801_4FGL_J0028.4+2001_weekly_bin717.fits outfile=/scratch/kocevski/363789/expmap_672624001_673228801_4FGL_J0028.4+2001_weekly_bin717.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/363789/ltcube_672624001_673228801_4FGL_J0028.4+2001_weekly_bin717.fits
.....................!
real 190.89
user 185.44
sys 5.03

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
Added 155 point sources and 0 extended sources

Setting source of interest to:
4FGL J0028.4+2001 @ 7.1222 20.0311

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/363789/ft1_filtered_4FGL_J0028.4+2001_weekly_bin717.fits scfile=/scratch/kocevski/363789/ft2_4FGL_J0028.4+2001_weekly_bin717.fits outfile=/scratch/kocevski/363789/cmap_672624001_673228801_4FGL_J0028.4+2001_weekly_bin717.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=7.1222 yref=20.0311 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.57
user 0.40
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/363789/ft1_filtered_4FGL_J0028.4+2001_weekly_bin717.fits scfile=/scratch/kocevski/363789/ft2_4FGL_J0028.4+2001_weekly_bin717.fits outfile=/scratch/kocevski/363789/cmap_HighResolution_672624001_673228801_4FGL_J0028.4+2001_weekly_bin717.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=7.1222 yref=20.0311 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.58
user 0.41
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/363789/ft1_filtered_4FGL_J0028.4+2001_weekly_bin717.fits evtable="EVENTS" scfile=/scratch/kocevski/363789/ft2_4FGL_J0028.4+2001_weekly_bin717.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/363789/Model_4FGL_J0028.4+2001_weekly_bin717.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
Working on...
/scratch/kocevski/363789/ft1_filtered_4FGL_J0028.4+2001_weekly_bin717.fits.....................!
real 115.17
user 113.71
sys 1.21

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/363789/ft1_filtered_4FGL_J0028.4+2001_weekly_bin717.fits', '/scratch/kocevski/363789/ft2_4FGL_J0028.4+2001_weekly_bin717.fits', expMap='/scratch/kocevski/363789/expmap_672624001_673228801_4FGL_J0028.4+2001_weekly_bin717.fits', expCube='/scratch/kocevski/363789/ltcube_672624001_673228801_4FGL_J0028.4+2001_weekly_bin717.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/363789/Model_4FGL_J0028.4+2001_weekly_bin717.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0028.4+2001'

4FGL J0028.4+2001
   Spectrum: PowerLaw
112    Prefactor:  1.480e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
113        Index:  2.414e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
114        Scale:  7.971e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/363789/ft1_filtered_4FGL_J0028.4+2001_weekly_bin717.fits
Spacecraft file(s): /scratch/kocevski/363789/ft2_4FGL_J0028.4+2001_weekly_bin717.fits
Exposure map: /scratch/kocevski/363789/expmap_672624001_673228801_4FGL_J0028.4+2001_weekly_bin717.fits
Exposure cube: /scratch/kocevski/363789/ltcube_672624001_673228801_4FGL_J0028.4+2001_weekly_bin717.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/363789/Model_4FGL_J0028.4+2001_weekly_bin717.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) = 11322.0390451

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .35453       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .12593       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10745E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    10.739       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10069E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10147E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    7.4638       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .47865       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .11127E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    2.0458       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    16 'Normalizat'    .98918       1.0000         .10000E-01   10.000    
    17 'Prefactor '    1.1073       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4930E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   11322.00     FROM MIGRAD    STATUS=CONVERGED    339 CALLS     1382 TOTAL
                     EDM=   .65E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .35504        1.1818        .34485E-01    .22095E-02
   2  Prefactor     .12163        3.2878        .69013E-01    .62413E-03
   3  Prefactor     .10000E-03    2.1975        .90712E-02** at limit **
   4  Prefactor     .10007E-03    32.976        .90712E-02** at limit **
   5  Prefactor     .10000E-03    1.4738        .90712E-02** at limit **
   6  norm          10.736        7.7855        .30565E-02   -.22317E-04
   7  Prefactor     .10000E-03    9.2339        .90712E-02** at limit **
   8  Prefactor     .10000E-03    6.3241        .90712E-02** at limit **
   9  norm          .10000E-03    2.5468        .90712E-02** at limit **
  10  Prefactor     7.4633        5.5710        .36700E-02   -.10061E-02
  11  Prefactor     .53017        3.6647        .11183        .75005E-03
  12  Prefactor     .10000E-03    27.711        .90712E-02** at limit **
  13  Prefactor     .10004E-03    36.125        .90712E-02** at limit **
  14  norm          2.0456        .86500        .72268E-02    .47966E-04
  15  Prefactor     .10000E-03    1.5080        .90712E-02** at limit **
  16  Normalizat    .98916        .15297        .67828E-01    .19603E-04
  17  Prefactor     1.1073        .10213        .37314E-01   -.12912E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.355042
  Prefactor  = 0.121635
  Prefactor  = 0.0001
  Prefactor  = 0.000100068
  Prefactor  = 0.0001
  norm       = 10.7363
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 7.46332
  Prefactor  = 0.53017
  Prefactor  = 0.000100004
  Prefactor  = 0.00010004
  norm       = 2.04555
  Prefactor  = 0.0001
  Normalizat = 0.989162
  Prefactor  = 1.1073
 **********
 **   18 **HESSE 
 **********

 FCN=   11322.00     FROM HESSE     STATUS=OK           233 CALLS     1615 TOTAL
                     EDM=   .46E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .35504        1.6146        .19110E-02   -1.5589    
   2  Prefactor     .12163        3.5707        .62605E-01   -1.5638    
   3  Prefactor     .10000E-03    2.2067        .15400E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10007E-03    33.446        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    1.5179        .25207E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          10.736        7.7873        .12226E-03   -1.5053    
   7  Prefactor     .10000E-03    9.2637        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    6.3481        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    2.5540        .16582E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     7.4633        5.5690        .14680E-03   -1.5162    
  11  Prefactor     .53017        16.159        .39097E-02   -1.5562    
  12  Prefactor     .10000E-03    27.730        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10004E-03    36.348        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          2.0456        .86323        .62382E-04   -1.5422    
  15  Prefactor     .10000E-03    1.5178        .12757E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Normalizat    .98916        .17717        .30004E-03   -.93394    
  17  Prefactor     1.1073        .12007        .19392E-03   -.89234    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.55118e-09
Minuit parameter uncertainties:
  1  1.5141
  2  1.31761
  3  1.30351e-06
  4  0.00301394
  5  2.11639e-07
  6  7.78808
  7  4.97469e-06
  8  1.92543e-06
  9  4.86952e-07
  10  5.56943
  11  5.8551
  12  0.000672663
  13  0.00242687
  14  0.863231
  15  6.38542e-07
  16  0.177276
  17  0.120097
Done.

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

Extracting fit parameters...

4FGL J0028.4+2001
   Spectrum: PowerLaw
112    Prefactor:  1.000e-04  2.116e-07  1.000e-04  1.000e+04 ( 1.000e-12)
113        Index:  2.414e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
114        Scale:  7.971e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
490    Prefactor:  1.107e+00  1.201e-01  0.000e+00  1.000e+01 ( 1.000e+00)
491        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
492        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
489   Normalization:  9.892e-01  1.773e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 7.122 20.031
Photon Flux Upper Limit: 5.20e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.02e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/363789/likelihoodResults_672624001_673228801_4FGL_J0028.4+2001_weekly_bin717.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): 102
logL (Free Index) = 11322.0017401
delta logL = -0.00314224266549

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 11321.9985992
delta logL = -1.41123018693e-06

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 FCN=   11322.00     FROM MIGRAD    STATUS=FAILED        87 CALLS      242 TOTAL
                     EDM=   .70E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10057E-03    352.00        .25273E-03** at limit **
   2  Index         2.3457        8.8058        .50000        .29316E-04
   3  Normalizat    .98916        .11955        .30004E-03   -.29479E-03
   4  Prefactor     1.1073        .80993E-01    .19392E-03   -.32052E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   11322.00     FROM SIMPLEX   STATUS=UNCHANGED    152 CALLS      394 TOTAL
                     EDM=   .13E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10057E-03    352.00        .23181E-03** at limit **
   2  Index         2.3457        8.8058        .13419E-03    .29316E-04
   3  Normalizat    .98916        .11955        .43569E-05   -.29479E-03
   4  Prefactor     1.1073        .80993E-01    .17507E-05   -.32052E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   11322.00     FROM MIGRAD    STATUS=CONVERGED     40 CALLS      434 TOTAL
                     EDM=   .44E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.6191        .50547E-04** at limit **
   2  Index         2.2195        7.1221        .50000       -.12051E-06
   3  Normalizat    .98916        .17520        .12001E-04    .58352E-04
   4  Prefactor     1.1073        .11983        .38784E-04   -.77621E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.21948
  Normalizat = 0.989164
  Prefactor  = 1.1073
 **********
 **   18 **HESSE 
 **********

 FCN=   11322.00     FROM HESSE     STATUS=OK            29 CALLS      463 TOTAL
                     EDM=   .44E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.5690        .10109E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2195        7.7547        .50000       -.58969    
   3  Normalizat    .98916        .17529        .24003E-05   -.93394    
   4  Prefactor     1.1073        .11988        .77567E-05   -.89234    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.38787e-11
Minuit parameter uncertainties:
  1  4.12645e-06
  2  73.4808
  3  0.175392
  4  0.119914
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/363789': 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) = 11321.9985968
delta logL = 1.03073034552e-06

Extracting fit parameters...

4FGL J0028.4+2001
   Spectrum: PowerLaw
112    Prefactor:  1.000e-04  4.126e-06  1.000e-04  1.000e+04 ( 1.000e-12)
113        Index:  2.219e+00  7.348e+01  0.000e+00  1.000e+01 (-1.000e+00)
114        Scale:  7.971e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
490    Prefactor:  1.107e+00  1.199e-01  0.000e+00  1.000e+01 ( 1.000e+00)
491        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
492        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
489   Normalization:  9.892e-01  1.754e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 7.122 20.031

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/363789/cmap_HighResolution_672624001_673228801_4FGL_J0028.4+2001_weekly_bin717.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.02e-03', job_status='DONE', photon_flux_upper_limit='5.20e-08', time_completed='2022-05-03 01:01:29.666169', job_id='363789', GAL2='1.11', fit_tolerance='1e-08', EG2='0.99', EG='0.99', time_epoch_completed='1651564889.67', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.11', dlogl='1.03e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.41' WHERE bin_id='717' AND source_name='4FGL J0028.4+2001' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue May  3 01:01:29 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0067>
Subject: Job 363789: <4FGL_J0028.4+2001_weekly_bin717> in cluster <slac> Done

Job <4FGL_J0028.4+2001_weekly_bin717> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue May  3 00:45:35 2022
Job was executed on host(s) <bullet0067>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue May  3 00:46:35 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue May  3 00:46:35 2022
Terminated at Tue May  3 01:01:30 2022
Results reported at Tue May  3 01:01:30 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0028.4+2001_weekly_bin717 7.1222 20.0311 672624001 673228801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0028.4+2001 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   745.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             313.45 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   895 sec.
    Turnaround time :                            955 sec.

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

