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


Performing analysis on: 4FGL_J0422.1-0644_daily_bin991
RA = 65.5343, Dec = -6.741
tmin = 496195201, tmax = 496454401
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='399339', job_status='RUN', time_executed='2021-08-20 12:59:12.588628', time_epoch_executed='1629489552.59' WHERE source_name='4FGL J0422.1-0644' and cadence='daily' and bin_id='991'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/399339

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/399339/ft1_4FGL_J0422.1-0644_daily_bin991.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/399339/ft2_4FGL_J0422.1-0644_daily_bin991.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/399339/ft1_4FGL_J0422.1-0644_daily_bin991.fits outfile=/scratch/kocevski/399339/ft1_filteredMKT_4FGL_J0422.1-0644_daily_bin991.fits ra=65.5343 dec=-6.741 rad=12.0 tmin=496195201.0 tmax=496454401.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.24
user 3.19
sys 3.01

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/399339/ft1_filtered_4FGL_J0422.1-0644_daily_bin991.fits" evtable="EVENTS" scfile=/scratch/kocevski/399339/ft2_4FGL_J0422.1-0644_daily_bin991.fits sctable="SC_DATA" outfile=/scratch/kocevski/399339/ltcube_496195201_496454401_4FGL_J0422.1-0644_daily_bin991.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/399339/ft2_4FGL_J0422.1-0644_daily_bin991.fits
.....................!
real 14.33
user 11.14
sys 3.16

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/399339/ft1_filtered_4FGL_J0422.1-0644_daily_bin991.fits evtable="EVENTS" scfile=/scratch/kocevski/399339/ft2_4FGL_J0422.1-0644_daily_bin991.fits sctable="SC_DATA" expcube=/scratch/kocevski/399339/ltcube_496195201_496454401_4FGL_J0422.1-0644_daily_bin991.fits outfile=/scratch/kocevski/399339/expmap_496195201_496454401_4FGL_J0422.1-0644_daily_bin991.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/399339/ltcube_496195201_496454401_4FGL_J0422.1-0644_daily_bin991.fits
.....................!
real 195.31
user 186.73
sys 8.25

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/399339/ft1_filtered_4FGL_J0422.1-0644_daily_bin991.fits scfile=/scratch/kocevski/399339/ft2_4FGL_J0422.1-0644_daily_bin991.fits outfile=/scratch/kocevski/399339/cmap_496195201_496454401_4FGL_J0422.1-0644_daily_bin991.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 3.32
user 0.36
sys 2.90

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/399339/ft1_filtered_4FGL_J0422.1-0644_daily_bin991.fits scfile=/scratch/kocevski/399339/ft2_4FGL_J0422.1-0644_daily_bin991.fits outfile=/scratch/kocevski/399339/cmap_HighResolution_496195201_496454401_4FGL_J0422.1-0644_daily_bin991.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 3.29
user 0.37
sys 2.91

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/399339/ft1_filtered_4FGL_J0422.1-0644_daily_bin991.fits evtable="EVENTS" scfile=/scratch/kocevski/399339/ft2_4FGL_J0422.1-0644_daily_bin991.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/399339/Model_4FGL_J0422.1-0644_daily_bin991.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/399339/ft1_filtered_4FGL_J0422.1-0644_daily_bin991.fits.....................!
real 122.65
user 117.57
sys 4.87

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10070E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10248E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10101E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    1.3361       1.0000         .10000E-03   10000.    
     7 'norm      '    7.0900       1.0000         .10000E-03   10000.    
     8 'norm      '    8.3161       1.0000         .10000E-03   10000.    
     9 'norm      '    .17580       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    22.001       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    6.0048       1.0000         .10000E-03   10000.    
    14 'Prefactor '    17.308       1.0000         .10000E-03   10000.    
    15 'norm      '    .17170E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    3.7341       1.0000         .10000E-03   10000.    
    18 'Prefactor '    15.695       1.0000         .10000E-03   10000.    
    19 'Normalizat'    .83519       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0389       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=   8776.522     FROM MIGRAD    STATUS=CONVERGED    419 CALLS     2076 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    .77595       -.64534E-07** at limit **
   2  Prefactor     .10000E-03    4.8543        .15299E-05** at limit **
   3  Prefactor     .10000E-03    6.8366        .11829E-05** at limit **
   4  norm          .10000E-03    4.7974       -.14618E-05** at limit **
   5  Prefactor     .10000E-03    11.426       -.52772E-05** at limit **
   6  norm          1.3356        3.3658       -.16680E-05   -.13134E-02
   7  norm          7.0889        7.2333       -.22498E-06   -.14023E-03
   8  norm          8.2962        17.604       -.29878E-04   -.64056E-04
   9  norm          .17613        .47917       -.61323E-07   -.15175E-02
  10  Prefactor     .10000E-03    .37268        .13517E-06** at limit **
  11  Prefactor     22.012        27.458        .19574E-04    .52148E-04
  12  Prefactor     .10000E-03    11.937       -.12568E-05** at limit **
  13  Prefactor     6.0044        5.5278       -.36075E-08   -.88518E-04
  14  Prefactor     17.302        17.968       -.71696E-05   -.10846E-04
  15  norm          .10019E-03    .69914        .26871E-06** at limit **
  16  Prefactor     .10000E-03    3.3634        .67206E-07** at limit **
  17  norm          3.7343        1.9338        .21440E-06   -.39213E-03
  18  Prefactor     15.690        22.445       -.92433E-05   -.23016E-04
  19  Normalizat    .83541        .16258        .12775E-05   -.43148E-04
  20  Prefactor     1.0388        .89431E-01    .59389E-06   -.97956E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.33564
  norm       = 7.08889
  norm       = 8.29621
  norm       = 0.176128
  Prefactor  = 0.0001
  Prefactor  = 22.0119
  Prefactor  = 0.0001
  Prefactor  = 6.00439
  Prefactor  = 17.3022
  norm       = 0.000100194
  Prefactor  = 0.0001
  norm       = 3.73429
  Prefactor  = 15.6895
  Normalizat = 0.835406
  Prefactor  = 1.03885
 **********
 **   18 **HESSE 
 **********

 FCN=   8776.522     FROM HESSE     STATUS=OK           297 CALLS     2373 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.5388        .15989E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    4.8558        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    7.0912        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    4.7985        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    11.424        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          1.3356        3.2995        .25716E-03   -1.5477    
   7  norm          7.0889        7.2294        .15065E-03   -1.5175    
   8  norm          8.2962        17.554        .13902E-03   -1.5132    
   9  norm          .17613        .43611        .99319E-03   -1.5624    
  10  Prefactor     .10000E-03    .37937        .55779E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     22.012        27.428        .85395E-04   -1.4769    
  12  Prefactor     .10000E-03    11.951        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     6.0044        5.4953        .16386E-03   -1.5218    
  14  Prefactor     17.302        17.976        .96272E-04   -1.4876    
  15  norm          .10019E-03    13.670        .14834E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    3.4410        .16776E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          3.7343        1.9243        .87449E-04   -1.5321    
  18  Prefactor     15.690        22.415        .10110E-03   -1.4916    
  19  Normalizat    .83541        .17972        .32644E-03   -.98769    
  20  Prefactor     1.0388        .10046        .16720E-03   -.91446    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.53715e-08
Minuit parameter uncertainties:
  1  2.01817e-05
  2  1.82914e-06
  3  3.5968e-05
  4  1.53816e-06
  5  0.000116038
  6  3.29994
  7  7.23027
  8  17.5648
  9  0.436122
  10  8.81255e-06
  11  27.4438
  12  2.17402e-05
  13  5.49576
  14  17.9817
  15  0.00325739
  16  3.56343e-06
  17  1.92434
  18  22.4265
  19  0.17985
  20  0.100478
Done.

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

Extracting fit parameters...

4FGL J0422.1-0644
   Spectrum: LogParabola
227         norm:  7.089e+00  7.230e+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

GAL_V02
   Spectrum: PowerLaw
465    Prefactor:  1.039e+00  1.005e-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:  8.354e-01  1.799e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.26
Ra Dec: 65.534 -6.741
Photon Index (Fixed Index): 2.45 +/- 0.00
Photon Flux (Fixed Index): 3.13e-08 +/- 3.19e-08
Energy Flux (Fixed Index): 9.27e-06 +/- 9.45e-06

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

Saving results to:
/scratch/kocevski/399339/likelihoodResults_496195201_496454401_4FGL_J0422.1-0644_daily_bin991.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) = 8775.93858194
delta logL = 0.583798377056

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8775.8931103
delta logL = 0.629270022115

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.2959       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.2915       1.0000          .0000       5.0000    
     3 'Normalizat'    .86032       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0320       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=   8775.893     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      225 TOTAL
                     EDM=   .90E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.2871        4.3768        .48593E-02    .13869E-02
   2  alpha         1.2910        .39667        .44885       -.63859E-04
   3  Normalizat    .86021        .15481        .72784E-01    .39236E-04
   4  Prefactor     1.0320        .87966E-01    .41104E-01    .11494E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 4.28712
  alpha      = 1.29104
  Normalizat = 0.860211
  Prefactor  = 1.03201
 **********
 **   18 **HESSE 
 **********

 FCN=   8775.893     FROM HESSE     STATUS=OK            33 CALLS      258 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.2871        7.7406        .95438E-03   -1.5294    
   2  alpha         1.2910        .82983        .16485E-01   -.50474    
   3  Normalizat    .86021        .17380        .32209E-03   -.97873    
   4  Prefactor     1.0320        .98839E-01    .16767E-03   -.91670    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.03668e-08
Minuit parameter uncertainties:
  1  7.74243
  2  0.851134
  3  0.173911
  4  0.0988567
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/399339': 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) = 8775.89310896
delta logL = 0.629271355827

Extracting fit parameters...

4FGL J0422.1-0644
   Spectrum: LogParabola
227         norm:  4.287e+00  7.742e+00  1.000e-04  1.000e+04 ( 1.000e-12)
228        alpha:  1.291e+00  8.511e-01  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.032e+00  9.886e-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:  8.602e-01  1.739e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.50
Ra Dec: 65.534 -6.741
Photon Index (Free Index): 1.29 +/- 0.85
Photon Flux (Free Index): 9.78e-09 +/- 1.64e-08
Energy Flux (Free Index): 2.55e-05 +/- 3.59e-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/399339/cmap_HighResolution_496195201_496454401_4FGL_J0422.1-0644_daily_bin991.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.97e-05', comment='SUCCESS', photon_flux='3.13e-08', energy_flux2='2.55e-05', photon_flux_error='3.19e-08', dlogl='6.29e-01', energy_flux='9.27e-06', photon_flux2='9.78e-09', job_status='DONE', time_completed='2021-08-20 13:11:16.159664', photon_index_error2='0.85', photon_index2='1.29', ts='1.26', fit_tolerance='1e-08', GAL='1.04', photon_index_error='0.00', photon_flux_upper_limit='1.00e-07', energy_flux_error2='3.59e-05', EG='0.84', time_epoch_completed='1629490276.16', return_code='0', job_id='399339', GAL2='1.03', EG2='0.86', return_code2='0', energy_flux_error='9.45e-06', photon_flux_error2='1.64e-08', ts2='2.50', photon_index='2.45' WHERE bin_id='991' AND source_name='4FGL J0422.1-0644' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 13:11:16 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0297>
Subject: Job 399339: <4FGL_J0422.1-0644_daily_bin991> in cluster <slac> Done

Job <4FGL_J0422.1-0644_daily_bin991> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Fri Aug 20 12:55:59 2021
Job was executed on host(s) <bullet0297>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 20 12:56:01 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:56:01 2021
Terminated at Fri Aug 20 13:11:17 2021
Results reported at Fri Aug 20 13:11:17 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0422.1-0644_daily_bin991 65.5343 -6.741 496195201 496454401 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 :                                   765.25 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             299.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   915 sec.
    Turnaround time :                            918 sec.

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

