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


Performing analysis on: 4FGL_J0422.1-0644_daily_bin721
RA = 65.5343, Dec = -6.741
tmin = 426211201, tmax = 426470401
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='397602', job_status='RUN', time_executed='2021-08-20 12:55:12.285028', time_epoch_executed='1629489312.29' WHERE source_name='4FGL J0422.1-0644' and cadence='daily' and bin_id='721'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/397602

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/397602/ft1_4FGL_J0422.1-0644_daily_bin721.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/397602/ft2_4FGL_J0422.1-0644_daily_bin721.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/397602/ft1_4FGL_J0422.1-0644_daily_bin721.fits outfile=/scratch/kocevski/397602/ft1_filteredMKT_4FGL_J0422.1-0644_daily_bin721.fits ra=65.5343 dec=-6.741 rad=12.0 tmin=426211201.0 tmax=426470401.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 11.19
user 3.33
sys 7.83

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/397602/ft2_4FGL_J0422.1-0644_daily_bin721.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/397602/ft1_filteredMKT_4FGL_J0422.1-0644_daily_bin721.fits evtable="EVENTS" outfile="/scratch/kocevski/397602/ft1_filtered_4FGL_J0422.1-0644_daily_bin721.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 8.15
user 0.33
sys 7.78

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/397602/ft1_filtered_4FGL_J0422.1-0644_daily_bin721.fits" evtable="EVENTS" scfile=/scratch/kocevski/397602/ft2_4FGL_J0422.1-0644_daily_bin721.fits sctable="SC_DATA" outfile=/scratch/kocevski/397602/ltcube_426211201_426470401_4FGL_J0422.1-0644_daily_bin721.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/397602/ft2_4FGL_J0422.1-0644_daily_bin721.fits
.....................!
real 21.22
user 11.85
sys 9.28

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/397602/ft1_filtered_4FGL_J0422.1-0644_daily_bin721.fits evtable="EVENTS" scfile=/scratch/kocevski/397602/ft2_4FGL_J0422.1-0644_daily_bin721.fits sctable="SC_DATA" expcube=/scratch/kocevski/397602/ltcube_426211201_426470401_4FGL_J0422.1-0644_daily_bin721.fits outfile=/scratch/kocevski/397602/expmap_426211201_426470401_4FGL_J0422.1-0644_daily_bin721.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/397602/ltcube_426211201_426470401_4FGL_J0422.1-0644_daily_bin721.fits
.....................!
real 199.98
user 185.38
sys 14.13

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/397602/ft1_filtered_4FGL_J0422.1-0644_daily_bin721.fits scfile=/scratch/kocevski/397602/ft2_4FGL_J0422.1-0644_daily_bin721.fits outfile=/scratch/kocevski/397602/cmap_426211201_426470401_4FGL_J0422.1-0644_daily_bin721.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 8.07
user 0.38
sys 7.61

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/397602/ft1_filtered_4FGL_J0422.1-0644_daily_bin721.fits scfile=/scratch/kocevski/397602/ft2_4FGL_J0422.1-0644_daily_bin721.fits outfile=/scratch/kocevski/397602/cmap_HighResolution_426211201_426470401_4FGL_J0422.1-0644_daily_bin721.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 8.09
user 0.38
sys 7.63

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/397602/ft1_filtered_4FGL_J0422.1-0644_daily_bin721.fits evtable="EVENTS" scfile=/scratch/kocevski/397602/ft2_4FGL_J0422.1-0644_daily_bin721.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/397602/Model_4FGL_J0422.1-0644_daily_bin721.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/397602/ft1_filtered_4FGL_J0422.1-0644_daily_bin721.fits....................!
real 99.66
user 86.75
sys 11.05

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .69633       1.0000         .10000E-03   10000.    
     2 'Prefactor '    10.966       1.0000         .10000E-03   10000.    
     3 'Prefactor '    9.4075       1.0000         .10000E-03   10000.    
     4 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    76.633       1.0000         .10000E-03   10000.    
     6 'norm      '    3.1956       1.0000         .10000E-03   10000.    
     7 'norm      '    9.0366       1.0000         .10000E-03   10000.    
     8 'norm      '    .10351E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10032E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .16128E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10145E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    13.010       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    58.335       1.0000         .10000E-03   10000.    
    15 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    2.3380       1.0000         .10000E-03   10000.    
    18 'Prefactor '    4.1046       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.2198       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .79574       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=   6162.224     FROM MIGRAD    STATUS=CONVERGED    413 CALLS     2063 TOTAL
                     EDM=   .29E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .69632        1.4536        .23320E-06    .48274E-03
   2  Prefactor     10.964        20.819       -.51852E-07   -.12460E-04
   3  Prefactor     9.4075        8.6381        .58973E-06    .55862E-03
   4  norm          .10000E-03    10.307        .50654E-07** at limit **
   5  Prefactor     76.644        37.284       -.55920E-06    .19086E-03
   6  norm          3.1965        4.0818        .75678E-07    .52230E-04
   7  norm          9.0305        8.2646       -.39033E-07   -.62374E-05
   8  norm          .10000E-03    7.6289        .90048E-07** at limit **
   9  norm          .10000E-03    .37925       -.51974E-07** at limit **
  10  Prefactor     .10000E-03    2.7668       -.28435E-05** at limit **
  11  Prefactor     .10000E-03    19.343        .15885E-06** at limit **
  12  Prefactor     12.980        36.340       -.28843E-05    .62080E-04
  13  Prefactor     .10000E-03    2.1227        .21589E-07** at limit **
  14  Prefactor     58.322        29.631        .31702E-06   -.18179E-03
  15  norm          .10000E-03    .77302        .43326E-07** at limit **
  16  Prefactor     .10000E-03    2.3250       -.27369E-07** at limit **
  17  norm          2.3372        1.8622        .55017E-07    .15573E-03
  18  Prefactor     4.1103        33.733       -.15293E-06    .31354E-04
  19  Normalizat    1.2199        .20403        .78891E-06    .12117E-03
  20  Prefactor     .79568        .10173       -.10278E-05   -.89835E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.696324
  Prefactor  = 10.9645
  Prefactor  = 9.40748
  norm       = 0.0001
  Prefactor  = 76.6436
  norm       = 3.19649
  norm       = 9.03054
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.9804
  Prefactor  = 0.0001
  Prefactor  = 58.3217
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 2.33719
  Prefactor  = 4.11034
  Normalizat = 1.21991
  Prefactor  = 0.795681
 **********
 **   18 **HESSE 
 **********

 FCN=   6162.224     FROM HESSE     STATUS=OK           293 CALLS     2356 TOTAL
                     EDM=   .61E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .69632        1.4258        .13250E-03   -1.5541    
   2  Prefactor     10.964        20.830        .12099E-03   -1.5046    
   3  Prefactor     9.4075        8.8523        .65330E-03   -1.5094    
   4  norm          .10000E-03    10.343        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     76.644        37.457        .45870E-04   -1.3955    
   6  norm          3.1965        4.0702        .17272E-03   -1.5350    
   7  norm          9.0305        8.2732        .13333E-03   -1.5107    
   8  norm          .10000E-03    7.6384        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    .38747        .94161E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    2.7376        .16345E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    19.506        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     12.980        36.492        .11105E-03   -1.4987    
  13  Prefactor     .10000E-03    2.1256        .11169E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     58.322        29.829        .52527E-04   -1.4179    
  15  norm          .10000E-03    .80612        .13481E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    2.3272        .11690E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          2.3372        1.8540        .90643E-04   -1.5402    
  18  Prefactor     4.1103        33.484        .19898E-03   -1.5302    
  19  Normalizat    1.2199        .23075        .29266E-03   -.85990    
  20  Prefactor     .79568        .11555        .18454E-03   -.99888    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.14013e-10
Minuit parameter uncertainties:
  1  1.42591
  2  20.8434
  3  8.85357
  4  1.13723e-05
  5  37.4687
  6  4.07057
  7  8.27425
  8  2.53822e-05
  9  7.91439e-08
  10  1.88257e-05
  11  7.84957e-05
  12  36.555
  13  1.9908e-06
  14  29.8363
  15  2.16659e-06
  16  1.26447e-06
  17  1.85407
  18  23.4809
  19  0.230942
  20  0.11558
Done.

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

Extracting fit parameters...

4FGL J0422.1-0644
   Spectrum: LogParabola
227         norm:  9.031e+00  8.274e+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:  7.957e-01  1.156e-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.220e+00  2.309e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.37
Ra Dec: 65.534 -6.741
Photon Index (Fixed Index): 2.45 +/- 0.00
Photon Flux (Fixed Index): 3.99e-08 +/- 3.65e-08
Energy Flux (Fixed Index): 1.18e-05 +/- 1.08e-05

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

Saving results to:
/scratch/kocevski/397602/likelihoodResults_426211201_426470401_4FGL_J0422.1-0644_daily_bin721.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) = 6162.09311452
delta logL = 0.13137369283

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6162.09210784
delta logL = 0.1323803741

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    9.0290       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9560       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2375       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .79024       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=   6162.092     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      203 TOTAL
                     EDM=   .43E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          8.9205        8.8995        .33346E-02   -.34744E-04
   2  alpha         1.9526        .71871        .42456       -.71218E-04
   3  Normalizat    1.2378        .19417        .65738E-01   -.49457E-04
   4  Prefactor     .79023        .10098        .43590E-01   -.64371E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 8.92046
  alpha      = 1.9526
  Normalizat = 1.23777
  Prefactor  = 0.79023
 **********
 **   18 **HESSE 
 **********

 FCN=   6162.092     FROM HESSE     STATUS=OK            33 CALLS      236 TOTAL
                     EDM=   .28E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          8.9205        8.6308        .13338E-03   -1.5111    
   2  alpha         1.9526        .84000        .21134E-01   -.22075    
   3  Normalizat    1.2378        .21828        .29080E-03   -.85443    
   4  Prefactor     .79023        .11361        .18508E-03   -1.0009    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.76878e-10
Minuit parameter uncertainties:
  1  8.63198
  2  0.857554
  3  0.218446
  4  0.113644
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/397602': 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) = 6162.09203086
delta logL = 0.132457357581

Extracting fit parameters...

4FGL J0422.1-0644
   Spectrum: LogParabola
227         norm:  8.920e+00  8.632e+00  1.000e-04  1.000e+04 ( 1.000e-12)
228        alpha:  1.953e+00  8.576e-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:  7.902e-01  1.136e-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.238e+00  2.184e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.63
Ra Dec: 65.534 -6.741
Photon Index (Free Index): 1.95 +/- 0.86
Photon Flux (Free Index): 2.54e-08 +/- 3.26e-08
Energy Flux (Free Index): 1.42e-05 +/- 1.58e-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/397602/cmap_HighResolution_426211201_426470401_4FGL_J0422.1-0644_daily_bin721.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.87e-05', comment='SUCCESS', photon_flux='3.99e-08', energy_flux2='1.42e-05', photon_flux_error='3.65e-08', dlogl='1.32e-01', energy_flux='1.18e-05', photon_flux2='2.54e-08', job_status='DONE', time_completed='2021-08-20 13:06:34.051206', photon_index_error2='0.86', photon_index2='1.95', ts='2.37', fit_tolerance='1e-08', GAL='0.80', photon_index_error='0.00', photon_flux_upper_limit='1.31e-07', energy_flux_error2='1.58e-05', EG='1.22', time_epoch_completed='1629489994.05', return_code='0', job_id='397602', GAL2='0.79', EG2='1.24', return_code2='0', energy_flux_error='1.08e-05', photon_flux_error2='3.26e-08', ts2='2.63', photon_index='2.45' WHERE bin_id='721' AND source_name='4FGL J0422.1-0644' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 13:06:34 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0287>
Subject: Job 397602: <4FGL_J0422.1-0644_daily_bin721> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0422.1-0644_daily_bin721 65.5343 -6.741 426211201 426470401 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 :                                   796.46 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             259.67 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   936 sec.
    Turnaround time :                            938 sec.

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

