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


Performing analysis on: 4FGL_J0422.1-0644_daily_bin475
RA = 65.5343, Dec = -6.741
tmin = 362448001, tmax = 362707201
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='396017', job_status='RUN', time_executed='2021-08-20 12:48:16.923825', time_epoch_executed='1629488896.92' WHERE source_name='4FGL J0422.1-0644' and cadence='daily' and bin_id='475'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/396017

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

Retrieving the FT1 file...

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

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

Retrieving 49 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/396017/ft1_4FGL_J0422.1-0644_daily_bin475.fits


Retrieving the FT1 file...

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

Retrieving 49 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/396017/ft2_4FGL_J0422.1-0644_daily_bin475.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/396017/ft1_4FGL_J0422.1-0644_daily_bin475.fits outfile=/scratch/kocevski/396017/ft1_filteredMKT_4FGL_J0422.1-0644_daily_bin475.fits ra=65.5343 dec=-6.741 rad=12.0 tmin=362448001.0 tmax=362707201.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.13
user 5.34
sys 0.78

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/396017/ft1_filtered_4FGL_J0422.1-0644_daily_bin475.fits" evtable="EVENTS" scfile=/scratch/kocevski/396017/ft2_4FGL_J0422.1-0644_daily_bin475.fits sctable="SC_DATA" outfile=/scratch/kocevski/396017/ltcube_362448001_362707201_4FGL_J0422.1-0644_daily_bin475.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/396017/ft2_4FGL_J0422.1-0644_daily_bin475.fits
.....................!
real 11.84
user 10.93
sys 0.88

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/396017/ft1_filtered_4FGL_J0422.1-0644_daily_bin475.fits evtable="EVENTS" scfile=/scratch/kocevski/396017/ft2_4FGL_J0422.1-0644_daily_bin475.fits sctable="SC_DATA" expcube=/scratch/kocevski/396017/ltcube_362448001_362707201_4FGL_J0422.1-0644_daily_bin475.fits outfile=/scratch/kocevski/396017/expmap_362448001_362707201_4FGL_J0422.1-0644_daily_bin475.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/396017/ltcube_362448001_362707201_4FGL_J0422.1-0644_daily_bin475.fits
.....................!
real 191.79
user 185.73
sys 5.73

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/396017/ft1_filtered_4FGL_J0422.1-0644_daily_bin475.fits scfile=/scratch/kocevski/396017/ft2_4FGL_J0422.1-0644_daily_bin475.fits outfile=/scratch/kocevski/396017/cmap_362448001_362707201_4FGL_J0422.1-0644_daily_bin475.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.04
user 0.37
sys 0.65

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/396017/ft1_filtered_4FGL_J0422.1-0644_daily_bin475.fits scfile=/scratch/kocevski/396017/ft2_4FGL_J0422.1-0644_daily_bin475.fits outfile=/scratch/kocevski/396017/cmap_HighResolution_362448001_362707201_4FGL_J0422.1-0644_daily_bin475.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.05
user 0.37
sys 0.63

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/396017/ft1_filtered_4FGL_J0422.1-0644_daily_bin475.fits evtable="EVENTS" scfile=/scratch/kocevski/396017/ft2_4FGL_J0422.1-0644_daily_bin475.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/396017/Model_4FGL_J0422.1-0644_daily_bin475.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/396017/ft1_filtered_4FGL_J0422.1-0644_daily_bin475.fits.....................!
real 99.87
user 97.70
sys 1.90

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.7318       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10054E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    10.995       1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    23.522       1.0000         .10000E-03   10000.    
     6 'norm      '    .97834       1.0000         .10000E-03   10000.    
     7 'norm      '    12.754       1.0000         .10000E-03   10000.    
     8 'norm      '    6.9777       1.0000         .10000E-03   10000.    
     9 'norm      '    2.4726       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    55.349       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.2472       1.0000         .10000E-03   10000.    
    15 'norm      '    8.2032       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    5.6574       1.0000         .10000E-03   10000.    
    18 'Prefactor '    14.222       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.0587       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .95481       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=   6755.343     FROM MIGRAD    STATUS=CONVERGED    411 CALLS     2033 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.7320        2.8247        .38663E-02   -.73198E-03
   2  Prefactor     .10000E-03    39.524        .90712E-02** at limit **
   3  Prefactor     10.995        9.0987        .30206E-02    .73545E-03
   4  norm          .10000E-03    5.3698        .90712E-02** at limit **
   5  Prefactor     23.521        18.843        .20648E-02    .22002E-04
   6  norm          .97336        5.2572        .53662E-01    .85133E-03
   7  norm          12.756        10.480        .28041E-02   -.76152E-03
   8  norm          6.9767        21.573        .37968E-02    .10003E-03
   9  norm          2.4727        1.5270        .65007E-02    .10145E-02
  10  Prefactor     .10000E-03    .94490        .90712E-02** at limit **
  11  Prefactor     55.349        36.666        .13479E-02   -.20436E-03
  12  Prefactor     .10000E-03    29.473        .90712E-02** at limit **
  13  Prefactor     .10000E-03    7.6233        .90712E-02** at limit **
  14  Prefactor     5.2492        17.461        .43868E-02   -.16944E-03
  15  norm          8.2036        2.9395        .34995E-02    .34121E-02
  16  Prefactor     .10000E-03    1.6222        .90712E-02** at limit **
  17  norm          5.6579        2.8122        .42221E-02    .57600E-02
  18  Prefactor     14.224        31.160        .26552E-02   -.49349E-03
  19  Normalizat    1.0585        .21852        .77762E-01    .45702E-04
  20  Prefactor     .95490        .10930        .45700E-01   -.12703E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 6.73202
  Prefactor  = 0.000100003
  Prefactor  = 10.995
  norm       = 0.0001
  Prefactor  = 23.5215
  norm       = 0.973362
  norm       = 12.7563
  norm       = 6.97666
  norm       = 2.47274
  Prefactor  = 0.0001
  Prefactor  = 55.3492
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.24916
  norm       = 8.20365
  Prefactor  = 0.0001
  norm       = 5.6579
  Prefactor  = 14.2235
  Normalizat = 1.05845
  Prefactor  = 0.954902
 **********
 **   18 **HESSE 
 **********

 FCN=   6755.343     FROM HESSE     STATUS=OK           289 CALLS     2322 TOTAL
                     EDM=   .95E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.7320        2.8258        .85706E-04   -1.5189    
   2  Prefactor     .10000E-03    39.828        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     10.995        9.1475        .12082E-03   -1.5045    
   4  norm          .10000E-03    5.3700        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     23.521        18.841        .82591E-04   -1.4738    
   6  norm          .97336        9.5046        .32058E-02   -1.5511    
   7  norm          12.756        10.484        .11216E-03   -1.4993    
   8  norm          6.9767        21.527        .15187E-03   -1.5180    
   9  norm          2.4727        1.4808        .68531E-04   -1.5393    
  10  Prefactor     .10000E-03    .97419        .15534E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     55.349        36.625        .53917E-04   -1.4219    
  12  Prefactor     .10000E-03    29.501        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    7.6941        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     5.2492        17.462        .17547E-03   -1.5250    
  15  norm          8.2036        2.9390        .80598E-04   -1.5135    
  16  Prefactor     .10000E-03    1.6226        .10224E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          5.6579        2.8085        .91661E-04   -1.5232    
  18  Prefactor     14.224        31.144        .10621E-03   -1.4954    
  19  Normalizat    1.0585        .24422        .34419E-03   -.91097    
  20  Prefactor     .95490        .12266        .19005E-03   -.94248    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.48293e-09
Minuit parameter uncertainties:
  1  2.82588
  2  0.000715472
  3  9.14865
  4  3.4245e-06
  5  18.8458
  6  6.08419
  7  10.4856
  8  21.551
  9  1.48084
  10  1.8857e-06
  11  36.6403
  12  3.88075e-05
  13  4.09242e-05
  14  17.4793
  15  2.93902
  16  2.42332e-06
  17  2.80857
  18  31.1794
  19  0.244484
  20  0.122696
Done.

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

Extracting fit parameters...

4FGL J0422.1-0644
   Spectrum: LogParabola
227         norm:  1.276e+01  1.049e+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:  9.549e-01  1.227e-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.058e+00  2.445e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.38
Ra Dec: 65.534 -6.741
Photon Index (Fixed Index): 2.45 +/- 0.00
Photon Flux (Fixed Index): 5.63e-08 +/- 4.63e-08
Energy Flux (Fixed Index): 1.67e-05 +/- 1.37e-05

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

Saving results to:
/scratch/kocevski/396017/likelihoodResults_362448001_362707201_4FGL_J0422.1-0644_daily_bin475.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) = 6755.34189421
delta logL = 0.00136669767744

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6755.34100504
delta logL = 0.00225586520992

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    12.628       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.5874       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0478       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95806       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=   6755.341     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      264 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          12.628        11.641        .11272E-03   -.14301E-03
   2  alpha         2.5844        1.9725        .27413E-01    .10867E-03
   3  Normalizat    1.0478        .29037        .34572E-03   -.25880E-04
   4  Prefactor     .95817        .13298        .18977E-03    .83631E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 12.6285
  alpha      = 2.5844
  Normalizat = 1.04781
  Prefactor  = 0.958167
 **********
 **   18 **HESSE 
 **********

 FCN=   6755.341     FROM HESSE     STATUS=OK            25 CALLS      289 TOTAL
                     EDM=   .41E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          12.628        10.899        .45089E-05   -1.4997    
   2  alpha         2.5844        1.8635        .54827E-02    .33768E-01
   3  Normalizat    1.0478        .28279        .13829E-04   -.91446    
   4  Prefactor     .95817        .13117        .37954E-04   -.94137    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.10494e-11
Minuit parameter uncertainties:
  1  10.9005
  2  2.10321
  3  0.283194
  4  0.131209
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/396017': 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) = 6755.34100257
delta logL = 0.00225833337299

Extracting fit parameters...

4FGL J0422.1-0644
   Spectrum: LogParabola
227         norm:  1.263e+01  1.090e+01  1.000e-04  1.000e+04 ( 1.000e-12)
228        alpha:  2.584e+00  2.103e+00  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.582e-01  1.312e-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.048e+00  2.832e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.39
Ra Dec: 65.534 -6.741
Photon Index (Free Index): 2.58 +/- 2.10
Photon Flux (Free Index): 6.46e-08 +/- 1.35e-07
Energy Flux (Free Index): 1.70e-05 +/- 1.46e-05

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/396017/cmap_HighResolution_362448001_362707201_4FGL_J0422.1-0644_daily_bin475.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.79e-05', comment='SUCCESS', photon_flux='5.63e-08', energy_flux2='1.70e-05', photon_flux_error='4.63e-08', dlogl='2.26e-03', energy_flux='1.67e-05', photon_flux2='6.46e-08', job_status='DONE', time_completed='2021-08-20 12:58:36.244190', photon_index_error2='2.10', photon_index2='2.58', ts='3.38', fit_tolerance='1e-08', GAL='0.95', photon_index_error='0.00', photon_flux_upper_limit='1.62e-07', energy_flux_error2='1.46e-05', EG='1.06', time_epoch_completed='1629489516.24', return_code='0', job_id='396017', GAL2='0.96', EG2='1.05', return_code2='0', energy_flux_error='1.37e-05', photon_flux_error2='1.35e-07', ts2='3.39', photon_index='2.45' WHERE bin_id='475' AND source_name='4FGL J0422.1-0644' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 12:58:36 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0041>
Subject: Job 396017: <4FGL_J0422.1-0644_daily_bin475> in cluster <slac> Done

Job <4FGL_J0422.1-0644_daily_bin475> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Fri Aug 20 12:45:43 2021
Job was executed on host(s) <bullet0041>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 20 12:45:45 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:45:45 2021
Terminated at Fri Aug 20 12:58:36 2021
Results reported at Fri Aug 20 12:58:36 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0422.1-0644_daily_bin475 65.5343 -6.741 362448001 362707201 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 :                                   625.03 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             308.70 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   771 sec.
    Turnaround time :                            773 sec.

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

