/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 196 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 = 6613
number of fields = 29
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0422.1-0644_daily_bin609
RA = 65.5343, Dec = -6.741
tmin = 397180801, tmax = 397440001
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='397427', job_status='RUN', time_executed='2021-08-20 12:54:09.397395', time_epoch_executed='1629489249.4' WHERE source_name='4FGL J0422.1-0644' and cadence='daily' and bin_id='609'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/397427

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

Retrieving the FT1 file...

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

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

Retrieving 41 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/397427/ft1_4FGL_J0422.1-0644_daily_bin609.fits


Retrieving the FT1 file...

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

Retrieving 41 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/397427/ft2_4FGL_J0422.1-0644_daily_bin609.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/397427/ft1_4FGL_J0422.1-0644_daily_bin609.fits outfile=/scratch/kocevski/397427/ft1_filteredMKT_4FGL_J0422.1-0644_daily_bin609.fits ra=65.5343 dec=-6.741 rad=12.0 tmin=397180801.0 tmax=397440001.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 3.96
user 3.73
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/397427/ft2_4FGL_J0422.1-0644_daily_bin609.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/397427/ft1_filteredMKT_4FGL_J0422.1-0644_daily_bin609.fits evtable="EVENTS" outfile="/scratch/kocevski/397427/ft1_filtered_4FGL_J0422.1-0644_daily_bin609.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.48
user 0.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/397427/ft1_filtered_4FGL_J0422.1-0644_daily_bin609.fits" evtable="EVENTS" scfile=/scratch/kocevski/397427/ft2_4FGL_J0422.1-0644_daily_bin609.fits sctable="SC_DATA" outfile=/scratch/kocevski/397427/ltcube_397180801_397440001_4FGL_J0422.1-0644_daily_bin609.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/397427/ft2_4FGL_J0422.1-0644_daily_bin609.fits
.....................!
real 10.42
user 10.05
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/397427/ft1_filtered_4FGL_J0422.1-0644_daily_bin609.fits evtable="EVENTS" scfile=/scratch/kocevski/397427/ft2_4FGL_J0422.1-0644_daily_bin609.fits sctable="SC_DATA" expcube=/scratch/kocevski/397427/ltcube_397180801_397440001_4FGL_J0422.1-0644_daily_bin609.fits outfile=/scratch/kocevski/397427/expmap_397180801_397440001_4FGL_J0422.1-0644_daily_bin609.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/397427/ltcube_397180801_397440001_4FGL_J0422.1-0644_daily_bin609.fits
.....................!
real 190.59
user 185.29
sys 4.99

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/397427/ft1_filtered_4FGL_J0422.1-0644_daily_bin609.fits scfile=/scratch/kocevski/397427/ft2_4FGL_J0422.1-0644_daily_bin609.fits outfile=/scratch/kocevski/397427/cmap_397180801_397440001_4FGL_J0422.1-0644_daily_bin609.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 0.58
user 0.35
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/397427/ft1_filtered_4FGL_J0422.1-0644_daily_bin609.fits scfile=/scratch/kocevski/397427/ft2_4FGL_J0422.1-0644_daily_bin609.fits outfile=/scratch/kocevski/397427/cmap_HighResolution_397180801_397440001_4FGL_J0422.1-0644_daily_bin609.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 0.54
user 0.36
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/397427/ft1_filtered_4FGL_J0422.1-0644_daily_bin609.fits evtable="EVENTS" scfile=/scratch/kocevski/397427/ft2_4FGL_J0422.1-0644_daily_bin609.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/397427/Model_4FGL_J0422.1-0644_daily_bin609.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/397427/ft1_filtered_4FGL_J0422.1-0644_daily_bin609.fits.....................!
real 110.96
user 109.56
sys 1.19

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/397427/ft1_filtered_4FGL_J0422.1-0644_daily_bin609.fits', '/scratch/kocevski/397427/ft2_4FGL_J0422.1-0644_daily_bin609.fits', expMap='/scratch/kocevski/397427/expmap_397180801_397440001_4FGL_J0422.1-0644_daily_bin609.fits', expCube='/scratch/kocevski/397427/ltcube_397180801_397440001_4FGL_J0422.1-0644_daily_bin609.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/397427/Model_4FGL_J0422.1-0644_daily_bin609.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/397427/ft1_filtered_4FGL_J0422.1-0644_daily_bin609.fits
Spacecraft file(s): /scratch/kocevski/397427/ft2_4FGL_J0422.1-0644_daily_bin609.fits
Exposure map: /scratch/kocevski/397427/expmap_397180801_397440001_4FGL_J0422.1-0644_daily_bin609.fits
Exposure cube: /scratch/kocevski/397427/ltcube_397180801_397440001_4FGL_J0422.1-0644_daily_bin609.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/397427/Model_4FGL_J0422.1-0644_daily_bin609.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) = 7830.73623683

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.2475       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10056E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.4988       1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10544E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    13.263       1.0000         .10000E-03   10000.    
     8 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    1.8312       1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.6551       1.0000         .10000E-03   10000.    
    11 'Prefactor '    6.0208       1.0000         .10000E-03   10000.    
    12 'Prefactor '    14.602       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    8.7106       1.0000         .10000E-03   10000.    
    15 'norm      '    20.076       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    2.1753       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10825       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.2281       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0391       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=   7830.688     FROM MIGRAD    STATUS=CONVERGED    460 CALLS     2115 TOTAL
                     EDM=   .66E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.2473        2.0154        .57652E-07    .78662E-04
   2  Prefactor     .10000E-03    19.324       -.60952E-07** at limit **
   3  Prefactor     2.4984        7.8790        .95622E-06    .79500E-04
   4  norm          .10000E-03    5.0764        .18915E-07** at limit **
   5  Prefactor     .10000E-03    7.9816       -.27911E-07** at limit **
   6  norm          .10000E-03    2.7091        .42676E-07** at limit **
   7  norm          13.263        11.312        .41211E-07    .59476E-04
   8  norm          .10000E-03    21.677        .25799E-06** at limit **
   9  norm          1.8313        1.1781       -.83299E-07   -.60399E-04
  10  Prefactor     1.6542        2.0123       -.98347E-06   -.71952E-03
  11  Prefactor     6.0163        30.090        .89963E-06    .20104E-04
  12  Prefactor     14.662        64.849        .93235E-05    .43387E-04
  13  Prefactor     .10000E-03    14.085       -.54575E-06** at limit **
  14  Prefactor     8.6895        24.385        .11592E-06    .42617E-05
  15  norm          20.076        4.1052       -.40919E-07    .33469E-03
  16  Prefactor     .10000E-03    6.1789        .21459E-07** at limit **
  17  norm          2.1756        1.9891        .58568E-07    .50572E-03
  18  Prefactor     .12480E-02    29.289       -.36985E-05** at limit **
  19  Normalizat    1.2280        .21961        .84576E-06    .14848E-03
  20  Prefactor     1.0392        .11237       -.60345E-06    .23027E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 3.24729
  Prefactor  = 0.0001
  Prefactor  = 2.49839
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 13.2628
  norm       = 0.0001
  norm       = 1.83127
  Prefactor  = 1.65418
  Prefactor  = 6.01632
  Prefactor  = 14.6624
  Prefactor  = 0.0001
  Prefactor  = 8.68952
  norm       = 20.0759
  Prefactor  = 0.0001
  norm       = 2.17561
  Prefactor  = 0.00124796
  Normalizat = 1.228
  Prefactor  = 1.0392
 **********
 **   18 **HESSE 
 **********

 FCN=   7830.688     FROM HESSE     STATUS=OK           305 CALLS     2420 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.2473        2.0113        .95232E-04   -1.5348    
   2  Prefactor     .10000E-03    19.385        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     2.4984        7.9229        .25854E-03   -1.5392    
   4  norm          .10000E-03    5.0769        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    7.9830        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    5.8984        .28037E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          13.263        11.312        .10999E-03   -1.4979    
   8  norm          .10000E-03    21.840        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          1.8313        1.1592        .69481E-04   -1.5437    
  10  Prefactor     1.6542        2.0191        .11554E-03   -1.5451    
  11  Prefactor     6.0163        30.003        .16364E-03   -1.5217    
  12  Prefactor     14.662        65.151        .10482E-03   -1.4942    
  13  Prefactor     .10000E-03    14.407        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     8.6895        24.399        .13581E-03   -1.5118    
  15  norm          20.076        4.1018        .75314E-04   -1.4812    
  16  Prefactor     .10000E-03    6.3479        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          2.1756        1.9830        .11345E-03   -1.5413    
  18  Prefactor     .12480E-02    25.895        .11970       -1.5701    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.2280        .24464        .34166E-03   -.85742    
  20  Prefactor     1.0392        .12501        .19764E-03   -.91434    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.43615e-09
Minuit parameter uncertainties:
  1  2.01139
  2  1.56763e-05
  3  7.92624
  4  1.00764e-06
  5  9.82437e-07
  6  3.5052e-06
  7  11.3142
  8  6.11993e-05
  9  1.15917
  10  2.01919
  11  26.8919
  12  61.9275
  13  5.03388e-05
  14  24.4272
  15  4.10188
  16  1.52688e-06
  17  1.98308
  18  0.344979
  19  0.244866
  20  0.125046
Done.

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

Extracting fit parameters...

4FGL J0422.1-0644
   Spectrum: LogParabola
227         norm:  1.326e+01  1.131e+01  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.039e+00  1.250e-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:  1.228e+00  2.449e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.87
Ra Dec: 65.534 -6.741
Photon Index (Fixed Index): 2.45 +/- 0.00
Photon Flux (Fixed Index): 5.86e-08 +/- 4.99e-08
Energy Flux (Fixed Index): 1.73e-05 +/- 1.48e-05

TS (Fixed Index): 1.87
Ra Dec: 65.534 -6.741
Photon Flux Upper Limit: 1.61e-07 ph cm-2 s-1
Energy Flux Upper Limit: 4.78e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/397427/likelihoodResults_397180801_397440001_4FGL_J0422.1-0644_daily_bin609.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) = 7830.67227175
delta logL = 0.0154177125587

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7830.66493584
delta logL = 0.022753627939

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    11.750       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.6730       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2170       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0435       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7830.665     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      240 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          11.747        14.765        .11687E-03    .52900E-03
   2  alpha         2.6731        1.2058        .21324E-01    .50661E-04
   3  Normalizat    1.2170        .23533        .34299E-03   -.55453E-03
   4  Prefactor     1.0435        .12413        .19730E-03   -.12827E-02
                               ERR DEF=  .500    
Final values: 
  norm       = 11.7468
  alpha      = 2.67314
  Normalizat = 1.21695
  Prefactor  = 1.04348
 **********
 **   18 **HESSE 
 **********

 FCN=   7830.665     FROM HESSE     STATUS=OK            25 CALLS      265 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          11.747        13.317        .46747E-05   -1.5022    
   2  alpha         2.6731        1.0942        .85297E-03    .69310E-01
   3  Normalizat    1.2170        .23460        .68598E-04   -.86080    
   4  Prefactor     1.0435        .12374        .39460E-04   -.91294    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.30409e-09
Minuit parameter uncertainties:
  1  13.3202
  2  1.13272
  3  0.234807
  4  0.123773
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/397427': 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) = 7830.66493578
delta logL = 0.0227536839029

Extracting fit parameters...

4FGL J0422.1-0644
   Spectrum: LogParabola
227         norm:  1.175e+01  1.332e+01  1.000e-04  1.000e+04 ( 1.000e-12)
228        alpha:  2.673e+00  1.133e+00  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.043e+00  1.238e-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:  1.217e+00  2.348e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.92
Ra Dec: 65.534 -6.741
Photon Index (Free Index): 2.67 +/- 1.13
Photon Flux (Free Index): 6.63e-08 +/- 6.43e-08
Energy Flux (Free Index): 1.64e-05 +/- 1.44e-05

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/397427/cmap_HighResolution_397180801_397440001_4FGL_J0422.1-0644_daily_bin609.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.78e-05', comment='SUCCESS', photon_flux='5.86e-08', energy_flux2='1.64e-05', photon_flux_error='4.99e-08', dlogl='2.28e-02', energy_flux='1.73e-05', photon_flux2='6.63e-08', job_status='DONE', time_completed='2021-08-20 13:05:03.991686', photon_index_error2='1.13', photon_index2='2.67', ts='1.87', fit_tolerance='1e-08', GAL='1.04', photon_index_error='0.00', photon_flux_upper_limit='1.61e-07', energy_flux_error2='1.44e-05', EG='1.23', time_epoch_completed='1629489903.99', return_code='0', job_id='397427', GAL2='1.04', EG2='1.22', return_code2='0', energy_flux_error='1.48e-05', photon_flux_error2='6.43e-08', ts2='1.92', photon_index='2.45' WHERE bin_id='609' AND source_name='4FGL J0422.1-0644' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 13:05:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0084>
Subject: Job 397427: <4FGL_J0422.1-0644_daily_bin609> in cluster <slac> Done

Job <4FGL_J0422.1-0644_daily_bin609> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Fri Aug 20 12:50:43 2021
Job was executed on host(s) <bullet0084>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 20 12:50:44 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:50:44 2021
Terminated at Fri Aug 20 13:05:04 2021
Results reported at Fri Aug 20 13:05:04 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0422.1-0644_daily_bin609 65.5343 -6.741 397180801 397440001 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 :                                   655.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             259.41 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   860 sec.
    Turnaround time :                            861 sec.

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

