/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 225 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 = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0422.1-0644_daily_bin697
RA = 65.5343, Dec = -6.741
tmin = 419990401, tmax = 420249601
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='397564', job_status='RUN', time_executed='2021-08-20 12:55:05.647804', time_epoch_executed='1629489305.65' WHERE source_name='4FGL J0422.1-0644' and cadence='daily' and bin_id='697'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/397564

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/397564/ft1_4FGL_J0422.1-0644_daily_bin697.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/397564/ft2_4FGL_J0422.1-0644_daily_bin697.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/397564/ft1_4FGL_J0422.1-0644_daily_bin697.fits outfile=/scratch/kocevski/397564/ft1_filteredMKT_4FGL_J0422.1-0644_daily_bin697.fits ra=65.5343 dec=-6.741 rad=12.0 tmin=419990401.0 tmax=420249601.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 4.26
user 3.18
sys 1.07

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/397564/ft1_filtered_4FGL_J0422.1-0644_daily_bin697.fits" evtable="EVENTS" scfile=/scratch/kocevski/397564/ft2_4FGL_J0422.1-0644_daily_bin697.fits sctable="SC_DATA" outfile=/scratch/kocevski/397564/ltcube_419990401_420249601_4FGL_J0422.1-0644_daily_bin697.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/397564/ft2_4FGL_J0422.1-0644_daily_bin697.fits
.....................!
real 12.77
user 11.40
sys 1.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/397564/ft1_filtered_4FGL_J0422.1-0644_daily_bin697.fits evtable="EVENTS" scfile=/scratch/kocevski/397564/ft2_4FGL_J0422.1-0644_daily_bin697.fits sctable="SC_DATA" expcube=/scratch/kocevski/397564/ltcube_419990401_420249601_4FGL_J0422.1-0644_daily_bin697.fits outfile=/scratch/kocevski/397564/expmap_419990401_420249601_4FGL_J0422.1-0644_daily_bin697.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/397564/ltcube_419990401_420249601_4FGL_J0422.1-0644_daily_bin697.fits
.....................!
real 192.53
user 186.07
sys 6.12

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/397564/ft1_filtered_4FGL_J0422.1-0644_daily_bin697.fits scfile=/scratch/kocevski/397564/ft2_4FGL_J0422.1-0644_daily_bin697.fits outfile=/scratch/kocevski/397564/cmap_419990401_420249601_4FGL_J0422.1-0644_daily_bin697.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.40
user 0.36
sys 1.02

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/397564/ft1_filtered_4FGL_J0422.1-0644_daily_bin697.fits scfile=/scratch/kocevski/397564/ft2_4FGL_J0422.1-0644_daily_bin697.fits outfile=/scratch/kocevski/397564/cmap_HighResolution_419990401_420249601_4FGL_J0422.1-0644_daily_bin697.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.41
user 0.37
sys 1.03

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/397564/ft1_filtered_4FGL_J0422.1-0644_daily_bin697.fits evtable="EVENTS" scfile=/scratch/kocevski/397564/ft2_4FGL_J0422.1-0644_daily_bin697.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/397564/Model_4FGL_J0422.1-0644_daily_bin697.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/397564/ft1_filtered_4FGL_J0422.1-0644_daily_bin697.fits.....................!
real 94.62
user 92.08
sys 2.38

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.9403       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    4.8861       1.0000         .10000E-03   10000.    
     4 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    11.691       1.0000         .10000E-03   10000.    
     6 'norm      '    .55115       1.0000         .10000E-03   10000.    
     7 'norm      '    32.850       1.0000         .10000E-03   10000.    
     8 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    3.2335       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10063E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    80.627       1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.1337       1.0000         .10000E-03   10000.    
    14 'Prefactor '    18.449       1.0000         .10000E-03   10000.    
    15 'norm      '    2.8154       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    7.7180       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .53329       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0785       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=   6739.005     FROM MIGRAD    STATUS=CONVERGED    415 CALLS     2182 TOTAL
                     EDM=   .39E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.9395        2.5167       -.13961E-06   -.19542E-03
   2  Prefactor     .10000E-03    8.3483        .56502E-06** at limit **
   3  Prefactor     4.8838        7.0823        .16915E-07   -.24587E-03
   4  norm          .10000E-03    5.9319        .44861E-06** at limit **
   5  Prefactor     11.682        24.297       -.68005E-05   -.14582E-04
   6  norm          .50830        3.5282       -.60594E-06   -.93480E-04
   7  norm          32.858        14.573       -.52003E-05   -.10194E-03
   8  norm          .10000E-03    6.1989       -.55117E-06** at limit **
   9  norm          3.2368        1.6434        .51075E-06   -.35534E-03
  10  Prefactor     .10000E-03    .75866        .44443E-06** at limit **
  11  Prefactor     .10000E-03    70.975       -.21469E-05** at limit **
  12  Prefactor     80.607        59.696       -.19087E-04   -.78556E-04
  13  Prefactor     3.1207        11.443        .13939E-04   -.52878E-04
  14  Prefactor     18.444        18.999       -.98549E-06   -.64898E-05
  15  norm          2.8155        2.1737        .48665E-06   -.22846E-03
  16  Prefactor     .10000E-03    1.9566       -.16737E-08** at limit **
  17  norm          7.7178        2.7481       -.15650E-06   -.11877E-03
  18  Prefactor     .10000E-03    10.927       -.94964E-06** at limit **
  19  Normalizat    .53327        .22804        .24106E-05   -.28151E-04
  20  Prefactor     1.0786        .11414        .76160E-06   -.90932E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 4.93954
  Prefactor  = 0.0001
  Prefactor  = 4.8838
  norm       = 0.0001
  Prefactor  = 11.6821
  norm       = 0.508299
  norm       = 32.8584
  norm       = 0.0001
  norm       = 3.23676
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 80.6068
  Prefactor  = 3.1207
  Prefactor  = 18.4444
  norm       = 2.81554
  Prefactor  = 0.0001
  norm       = 7.71778
  Prefactor  = 0.0001
  Normalizat = 0.533269
  Prefactor  = 1.07863
 **********
 **   18 **HESSE 
 **********

 FCN=   6739.005     FROM HESSE     STATUS=OK           297 CALLS     2479 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.9395        2.5139        .88627E-04   -1.5263    
   2  Prefactor     .10000E-03    8.3521        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     4.8838        7.0937        .18197E-03   -1.5266    
   4  norm          .10000E-03    5.9334        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     11.682        24.340        .11716E-03   -1.5024    
   6  norm          .50830        19.236        .26875E-02   -1.5565    
   7  norm          32.858        14.503        .69913E-04   -1.4561    
   8  norm          .10000E-03    6.1994        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          3.2368        1.6768        .62704E-04   -1.5348    
  10  Prefactor     .10000E-03    .78337        .69884E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    71.942        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     80.607        59.789        .44729E-04   -1.3910    
  13  Prefactor     3.1207        11.220        .22901E-03   -1.5355    
  14  Prefactor     18.444        18.997        .93246E-04   -1.4849    
  15  norm          2.8155        2.1619        .99562E-04   -1.5372    
  16  Prefactor     .10000E-03    1.9583        .11214E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          7.7178        2.7454        .78055E-04   -1.5152    
  18  Prefactor     .10000E-03    10.938        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .53327        .24133        .43031E-03   -1.1090    
  20  Prefactor     1.0786        .12335        .16941E-03   -.90152    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.88932e-08
Minuit parameter uncertainties:
  1  2.51393
  2  5.87457e-06
  3  7.09494
  4  1.09694e-06
  5  24.3611
  6  6.25538
  7  14.5042
  8  2.80084e-05
  9  1.67685
  10  3.93326e-05
  11  0.000512858
  12  59.834
  13  11.2275
  14  19.003
  15  2.16193
  16  1.13065e-06
  17  2.7454
  18  4.81197e-06
  19  0.241805
  20  0.123379
Done.

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

Extracting fit parameters...

4FGL J0422.1-0644
   Spectrum: LogParabola
227         norm:  3.286e+01  1.450e+01  1.000e-04  1.000e+04 ( 1.000e-12)
228        alpha:  2.445e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
229         beta:  8.202e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
230           Eb:  5.764e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
465    Prefactor:  1.079e+00  1.234e-01  0.000e+00  1.000e+01 ( 1.000e+00)
466        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
467        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
464   Normalization:  5.333e-01  2.418e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 8.74
Ra Dec: 65.534 -6.741
Photon Index (Fixed Index): 2.45 +/- 0.00
Photon Flux (Fixed Index): 1.45e-07 +/- 6.40e-08
Energy Flux (Fixed Index): 4.30e-05 +/- 1.90e-05

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) = 6738.75445998
delta logL = 0.250047039352

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6738.75383572
delta logL = 0.250671291556

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    26.583       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.8067       1.0000          .0000       5.0000    
     3 'Normalizat'    .49629       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0929       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=   6738.754     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      303 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          26.576        17.112        .77699E-04    .40091E-04
   2  alpha         2.8062        .57592        .10645E-01    .20994E-03
   3  Normalizat    .49678        .22727        .44477E-03   -.21318E-04
   4  Prefactor     1.0927        .12180        .16846E-03    .72546E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 26.5757
  alpha      = 2.80623
  Normalizat = 0.496777
  Prefactor  = 1.0927
 **********
 **   18 **HESSE 
 **********

 FCN=   6738.754     FROM HESSE     STATUS=OK            25 CALLS      328 TOTAL
                     EDM=   .25E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          26.576        16.325        .31080E-05   -1.4676    
   2  alpha         2.8062        .54943        .21290E-02    .12280    
   3  Normalizat    .49678        .22715        .17791E-04   -1.1256    
   4  Prefactor     1.0927        .12169        .67385E-05   -.89700    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.51191e-11
Minuit parameter uncertainties:
  1  16.3278
  2  0.554025
  3  0.227571
  4  0.121719
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/397564': 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) = 6738.75383247
delta logL = 0.250674541201

Extracting fit parameters...

4FGL J0422.1-0644
   Spectrum: LogParabola
227         norm:  2.658e+01  1.633e+01  1.000e-04  1.000e+04 ( 1.000e-12)
228        alpha:  2.806e+00  5.540e-01  0.000e+00  5.000e+00 ( 1.000e+00)
229         beta:  8.202e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
230           Eb:  5.764e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
465    Prefactor:  1.093e+00  1.217e-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:  4.968e-01  2.276e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.40
Ra Dec: 65.534 -6.741
Photon Index (Free Index): 2.81 +/- 0.55
Photon Flux (Free Index): 1.75e-07 +/- 7.98e-08
Energy Flux (Free Index): 3.96e-05 +/- 1.72e-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/397564/cmap_HighResolution_419990401_420249601_4FGL_J0422.1-0644_daily_bin697.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.45e-07', energy_flux2='3.96e-05', photon_flux_error='6.40e-08', dlogl='2.51e-01', energy_flux='4.30e-05', photon_flux2='1.75e-07', job_status='DONE', time_completed='2021-08-20 13:04:38.602614', photon_index_error2='0.55', photon_index2='2.81', ts='8.74', fit_tolerance='1e-08', GAL='1.08', photon_index_error='0.00', energy_flux_error2='1.72e-05', EG='0.53', time_epoch_completed='1629489878.6', return_code='0', job_id='397564', GAL2='1.09', EG2='0.50', return_code2='0', energy_flux_error='1.90e-05', photon_flux_error2='7.98e-08', ts2='9.40', photon_index='2.45' WHERE bin_id='697' AND source_name='4FGL J0422.1-0644' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 13:04:38 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0273>
Subject: Job 397564: <4FGL_J0422.1-0644_daily_bin697> in cluster <slac> Done

Job <4FGL_J0422.1-0644_daily_bin697> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Fri Aug 20 12:50:56 2021
Job was executed on host(s) <bullet0273>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 20 12:50:57 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:50:57 2021
Terminated at Fri Aug 20 13:04:39 2021
Results reported at Fri Aug 20 13:04:39 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0422.1-0644_daily_bin697 65.5343 -6.741 419990401 420249601 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 :                                   587.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             280.81 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   822 sec.
    Turnaround time :                            823 sec.

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

