/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 109 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 = 7430
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0422.1-0644_daily_bin250
RA = 65.5343, Dec = -6.741
tmin = 304128001, tmax = 304387201
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='395686', job_status='RUN', time_executed='2021-08-20 12:48:23.764408', time_epoch_executed='1629488903.76' WHERE source_name='4FGL J0422.1-0644' and cadence='daily' and bin_id='250'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/395686

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/395686/ft1_4FGL_J0422.1-0644_daily_bin250.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/395686/ft2_4FGL_J0422.1-0644_daily_bin250.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/395686/ft1_4FGL_J0422.1-0644_daily_bin250.fits outfile=/scratch/kocevski/395686/ft1_filteredMKT_4FGL_J0422.1-0644_daily_bin250.fits ra=65.5343 dec=-6.741 rad=12.0 tmin=304128001.0 tmax=304387201.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 7.51
user 3.19
sys 4.16

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/395686/ft2_4FGL_J0422.1-0644_daily_bin250.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/395686/ft2_4FGL_J0422.1-0644_daily_bin250.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/395686/ft1_filteredMKT_4FGL_J0422.1-0644_daily_bin250.fits evtable="EVENTS" outfile="/scratch/kocevski/395686/ft1_filtered_4FGL_J0422.1-0644_daily_bin250.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 4.54
user 0.35
sys 4.12

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/395686/ft1_filtered_4FGL_J0422.1-0644_daily_bin250.fits" evtable="EVENTS" scfile=/scratch/kocevski/395686/ft2_4FGL_J0422.1-0644_daily_bin250.fits sctable="SC_DATA" outfile=/scratch/kocevski/395686/ltcube_304128001_304387201_4FGL_J0422.1-0644_daily_bin250.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/395686/ft2_4FGL_J0422.1-0644_daily_bin250.fits
.....................!
real 18.91
user 13.90
sys 4.76

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/395686/ft1_filtered_4FGL_J0422.1-0644_daily_bin250.fits evtable="EVENTS" scfile=/scratch/kocevski/395686/ft2_4FGL_J0422.1-0644_daily_bin250.fits sctable="SC_DATA" expcube=/scratch/kocevski/395686/ltcube_304128001_304387201_4FGL_J0422.1-0644_daily_bin250.fits outfile=/scratch/kocevski/395686/expmap_304128001_304387201_4FGL_J0422.1-0644_daily_bin250.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/395686/ltcube_304128001_304387201_4FGL_J0422.1-0644_daily_bin250.fits
.....................!
real 198.51
user 186.31
sys 10.36

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

Setting source of interest to:
4FGL J0422.1-0644 @ 65.5343 -6.741

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/395686/ft1_filtered_4FGL_J0422.1-0644_daily_bin250.fits scfile=/scratch/kocevski/395686/ft2_4FGL_J0422.1-0644_daily_bin250.fits outfile=/scratch/kocevski/395686/cmap_304128001_304387201_4FGL_J0422.1-0644_daily_bin250.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=65.5343 yref=-6.741 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 4.48
user 0.37
sys 4.01

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/395686/ft1_filtered_4FGL_J0422.1-0644_daily_bin250.fits scfile=/scratch/kocevski/395686/ft2_4FGL_J0422.1-0644_daily_bin250.fits outfile=/scratch/kocevski/395686/cmap_HighResolution_304128001_304387201_4FGL_J0422.1-0644_daily_bin250.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=65.5343 yref=-6.741 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 4.51
user 0.39
sys 4.05

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/395686/ft1_filtered_4FGL_J0422.1-0644_daily_bin250.fits evtable="EVENTS" scfile=/scratch/kocevski/395686/ft2_4FGL_J0422.1-0644_daily_bin250.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/395686/Model_4FGL_J0422.1-0644_daily_bin250.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/395686/ft1_filtered_4FGL_J0422.1-0644_daily_bin250.fits.....................!
real 135.99
user 128.33
sys 6.33

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/395686/ft1_filtered_4FGL_J0422.1-0644_daily_bin250.fits', '/scratch/kocevski/395686/ft2_4FGL_J0422.1-0644_daily_bin250.fits', expMap='/scratch/kocevski/395686/expmap_304128001_304387201_4FGL_J0422.1-0644_daily_bin250.fits', expCube='/scratch/kocevski/395686/ltcube_304128001_304387201_4FGL_J0422.1-0644_daily_bin250.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/395686/Model_4FGL_J0422.1-0644_daily_bin250.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0422.1-0644'

4FGL J0422.1-0644
   Spectrum: LogParabola
227         norm:  8.015e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
228        alpha:  2.445e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
229         beta:  8.202e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
230           Eb:  5.764e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/395686/ft1_filtered_4FGL_J0422.1-0644_daily_bin250.fits
Spacecraft file(s): /scratch/kocevski/395686/ft2_4FGL_J0422.1-0644_daily_bin250.fits
Exposure map: /scratch/kocevski/395686/expmap_304128001_304387201_4FGL_J0422.1-0644_daily_bin250.fits
Exposure cube: /scratch/kocevski/395686/ltcube_304128001_304387201_4FGL_J0422.1-0644_daily_bin250.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/395686/Model_4FGL_J0422.1-0644_daily_bin250.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) = 9634.94685086

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .75334       1.0000         .10000E-03   10000.    
     2 'Prefactor '    10.851       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .81549E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10039E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .68349       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .95155       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    36.226       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10099E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    3.0366       1.0000         .10000E-03   10000.    
    16 'Prefactor '    12.644       1.0000         .10000E-03   10000.    
    17 'norm      '    22.912       1.0000         .10000E-03   10000.    
    18 'Prefactor '    16.027       1.0000         .10000E-03   10000.    
    19 'Normalizat'    .99125       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0285       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4680E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   9634.937     FROM MIGRAD    STATUS=CONVERGED    438 CALLS     2075 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .75290        1.3077       -.16867E-06    .70017E-03
   2  Prefactor     10.842        23.312       -.26999E-05   -.92338E-04
   3  Prefactor     .10002E-03    22.956       -.10976E-04** at limit **
   4  norm          .10000E-03    4.5074       -.10668E-07** at limit **
   5  Prefactor     .10000E-03    13.442       -.47391E-06** at limit **
   6  norm          .10000E-03    .93564       -.30092E-08** at limit **
   7  norm          .10000E-03    6.1707       -.29130E-06** at limit **
   8  norm          .10000E-03    11.555        .55007E-06** at limit **
   9  norm          .68268        .96675        .54382E-06    .41576E-02
  10  Prefactor     .94716        1.2781       -.69513E-06   -.33958E-03
  11  Prefactor     .10000E-03    22.718       -.19309E-06** at limit **
  12  Prefactor     36.299        37.611       -.24376E-06    .21710E-04
  13  Prefactor     .10000E-03    5.2312       -.12313E-06** at limit **
  14  Prefactor     .10000E-03    5.9500       -.25900E-07** at limit **
  15  norm          3.0365        2.0167        .12205E-06    .78406E-03
  16  Prefactor     12.644        6.0157        .64243E-08    .25566E-04
  17  norm          22.912        3.4673        .19450E-07    .81112E-04
  18  Prefactor     16.022        18.486       -.10772E-05   -.10308E-03
  19  Normalizat    .99126        .16631       -.51502E-06    .83086E-04
  20  Prefactor     1.0286        .90307E-01    .55007E-06    .44058E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.752896
  Prefactor  = 10.8417
  Prefactor  = 0.000100018
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.682676
  Prefactor  = 0.947156
  Prefactor  = 0.0001
  Prefactor  = 36.2988
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.03653
  Prefactor  = 12.644
  norm       = 22.9118
  Prefactor  = 16.022
  Normalizat = 0.991257
  Prefactor  = 1.0286
 **********
 **   18 **HESSE 
 **********

 FCN=   9634.937     FROM HESSE     STATUS=OK           297 CALLS     2372 TOTAL
                     EDM=   .70E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .75290        1.2131        .14398E-02   -1.5534    
   2  Prefactor     10.842        23.170        .12163E-03   -1.5049    
   3  Prefactor     .10002E-03    22.866        .37911E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    4.5107        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    13.498        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    .93882        .92685E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    6.3578        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    11.620        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .68268        .96119        .10446E-03   -1.5543    
  10  Prefactor     .94716        1.2293        .12874E-02   -1.5513    
  11  Prefactor     .10000E-03    22.914        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     36.299        37.442        .66585E-04   -1.4502    
  13  Prefactor     .10000E-03    5.3160        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    5.9602        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          3.0365        2.0138        .10775E-03   -1.5359    
  16  Prefactor     12.644        6.0161        .11265E-03   -1.4997    
  17  norm          22.912        3.4651        .67948E-04   -1.4750    
  18  Prefactor     16.022        18.459        .10005E-03   -1.4907    
  19  Normalizat    .99126        .18036        .32645E-03   -.93324    
  20  Prefactor     1.0286        .10083        .18271E-03   -.91782    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.01113e-09
Minuit parameter uncertainties:
  1  1.21313
  2  23.1895
  3  0.00126625
  4  2.97413e-06
  5  2.47174e-05
  6  3.0215e-06
  7  4.26519e-05
  8  7.18575e-05
  9  0.961213
  10  1.22932
  11  1.12078e-07
  12  37.4658
  13  1.81894e-05
  14  1.49911e-05
  15  2.01385
  16  6.01637
  17  3.4651
  18  18.4658
  19  0.180471
  20  0.10085
Done.

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

Extracting fit parameters...

4FGL J0422.1-0644
   Spectrum: LogParabola
227         norm:  1.000e-04  4.265e-05  1.000e-04  1.000e+04 ( 1.000e-12)
228        alpha:  2.445e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
229         beta:  8.202e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
230           Eb:  5.764e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
465    Prefactor:  1.029e+00  1.008e-01  0.000e+00  1.000e+01 ( 1.000e+00)
466        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
467        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
464   Normalization:  9.913e-01  1.805e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 65.534 -6.741
Photon Flux Upper Limit: 6.12e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.81e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/395686/likelihoodResults_304128001_304387201_4FGL_J0422.1-0644_daily_bin250.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) = 9634.93748241
delta logL = -0.000750717568735

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 9634.93673239
delta logL = -6.97209543432e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .11400E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4101       1.0000          .0000       5.0000    
     3 'Normalizat'    .99131       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0286       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4680E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   9634.937     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      207 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    7.7085        .90712E-02** at limit **
   2  alpha         2.3715        3.5554        .41185        .29495E-04
   3  Normalizat    .99126        .15645        .73778E-01   -.98057E-04
   4  Prefactor     1.0286        .89513E-01    .41372E-01   -.22739E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.37146
  Normalizat = 0.991258
  Prefactor  = 1.02859
 **********
 **   18 **HESSE 
 **********

 FCN=   9634.937     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      238 TOTAL
                     EDM=   .91E-02    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    716.14        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.3715        2.7575        .50000       -.51439E-01
   3  Normalizat    .99126        .52531E-01    .32645E-03   -.93324    
   4  Prefactor     1.0286        .30082E-01    .18271E-03   -.91782    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 0.00910143
Minuit parameter uncertainties:
  1  0.000732126
  2  8071.32
  3  0.0525335
  4  0.0300826
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/395686': 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): 102
logL (Free Index) = 9634.93673083
delta logL = 8.62501110532e-07

Extracting fit parameters...

4FGL J0422.1-0644
   Spectrum: LogParabola
227         norm:  1.000e-04  7.321e-04  1.000e-04  1.000e+04 ( 1.000e-12)
228        alpha:  2.371e+00  8.071e+03  0.000e+00  5.000e+00 ( 1.000e+00)
229         beta:  8.202e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
230           Eb:  5.764e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
465    Prefactor:  1.029e+00  3.008e-02  0.000e+00  1.000e+01 ( 1.000e+00)
466        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
467        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
464   Normalization:  9.913e-01  5.253e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 65.534 -6.741

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/395686/cmap_HighResolution_304128001_304387201_4FGL_J0422.1-0644_daily_bin250.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.81e-05', job_status='DONE', photon_flux_upper_limit='6.12e-08', time_completed='2021-08-20 13:01:47.073900', job_id='395686', GAL2='1.03', fit_tolerance='1e-08', EG2='0.99', EG='0.99', time_epoch_completed='1629489707.07', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.03', dlogl='8.63e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.45' WHERE bin_id='250' AND source_name='4FGL J0422.1-0644' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 13:01:47 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0076>
Subject: Job 395686: <4FGL_J0422.1-0644_daily_bin250> in cluster <slac> Done

Job <4FGL_J0422.1-0644_daily_bin250> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Fri Aug 20 12:45:20 2021
Job was executed on host(s) <bullet0076>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 20 12:45:21 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Aug 20 12:45:21 2021
Terminated at Fri Aug 20 13:01:48 2021
Results reported at Fri Aug 20 13:01:48 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0422.1-0644_daily_bin250 65.5343 -6.741 304128001 304387201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0422.1-0644 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   859.09 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             290.22 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   986 sec.
    Turnaround time :                            988 sec.

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

