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


Performing analysis on: 4FGL_J0505.8-0419_daily_bin1076
RA = 76.4598, Dec = -4.3182
tmin = 518227201, tmax = 518486401
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='978461', job_status='RUN', time_executed='2021-08-21 20:56:54.608369', time_epoch_executed='1629604614.61' WHERE source_name='4FGL J0505.8-0419' and cadence='daily' and bin_id='1076'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/978461

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/978461/ft1_4FGL_J0505.8-0419_daily_bin1076.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/978461/ft2_4FGL_J0505.8-0419_daily_bin1076.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/978461/ft1_4FGL_J0505.8-0419_daily_bin1076.fits outfile=/scratch/kocevski/978461/ft1_filteredMKT_4FGL_J0505.8-0419_daily_bin1076.fits ra=76.4598 dec=-4.3182 rad=12.0 tmin=518227201.0 tmax=518486401.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 8.44
user 3.38
sys 4.93

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/978461/ft2_4FGL_J0505.8-0419_daily_bin1076.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/978461/ft2_4FGL_J0505.8-0419_daily_bin1076.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/978461/ft1_filteredMKT_4FGL_J0505.8-0419_daily_bin1076.fits evtable="EVENTS" outfile="/scratch/kocevski/978461/ft1_filtered_4FGL_J0505.8-0419_daily_bin1076.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 5.35
user 0.34
sys 4.94

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/978461/ft1_filtered_4FGL_J0505.8-0419_daily_bin1076.fits" evtable="EVENTS" scfile=/scratch/kocevski/978461/ft2_4FGL_J0505.8-0419_daily_bin1076.fits sctable="SC_DATA" outfile=/scratch/kocevski/978461/ltcube_518227201_518486401_4FGL_J0505.8-0419_daily_bin1076.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/978461/ft2_4FGL_J0505.8-0419_daily_bin1076.fits
.....................!
real 18.25
user 12.45
sys 5.71

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/978461/ft1_filtered_4FGL_J0505.8-0419_daily_bin1076.fits evtable="EVENTS" scfile=/scratch/kocevski/978461/ft2_4FGL_J0505.8-0419_daily_bin1076.fits sctable="SC_DATA" expcube=/scratch/kocevski/978461/ltcube_518227201_518486401_4FGL_J0505.8-0419_daily_bin1076.fits outfile=/scratch/kocevski/978461/expmap_518227201_518486401_4FGL_J0505.8-0419_daily_bin1076.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/978461/ltcube_518227201_518486401_4FGL_J0505.8-0419_daily_bin1076.fits
.....................!
real 199.42
user 187.33
sys 11.23

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 146 point sources and 0 extended sources

Setting source of interest to:
4FGL J0505.8-0419 @ 76.4598 -4.3182

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/978461/ft1_filtered_4FGL_J0505.8-0419_daily_bin1076.fits scfile=/scratch/kocevski/978461/ft2_4FGL_J0505.8-0419_daily_bin1076.fits outfile=/scratch/kocevski/978461/cmap_518227201_518486401_4FGL_J0505.8-0419_daily_bin1076.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=76.4598 yref=-4.3182 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 5.33
user 0.39
sys 4.85

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/978461/ft1_filtered_4FGL_J0505.8-0419_daily_bin1076.fits scfile=/scratch/kocevski/978461/ft2_4FGL_J0505.8-0419_daily_bin1076.fits outfile=/scratch/kocevski/978461/cmap_HighResolution_518227201_518486401_4FGL_J0505.8-0419_daily_bin1076.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=76.4598 yref=-4.3182 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 5.28
user 0.39
sys 4.84

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/978461/ft1_filtered_4FGL_J0505.8-0419_daily_bin1076.fits evtable="EVENTS" scfile=/scratch/kocevski/978461/ft2_4FGL_J0505.8-0419_daily_bin1076.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/978461/Model_4FGL_J0505.8-0419_daily_bin1076.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/978461/ft1_filtered_4FGL_J0505.8-0419_daily_bin1076.fits.....................!
real 190.14
user 181.89
sys 7.66

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/978461/ft1_filtered_4FGL_J0505.8-0419_daily_bin1076.fits', '/scratch/kocevski/978461/ft2_4FGL_J0505.8-0419_daily_bin1076.fits', expMap='/scratch/kocevski/978461/expmap_518227201_518486401_4FGL_J0505.8-0419_daily_bin1076.fits', expCube='/scratch/kocevski/978461/ltcube_518227201_518486401_4FGL_J0505.8-0419_daily_bin1076.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/978461/Model_4FGL_J0505.8-0419_daily_bin1076.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0505.8-0419'

4FGL J0505.8-0419
   Spectrum: PowerLaw
204    Prefactor:  7.027e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
205        Index:  2.402e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
206        Scale:  1.010e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/978461/ft1_filtered_4FGL_J0505.8-0419_daily_bin1076.fits
Spacecraft file(s): /scratch/kocevski/978461/ft2_4FGL_J0505.8-0419_daily_bin1076.fits
Exposure map: /scratch/kocevski/978461/expmap_518227201_518486401_4FGL_J0505.8-0419_daily_bin1076.fits
Exposure cube: /scratch/kocevski/978461/ltcube_518227201_518486401_4FGL_J0505.8-0419_daily_bin1076.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/978461/Model_4FGL_J0505.8-0419_daily_bin1076.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) = 9880.67558308

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.8535       1.0000         .10000E-03   10000.    
     2 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .41098       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .12044E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10306E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    3.2105       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.6170       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    37.934       1.0000         .10000E-03   10000.    
    16 'norm      '    12.211       1.0000         .10000E-03   10000.    
    17 'Prefactor '    28.683       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .11426E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.2226       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .96371       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4880E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   9880.674     FROM MIGRAD    STATUS=CONVERGED    466 CALLS     2236 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.8538        4.1897        .51394E-02    .16238E-02
   2  norm          .10000E-03    5.3679        .90712E-02** at limit **
   3  norm          .40722        1.2679        .10902E-01    .28569E-02
   4  Prefactor     .10000E-03    1.2089        .37072E-01** at limit **
   5  Prefactor     .10000E-03    76.167        .90712E-02** at limit **
   6  Prefactor     .10003E-03    14.177        .90712E-02** at limit **
   7  Prefactor     .10000E-03    7.5532        .90712E-02** at limit **
   8  norm          .10000E-03    1.4438        .90712E-02** at limit **
   9  Prefactor     .10004E-03    10.868        .90712E-02** at limit **
  10  norm          3.2106        2.1763        .56527E-02    .51898E-03
  11  Prefactor     .10001E-03    19.183        .90712E-02** at limit **
  12  norm          .10000E-03    .32977        .20971E-01** at limit **
  13  Prefactor     4.6177        58.867        .46829E-02   -.79036E-04
  14  Prefactor     .10006E-03    11.783        .90712E-02** at limit **
  15  norm          37.933        7.4526        .16269E-02    .15050E-03
  16  norm          12.212        32.326        .28659E-02   -.19700E-03
  17  Prefactor     28.684        28.931        .18702E-02   -.28344E-03
  18  Prefactor     .10000E-03    2.6766        .90712E-02** at limit **
  19  norm          .10000E-03    1.6623        .72205E-01** at limit **
  20  Normalizat    1.2226        .20949        .96413E-01    .11690E-05
  21  Prefactor     .96369        .67226E-01    .34884E-01   -.26815E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.85379
  norm       = 0.0001
  norm       = 0.407224
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100033
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100036
  norm       = 3.21064
  Prefactor  = 0.000100006
  norm       = 0.0001
  Prefactor  = 4.61774
  Prefactor  = 0.000100061
  norm       = 37.9333
  norm       = 12.2119
  Prefactor  = 28.6841
  Prefactor  = 0.0001
  norm       = 0.000100004
  Normalizat = 1.22256
  Prefactor  = 0.963694
 **********
 **   18 **HESSE 
 **********

 FCN=   9880.674     FROM HESSE     STATUS=OK           313 CALLS     2549 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.8538        4.1834        .20552E-03   -1.5315    
   2  norm          .10000E-03    5.3877        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .40722        1.1952        .17514E-03   -1.5580    
   4  Prefactor     .10000E-03    2.0254        .19896E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    76.345        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10003E-03    14.550        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    7.5615        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    1.4967        .23288E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10004E-03    10.873        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          3.2106        2.1738        .11480E-03   -1.5350    
  11  Prefactor     .10001E-03    19.212        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    .55097        .10609E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     4.6177        58.871        .18732E-03   -1.5278    
  14  Prefactor     .10006E-03    11.800        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          37.933        7.1396        .65074E-04   -1.4475    
  16  norm          12.212        32.314        .11464E-03   -1.5009    
  17  Prefactor     28.684        28.922        .74806E-04   -1.4636    
  18  Prefactor     .10000E-03    2.6829        .15879E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    11.209        .24072E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.2226        .22075        .42714E-03   -.85908    
  21  Prefactor     .96369        .69927E-01    .15415E-03   -.93950    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.37313e-08
Minuit parameter uncertainties:
  1  4.18375
  2  3.36271e-06
  3  1.1953
  4  6.04568e-07
  5  0.000517785
  6  0.00138714
  7  2.6449e-05
  8  9.06838e-07
  9  0.00124703
  10  2.17382
  11  0.00069527
  12  1.84993e-07
  13  33.0154
  14  0.00169329
  15  7.13976
  16  32.3603
  17  28.9362
  18  3.95235e-07
  19  0.000396358
  20  0.220919
  21  0.0699331
Done.

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

Extracting fit parameters...

4FGL J0505.8-0419
   Spectrum: PowerLaw
204    Prefactor:  1.001e-04  1.693e-03  1.000e-04  1.000e+04 ( 1.000e-13)
205        Index:  2.402e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
206        Scale:  1.010e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
485    Prefactor:  9.637e-01  6.993e-02  0.000e+00  1.000e+01 ( 1.000e+00)
486        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
487        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
484   Normalization:  1.223e+00  2.209e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 76.460 -4.318
Photon Flux Upper Limit: 8.69e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.72e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/978461/likelihoodResults_518227201_518486401_4FGL_J0505.8-0419_daily_bin1076.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): 102
logL (Free Index) = 9880.67481495
delta logL = -0.000403880065278

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 9880.67441107
delta logL = 4.16730472352e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4056       1.0000          .0000       10.000    
     3 'Normalizat'    1.2226       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96369       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4880E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   9880.674     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      218 TOTAL
                     EDM=   .65E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1009.0        .90712E-02** at limit **
   2  Index         2.4088        7.6128        .50000       -.24983E-05
   3  Normalizat    1.2226        .67523E-01    .96413E-01    .19438E-04
   4  Prefactor     .96369        .22040E-01    .34884E-01   -.12054E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.40882
  Normalizat = 1.22256
  Prefactor  = 0.963694
 **********
 **   18 **HESSE 
 **********

 FCN=   9880.674     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      251 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2287.5        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4088        5.1574        .50000       -.54479    
   3  Normalizat    1.2226        .14513        .42714E-03   -.85908    
   4  Prefactor     .96369        .47536E-01    .15415E-03   -.93950    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.55092e-09
Minuit parameter uncertainties:
  1  7.22436e-05
  2  62.1885
  3  0.145173
  4  0.0475377
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/978461': 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): 102
logL (Free Index) = 9880.67441107
delta logL = 6.22276274953e-09

Extracting fit parameters...

4FGL J0505.8-0419
   Spectrum: PowerLaw
204    Prefactor:  1.000e-04  7.224e-05  1.000e-04  1.000e+04 ( 1.000e-13)
205        Index:  2.409e+00  6.219e+01  0.000e+00  1.000e+01 (-1.000e+00)
206        Scale:  1.010e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
485    Prefactor:  9.637e-01  4.754e-02  0.000e+00  1.000e+01 ( 1.000e+00)
486        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
487        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
484   Normalization:  1.223e+00  1.452e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 76.460 -4.318

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/978461/cmap_HighResolution_518227201_518486401_4FGL_J0505.8-0419_daily_bin1076.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.72e-03', job_status='DONE', photon_flux_upper_limit='8.69e-08', time_completed='2021-08-21 21:12:01.890595', job_id='978461', GAL2='0.96', fit_tolerance='1e-08', EG2='1.22', EG='1.22', time_epoch_completed='1629605521.89', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.96', dlogl='6.22e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.40' WHERE bin_id='1076' AND source_name='4FGL J0505.8-0419' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 21 21:12:01 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0228>
Subject: Job 978461: <4FGL_J0505.8-0419_daily_bin1076> in cluster <slac> Done

Job <4FGL_J0505.8-0419_daily_bin1076> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sat Aug 21 20:55:26 2021
Job was executed on host(s) <bullet0228>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 21 20:55:27 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Aug 21 20:55:27 2021
Terminated at Sat Aug 21 21:12:03 2021
Results reported at Sat Aug 21 21:12:03 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0505.8-0419_daily_bin1076 76.4598 -4.3182 518227201 518486401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0505.8-0419 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   957.28 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             321.40 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   995 sec.
    Turnaround time :                            997 sec.

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

