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


Performing analysis on: 4FGL_J0422.1-0644_daily_bin501
RA = 65.5343, Dec = -6.741
tmin = 369187201, tmax = 369446401
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='397250', job_status='RUN', time_executed='2021-08-20 12:52:56.432555', time_epoch_executed='1629489176.43' WHERE source_name='4FGL J0422.1-0644' and cadence='daily' and bin_id='501'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/397250

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/397250/ft1_4FGL_J0422.1-0644_daily_bin501.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/397250/ft2_4FGL_J0422.1-0644_daily_bin501.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/397250/ft1_4FGL_J0422.1-0644_daily_bin501.fits outfile=/scratch/kocevski/397250/ft1_filteredMKT_4FGL_J0422.1-0644_daily_bin501.fits ra=65.5343 dec=-6.741 rad=12.0 tmin=369187201.0 tmax=369446401.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 11.18
user 3.23
sys 7.83

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/397250/ft1_filtered_4FGL_J0422.1-0644_daily_bin501.fits" evtable="EVENTS" scfile=/scratch/kocevski/397250/ft2_4FGL_J0422.1-0644_daily_bin501.fits sctable="SC_DATA" outfile=/scratch/kocevski/397250/ltcube_369187201_369446401_4FGL_J0422.1-0644_daily_bin501.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/397250/ft2_4FGL_J0422.1-0644_daily_bin501.fits
.....................!
real 21.49
user 12.12
sys 9.25

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/397250/ft1_filtered_4FGL_J0422.1-0644_daily_bin501.fits evtable="EVENTS" scfile=/scratch/kocevski/397250/ft2_4FGL_J0422.1-0644_daily_bin501.fits sctable="SC_DATA" expcube=/scratch/kocevski/397250/ltcube_369187201_369446401_4FGL_J0422.1-0644_daily_bin501.fits outfile=/scratch/kocevski/397250/expmap_369187201_369446401_4FGL_J0422.1-0644_daily_bin501.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/397250/ltcube_369187201_369446401_4FGL_J0422.1-0644_daily_bin501.fits
.....................!
real 203.32
user 187.54
sys 14.54

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/397250/ft1_filtered_4FGL_J0422.1-0644_daily_bin501.fits scfile=/scratch/kocevski/397250/ft2_4FGL_J0422.1-0644_daily_bin501.fits outfile=/scratch/kocevski/397250/cmap_369187201_369446401_4FGL_J0422.1-0644_daily_bin501.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 8.22
user 0.38
sys 7.76

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/397250/ft1_filtered_4FGL_J0422.1-0644_daily_bin501.fits scfile=/scratch/kocevski/397250/ft2_4FGL_J0422.1-0644_daily_bin501.fits outfile=/scratch/kocevski/397250/cmap_HighResolution_369187201_369446401_4FGL_J0422.1-0644_daily_bin501.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 8.40
user 0.39
sys 7.87

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/397250/ft1_filtered_4FGL_J0422.1-0644_daily_bin501.fits evtable="EVENTS" scfile=/scratch/kocevski/397250/ft2_4FGL_J0422.1-0644_daily_bin501.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/397250/Model_4FGL_J0422.1-0644_daily_bin501.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/397250/ft1_filtered_4FGL_J0422.1-0644_daily_bin501.fits.....................!
real 128.40
user 116.23
sys 11.59

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.6894       1.0000         .10000E-03   10000.    
     2 'Prefactor '    7.7660       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10091E-03   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      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    2.1464       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .57383       1.0000         .10000E-03   10000.    
    11 'Prefactor '    17.518       1.0000         .10000E-03   10000.    
    12 'Prefactor '    15.010       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.4449       1.0000         .10000E-03   10000.    
    15 'norm      '    .62250       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .98317       1.0000         .10000E-03   10000.    
    17 'norm      '    11.435       1.0000         .10000E-03   10000.    
    18 'Prefactor '    4.9934       1.0000         .10000E-03   10000.    
    19 'Normalizat'    .96351       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0111       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=   8732.805     FROM MIGRAD    STATUS=CONVERGED    394 CALLS     2056 TOTAL
                     EDM=   .13E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.6894        1.6165        .47534E-07   -.71718E-04
   2  Prefactor     7.7613        20.256       -.14392E-05   -.13496E-03
   3  Prefactor     .10000E-03    8.9785       -.21682E-06** at limit **
   4  norm          .10000E-03    4.0981        .26569E-06** at limit **
   5  Prefactor     .10000E-03    4.8566       -.43526E-06** at limit **
   6  norm          .10000E-03    1.1636        .14118E-07** at limit **
   7  norm          .10000E-03    2.5669        .24111E-07** at limit **
   8  norm          .10000E-03    4.9008       -.41968E-06** at limit **
   9  norm          2.1463        .91188       -.43783E-09   -.22025E-03
  10  Prefactor     .57391        .91124        .14870E-07   -.80512E-04
  11  Prefactor     17.516        23.218       -.48210E-06   -.78773E-04
  12  Prefactor     15.009        20.047       -.47577E-06   -.74560E-04
  13  Prefactor     .10000E-03    5.4640        .71374E-06** at limit **
  14  Prefactor     5.4442        11.556       -.79314E-07   -.59936E-04
  15  norm          .62269        1.8142        .94199E-06   -.32062E-03
  16  Prefactor     .98368        2.8500        .10577E-05   -.10340E-04
  17  norm          11.435        2.7142       -.33822E-07   -.15510E-03
  18  Prefactor     4.9934        16.958        .22928E-06   -.11962E-04
  19  Normalizat    .96362        .16658        .14324E-07   -.11437E-03
  20  Prefactor     1.0110        .92002E-01   -.21773E-06   -.97503E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.68943
  Prefactor  = 7.76133
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 2.14628
  Prefactor  = 0.573905
  Prefactor  = 17.516
  Prefactor  = 15.0087
  Prefactor  = 0.0001
  Prefactor  = 5.44424
  norm       = 0.622693
  Prefactor  = 0.983682
  norm       = 11.4349
  Prefactor  = 4.9934
  Normalizat = 0.96362
  Prefactor  = 1.01103
 **********
 **   18 **HESSE 
 **********

 FCN=   8732.805     FROM HESSE     STATUS=OK           297 CALLS     2353 TOTAL
                     EDM=   .21E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.6894        1.6119        .89100E-04   -1.5380    
   2  Prefactor     7.7613        20.923        .14389E-03   -1.5151    
   3  Prefactor     .10000E-03    9.2596        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    4.1204        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    4.9146        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    1.1710        .98422E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    2.5795        .14620E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    4.9512        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          2.1463        .91040        .55503E-04   -1.5415    
  10  Prefactor     .57391        .91023        .46274E-04   -1.5556    
  11  Prefactor     17.516        23.350        .95693E-04   -1.4871    
  12  Prefactor     15.009        20.066        .10338E-03   -1.4933    
  13  Prefactor     .10000E-03    5.6483        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     5.4442        11.570        .17220E-03   -1.5241    
  15  norm          .62269        1.8423        .20474E-03   -1.5550    
  16  Prefactor     .98368        2.8087        .27107E-02   -1.5510    
  17  norm          11.435        2.7113        .71763E-04   -1.5032    
  18  Prefactor     4.9934        16.944        .17996E-03   -1.5261    
  19  Normalizat    .96362        .18625        .32396E-03   -.94259    
  20  Prefactor     1.0110        .10346        .17678E-03   -.92363    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.08398e-08
Minuit parameter uncertainties:
  1  1.61194
  2  20.9423
  3  3.11776e-07
  4  2.42354e-05
  5  4.37499e-05
  6  6.69747e-08
  7  3.30916e-07
  8  4.01342e-05
  9  0.910406
  10  0.910252
  11  23.3623
  12  20.075
  13  6.63382e-05
  14  11.5752
  15  1.84245
  16  2.80912
  17  2.71128
  18  16.9606
  19  0.186372
  20  0.103477
Done.

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

Extracting fit parameters...

4FGL J0422.1-0644
   Spectrum: LogParabola
227         norm:  1.000e-04  3.309e-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:  1.011e+00  1.035e-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:  9.636e-01  1.864e-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: 5.06e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.50e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/397250/likelihoodResults_369187201_369446401_4FGL_J0422.1-0644_daily_bin501.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) = 8732.80692625
delta logL = -0.00184508300481

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8732.80508159
delta logL = -4.23351593781e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4481       1.0000          .0000       5.0000    
     3 'Normalizat'    .96359       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0110       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=   8732.797     FROM MIGRAD    STATUS=CONVERGED    175 CALLS      320 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .39585E-01    .23464        .14625E-01   -.36493E-02
   2  alpha         5.0000        4.9247        .16465    ** at limit **
   3  Normalizat    .95692        .18273        .32396E-03   -.24565E-05
   4  Prefactor     1.0131        .10209        .17678E-03    .87459E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0395851
  alpha      = 5
  Normalizat = 0.956923
  Prefactor  = 1.01315
 **********
 **   18 **HESSE 
 **********

 FCN=   8732.797     FROM HESSE     STATUS=OK            27 CALLS      347 TOTAL
                     EDM=   .85E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .39585E-01    .59673        .84008E-03   -1.5748    
   2  alpha         5.0000        4.9836        .32930E-01    7.8540    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .95692        .18717        .12958E-04   -.94488    
   4  Prefactor     1.0131        .10294        .70714E-05   -.92292    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.4808e-11
Minuit parameter uncertainties:
  1  0.307003
  2  5.04524e-06
  3  0.187299
  4  0.102963
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/397250': 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) = 8732.79658318
delta logL = 0.00849798534364

Extracting fit parameters...

4FGL J0422.1-0644
   Spectrum: LogParabola
227         norm:  3.959e-02  3.070e-01  1.000e-04  1.000e+04 ( 1.000e-12)
228        alpha:  5.000e+00  5.045e-06  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.013e+00  1.030e-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:  9.569e-01  1.873e-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/397250/cmap_HighResolution_369187201_369446401_4FGL_J0422.1-0644_daily_bin501.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.50e-05', job_status='DONE', photon_flux_upper_limit='5.06e-08', time_completed='2021-08-20 13:06:43.978707', job_id='397250', GAL2='1.01', fit_tolerance='1e-08', EG2='0.96', EG='0.96', time_epoch_completed='1629490003.98', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.01', dlogl='8.50e-03', ts2='0.02', photon_index_error='0.00', photon_index='2.45' WHERE bin_id='501' AND source_name='4FGL J0422.1-0644' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 13:06:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0124>
Subject: Job 397250: <4FGL_J0422.1-0644_daily_bin501> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0422.1-0644_daily_bin501 65.5343 -6.741 369187201 369446401 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 :                                   945.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             283.79 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   973 sec.
    Turnaround time :                            974 sec.

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

