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


Performing analysis on: 4FGL_J0422.1-0644_daily_bin934
RA = 65.5343, Dec = -6.741
tmin = 481420801, tmax = 481680001
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='399259', job_status='RUN', time_executed='2021-08-20 12:58:33.225648', time_epoch_executed='1629489513.23' WHERE source_name='4FGL J0422.1-0644' and cadence='daily' and bin_id='934'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/399259

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/399259/ft1_4FGL_J0422.1-0644_daily_bin934.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/399259/ft2_4FGL_J0422.1-0644_daily_bin934.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/399259/ft1_4FGL_J0422.1-0644_daily_bin934.fits outfile=/scratch/kocevski/399259/ft1_filteredMKT_4FGL_J0422.1-0644_daily_bin934.fits ra=65.5343 dec=-6.741 rad=12.0 tmin=481420801.0 tmax=481680001.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.71
user 3.48
sys 3.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/399259/ft1_filtered_4FGL_J0422.1-0644_daily_bin934.fits" evtable="EVENTS" scfile=/scratch/kocevski/399259/ft2_4FGL_J0422.1-0644_daily_bin934.fits sctable="SC_DATA" outfile=/scratch/kocevski/399259/ltcube_481420801_481680001_4FGL_J0422.1-0644_daily_bin934.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/399259/ft2_4FGL_J0422.1-0644_daily_bin934.fits
.....................!
real 15.63
user 11.90
sys 3.67

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/399259/ft1_filtered_4FGL_J0422.1-0644_daily_bin934.fits evtable="EVENTS" scfile=/scratch/kocevski/399259/ft2_4FGL_J0422.1-0644_daily_bin934.fits sctable="SC_DATA" expcube=/scratch/kocevski/399259/ltcube_481420801_481680001_4FGL_J0422.1-0644_daily_bin934.fits outfile=/scratch/kocevski/399259/expmap_481420801_481680001_4FGL_J0422.1-0644_daily_bin934.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/399259/ltcube_481420801_481680001_4FGL_J0422.1-0644_daily_bin934.fits
.....................!
real 196.29
user 186.12
sys 9.75

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/399259/ft1_filtered_4FGL_J0422.1-0644_daily_bin934.fits scfile=/scratch/kocevski/399259/ft2_4FGL_J0422.1-0644_daily_bin934.fits outfile=/scratch/kocevski/399259/cmap_481420801_481680001_4FGL_J0422.1-0644_daily_bin934.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.62
user 0.37
sys 3.08

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/399259/ft1_filtered_4FGL_J0422.1-0644_daily_bin934.fits scfile=/scratch/kocevski/399259/ft2_4FGL_J0422.1-0644_daily_bin934.fits outfile=/scratch/kocevski/399259/cmap_HighResolution_481420801_481680001_4FGL_J0422.1-0644_daily_bin934.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.56
user 0.38
sys 3.08

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/399259/ft1_filtered_4FGL_J0422.1-0644_daily_bin934.fits evtable="EVENTS" scfile=/scratch/kocevski/399259/ft2_4FGL_J0422.1-0644_daily_bin934.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/399259/Model_4FGL_J0422.1-0644_daily_bin934.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/399259/ft1_filtered_4FGL_J0422.1-0644_daily_bin934.fits.....................!
real 93.00
user 86.86
sys 5.11

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.3662       1.0000         .10000E-03   10000.    
     2 'Prefactor '    16.589       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .17785E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    25.474       1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    20.947       1.0000         .10000E-03   10000.    
     8 'norm      '    .10139E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .37312E-01   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    15.544       1.0000         .10000E-03   10000.    
    12 'Prefactor '    35.598       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .60002       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .11697E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    3.0474       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    4.0488       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .65560       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.1555       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=   6155.672     FROM MIGRAD    STATUS=CONVERGED    438 CALLS     2113 TOTAL
                     EDM=   .62E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.3663        1.6703       -.52601E-07    .59845E-04
   2  Prefactor     16.589        30.571        .21393E-06    .54256E-04
   3  Prefactor     .10003E-03    20.889        .81576E-05** at limit **
   4  norm          .10000E-03    6.0926       -.44727E-07** at limit **
   5  Prefactor     25.464        33.719        .30872E-05    .13449E-03
   6  norm          .10000E-03    1.9086       -.83112E-07** at limit **
   7  norm          20.952        14.672        .92623E-06    .26731E-03
   8  norm          .10000E-03    34.838        .15958E-05** at limit **
   9  norm          .25740E-01    .56952       -.12538E-06    .50133E-03
  10  Prefactor     .10000E-03    .99013       -.68475E-08** at limit **
  11  Prefactor     15.536        24.996        .80538E-06    .55406E-04
  12  Prefactor     35.616        35.024        .94583E-06    .12194E-03
  13  Prefactor     .56627        27.445       -.11084E-04   -.17787E-04
  14  Prefactor     .10000E-03    75.942       -.29178E-06** at limit **
  15  norm          3.0476        2.0972        .37346E-07    .29470E-03
  16  Prefactor     .10000E-03    2.1861       -.29281E-07** at limit **
  17  norm          4.0494        2.4573       -.80825E-07    .24161E-03
  18  Prefactor     .10000E-03    16.481       -.17710E-06** at limit **
  19  Normalizat    .65529        .23675        .35773E-05    .26520E-03
  20  Prefactor     1.1556        .11916       -.19793E-06    .62671E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.36635
  Prefactor  = 16.5889
  Prefactor  = 0.000100025
  norm       = 0.0001
  Prefactor  = 25.4636
  norm       = 0.0001
  norm       = 20.9523
  norm       = 0.0001
  norm       = 0.0257404
  Prefactor  = 0.000100001
  Prefactor  = 15.5356
  Prefactor  = 35.6159
  Prefactor  = 0.566275
  Prefactor  = 0.000100001
  norm       = 3.04762
  Prefactor  = 0.0001
  norm       = 4.04945
  Prefactor  = 0.0001
  Normalizat = 0.655285
  Prefactor  = 1.15556
 **********
 **   18 **HESSE 
 **********

 FCN=   6155.672     FROM HESSE     STATUS=OK           297 CALLS     2410 TOTAL
                     EDM=   .43E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.3663        1.6679        .82657E-04   -1.5400    
   2  Prefactor     16.589        30.459        .98336E-04   -1.4893    
   3  Prefactor     .10003E-03    36.889        .37818E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    6.0943        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     25.464        33.844        .79368E-04   -1.4698    
   6  norm          .10000E-03    1.9155        .10583E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          20.952        14.603        .87514E-04   -1.4792    
   8  norm          .10000E-03    34.818        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .25740E-01    11.627        .10602E-02   -1.5676    
  10  Prefactor     .10000E-03    1.4172        .14467E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     15.536        24.967        .10159E-03   -1.4919    
  12  Prefactor     35.616        36.848        .67169E-04   -1.4514    
  13  Prefactor     .56627        46.665        .43021E-02   -1.5557    
  14  Prefactor     .10000E-03    77.212        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          3.0476        2.0906        .90173E-04   -1.5359    
  16  Prefactor     .10000E-03    2.1882        .11329E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          4.0494        2.4514        .91906E-04   -1.5305    
  18  Prefactor     .10000E-03    16.525        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .65529        .24799        .39754E-03   -1.0569    
  20  Prefactor     1.1556        .13052        .16755E-03   -.87710    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.2954e-08
Minuit parameter uncertainties:
  1  1.66794
  2  30.4874
  3  0.00193425
  4  5.52414e-06
  5  33.8695
  6  8.12898e-06
  7  14.6055
  8  0.000231917
  9  1.09221
  10  8.87055e-05
  11  24.9834
  12  36.8713
  13  10.2885
  14  0.000553844
  15  2.09066
  16  2.36199e-06
  17  2.45148
  18  2.47486e-05
  19  0.248409
  20  0.130554
Done.

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

Extracting fit parameters...

4FGL J0422.1-0644
   Spectrum: LogParabola
227         norm:  2.095e+01  1.461e+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.156e+00  1.306e-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:  6.553e-01  2.484e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.34
Ra Dec: 65.534 -6.741
Photon Index (Fixed Index): 2.45 +/- 0.00
Photon Flux (Fixed Index): 9.25e-08 +/- 6.44e-08
Energy Flux (Fixed Index): 2.74e-05 +/- 1.91e-05

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

Saving results to:
/scratch/kocevski/399259/likelihoodResults_481420801_481680001_4FGL_J0422.1-0644_daily_bin934.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) = 6153.83617579
delta logL = 1.83541118526

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6153.82730936
delta logL = 1.84427761814

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.3546       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.8617       1.0000          .0000       5.0000    
     3 'Normalizat'    .53890       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1977       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=   6153.827     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      252 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.3514        60.011        .36974E-02    .34415E-03
   2  alpha         3.8620        4.4129        .26899        .53383E-04
   3  Normalizat    .53890        .10498        .98235E-01    .51376E-04
   4  Prefactor     1.1977        .57708E-01    .34685E-01   -.16992E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 7.35145
  alpha      = 3.86202
  Normalizat = 0.538905
  Prefactor  = 1.19773
 **********
 **   18 **HESSE 
 **********

 FCN=   6153.827     FROM HESSE     STATUS=OK            31 CALLS      283 TOTAL
                     EDM=   .57E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.3514        9.3872        .93455E-04   -1.5166    
   2  alpha         3.8620        .89198        .11901E-02    .57616    
   3  Normalizat    .53890        .24645        .43543E-03   -1.1064    
   4  Prefactor     1.1977        .13090        .16483E-03   -.86401    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.65943e-12
Minuit parameter uncertainties:
  1  9.38908
  2  0.921355
  3  0.246947
  4  0.130938
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/399259': 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) = 6153.82730927
delta logL = 1.84427769931

Extracting fit parameters...

4FGL J0422.1-0644
   Spectrum: LogParabola
227         norm:  7.351e+00  9.389e+00  1.000e-04  1.000e+04 ( 1.000e-12)
228        alpha:  3.862e+00  9.214e-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.198e+00  1.309e-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:  5.389e-01  2.469e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.66
Ra Dec: 65.534 -6.741
Photon Index (Free Index): 3.86 +/- 0.92
Photon Flux (Free Index): 1.88e-07 +/- 9.26e-08
Energy Flux (Free Index): 2.97e-05 +/- 1.46e-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/399259/cmap_HighResolution_481420801_481680001_4FGL_J0422.1-0644_daily_bin934.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.37e-05', comment='SUCCESS', photon_flux='9.25e-08', energy_flux2='2.97e-05', photon_flux_error='6.44e-08', dlogl='1.84e+00', energy_flux='2.74e-05', photon_flux2='1.88e-07', job_status='DONE', time_completed='2021-08-20 13:08:52.475071', photon_index_error2='0.92', photon_index2='3.86', ts='3.34', fit_tolerance='1e-08', GAL='1.16', photon_index_error='0.00', photon_flux_upper_limit='2.15e-07', energy_flux_error2='1.46e-05', EG='0.66', time_epoch_completed='1629490132.48', return_code='0', job_id='399259', GAL2='1.20', EG2='0.54', return_code2='0', energy_flux_error='1.91e-05', photon_flux_error2='9.26e-08', ts2='7.66', photon_index='2.45' WHERE bin_id='934' AND source_name='4FGL J0422.1-0644' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 13:08:52 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0209>
Subject: Job 399259: <4FGL_J0422.1-0644_daily_bin934> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0422.1-0644_daily_bin934 65.5343 -6.741 481420801 481680001 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 :                                   664.23 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             289.38 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   780 sec.
    Turnaround time :                            781 sec.

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

