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


Performing analysis on: 4FGL_J0422.1-0644_daily_bin17
RA = 65.5343, Dec = -6.741
tmin = 243734401, tmax = 243993601
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='394176', job_status='RUN', time_executed='2021-08-20 12:42:59.855026', time_epoch_executed='1629488579.86' WHERE source_name='4FGL J0422.1-0644' and cadence='daily' and bin_id='17'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/394176

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/394176/ft1_4FGL_J0422.1-0644_daily_bin17.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/394176/ft2_4FGL_J0422.1-0644_daily_bin17.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/394176/ft1_4FGL_J0422.1-0644_daily_bin17.fits outfile=/scratch/kocevski/394176/ft1_filteredMKT_4FGL_J0422.1-0644_daily_bin17.fits ra=65.5343 dec=-6.741 rad=12.0 tmin=243734401.0 tmax=243993601.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.26
user 1.19
sys 4.89

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/394176/ft2_4FGL_J0422.1-0644_daily_bin17.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/394176/ft1_filteredMKT_4FGL_J0422.1-0644_daily_bin17.fits evtable="EVENTS" outfile="/scratch/kocevski/394176/ft1_filtered_4FGL_J0422.1-0644_daily_bin17.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 5.27
user 0.31
sys 4.82

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/394176/ft1_filtered_4FGL_J0422.1-0644_daily_bin17.fits" evtable="EVENTS" scfile=/scratch/kocevski/394176/ft2_4FGL_J0422.1-0644_daily_bin17.fits sctable="SC_DATA" outfile=/scratch/kocevski/394176/ltcube_243734401_243993601_4FGL_J0422.1-0644_daily_bin17.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/394176/ft2_4FGL_J0422.1-0644_daily_bin17.fits
.....................!
real 18.28
user 12.46
sys 5.61

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/394176/ft1_filtered_4FGL_J0422.1-0644_daily_bin17.fits evtable="EVENTS" scfile=/scratch/kocevski/394176/ft2_4FGL_J0422.1-0644_daily_bin17.fits sctable="SC_DATA" expcube=/scratch/kocevski/394176/ltcube_243734401_243993601_4FGL_J0422.1-0644_daily_bin17.fits outfile=/scratch/kocevski/394176/expmap_243734401_243993601_4FGL_J0422.1-0644_daily_bin17.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/394176/ltcube_243734401_243993601_4FGL_J0422.1-0644_daily_bin17.fits
.....................!
real 198.02
user 185.76
sys 11.47

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/394176/ft1_filtered_4FGL_J0422.1-0644_daily_bin17.fits scfile=/scratch/kocevski/394176/ft2_4FGL_J0422.1-0644_daily_bin17.fits outfile=/scratch/kocevski/394176/cmap_243734401_243993601_4FGL_J0422.1-0644_daily_bin17.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 5.21
user 0.35
sys 4.72

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/394176/ft1_filtered_4FGL_J0422.1-0644_daily_bin17.fits scfile=/scratch/kocevski/394176/ft2_4FGL_J0422.1-0644_daily_bin17.fits outfile=/scratch/kocevski/394176/cmap_HighResolution_243734401_243993601_4FGL_J0422.1-0644_daily_bin17.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 5.18
user 0.38
sys 4.67

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/394176/ft1_filtered_4FGL_J0422.1-0644_daily_bin17.fits evtable="EVENTS" scfile=/scratch/kocevski/394176/ft2_4FGL_J0422.1-0644_daily_bin17.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/394176/Model_4FGL_J0422.1-0644_daily_bin17.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/394176/ft1_filtered_4FGL_J0422.1-0644_daily_bin17.fits.....................!
real 132.12
user 123.77
sys 7.60

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.2541       1.0000         .10000E-03   10000.    
     2 'Prefactor '    38.970       1.0000         .10000E-03   10000.    
     3 'Prefactor '    5.6322       1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    1.2156       1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.2686       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10358E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    18.551       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    2.9790       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    1.8207       1.0000         .10000E-03   10000.    
    18 'Prefactor '    16.006       1.0000         .10000E-03   10000.    
    19 'Normalizat'    .89885       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .93558       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=   9352.332     FROM MIGRAD    STATUS=CONVERGED    404 CALLS     2023 TOTAL
                     EDM=   .13E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.2542        1.5225       -.10729E-06   -.29021E-03
   2  Prefactor     38.973        27.031        .24128E-05    .15894E-04
   3  Prefactor     5.6340        6.2849       -.24468E-05   -.28320E-03
   4  norm          .10000E-03    3.8877       -.21502E-06** at limit **
   5  Prefactor     .10000E-03    11.504        .40276E-06** at limit **
   6  norm          .10000E-03    .82386       -.34490E-07** at limit **
   7  norm          .10000E-03    1.8871       -.23924E-06** at limit **
   8  norm          .10000E-03    18.993        .13989E-05** at limit **
   9  norm          1.2158        .84661        .15463E-06   -.35657E-03
  10  Prefactor     2.2686        1.6657        .72026E-06   -.52864E-03
  11  Prefactor     .10000E-03    32.102        .28896E-05** at limit **
  12  Prefactor     18.544        40.996       -.12215E-04   -.29315E-04
  13  Prefactor     .10000E-03    3.0034       -.13587E-06** at limit **
  14  Prefactor     .10000E-03    18.633       -.31673E-05** at limit **
  15  norm          2.9791        1.6144        .11651E-06   -.19201E-03
  16  Prefactor     .10000E-03    1.1421       -.13464E-06** at limit **
  17  norm          1.8209        1.6023       -.30615E-06   -.10082E-02
  18  Prefactor     16.007        19.399        .79893E-06   -.45580E-05
  19  Normalizat    .89872        .15821        .13399E-05   -.99238E-05
  20  Prefactor     .93562        .82440E-01    .33014E-06    .83467E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.25419
  Prefactor  = 38.9734
  Prefactor  = 5.63399
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 1.21575
  Prefactor  = 2.26865
  Prefactor  = 0.0001
  Prefactor  = 18.544
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.97912
  Prefactor  = 0.0001
  norm       = 1.82091
  Prefactor  = 16.0071
  Normalizat = 0.898719
  Prefactor  = 0.935617
 **********
 **   18 **HESSE 
 **********

 FCN=   9352.332     FROM HESSE     STATUS=OK           291 CALLS     2314 TOTAL
                     EDM=   .26E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.2542        1.5220        .78929E-04   -1.5347    
   2  Prefactor     38.973        27.126        .64206E-04   -1.4459    
   3  Prefactor     5.6340        6.4332        .16927E-03   -1.5233    
   4  norm          .10000E-03    3.8902        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    11.526        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    .82700        .85707E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    1.8971        .12973E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    19.239        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          1.2158        .82501        .66419E-04   -1.5487    
  10  Prefactor     2.2686        1.6279        .86382E-04   -1.5407    
  11  Prefactor     .10000E-03    32.691        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     18.544        40.115        .92991E-04   -1.4846    
  13  Prefactor     .10000E-03    3.0332        .16354E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    18.904        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          2.9791        1.6106        .85725E-04   -1.5363    
  16  Prefactor     .10000E-03    1.1427        .10093E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          1.8209        1.6043        .10955E-03   -1.5438    
  18  Prefactor     16.007        19.362        .10011E-03   -1.4908    
  19  Normalizat    .89872        .18004        .31520E-03   -.96505    
  20  Prefactor     .93562        .94088E-01    .16941E-03   -.94907    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.60292e-10
Minuit parameter uncertainties:
  1  1.52199
  2  27.1348
  3  6.43399
  4  1.128e-06
  5  1.54108e-05
  6  4.11791e-07
  7  1.19208e-06
  8  3.43672e-05
  9  0.825018
  10  1.62792
  11  4.59142e-05
  12  40.1737
  13  7.53195e-06
  14  2.54074e-05
  15  1.61063
  16  5.03144e-07
  17  1.60435
  18  19.3693
  19  0.18016
  20  0.0941045
Done.

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

Extracting fit parameters...

4FGL J0422.1-0644
   Spectrum: LogParabola
227         norm:  1.000e-04  1.192e-06  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:  9.356e-01  9.410e-02  0.000e+00  1.000e+01 ( 1.000e+00)
466        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
467        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
464   Normalization:  8.987e-01  1.802e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 65.534 -6.741
Photon Flux Upper Limit: 3.95e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.17e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/394176/likelihoodResults_243734401_243993601_4FGL_J0422.1-0644_daily_bin17.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): 102
logL (Free Index) = 9352.33477518
delta logL = -0.00250702783705

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 9352.33226804
delta logL = 1.12328052637e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10017E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4326       1.0000          .0000       5.0000    
     3 'Normalizat'    .89873       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93561       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4680E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   9352.332     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      232 TOTAL
                     EDM=   .22E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    173.02        .13056E-01** at limit **
   2  alpha         1.9717        3.1423        .82341E-01   -.49704E-07
   3  Normalizat    .89872        .42235E-01    .31520E-03    .71847E-04
   4  Prefactor     .93562        .23273E-01    .16941E-03    .16165E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.97167
  Normalizat = 0.89872
  Prefactor  = 0.935617
 **********
 **   18 **HESSE 
 **********

 FCN=   9352.332     FROM HESSE     STATUS=OK            23 CALLS      255 TOTAL
                     EDM=   .35E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.1730        .13835E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.9717        3.4016        .32936E-02   -.21294    
   3  Normalizat    .89872        .16759        .12608E-04   -.96505    
   4  Prefactor     .93562        .92410E-01    .33883E-04   -.94907    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.48496e-11
Minuit parameter uncertainties:
  1  1.70968e-05
  2  171.301
  3  0.167685
  4  0.0924253
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/394176': 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) = 9352.33226481
delta logL = 3.33668140229e-06

Extracting fit parameters...

4FGL J0422.1-0644
   Spectrum: LogParabola
227         norm:  1.000e-04  1.710e-05  1.000e-04  1.000e+04 ( 1.000e-12)
228        alpha:  1.972e+00  1.713e+02  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:  9.356e-01  9.243e-02  0.000e+00  1.000e+01 ( 1.000e+00)
466        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
467        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
464   Normalization:  8.987e-01  1.677e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 65.534 -6.741

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/394176/cmap_HighResolution_243734401_243993601_4FGL_J0422.1-0644_daily_bin17.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.17e-05', job_status='DONE', photon_flux_upper_limit='3.95e-08', time_completed='2021-08-20 12:55:51.779667', job_id='394176', GAL2='0.94', fit_tolerance='1e-08', EG2='0.90', EG='0.90', time_epoch_completed='1629489351.78', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.94', dlogl='3.34e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.45' WHERE bin_id='17' AND source_name='4FGL J0422.1-0644' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 12:55:51 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0228>
Subject: Job 394176: <4FGL_J0422.1-0644_daily_bin17> in cluster <slac> Done

Job <4FGL_J0422.1-0644_daily_bin17> 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) <bullet0228>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 20 12:40:28 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:28 2021
Terminated at Fri Aug 20 12:55:53 2021
Results reported at Fri Aug 20 12:55:53 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0422.1-0644_daily_bin17 65.5343 -6.741 243734401 243993601 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 :                                   840.35 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             307.26 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   924 sec.
    Turnaround time :                            926 sec.

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

