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


Performing analysis on: 4FGL_J0422.1-0644_daily_bin170
RA = 65.5343, Dec = -6.741
tmin = 283392001, tmax = 283651201
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='394399', job_status='RUN', time_executed='2021-08-20 12:43:04.397949', time_epoch_executed='1629488584.4' WHERE source_name='4FGL J0422.1-0644' and cadence='daily' and bin_id='170'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/394399

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

Retrieving the FT1 file...

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

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

Retrieving 45 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/394399/ft1_4FGL_J0422.1-0644_daily_bin170.fits


Retrieving the FT1 file...

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

Retrieving 45 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/394399/ft2_4FGL_J0422.1-0644_daily_bin170.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/394399/ft1_4FGL_J0422.1-0644_daily_bin170.fits outfile=/scratch/kocevski/394399/ft1_filteredMKT_4FGL_J0422.1-0644_daily_bin170.fits ra=65.5343 dec=-6.741 rad=12.0 tmin=283392001.0 tmax=283651201.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 5.64
user 3.38
sys 2.14

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/394399/ft1_filtered_4FGL_J0422.1-0644_daily_bin170.fits" evtable="EVENTS" scfile=/scratch/kocevski/394399/ft2_4FGL_J0422.1-0644_daily_bin170.fits sctable="SC_DATA" outfile=/scratch/kocevski/394399/ltcube_283392001_283651201_4FGL_J0422.1-0644_daily_bin170.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/394399/ft2_4FGL_J0422.1-0644_daily_bin170.fits
.....................!
real 14.67
user 12.12
sys 2.48

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/394399/ft1_filtered_4FGL_J0422.1-0644_daily_bin170.fits evtable="EVENTS" scfile=/scratch/kocevski/394399/ft2_4FGL_J0422.1-0644_daily_bin170.fits sctable="SC_DATA" expcube=/scratch/kocevski/394399/ltcube_283392001_283651201_4FGL_J0422.1-0644_daily_bin170.fits outfile=/scratch/kocevski/394399/expmap_283392001_283651201_4FGL_J0422.1-0644_daily_bin170.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/394399/ltcube_283392001_283651201_4FGL_J0422.1-0644_daily_bin170.fits
.....................!
real 192.93
user 185.40
sys 7.11

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/394399/ft1_filtered_4FGL_J0422.1-0644_daily_bin170.fits scfile=/scratch/kocevski/394399/ft2_4FGL_J0422.1-0644_daily_bin170.fits outfile=/scratch/kocevski/394399/cmap_283392001_283651201_4FGL_J0422.1-0644_daily_bin170.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 2.46
user 0.36
sys 2.05

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/394399/ft1_filtered_4FGL_J0422.1-0644_daily_bin170.fits scfile=/scratch/kocevski/394399/ft2_4FGL_J0422.1-0644_daily_bin170.fits outfile=/scratch/kocevski/394399/cmap_HighResolution_283392001_283651201_4FGL_J0422.1-0644_daily_bin170.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 2.44
user 0.35
sys 2.07

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/394399/ft1_filtered_4FGL_J0422.1-0644_daily_bin170.fits evtable="EVENTS" scfile=/scratch/kocevski/394399/ft2_4FGL_J0422.1-0644_daily_bin170.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/394399/Model_4FGL_J0422.1-0644_daily_bin170.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/394399/ft1_filtered_4FGL_J0422.1-0644_daily_bin170.fits.....................!
real 95.14
user 91.17
sys 3.69

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.0326       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    6.8402       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10358E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    23.305       1.0000         .10000E-03   10000.    
    12 'Prefactor '    30.273       1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.1891       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    5.9326       1.0000         .10000E-03   10000.    
    16 'Prefactor '    9.3926       1.0000         .10000E-03   10000.    
    17 'norm      '    1.9463       1.0000         .10000E-03   10000.    
    18 'Prefactor '    29.360       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.4299       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .87880       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=   6614.631     FROM MIGRAD    STATUS=CONVERGED    425 CALLS     2029 TOTAL
                     EDM=   .99E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.0325        1.8181       -.16888E-07   -.70803E-05
   2  Prefactor     .10000E-03    45.082       -.77666E-06** at limit **
   3  Prefactor     .10000E-03    7.3804       -.19649E-06** at limit **
   4  norm          .10000E-03    14.994       -.81301E-06** at limit **
   5  Prefactor     .10000E-03    14.292        .50129E-06** at limit **
   6  norm          .10000E-03    1.8160       -.47575E-07** at limit **
   7  norm          .10000E-03    2.6210        .71563E-08** at limit **
   8  norm          .10000E-03    28.369        .12359E-07** at limit **
   9  norm          6.8409        1.8207        .20402E-06   -.11739E-02
  10  Prefactor     .10000E-03    1.4552        .17822E-05** at limit **
  11  Prefactor     23.304        27.922        .40619E-06   -.53041E-04
  12  Prefactor     30.340        44.868       -.34432E-05   -.15584E-03
  13  Prefactor     4.1884        8.6544       -.33879E-07    .83612E-04
  14  Prefactor     .10000E-03    21.638        .28530E-06** at limit **
  15  norm          5.9325        3.0075        .89145E-07   -.13032E-03
  16  Prefactor     9.3925        6.7178        .23685E-08   -.14307E-05
  17  norm          1.9461        2.0519       -.64036E-08   -.50660E-05
  18  Prefactor     29.363        37.604       -.25632E-06    .24935E-05
  19  Normalizat    1.4299        .22579        .47915E-07   -.73248E-04
  20  Prefactor     .87878        .11476        .52516E-06   -.14416E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 3.03254
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 6.84088
  Prefactor  = 0.0001
  Prefactor  = 23.3044
  Prefactor  = 30.3399
  Prefactor  = 4.18836
  Prefactor  = 0.0001
  norm       = 5.9325
  Prefactor  = 9.39245
  norm       = 1.94612
  Prefactor  = 29.3626
  Normalizat = 1.42994
  Prefactor  = 0.878783
 **********
 **   18 **HESSE 
 **********

 FCN=   6614.631     FROM HESSE     STATUS=OK           289 CALLS     2318 TOTAL
                     EDM=   .22E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.0325        1.8202        .82314E-04   -1.5360    
   2  Prefactor     .10000E-03    45.401        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    7.4728        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    15.200        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    14.282        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    1.8275        .10702E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    2.6242        .12859E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    28.810        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          6.8409        1.7980        .51267E-04   -1.5185    
  10  Prefactor     .10000E-03    1.4815        .15188E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     23.304        27.879        .82974E-04   -1.4742    
  12  Prefactor     30.340        47.286        .72820E-04   -1.4606    
  13  Prefactor     4.1884        9.0461        .98452E-03   -1.5299    
  14  Prefactor     .10000E-03    21.724        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          5.9325        3.0056        .95061E-04   -1.5221    
  16  Prefactor     9.3925        6.7202        .13076E-03   -1.5095    
  17  norm          1.9461        2.0350        .11151E-03   -1.5429    
  18  Prefactor     29.363        37.411        .73941E-04   -1.4624    
  19  Normalizat    1.4299        .25556        .31894E-03   -.79767    
  20  Prefactor     .87878        .12941        .20322E-03   -.96886    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.23943e-10
Minuit parameter uncertainties:
  1  1.82021
  2  4.05267e-05
  3  1.824e-05
  4  3.25084e-06
  5  2.36226e-05
  6  5.04472e-06
  7  8.15778e-07
  8  7.93178e-05
  9  1.79799
  10  7.46209e-06
  11  27.8949
  12  47.3442
  13  9.04906
  14  4.03459e-05
  15  3.00572
  16  6.72076
  17  2.0351
  18  37.4408
  19  0.255792
  20  0.12946
Done.

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

Extracting fit parameters...

4FGL J0422.1-0644
   Spectrum: LogParabola
227         norm:  1.000e-04  8.158e-07  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:  8.788e-01  1.295e-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.430e+00  2.558e-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: 6.16e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.82e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/394399/likelihoodResults_283392001_283651201_4FGL_J0422.1-0644_daily_bin170.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) = 6614.63237929
delta logL = -0.00178903889173

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6614.63059013
delta logL = 1.22885467135e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4318       1.0000          .0000       5.0000    
     3 'Normalizat'    1.4300       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87878       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=   6614.631     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      232 TOTAL
                     EDM=   .49E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    128.10        .12951E-01** at limit **
   2  alpha         1.9869        3.4915        .16468        .28718E-07
   3  Normalizat    1.4299        .42982E-01    .31894E-03    .84620E-04
   4  Prefactor     .87878        .22243E-01    .20322E-03    .16093E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.98689
  Normalizat = 1.42994
  Prefactor  = 0.878783
 **********
 **   18 **HESSE 
 **********

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

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    3.0089        .13747E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.9869        3.3305        .65874E-02   -.20671    
   3  Normalizat    1.4299        .24893        .12758E-04   -.79767    
   4  Prefactor     .87878        .12889        .40644E-04   -.96886    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.45011e-11
Minuit parameter uncertainties:
  1  6.1847e-06
  2  204.457
  3  0.249144
  4  0.128933
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/394399': 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) = 6614.63058785
delta logL = 2.39449127548e-06

Extracting fit parameters...

4FGL J0422.1-0644
   Spectrum: LogParabola
227         norm:  1.000e-04  6.185e-06  1.000e-04  1.000e+04 ( 1.000e-12)
228        alpha:  1.987e+00  2.045e+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:  8.788e-01  1.289e-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.430e+00  2.491e-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 -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/394399/cmap_HighResolution_283392001_283651201_4FGL_J0422.1-0644_daily_bin170.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.82e-05', job_status='DONE', photon_flux_upper_limit='6.16e-08', time_completed='2021-08-20 12:53:22.314376', job_id='394399', GAL2='0.88', fit_tolerance='1e-08', EG2='1.43', EG='1.43', time_epoch_completed='1629489202.31', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.88', dlogl='2.39e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.45' WHERE bin_id='170' AND source_name='4FGL J0422.1-0644' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 12:53:22 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0254>
Subject: Job 394399: <4FGL_J0422.1-0644_daily_bin170> in cluster <slac> Done

Job <4FGL_J0422.1-0644_daily_bin170> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Fri Aug 20 12:40:41 2021
Job was executed on host(s) <bullet0254>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 20 12:40:42 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:42 2021
Terminated at Fri Aug 20 12:53:23 2021
Results reported at Fri Aug 20 12:53:23 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0422.1-0644_daily_bin170 65.5343 -6.741 283392001 283651201 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 :                                   646.16 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             298.87 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   760 sec.
    Turnaround time :                            762 sec.

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

