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


Performing analysis on: 4FGL_J0422.1-0644_daily_bin71
RA = 65.5343, Dec = -6.741
tmin = 257731201, tmax = 257990401
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='394256', job_status='RUN', time_executed='2021-08-20 12:44:02.728037', time_epoch_executed='1629488642.73' WHERE source_name='4FGL J0422.1-0644' and cadence='daily' and bin_id='71'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/394256

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/394256/ft1_4FGL_J0422.1-0644_daily_bin71.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/394256/ft2_4FGL_J0422.1-0644_daily_bin71.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/394256/ft1_4FGL_J0422.1-0644_daily_bin71.fits outfile=/scratch/kocevski/394256/ft1_filteredMKT_4FGL_J0422.1-0644_daily_bin71.fits ra=65.5343 dec=-6.741 rad=12.0 tmin=257731201.0 tmax=257990401.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 1.46
user 1.22
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/394256/ft1_filtered_4FGL_J0422.1-0644_daily_bin71.fits" evtable="EVENTS" scfile=/scratch/kocevski/394256/ft2_4FGL_J0422.1-0644_daily_bin71.fits sctable="SC_DATA" outfile=/scratch/kocevski/394256/ltcube_257731201_257990401_4FGL_J0422.1-0644_daily_bin71.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/394256/ft2_4FGL_J0422.1-0644_daily_bin71.fits
.....................!
real 12.55
user 12.16
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/394256/ft1_filtered_4FGL_J0422.1-0644_daily_bin71.fits evtable="EVENTS" scfile=/scratch/kocevski/394256/ft2_4FGL_J0422.1-0644_daily_bin71.fits sctable="SC_DATA" expcube=/scratch/kocevski/394256/ltcube_257731201_257990401_4FGL_J0422.1-0644_daily_bin71.fits outfile=/scratch/kocevski/394256/expmap_257731201_257990401_4FGL_J0422.1-0644_daily_bin71.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/394256/ltcube_257731201_257990401_4FGL_J0422.1-0644_daily_bin71.fits
.....................!
real 189.70
user 185.08
sys 4.30

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/394256/ft1_filtered_4FGL_J0422.1-0644_daily_bin71.fits scfile=/scratch/kocevski/394256/ft2_4FGL_J0422.1-0644_daily_bin71.fits outfile=/scratch/kocevski/394256/cmap_257731201_257990401_4FGL_J0422.1-0644_daily_bin71.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 0.59
user 0.36
sys 0.22

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/394256/ft1_filtered_4FGL_J0422.1-0644_daily_bin71.fits scfile=/scratch/kocevski/394256/ft2_4FGL_J0422.1-0644_daily_bin71.fits outfile=/scratch/kocevski/394256/cmap_HighResolution_257731201_257990401_4FGL_J0422.1-0644_daily_bin71.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 0.61
user 0.37
sys 0.22

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/394256/ft1_filtered_4FGL_J0422.1-0644_daily_bin71.fits evtable="EVENTS" scfile=/scratch/kocevski/394256/ft2_4FGL_J0422.1-0644_daily_bin71.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/394256/Model_4FGL_J0422.1-0644_daily_bin71.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/394256/ft1_filtered_4FGL_J0422.1-0644_daily_bin71.fits.....................!
real 132.79
user 131.26
sys 1.29

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .12843       1.0000         .10000E-03   10000.    
     2 'Prefactor '    15.854       1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.5636       1.0000         .10000E-03   10000.    
     4 'norm      '    19.779       1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.9922       1.0000         .10000E-03   10000.    
     6 'norm      '    .11063E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10116E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    1.7442       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    21.559       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    13.020       1.0000         .10000E-03   10000.    
    15 'norm      '    3.4959       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    37.285       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.1001       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .88601       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=   10164.40     FROM MIGRAD    STATUS=CONVERGED    416 CALLS     2074 TOTAL
                     EDM=   .36E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .12833        .65587        .10522E-05   -.10102E-02
   2  Prefactor     15.855        20.302        .16343E-06    .17358E-04
   3  Prefactor     2.5640        5.9723        .64079E-06   -.15041E-03
   4  norm          19.780        12.614        .71316E-07    .39009E-04
   5  Prefactor     4.9906        13.480        .22384E-07   -.32107E-04
   6  norm          .10000E-03    1.4151        .42198E-07** at limit **
   7  norm          .10000E-03    3.1063        .78931E-07** at limit **
   8  norm          .10000E-03    7.4139       -.16622E-07** at limit **
   9  norm          1.7446        .81230        .19083E-07   -.99739E-04
  10  Prefactor     .10000E-03    .50274       -.54569E-07** at limit **
  11  Prefactor     21.550        19.961       -.25771E-05   -.46957E-03
  12  Prefactor     .10000E-03    20.156        .23960E-07** at limit **
  13  Prefactor     .10000E-03    4.4895        .95169E-07** at limit **
  14  Prefactor     13.021        16.820        .19104E-06    .36116E-05
  15  norm          3.4963        1.9839        .88844E-07   -.17589E-03
  16  Prefactor     .10000E-03    1.5899       -.45460E-07** at limit **
  17  norm          .10000E-03    .47427        .39785E-07** at limit **
  18  Prefactor     37.287        22.927        .38953E-06    .87053E-04
  19  Normalizat    1.1001        .15259       -.83543E-06   -.49601E-04
  20  Prefactor     .88604        .80024E-01    .32852E-06   -.18439E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.128328
  Prefactor  = 15.8545
  Prefactor  = 2.56402
  norm       = 19.7798
  Prefactor  = 4.99055
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 1.74457
  Prefactor  = 0.0001
  Prefactor  = 21.5502
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.0207
  norm       = 3.49629
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 37.2867
  Normalizat = 1.1001
  Prefactor  = 0.886045
 **********
 **   18 **HESSE 
 **********

 FCN=   10164.40     FROM HESSE     STATUS=OK           295 CALLS     2369 TOTAL
                     EDM=   .93E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .12833        .75336        .17213E-03   -1.5636    
   2  Prefactor     15.855        20.310        .10059E-03   -1.4911    
   3  Prefactor     2.5640        6.0265        .25496E-03   -1.5388    
   4  norm          19.780        12.616        .90059E-04   -1.4818    
   5  Prefactor     4.9906        13.473        .17999E-03   -1.5261    
   6  norm          .10000E-03    3.7242        .23114E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    3.1346        .17350E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    7.4376        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          1.7446        .79704        .58536E-04   -1.5444    
  10  Prefactor     .10000E-03    1.4122        .13731E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     21.550        21.775        .86264E-04   -1.4779    
  12  Prefactor     .10000E-03    20.220        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    4.5635        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     13.021        16.847        .11101E-03   -1.4986    
  15  norm          3.4963        1.9814        .10104E-03   -1.5334    
  16  Prefactor     .10000E-03    1.5951        .12416E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    .48514        .13542E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     37.287        22.942        .65636E-04   -1.4486    
  19  Normalizat    1.1001        .17114        .29516E-03   -.89749    
  20  Prefactor     .88604        .89866E-01    .17720E-03   -.96630    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.30395e-10
Minuit parameter uncertainties:
  1  0.621628
  2  20.3183
  3  6.02793
  4  12.618
  5  13.4816
  6  9.23797e-06
  7  4.66487e-06
  8  2.85247e-05
  9  0.797049
  10  2.73464e-05
  11  21.7828
  12  2.87111e-05
  13  8.95526e-06
  14  16.8527
  15  1.98142
  16  2.4018e-06
  17  1.5282e-07
  18  22.9476
  19  0.171231
  20  0.0898812
Done.

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

Extracting fit parameters...

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

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

EG_v02
   Spectrum: FileFunction
464   Normalization:  1.100e+00  1.712e-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.12e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.52e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/394256/likelihoodResults_257731201_257990401_4FGL_J0422.1-0644_daily_bin71.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) = 10164.405937
delta logL = -0.00152024265299

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10164.4044168
delta logL = -6.46214175504e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4470       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1001       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88603       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   10164.40     FROM MIGRAD    STATUS=FAILED        84 CALLS      230 TOTAL
                     EDM=   .52E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10006E-03    739.55        .17352E-02** at limit **
   2  alpha         2.4781        3.6649        .16465       -.15667E-05
   3  Normalizat    1.1001        .13754        .29516E-03   -.48377E-04
   4  Prefactor     .88604        .75363E-01    .17720E-03   -.45168E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   10164.40     FROM SIMPLEX   STATUS=UNCHANGED    171 CALLS      401 TOTAL
                     EDM=   .91E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10006E-03    739.55        .27752E-03** at limit **
   2  alpha         2.4781        3.6649        .10789E-04   -.15667E-05
   3  Normalizat    1.1001        .13754        .49032E-06   -.48377E-04
   4  Prefactor     .88604        .75363E-01    .26733E-06   -.45168E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   10164.40     FROM MIGRAD    STATUS=CONVERGED     31 CALLS      432 TOTAL
                     EDM=   .81E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    3.1441        .34704E-03** at limit **
   2  alpha         2.5140        3.7191        .65861E-02   -.55237E-08
   3  Normalizat    1.1001        .15990        .11807E-04    .23880E-04
   4  Prefactor     .88604        .87686E-01    .70879E-05    .28871E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.51401
  Normalizat = 1.1001
  Prefactor  = 0.886045
 **********
 **   18 **HESSE 
 **********

 FCN=   10164.40     FROM HESSE     STATUS=OK            23 CALLS      455 TOTAL
                     EDM=   .70E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    3.1438        .69408E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.5140        3.7552        .13172E-02    .56034E-02
   3  Normalizat    1.1001        .15963        .23613E-05   -.89749    
   4  Prefactor     .88604        .87530E-01    .14176E-05   -.96630    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.96729e-13
Minuit parameter uncertainties:
  1  3.2268e-07
  2  239.421
  3  0.159697
  4  0.087544
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/394256': 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) = 10164.4044167
delta logL = 4.13929228671e-08

Extracting fit parameters...

4FGL J0422.1-0644
   Spectrum: LogParabola
227         norm:  1.000e-04  3.227e-07  1.000e-04  1.000e+04 ( 1.000e-12)
228        alpha:  2.514e+00  2.394e+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.860e-01  8.754e-02  0.000e+00  1.000e+01 ( 1.000e+00)
466        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
467        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
464   Normalization:  1.100e+00  1.597e-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/394256/cmap_HighResolution_257731201_257990401_4FGL_J0422.1-0644_daily_bin71.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.52e-05', job_status='DONE', photon_flux_upper_limit='5.12e-08', time_completed='2021-08-20 12:56:29.702749', job_id='394256', GAL2='0.89', fit_tolerance='1e-08', EG2='1.10', EG='1.10', time_epoch_completed='1629489389.7', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.89', dlogl='4.14e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.45' WHERE bin_id='71' AND source_name='4FGL J0422.1-0644' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 12:56:29 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0204>
Subject: Job 394256: <4FGL_J0422.1-0644_daily_bin71> in cluster <slac> Done

Job <4FGL_J0422.1-0644_daily_bin71> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Fri Aug 20 12:40:32 2021
Job was executed on host(s) <bullet0204>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 20 12:40:33 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:33 2021
Terminated at Fri Aug 20 12:56:30 2021
Results reported at Fri Aug 20 12:56:30 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0422.1-0644_daily_bin71 65.5343 -6.741 257731201 257990401 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 :                                   746.22 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             304.77 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   957 sec.
    Turnaround time :                            958 sec.

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

