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


Performing analysis on: 4FGL_J0422.1-0644_daily_bin740
RA = 65.5343, Dec = -6.741
tmin = 431136001, tmax = 431395201
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='397625', job_status='RUN', time_executed='2021-08-20 12:54:49.226723', time_epoch_executed='1629489289.23' WHERE source_name='4FGL J0422.1-0644' and cadence='daily' and bin_id='740'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/397625

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/397625/ft1_4FGL_J0422.1-0644_daily_bin740.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/397625/ft2_4FGL_J0422.1-0644_daily_bin740.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/397625/ft1_4FGL_J0422.1-0644_daily_bin740.fits outfile=/scratch/kocevski/397625/ft1_filteredMKT_4FGL_J0422.1-0644_daily_bin740.fits ra=65.5343 dec=-6.741 rad=12.0 tmin=431136001.0 tmax=431395201.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 5.57
user 5.31
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/397625/ft2_4FGL_J0422.1-0644_daily_bin740.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/397625/ft1_filteredMKT_4FGL_J0422.1-0644_daily_bin740.fits evtable="EVENTS" outfile="/scratch/kocevski/397625/ft1_filtered_4FGL_J0422.1-0644_daily_bin740.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.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/397625/ft1_filtered_4FGL_J0422.1-0644_daily_bin740.fits" evtable="EVENTS" scfile=/scratch/kocevski/397625/ft2_4FGL_J0422.1-0644_daily_bin740.fits sctable="SC_DATA" outfile=/scratch/kocevski/397625/ltcube_431136001_431395201_4FGL_J0422.1-0644_daily_bin740.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/397625/ft2_4FGL_J0422.1-0644_daily_bin740.fits
.....................!
real 11.98
user 11.62
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/397625/ft1_filtered_4FGL_J0422.1-0644_daily_bin740.fits evtable="EVENTS" scfile=/scratch/kocevski/397625/ft2_4FGL_J0422.1-0644_daily_bin740.fits sctable="SC_DATA" expcube=/scratch/kocevski/397625/ltcube_431136001_431395201_4FGL_J0422.1-0644_daily_bin740.fits outfile=/scratch/kocevski/397625/expmap_431136001_431395201_4FGL_J0422.1-0644_daily_bin740.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/397625/ltcube_431136001_431395201_4FGL_J0422.1-0644_daily_bin740.fits
.....................!
real 191.02
user 185.55
sys 5.16

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/397625/ft1_filtered_4FGL_J0422.1-0644_daily_bin740.fits scfile=/scratch/kocevski/397625/ft2_4FGL_J0422.1-0644_daily_bin740.fits outfile=/scratch/kocevski/397625/cmap_431136001_431395201_4FGL_J0422.1-0644_daily_bin740.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.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/397625/ft1_filtered_4FGL_J0422.1-0644_daily_bin740.fits scfile=/scratch/kocevski/397625/ft2_4FGL_J0422.1-0644_daily_bin740.fits outfile=/scratch/kocevski/397625/cmap_HighResolution_431136001_431395201_4FGL_J0422.1-0644_daily_bin740.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.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/397625/ft1_filtered_4FGL_J0422.1-0644_daily_bin740.fits evtable="EVENTS" scfile=/scratch/kocevski/397625/ft2_4FGL_J0422.1-0644_daily_bin740.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/397625/Model_4FGL_J0422.1-0644_daily_bin740.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/397625/ft1_filtered_4FGL_J0422.1-0644_daily_bin740.fits.....................!
real 76.94
user 75.61
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .18506       1.0000         .10000E-03   10000.    
     2 'Prefactor '    77.950       1.0000         .10000E-03   10000.    
     3 'Prefactor '    13.035       1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    8.4559       1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    10.946       1.0000         .10000E-03   10000.    
     8 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .25462       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    27.136       1.0000         .10000E-03   10000.    
    12 'Prefactor '    11.245       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .80736       1.0000         .10000E-03   10000.    
    15 'norm      '    .10063E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.4645       1.0000         .10000E-03   10000.    
    17 'norm      '    6.9496       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .77631       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0894       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=   5352.872     FROM MIGRAD    STATUS=CONVERGED    434 CALLS     2155 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .18543        1.3256       -.15678E-06   -.75293E-03
   2  Prefactor     77.978        53.186        .29856E-04   -.37482E-04
   3  Prefactor     13.039        10.226       -.71919E-06   -.13938E-03
   4  norm          .10000E-03    10.363       -.12349E-06** at limit **
   5  Prefactor     8.4438        31.697        .52401E-05    .21945E-04
   6  norm          .10000E-03    3.9804        .17511E-06** at limit **
   7  norm          10.951        11.464        .28418E-05    .76741E-05
   8  norm          .10000E-03    17.505       -.10317E-05** at limit **
   9  norm          .25598        1.0051       -.11022E-05   -.12548E-02
  10  Prefactor     .10000E-03    .78469       -.17458E-06** at limit **
  11  Prefactor     27.151        32.318        .28601E-04    .50619E-04
  12  Prefactor     11.234        57.849        .14097E-04    .95973E-04
  13  Prefactor     .10000E-03    15.280       -.26057E-05** at limit **
  14  Prefactor     1.1790        28.497        .47147E-05   -.15077E-03
  15  norm          .10000E-03    1.6711       -.28229E-06** at limit **
  16  Prefactor     1.4640        5.7704       -.18879E-05   -.79337E-03
  17  norm          6.9512        2.9049        .28179E-06   -.87659E-04
  18  Prefactor     .10000E-03    14.851        .32818E-05** at limit **
  19  Normalizat    .77571        .25125       -.10903E-04    .14465E-05
  20  Prefactor     1.0894        .12265       -.28568E-06   -.14379E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.185429
  Prefactor  = 77.9781
  Prefactor  = 13.0393
  norm       = 0.0001
  Prefactor  = 8.44382
  norm       = 0.0001
  norm       = 10.9508
  norm       = 0.000100001
  norm       = 0.255982
  Prefactor  = 0.0001
  Prefactor  = 27.1507
  Prefactor  = 11.2336
  Prefactor  = 0.0001
  Prefactor  = 1.179
  norm       = 0.0001
  Prefactor  = 1.46396
  norm       = 6.95116
  Prefactor  = 0.0001
  Normalizat = 0.775708
  Prefactor  = 1.08945
 **********
 **   18 **HESSE 
 **********

 FCN=   5352.872     FROM HESSE     STATUS=OK           303 CALLS     2458 TOTAL
                     EDM=   .42E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .18543        2.5251        .16255E-02   -1.5622    
   2  Prefactor     77.978        52.812        .22742E-03   -1.3940    
   3  Prefactor     13.039        10.247        .11095E-03   -1.4986    
   4  norm          .10000E-03    10.382        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     8.4438        31.710        .13786E-03   -1.5127    
   6  norm          .10000E-03    4.0096        .14224E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          10.951        11.464        .12109E-03   -1.5046    
   8  norm          .10000E-03    17.547        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .25598        1.3094        .12379E-02   -1.5607    
  10  Prefactor     .10000E-03    .79813        .63052E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     27.151        32.201        .76905E-04   -1.4665    
  12  Prefactor     11.234        52.769        .11947E-03   -1.5038    
  13  Prefactor     .10000E-03    15.540        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     1.1790        196.39        .70007E-02   -1.5491    
  15  norm          .10000E-03    2.9397        .17819E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     1.4640        5.7502        .33895E-03   -1.5466    
  17  norm          6.9512        2.9015        .77148E-04   -1.5181    
  18  Prefactor     .10000E-03    14.875        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .77571        .27519        .37112E-03   -1.0098    
  20  Prefactor     1.0894        .13707        .17148E-03   -.89805    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.22097e-09
Minuit parameter uncertainties:
  1  1.36824
  2  52.8441
  3  10.2481
  4  1.49151e-05
  5  31.7731
  6  3.94672e-05
  7  11.4668
  8  0.000247889
  9  1.1577
  10  1.62883e-05
  11  32.2219
  12  48.7644
  13  0.000130936
  14  30.5338
  15  4.25718e-05
  16  5.75235
  17  2.9016
  18  3.48783e-05
  19  0.275684
  20  0.137115
Done.

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

Extracting fit parameters...

4FGL J0422.1-0644
   Spectrum: LogParabola
227         norm:  1.095e+01  1.147e+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.089e+00  1.371e-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:  7.757e-01  2.757e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.39
Ra Dec: 65.534 -6.741
Photon Index (Fixed Index): 2.45 +/- 0.00
Photon Flux (Fixed Index): 4.83e-08 +/- 5.06e-08
Energy Flux (Fixed Index): 1.43e-05 +/- 1.50e-05

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

Saving results to:
/scratch/kocevski/397625/likelihoodResults_431136001_431395201_4FGL_J0422.1-0644_daily_bin740.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) = 5352.87050562
delta logL = 0.00100317880151

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5352.87043927
delta logL = 0.00106952741226

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    10.951       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3991       1.0000          .0000       5.0000    
     3 'Normalizat'    .77829       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0887       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=   5352.870     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      194 TOTAL
                     EDM=   .65E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          11.066        12.205        .30267E-02    .44683E-04
   2  alpha         2.3939        1.0742        .41194E-01    .41096E-05
   3  Normalizat    .77824        .22803        .83679E-01    .24206E-04
   4  Prefactor     1.0886        .12084        .38033E-01    .50635E-06
                               ERR DEF=  .500    
Final values: 
  norm       = 11.0656
  alpha      = 2.39385
  Normalizat = 0.778236
  Prefactor  = 1.08862
 **********
 **   18 **HESSE 
 **********

 FCN=   5352.870     FROM HESSE     STATUS=OK            31 CALLS      225 TOTAL
                     EDM=   .32E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          11.066        11.778        .12107E-03   -1.5043    
   2  alpha         2.3939        1.0433        .16478E-02   -.42472E-01
   3  Normalizat    .77824        .25310        .37056E-03   -1.0088    
   4  Prefactor     1.0886        .13420        .17154E-03   -.89831    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.17169e-13
Minuit parameter uncertainties:
  1  11.7808
  2  1.07629
  3  0.253488
  4  0.134246
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/397625': 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) = 5352.87038594
delta logL = 0.00112285501018

Extracting fit parameters...

4FGL J0422.1-0644
   Spectrum: LogParabola
227         norm:  1.107e+01  1.178e+01  1.000e-04  1.000e+04 ( 1.000e-12)
228        alpha:  2.394e+00  1.076e+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.089e+00  1.342e-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:  7.782e-01  2.535e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.39
Ra Dec: 65.534 -6.741
Photon Index (Free Index): 2.39 +/- 1.08
Photon Flux (Free Index): 4.64e-08 +/- 6.41e-08
Energy Flux (Free Index): 1.44e-05 +/- 1.53e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/397625/cmap_HighResolution_431136001_431395201_4FGL_J0422.1-0644_daily_bin740.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.81e-05', comment='SUCCESS', photon_flux='4.83e-08', energy_flux2='1.44e-05', photon_flux_error='5.06e-08', dlogl='1.12e-03', energy_flux='1.43e-05', photon_flux2='4.64e-08', job_status='DONE', time_completed='2021-08-20 13:03:53.395998', photon_index_error2='1.08', photon_index2='2.39', ts='1.39', fit_tolerance='1e-08', GAL='1.09', photon_index_error='0.00', photon_flux_upper_limit='1.63e-07', energy_flux_error2='1.53e-05', EG='0.78', time_epoch_completed='1629489833.4', return_code='0', job_id='397625', GAL2='1.09', EG2='0.78', return_code2='0', energy_flux_error='1.50e-05', photon_flux_error2='6.41e-08', ts2='1.39', photon_index='2.45' WHERE bin_id='740' AND source_name='4FGL J0422.1-0644' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 13:03:53 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0231>
Subject: Job 397625: <4FGL_J0422.1-0644_daily_bin740> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0422.1-0644_daily_bin740 65.5343 -6.741 431136001 431395201 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 :                                   544.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             312.24 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   771 sec.
    Turnaround time :                            773 sec.

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

