/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 100 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 = 7316
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0422.1-0644_daily_bin26
RA = 65.5343, Dec = -6.741
tmin = 246067201, tmax = 246326401
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='394188', job_status='RUN', time_executed='2021-08-20 12:42:35.449916', time_epoch_executed='1629488555.45' WHERE source_name='4FGL J0422.1-0644' and cadence='daily' and bin_id='26'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/394188

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/394188/ft1_4FGL_J0422.1-0644_daily_bin26.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/394188/ft2_4FGL_J0422.1-0644_daily_bin26.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/394188/ft1_4FGL_J0422.1-0644_daily_bin26.fits outfile=/scratch/kocevski/394188/ft1_filteredMKT_4FGL_J0422.1-0644_daily_bin26.fits ra=65.5343 dec=-6.741 rad=12.0 tmin=246067201.0 tmax=246326401.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 2.40
user 1.34
sys 1.05

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/394188/ft2_4FGL_J0422.1-0644_daily_bin26.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/394188/ft1_filteredMKT_4FGL_J0422.1-0644_daily_bin26.fits evtable="EVENTS" outfile="/scratch/kocevski/394188/ft1_filtered_4FGL_J0422.1-0644_daily_bin26.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 1.42
user 0.34
sys 1.08

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/394188/ft1_filtered_4FGL_J0422.1-0644_daily_bin26.fits" evtable="EVENTS" scfile=/scratch/kocevski/394188/ft2_4FGL_J0422.1-0644_daily_bin26.fits sctable="SC_DATA" outfile=/scratch/kocevski/394188/ltcube_246067201_246326401_4FGL_J0422.1-0644_daily_bin26.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/394188/ft2_4FGL_J0422.1-0644_daily_bin26.fits
.....................!
real 13.52
user 12.13
sys 1.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/394188/ft1_filtered_4FGL_J0422.1-0644_daily_bin26.fits evtable="EVENTS" scfile=/scratch/kocevski/394188/ft2_4FGL_J0422.1-0644_daily_bin26.fits sctable="SC_DATA" expcube=/scratch/kocevski/394188/ltcube_246067201_246326401_4FGL_J0422.1-0644_daily_bin26.fits outfile=/scratch/kocevski/394188/expmap_246067201_246326401_4FGL_J0422.1-0644_daily_bin26.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/394188/ltcube_246067201_246326401_4FGL_J0422.1-0644_daily_bin26.fits
.....................!
real 191.88
user 184.53
sys 7.03

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/394188/ft1_filtered_4FGL_J0422.1-0644_daily_bin26.fits scfile=/scratch/kocevski/394188/ft2_4FGL_J0422.1-0644_daily_bin26.fits outfile=/scratch/kocevski/394188/cmap_246067201_246326401_4FGL_J0422.1-0644_daily_bin26.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 1.33
user 0.36
sys 0.96

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/394188/ft1_filtered_4FGL_J0422.1-0644_daily_bin26.fits scfile=/scratch/kocevski/394188/ft2_4FGL_J0422.1-0644_daily_bin26.fits outfile=/scratch/kocevski/394188/cmap_HighResolution_246067201_246326401_4FGL_J0422.1-0644_daily_bin26.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 1.45
user 0.38
sys 1.06

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/394188/ft1_filtered_4FGL_J0422.1-0644_daily_bin26.fits evtable="EVENTS" scfile=/scratch/kocevski/394188/ft2_4FGL_J0422.1-0644_daily_bin26.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/394188/Model_4FGL_J0422.1-0644_daily_bin26.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/394188/ft1_filtered_4FGL_J0422.1-0644_daily_bin26.fits.....................!
real 95.74
user 93.11
sys 2.43

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.1250       1.0000         .10000E-03   10000.    
     2 'Prefactor '    45.864       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10161E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .17094E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    5.6624       1.0000         .10000E-03   10000.    
     8 'norm      '    51.443       1.0000         .10000E-03   10000.    
     9 'norm      '    2.0022       1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.4257       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    7.8936       1.0000         .10000E-03   10000.    
    14 'Prefactor '    12.072       1.0000         .10000E-03   10000.    
    15 'norm      '    5.0633       1.0000         .10000E-03   10000.    
    16 'Prefactor '    10.899       1.0000         .10000E-03   10000.    
    17 'norm      '    1.1521       1.0000         .10000E-03   10000.    
    18 'Prefactor '    14.652       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.1718       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .75569       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=   6621.819     FROM MIGRAD    STATUS=CONVERGED    405 CALLS     2036 TOTAL
                     EDM=   .42E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.1251        1.7822       -.15969E-06   -.29928E-03
   2  Prefactor     45.863        39.689       -.15508E-05    .19503E-05
   3  Prefactor     .10000E-03    2.1933        .54538E-08** at limit **
   4  norm          .10000E-03    9.5446        .33303E-05** at limit **
   5  Prefactor     .10000E-03    68.568        .79007E-06** at limit **
   6  norm          .10000E-03    3.4728        .11258E-07** at limit **
   7  norm          5.6617        6.3604       -.22024E-06   -.98371E-04
   8  norm          51.431        29.445       -.73954E-05   -.91108E-06
   9  norm          2.0014        1.3317        .35073E-07   -.32168E-03
  10  Prefactor     1.4256        1.4143        .39089E-06    .15694E-03
  11  Prefactor     .10000E-03    9.7010       -.33047E-05** at limit **
  12  Prefactor     .10000E-03    17.437        .13662E-07** at limit **
  13  Prefactor     7.8932        11.759       -.78019E-06   -.97960E-04
  14  Prefactor     12.072        22.714       -.11381E-05   -.13346E-04
  15  norm          5.0635        2.5059       -.22801E-07   -.18661E-03
  16  Prefactor     10.899        6.2029        .14452E-06    .59785E-04
  17  norm          1.1522        1.1871       -.27449E-08    .85590E-04
  18  Prefactor     14.653        16.670       -.36880E-06   -.73697E-05
  19  Normalizat    1.1718        .20048        .66771E-06    .50656E-05
  20  Prefactor     .75567        .98888E-01    .80726E-06   -.41702E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.12511
  Prefactor  = 45.8627
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  norm       = 5.66167
  norm       = 51.4315
  norm       = 2.00144
  Prefactor  = 1.42556
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.89317
  Prefactor  = 12.0723
  norm       = 5.06348
  Prefactor  = 10.8994
  norm       = 1.15217
  Prefactor  = 14.6528
  Normalizat = 1.17178
  Prefactor  = 0.755665
 **********
 **   18 **HESSE 
 **********

 FCN=   6621.819     FROM HESSE     STATUS=OK           301 CALLS     2337 TOTAL
                     EDM=   .87E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.1251        1.7800        .95831E-04   -1.5416    
   2  Prefactor     45.863        40.110        .59204E-04   -1.4352    
   3  Prefactor     .10000E-03    2.1991        .11767E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    9.5913        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    69.721        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    7.8037        .28674E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          5.6617        6.3536        .16881E-03   -1.5232    
   8  norm          51.431        29.384        .55916E-04   -1.4272    
   9  norm          2.0014        1.2967        .68170E-04   -1.5425    
  10  Prefactor     1.4256        1.4036        .89029E-04   -1.5469    
  11  Prefactor     .10000E-03    9.6598        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    17.448        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     7.8932        11.790        .14272E-03   -1.5146    
  14  Prefactor     12.072        22.809        .11529E-03   -1.5013    
  15  norm          5.0635        2.5053        .86195E-04   -1.5258    
  16  Prefactor     10.899        6.2050        .12135E-03   -1.5048    
  17  norm          1.1522        1.1933        .87194E-04   -1.5493    
  18  Prefactor     14.653        16.664        .10464E-03   -1.4942    
  19  Normalizat    1.1718        .22981        .29134E-03   -.87479    
  20  Prefactor     .75567        .11246        .18751E-03   -1.0138    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.71949e-11
Minuit parameter uncertainties:
  1  1.78007
  2  40.1332
  3  7.58675e-07
  4  1.17453e-05
  5  0.000625524
  6  1.89242e-05
  7  6.35433
  8  29.3921
  9  1.29668
  10  1.40367
  11  3.51014e-05
  12  2.52349e-05
  13  11.7933
  14  22.825
  15  2.50531
  16  6.20541
  17  1.19334
  18  16.6692
  19  0.230008
  20  0.112499
Done.

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

Extracting fit parameters...

4FGL J0422.1-0644
   Spectrum: LogParabola
227         norm:  5.662e+00  6.354e+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.557e-01  1.125e-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.172e+00  2.300e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.41
Ra Dec: 65.534 -6.741
Photon Index (Fixed Index): 2.45 +/- 0.00
Photon Flux (Fixed Index): 2.50e-08 +/- 2.80e-08
Energy Flux (Fixed Index): 7.40e-06 +/- 8.31e-06

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

Saving results to:
/scratch/kocevski/394188/likelihoodResults_246067201_246326401_4FGL_J0422.1-0644_daily_bin26.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) = 6621.69820145
delta logL = 0.120435489272

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6621.69660795
delta logL = 0.122028990009

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.8795       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9613       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1820       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .75240       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=   6621.697     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      212 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.8847        6.7104        .41404E-02    .78845E-04
   2  alpha         1.9601        .78935        .42429       -.30757E-04
   3  Normalizat    1.1815        .18314        .65617E-01    .46452E-04
   4  Prefactor     .75256        .96917E-01    .43094E-01    .49245E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 5.88467
  alpha      = 1.96007
  Normalizat = 1.18145
  Prefactor  = 0.752565
 **********
 **   18 **HESSE 
 **********

 FCN=   6621.697     FROM HESSE     STATUS=OK            33 CALLS      245 TOTAL
                     EDM=   .11E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.8847        6.3918        .16562E-03   -1.5223    
   2  alpha         1.9601        .86648        .24429E-01   -.21769    
   3  Normalizat    1.1815        .20523        .29027E-03   -.87178    
   4  Prefactor     .75256        .10882        .18783E-03   -1.0150    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.10022e-11
Minuit parameter uncertainties:
  1  6.39257
  2  0.885788
  3  0.205369
  4  0.108854
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/394188': 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) = 6621.69660221
delta logL = 0.122034732738

Extracting fit parameters...

4FGL J0422.1-0644
   Spectrum: LogParabola
227         norm:  5.885e+00  6.393e+00  1.000e-04  1.000e+04 ( 1.000e-12)
228        alpha:  1.960e+00  8.858e-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.526e-01  1.089e-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.181e+00  2.054e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.65
Ra Dec: 65.534 -6.741
Photon Index (Free Index): 1.96 +/- 0.89
Photon Flux (Free Index): 1.69e-08 +/- 2.27e-08
Energy Flux (Free Index): 9.33e-06 +/- 1.19e-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/394188/cmap_HighResolution_246067201_246326401_4FGL_J0422.1-0644_daily_bin26.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.01e-05', comment='SUCCESS', photon_flux='2.50e-08', energy_flux2='9.33e-06', photon_flux_error='2.80e-08', dlogl='1.22e-01', energy_flux='7.40e-06', photon_flux2='1.69e-08', job_status='DONE', time_completed='2021-08-20 12:52:31.601486', photon_index_error2='0.89', photon_index2='1.96', ts='1.41', fit_tolerance='1e-08', GAL='0.76', photon_index_error='0.00', photon_flux_upper_limit='1.02e-07', energy_flux_error2='1.19e-05', EG='1.17', time_epoch_completed='1629489151.6', return_code='0', job_id='394188', GAL2='0.75', EG2='1.18', return_code2='0', energy_flux_error='8.31e-06', photon_flux_error2='2.27e-08', ts2='1.65', photon_index='2.45' WHERE bin_id='26' AND source_name='4FGL J0422.1-0644' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 12:52:31 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0077>
Subject: Job 394188: <4FGL_J0422.1-0644_daily_bin26> in cluster <slac> Done

Job <4FGL_J0422.1-0644_daily_bin26> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Fri Aug 20 12:40:27 2021
Job was executed on host(s) <bullet0077>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 20 12:40:29 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:40:29 2021
Terminated at Fri Aug 20 12:52:32 2021
Results reported at Fri Aug 20 12:52:32 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0422.1-0644_daily_bin26 65.5343 -6.741 246067201 246326401 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 :                                   611.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             311.76 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   722 sec.
    Turnaround time :                            725 sec.

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

