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


Performing analysis on: 4FGL_J0422.1-0644_daily_bin551
RA = 65.5343, Dec = -6.741
tmin = 382147201, tmax = 382406401
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='397331', job_status='RUN', time_executed='2021-08-20 12:50:57.485559', time_epoch_executed='1629489057.49' WHERE source_name='4FGL J0422.1-0644' and cadence='daily' and bin_id='551'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/397331

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/397331/ft1_4FGL_J0422.1-0644_daily_bin551.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/397331/ft2_4FGL_J0422.1-0644_daily_bin551.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/397331/ft1_4FGL_J0422.1-0644_daily_bin551.fits outfile=/scratch/kocevski/397331/ft1_filteredMKT_4FGL_J0422.1-0644_daily_bin551.fits ra=65.5343 dec=-6.741 rad=12.0 tmin=382147201.0 tmax=382406401.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.77
user 3.20
sys 0.54

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/397331/ft2_4FGL_J0422.1-0644_daily_bin551.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/397331/ft1_filteredMKT_4FGL_J0422.1-0644_daily_bin551.fits evtable="EVENTS" outfile="/scratch/kocevski/397331/ft1_filtered_4FGL_J0422.1-0644_daily_bin551.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.87
user 0.35
sys 0.51

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/397331/ft1_filtered_4FGL_J0422.1-0644_daily_bin551.fits" evtable="EVENTS" scfile=/scratch/kocevski/397331/ft2_4FGL_J0422.1-0644_daily_bin551.fits sctable="SC_DATA" outfile=/scratch/kocevski/397331/ltcube_382147201_382406401_4FGL_J0422.1-0644_daily_bin551.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/397331/ft2_4FGL_J0422.1-0644_daily_bin551.fits
.....................!
real 12.21
user 11.44
sys 0.74

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/397331/ft1_filtered_4FGL_J0422.1-0644_daily_bin551.fits evtable="EVENTS" scfile=/scratch/kocevski/397331/ft2_4FGL_J0422.1-0644_daily_bin551.fits sctable="SC_DATA" expcube=/scratch/kocevski/397331/ltcube_382147201_382406401_4FGL_J0422.1-0644_daily_bin551.fits outfile=/scratch/kocevski/397331/expmap_382147201_382406401_4FGL_J0422.1-0644_daily_bin551.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/397331/ltcube_382147201_382406401_4FGL_J0422.1-0644_daily_bin551.fits
.....................!
real 192.55
user 186.49
sys 5.72

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/397331/ft1_filtered_4FGL_J0422.1-0644_daily_bin551.fits scfile=/scratch/kocevski/397331/ft2_4FGL_J0422.1-0644_daily_bin551.fits outfile=/scratch/kocevski/397331/cmap_382147201_382406401_4FGL_J0422.1-0644_daily_bin551.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.88
user 0.36
sys 0.51

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/397331/ft1_filtered_4FGL_J0422.1-0644_daily_bin551.fits scfile=/scratch/kocevski/397331/ft2_4FGL_J0422.1-0644_daily_bin551.fits outfile=/scratch/kocevski/397331/cmap_HighResolution_382147201_382406401_4FGL_J0422.1-0644_daily_bin551.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.91
user 0.37
sys 0.51

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/397331/ft1_filtered_4FGL_J0422.1-0644_daily_bin551.fits evtable="EVENTS" scfile=/scratch/kocevski/397331/ft2_4FGL_J0422.1-0644_daily_bin551.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/397331/Model_4FGL_J0422.1-0644_daily_bin551.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/397331/ft1_filtered_4FGL_J0422.1-0644_daily_bin551.fits.....................!
real 123.67
user 121.71
sys 1.73

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.8562       1.0000         .10000E-03   10000.    
     2 'Prefactor '    7.9272       1.0000         .10000E-03   10000.    
     3 'Prefactor '    5.6357       1.0000         .10000E-03   10000.    
     4 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    3.0805       1.0000         .10000E-03   10000.    
     7 'norm      '    10.371       1.0000         .10000E-03   10000.    
     8 'norm      '    .69755       1.0000         .10000E-03   10000.    
     9 'norm      '    .63651       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .51406E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10352E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    64.667       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .79747       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    4.0377       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    2.2940       1.0000         .10000E-03   10000.    
    18 'Prefactor '    40.237       1.0000         .10000E-03   10000.    
    19 'Normalizat'    .86203       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0164       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=   8906.263     FROM MIGRAD    STATUS=CONVERGED    735 CALLS     2404 TOTAL
                     EDM=   .49E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.8561        1.4443        .96325E-04   -.25257E-04
   2  Prefactor     7.9213        16.720        .14241E-03   -.11176E-04
   3  Prefactor     5.6363        4.9283        .16922E-03    .55226E-04
   4  norm          .10000E-03    6.4021        .18142E-02** at limit **
   5  Prefactor     .10000E-03    5.5152        .18142E-02** at limit **
   6  norm          3.0816        3.0268        .15537E-03   -.11386E-03
   7  norm          10.371        8.3221        .12442E-03    .26498E-04
   8  norm          .68833        191.70        .73527E-02    .77808E-04
   9  norm          .63591        .86136        .10222E-02    .58160E-02
  10  Prefactor     .10000E-03    11.069        .13504E-02** at limit **
  11  Prefactor     .10000E-03    28.206        .18142E-02** at limit **
  12  Prefactor     64.706        42.110        .49905E-04   -.21414E-04
  13  Prefactor     .79035        11.769        .31556E-02   -.17408E-03
  14  Prefactor     .10000E-03    5.2894        .18142E-02** at limit **
  15  norm          4.0379        1.9330        .86763E-04   -.26206E-05
  16  Prefactor     .10000E-03    1.7416        .12142E-02** at limit **
  17  norm          2.2939        1.8707        .10939E-03    .10018E-03
  18  Prefactor     40.239        27.347        .63191E-04    .27706E-04
  19  Normalizat    .86196        .18736        .32567E-03    .24366E-04
  20  Prefactor     1.0165        .10487        .17298E-03    .20022E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.85615
  Prefactor  = 7.92135
  Prefactor  = 5.6363
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 3.08157
  norm       = 10.371
  norm       = 0.688329
  norm       = 0.635906
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 64.7062
  Prefactor  = 0.790347
  Prefactor  = 0.0001
  norm       = 4.03785
  Prefactor  = 0.0001
  norm       = 2.29388
  Prefactor  = 40.2387
  Normalizat = 0.861964
  Prefactor  = 1.01646
 **********
 **   18 **HESSE 
 **********

 FCN=   8906.263     FROM HESSE     STATUS=OK           277 CALLS     2681 TOTAL
                     EDM=   .74E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.8561        1.4441        .38530E-05   -1.5435    
   2  Prefactor     7.9213        16.718        .56965E-05   -1.5145    
   3  Prefactor     5.6363        4.9277        .67686E-05   -1.5233    
   4  norm          .10000E-03    6.4029        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    5.5152        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          3.0816        3.0250        .62146E-05   -1.5357    
   7  norm          10.371        8.3153        .49768E-05   -1.5064    
   8  norm          .68833        189.36        .29411E-03   -1.5542    
   9  norm          .63591        .85847        .20443E-03   -1.5548    
  10  Prefactor     .10000E-03    11.267        .54017E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    28.213        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     64.706        41.530        .19962E-05   -1.4097    
  13  Prefactor     .79035        11.678        .12622E-03   -1.5530    
  14  Prefactor     .10000E-03    5.2898        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          4.0379        1.9328        .34705E-05   -1.5306    
  16  Prefactor     .10000E-03    1.7417        .24283E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          2.2939        1.8705        .43757E-05   -1.5405    
  18  Prefactor     40.239        27.336        .25277E-05   -1.4438    
  19  Normalizat    .86196        .18693        .13027E-04   -.97810    
  20  Prefactor     1.0165        .10386        .34596E-04   -.92183    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.37618e-10
Minuit parameter uncertainties:
  1  1.44415
  2  16.7283
  3  4.92809
  4  1.81924e-05
  5  8.62391e-06
  6  3.02516
  7  8.31624
  8  22.9052
  9  0.85849
  10  0.000360222
  11  4.37393e-05
  12  41.5486
  13  6.07699
  14  3.15891e-05
  15  1.93279
  16  6.91758e-06
  17  1.87052
  18  27.3448
  19  0.187074
  20  0.103884
Done.

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

Extracting fit parameters...

4FGL J0422.1-0644
   Spectrum: LogParabola
227         norm:  1.037e+01  8.316e+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.016e+00  1.039e-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.620e-01  1.871e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.21
Ra Dec: 65.534 -6.741
Photon Index (Fixed Index): 2.45 +/- 0.00
Photon Flux (Fixed Index): 4.58e-08 +/- 3.67e-08
Energy Flux (Fixed Index): 1.36e-05 +/- 1.09e-05

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

Saving results to:
/scratch/kocevski/397331/likelihoodResults_382147201_382406401_4FGL_J0422.1-0644_daily_bin551.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) = 8905.46584216
delta logL = 0.79703355629

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8905.46373742
delta logL = 0.799138303326

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.5073       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.4696       1.0000          .0000       5.0000    
     3 'Normalizat'    .81341       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0333       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   8905.464     FROM MIGRAD    STATUS=FAILED        94 CALLS      306 TOTAL
                     EDM=   .30E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.5076        10.209        .12346E-03   -.19522E-03
   2  alpha         3.4697        1.3160        .15719E-01    .27182E-03
   3  Normalizat    .81339        .18203        .33416E-03    .31504E-04
   4  Prefactor     1.0333        .10249        .17171E-03    .95578E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   8905.464     FROM SIMPLEX   STATUS=UNCHANGED     69 CALLS      375 TOTAL
                     EDM=   .15E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.5076        10.209        .14397E-03   -1.5239    
   2  alpha         3.4697        1.3160        .23512E-02    .39831    
   3  Normalizat    .81339        .18203        .28546E-03   -.99574    
   4  Prefactor     1.0333        .10249        .16306E-03   -.91629    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8905.464     FROM MIGRAD    STATUS=CONVERGED     36 CALLS      411 TOTAL
                     EDM=   .42E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.5076        7.4336        .49384E-05   -.92083E-06
   2  alpha         3.4697        .98609        .31438E-02    .13959E-05
   3  Normalizat    .81339        .18177        .13366E-04   -.23815E-05
   4  Prefactor     1.0333        .10216        .34342E-04   -.63560E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 5.50764
  alpha      = 3.46966
  Normalizat = 0.813389
  Prefactor  = 1.03327
 **********
 **   18 **HESSE 
 **********

 FCN=   8905.464     FROM HESSE     STATUS=OK            23 CALLS      434 TOTAL
                     EDM=   .20E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.5076        7.0813        .98769E-06   -1.5239    
   2  alpha         3.4697        .94234        .12575E-03    .39831    
   3  Normalizat    .81339        .18175        .26732E-05   -.99574    
   4  Prefactor     1.0333        .10213        .68685E-05   -.91629    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.98348e-13
Minuit parameter uncertainties:
  1  7.08239
  2  0.970802
  3  0.181883
  4  0.102145
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/397331': 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) = 8905.46373734
delta logL = 0.799138385761

Extracting fit parameters...

4FGL J0422.1-0644
   Spectrum: LogParabola
227         norm:  5.508e+00  7.082e+00  1.000e-04  1.000e+04 ( 1.000e-12)
228        alpha:  3.470e+00  9.708e-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.033e+00  1.021e-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.134e-01  1.819e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.97
Ra Dec: 65.534 -6.741
Photon Index (Free Index): 3.47 +/- 0.97
Photon Flux (Free Index): 8.30e-08 +/- 5.09e-08
Energy Flux (Free Index): 1.44e-05 +/- 8.79e-06

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/397331/cmap_HighResolution_382147201_382406401_4FGL_J0422.1-0644_daily_bin551.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.55e-05', comment='SUCCESS', photon_flux='4.58e-08', energy_flux2='1.44e-05', photon_flux_error='3.67e-08', dlogl='7.99e-01', energy_flux='1.36e-05', photon_flux2='8.30e-08', job_status='DONE', time_completed='2021-08-20 13:03:23.651863', photon_index_error2='0.97', photon_index2='3.47', ts='2.21', fit_tolerance='1e-08', GAL='1.02', photon_index_error='0.00', photon_flux_upper_limit='1.20e-07', energy_flux_error2='8.79e-06', EG='0.86', time_epoch_completed='1629489803.65', return_code='0', job_id='397331', GAL2='1.03', EG2='0.81', return_code2='0', energy_flux_error='1.09e-05', photon_flux_error2='5.09e-08', ts2='3.97', photon_index='2.45' WHERE bin_id='551' AND source_name='4FGL J0422.1-0644' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 13:03:23 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0214>
Subject: Job 397331: <4FGL_J0422.1-0644_daily_bin551> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0422.1-0644_daily_bin551 65.5343 -6.741 382147201 382406401 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 :                                   750.60 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             326.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   765 sec.
    Turnaround time :                            768 sec.

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

