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


Performing analysis on: 4FGL_J0422.1-0644_daily_bin244
RA = 65.5343, Dec = -6.741
tmin = 302572801, tmax = 302832001
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='394504', job_status='RUN', time_executed='2021-08-20 12:43:32.123705', time_epoch_executed='1629488612.12' WHERE source_name='4FGL J0422.1-0644' and cadence='daily' and bin_id='244'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/394504

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/394504/ft1_4FGL_J0422.1-0644_daily_bin244.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/394504/ft2_4FGL_J0422.1-0644_daily_bin244.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/394504/ft1_4FGL_J0422.1-0644_daily_bin244.fits outfile=/scratch/kocevski/394504/ft1_filteredMKT_4FGL_J0422.1-0644_daily_bin244.fits ra=65.5343 dec=-6.741 rad=12.0 tmin=302572801.0 tmax=302832001.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 12.71
user 3.26
sys 9.39

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/394504/ft1_filtered_4FGL_J0422.1-0644_daily_bin244.fits" evtable="EVENTS" scfile=/scratch/kocevski/394504/ft2_4FGL_J0422.1-0644_daily_bin244.fits sctable="SC_DATA" outfile=/scratch/kocevski/394504/ltcube_302572801_302832001_4FGL_J0422.1-0644_daily_bin244.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/394504/ft2_4FGL_J0422.1-0644_daily_bin244.fits
.....................!
real 22.84
user 12.12
sys 10.64

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/394504/ft1_filtered_4FGL_J0422.1-0644_daily_bin244.fits evtable="EVENTS" scfile=/scratch/kocevski/394504/ft2_4FGL_J0422.1-0644_daily_bin244.fits sctable="SC_DATA" expcube=/scratch/kocevski/394504/ltcube_302572801_302832001_4FGL_J0422.1-0644_daily_bin244.fits outfile=/scratch/kocevski/394504/expmap_302572801_302832001_4FGL_J0422.1-0644_daily_bin244.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/394504/ltcube_302572801_302832001_4FGL_J0422.1-0644_daily_bin244.fits
.....................!
real 202.26
user 185.15
sys 16.67

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/394504/ft1_filtered_4FGL_J0422.1-0644_daily_bin244.fits scfile=/scratch/kocevski/394504/ft2_4FGL_J0422.1-0644_daily_bin244.fits outfile=/scratch/kocevski/394504/cmap_302572801_302832001_4FGL_J0422.1-0644_daily_bin244.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 9.55
user 0.37
sys 9.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/394504/ft1_filtered_4FGL_J0422.1-0644_daily_bin244.fits scfile=/scratch/kocevski/394504/ft2_4FGL_J0422.1-0644_daily_bin244.fits outfile=/scratch/kocevski/394504/cmap_HighResolution_302572801_302832001_4FGL_J0422.1-0644_daily_bin244.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 9.63
user 0.37
sys 9.23

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/394504/ft1_filtered_4FGL_J0422.1-0644_daily_bin244.fits evtable="EVENTS" scfile=/scratch/kocevski/394504/ft2_4FGL_J0422.1-0644_daily_bin244.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/394504/Model_4FGL_J0422.1-0644_daily_bin244.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/394504/ft1_filtered_4FGL_J0422.1-0644_daily_bin244.fits.....................!
real 107.00
user 93.64
sys 13.08

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.2356       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .27091E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10064E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10120E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    3.1262       1.0000         .10000E-03   10000.    
     7 'norm      '    11.069       1.0000         .10000E-03   10000.    
     8 'norm      '    45.267       1.0000         .10000E-03   10000.    
     9 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10211E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .12927E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    58.282       1.0000         .10000E-03   10000.    
    13 'Prefactor '    7.9870       1.0000         .10000E-03   10000.    
    14 'Prefactor '    35.789       1.0000         .10000E-03   10000.    
    15 'norm      '    3.3287       1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.6888       1.0000         .10000E-03   10000.    
    17 'norm      '    .41393       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.3572       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .74799       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=   6469.937     FROM MIGRAD    STATUS=CONVERGED    411 CALLS     2077 TOTAL
                     EDM=   .40E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.2356        2.5425        .14197E-06   -.26576E-04
   2  Prefactor     .10000E-03    13.892       -.58654E-06** at limit **
   3  Prefactor     .10024E-03    5.9440       -.80842E-06** at limit **
   4  norm          .10000E-03    28.036        .17823E-05** at limit **
   5  Prefactor     .10000E-03    11.829        .43605E-06** at limit **
   6  norm          3.1263        4.2181        .13315E-06   -.50684E-04
   7  norm          11.069        12.366       -.65450E-06   -.31402E-04
   8  norm          45.261        27.622       -.15745E-06   -.82581E-04
   9  norm          .10000E-03    .40559        .52344E-09** at limit **
  10  Prefactor     .10000E-03    .65442        .48562E-07** at limit **
  11  Prefactor     .10000E-03    37.315       -.14869E-05** at limit **
  12  Prefactor     58.290        60.730       -.17875E-05    .19287E-04
  13  Prefactor     7.9889        13.102        .43898E-05   -.33128E-05
  14  Prefactor     35.790        24.700        .17822E-06    .69981E-05
  15  norm          3.3286        2.5157       -.69935E-07   -.14621E-03
  16  Prefactor     3.6886        4.7178        .76299E-07   -.93488E-04
  17  norm          .41414        1.3888        .89092E-06    .86236E-04
  18  Prefactor     .10000E-03    9.1521       -.81363E-07** at limit **
  19  Normalizat    1.3570        .21716       -.15761E-05    .68455E-04
  20  Prefactor     .74808        .10218        .24390E-06   -.77585E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.2356
  Prefactor  = 0.000100001
  Prefactor  = 0.000100237
  norm       = 0.000100004
  Prefactor  = 0.000100001
  norm       = 3.12634
  norm       = 11.0693
  norm       = 45.2612
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 58.2896
  Prefactor  = 7.98893
  Prefactor  = 35.7896
  norm       = 3.32864
  Prefactor  = 3.68863
  norm       = 0.414139
  Prefactor  = 0.0001
  Normalizat = 1.35697
  Prefactor  = 0.748082
 **********
 **   18 **HESSE 
 **********

 FCN=   6469.937     FROM HESSE     STATUS=OK           303 CALLS     2380 TOTAL
                     EDM=   .79E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.2356        2.5380        .10839E-03   -1.5348    
   2  Prefactor     .10000E-03    13.898        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10024E-03    5.8863        .60006E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    28.485        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    11.839        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          3.1263        4.1980        .18400E-03   -1.5354    
   7  norm          11.069        12.400        .12042E-03   -1.5042    
   8  norm          45.261        27.615        .59591E-04   -1.4361    
   9  norm          .10000E-03    .41067        .49756E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    .66064        .63320E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    37.508        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     58.290        60.429        .52551E-04   -1.4180    
  13  Prefactor     7.9889        13.104        .70937E-03   -1.5143    
  14  Prefactor     35.790        24.778        .66990E-04   -1.4511    
  15  norm          3.3286        2.5066        .10305E-03   -1.5343    
  16  Prefactor     3.6886        4.7116        .19240E-03   -1.5324    
  17  norm          .41414        1.3658        .16807E-03   -1.5579    
  18  Prefactor     .10000E-03    9.1613        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.3570        .24570        .29427E-03   -.81882    
  20  Prefactor     .74808        .11531        .19389E-03   -1.0167    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.88367e-10
Minuit parameter uncertainties:
  1  2.53807
  2  0.00021569
  3  0.00236103
  4  0.000647657
  5  0.000154553
  6  4.19839
  7  12.403
  8  27.6233
  9  2.24256e-06
  10  9.43458e-07
  11  0.000689429
  12  60.4926
  13  13.1083
  14  24.7855
  15  2.50666
  16  4.71211
  17  1.36592
  18  2.02085e-05
  19  0.245913
  20  0.115343
Done.

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

Extracting fit parameters...

4FGL J0422.1-0644
   Spectrum: LogParabola
227         norm:  1.107e+01  1.240e+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:  7.481e-01  1.153e-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.357e+00  2.459e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.20
Ra Dec: 65.534 -6.741
Photon Index (Fixed Index): 2.45 +/- 0.00
Photon Flux (Fixed Index): 4.89e-08 +/- 5.47e-08
Energy Flux (Fixed Index): 1.45e-05 +/- 1.62e-05

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

Saving results to:
/scratch/kocevski/394504/likelihoodResults_302572801_302832001_4FGL_J0422.1-0644_daily_bin244.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) = 6466.49441607
delta logL = 3.44225770191

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6466.44378377
delta logL = 3.49288999978

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.0187       1.0000         .10000E-03   10000.    
     2 'alpha     '    5.0000       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1256       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82261       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=   6466.444     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      267 TOTAL
                     EDM=   .43E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.0181        2.1895        .72823E-02    .41537E-03
   2  alpha         5.0000        3.3453        .46281    ** at limit **
   3  Normalizat    1.1254        .21028        .71677E-01    .13102E-04
   4  Prefactor     .82268        .10279        .44011E-01    .50706E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 2.01812
  alpha      = 5
  Normalizat = 1.12537
  Prefactor  = 0.822678
 **********
 **   18 **HESSE 
 **********

 FCN=   6466.444     FROM HESSE     STATUS=OK            31 CALLS      298 TOTAL
                     EDM=   .39E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.0181        .87196        .44121E-04   -1.5424    
   2  alpha         5.0000        .74896        .36175E-01    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    1.1254        .24068        .31717E-03   -.88942    
   4  Prefactor     .82268        .11749        .18582E-03   -.98898    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.9116e-14
Minuit parameter uncertainties:
  1  0.871962
  2  3.00297e-07
  3  0.240914
  4  0.117521
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/394504': 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) = 6466.44378021
delta logL = 3.4928935669

Extracting fit parameters...

4FGL J0422.1-0644
   Spectrum: LogParabola
227         norm:  2.018e+00  8.720e-01  1.000e-04  1.000e+04 ( 1.000e-12)
228        alpha:  5.000e+00  3.003e-07  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.227e-01  1.175e-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.125e+00  2.409e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.34
Ra Dec: 65.534 -6.741
Photon Index (Free Index): 5.00 +/- 0.00
Photon Flux (Free Index): 2.67e-07 +/- 1.15e-07
Energy Flux (Free Index): 3.61e-05 +/- 1.56e-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/394504/cmap_HighResolution_302572801_302832001_4FGL_J0422.1-0644_daily_bin244.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.87e-05', comment='SUCCESS', photon_flux='4.89e-08', energy_flux2='3.61e-05', photon_flux_error='5.47e-08', dlogl='3.49e+00', energy_flux='1.45e-05', photon_flux2='2.67e-07', job_status='DONE', time_completed='2021-08-20 12:55:38.077615', photon_index_error2='0.00', photon_index2='5.00', ts='1.20', fit_tolerance='1e-08', GAL='0.75', photon_index_error='0.00', photon_flux_upper_limit='1.65e-07', energy_flux_error2='1.56e-05', EG='1.36', time_epoch_completed='1629489338.08', return_code='0', job_id='394504', GAL2='0.82', EG2='1.13', return_code2='0', energy_flux_error='1.62e-05', photon_flux_error2='1.15e-07', ts2='9.34', photon_index='2.45' WHERE bin_id='244' AND source_name='4FGL J0422.1-0644' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 12:55:38 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0074>
Subject: Job 394504: <4FGL_J0422.1-0644_daily_bin244> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0422.1-0644_daily_bin244 65.5343 -6.741 302572801 302832001 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 :                                   867.19 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             269.84 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   890 sec.
    Turnaround time :                            892 sec.

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

