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


Performing analysis on: 4FGL_J0505.8-0419_daily_bin211
RA = 76.4598, Dec = -4.3182
tmin = 294019201, tmax = 294278401
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='968978', job_status='RUN', time_executed='2021-08-21 20:31:00.415946', time_epoch_executed='1629603060.42' WHERE source_name='4FGL J0505.8-0419' and cadence='daily' and bin_id='211'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/968978

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/968978/ft1_4FGL_J0505.8-0419_daily_bin211.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/968978/ft2_4FGL_J0505.8-0419_daily_bin211.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/968978/ft1_4FGL_J0505.8-0419_daily_bin211.fits outfile=/scratch/kocevski/968978/ft1_filteredMKT_4FGL_J0505.8-0419_daily_bin211.fits ra=76.4598 dec=-4.3182 rad=12.0 tmin=294019201.0 tmax=294278401.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 3.46
user 2.94
sys 0.49

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/968978/ft2_4FGL_J0505.8-0419_daily_bin211.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/968978/ft1_filteredMKT_4FGL_J0505.8-0419_daily_bin211.fits evtable="EVENTS" outfile="/scratch/kocevski/968978/ft1_filtered_4FGL_J0505.8-0419_daily_bin211.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.80
user 0.33
sys 0.46

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/968978/ft1_filtered_4FGL_J0505.8-0419_daily_bin211.fits" evtable="EVENTS" scfile=/scratch/kocevski/968978/ft2_4FGL_J0505.8-0419_daily_bin211.fits sctable="SC_DATA" outfile=/scratch/kocevski/968978/ltcube_294019201_294278401_4FGL_J0505.8-0419_daily_bin211.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/968978/ft2_4FGL_J0505.8-0419_daily_bin211.fits
.....................!
real 12.24
user 11.51
sys 0.68

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/968978/ft1_filtered_4FGL_J0505.8-0419_daily_bin211.fits evtable="EVENTS" scfile=/scratch/kocevski/968978/ft2_4FGL_J0505.8-0419_daily_bin211.fits sctable="SC_DATA" expcube=/scratch/kocevski/968978/ltcube_294019201_294278401_4FGL_J0505.8-0419_daily_bin211.fits outfile=/scratch/kocevski/968978/expmap_294019201_294278401_4FGL_J0505.8-0419_daily_bin211.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/968978/ltcube_294019201_294278401_4FGL_J0505.8-0419_daily_bin211.fits
.....................!
real 190.80
user 185.34
sys 4.91

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/968978/ft1_filtered_4FGL_J0505.8-0419_daily_bin211.fits scfile=/scratch/kocevski/968978/ft2_4FGL_J0505.8-0419_daily_bin211.fits outfile=/scratch/kocevski/968978/cmap_294019201_294278401_4FGL_J0505.8-0419_daily_bin211.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 0.83
user 0.35
sys 0.46

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/968978/ft1_filtered_4FGL_J0505.8-0419_daily_bin211.fits scfile=/scratch/kocevski/968978/ft2_4FGL_J0505.8-0419_daily_bin211.fits outfile=/scratch/kocevski/968978/cmap_HighResolution_294019201_294278401_4FGL_J0505.8-0419_daily_bin211.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 0.84
user 0.37
sys 0.46

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/968978/ft1_filtered_4FGL_J0505.8-0419_daily_bin211.fits evtable="EVENTS" scfile=/scratch/kocevski/968978/ft2_4FGL_J0505.8-0419_daily_bin211.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/968978/Model_4FGL_J0505.8-0419_daily_bin211.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/968978/ft1_filtered_4FGL_J0505.8-0419_daily_bin211.fits.....................!
real 213.98
user 212.04
sys 1.59

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/968978/ft1_filtered_4FGL_J0505.8-0419_daily_bin211.fits', '/scratch/kocevski/968978/ft2_4FGL_J0505.8-0419_daily_bin211.fits', expMap='/scratch/kocevski/968978/expmap_294019201_294278401_4FGL_J0505.8-0419_daily_bin211.fits', expCube='/scratch/kocevski/968978/ltcube_294019201_294278401_4FGL_J0505.8-0419_daily_bin211.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/968978/Model_4FGL_J0505.8-0419_daily_bin211.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/968978/ft1_filtered_4FGL_J0505.8-0419_daily_bin211.fits
Spacecraft file(s): /scratch/kocevski/968978/ft2_4FGL_J0505.8-0419_daily_bin211.fits
Exposure map: /scratch/kocevski/968978/expmap_294019201_294278401_4FGL_J0505.8-0419_daily_bin211.fits
Exposure cube: /scratch/kocevski/968978/ltcube_294019201_294278401_4FGL_J0505.8-0419_daily_bin211.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/968978/Model_4FGL_J0505.8-0419_daily_bin211.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) = 11568.754264

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    28.074       1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.5270       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    10.154       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .14427E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10379E-01   1.0000         .10000E-03   10000.    
    12 'norm      '    .60604       1.0000         .10000E-03   10000.    
    13 'Prefactor '    43.081       1.0000         .10000E-03   10000.    
    14 'Prefactor '    13.606       1.0000         .10000E-03   10000.    
    15 'norm      '    3.2500       1.0000         .10000E-03   10000.    
    16 'norm      '    .29347E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10515E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    4.0920       1.0000         .10000E-03   10000.    
    19 'norm      '    .11248E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.0990       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .93426       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   11568.75     FROM MIGRAD    STATUS=CONVERGED    502 CALLS     2294 TOTAL
                     EDM=   .25E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1.9378        .21524E-07** at limit **
   2  norm          .10000E-03    3.7201       -.35232E-07** at limit **
   3  norm          .10000E-03    .22903       -.85654E-08** at limit **
   4  Prefactor     .10000E-03    .68723        .69640E-07** at limit **
   5  Prefactor     28.080        35.223       -.16688E-05   -.26929E-04
   6  Prefactor     3.5318        6.0725        .38703E-06   -.69640E-03
   7  Prefactor     .10000E-03    5.5187       -.30600E-06** at limit **
   8  norm          10.155        2.8070        .75442E-07   -.44879E-03
   9  Prefactor     .10000E-03    45.899       -.13610E-05** at limit **
  10  norm          .10000E-03    .60366       -.12749E-07** at limit **
  11  Prefactor     .10166E-03    24.056        .22973E-05** at limit **
  12  norm          .60752        .61676       -.33941E-07   -.18503E-02
  13  Prefactor     43.148        44.213        .12120E-04    .92455E-05
  14  Prefactor     13.609        17.057       -.94285E-06   -.10050E-04
  15  norm          3.2456        2.1745       -.75157E-07   -.23980E-02
  16  norm          .10000E-03    36.280       -.20401E-06** at limit **
  17  Prefactor     .10000E-03    12.407       -.26972E-06** at limit **
  18  Prefactor     4.0915        4.4522       -.14573E-07   -.25872E-04
  19  norm          .10000E-03    1.0470        .14610E-07** at limit **
  20  Normalizat    1.0988        .17727       -.91569E-06   -.11789E-03
  21  Prefactor     .93428        .56937E-01    .46435E-07   -.26907E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 28.0804
  Prefactor  = 3.53176
  Prefactor  = 0.0001
  norm       = 10.1551
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000101656
  norm       = 0.607516
  Prefactor  = 43.1483
  Prefactor  = 13.6088
  norm       = 3.24561
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.09152
  norm       = 0.0001
  Normalizat = 1.09881
  Prefactor  = 0.934276
 **********
 **   18 **HESSE 
 **********

 FCN=   11568.75     FROM HESSE     STATUS=OK           327 CALLS     2621 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.9433        .14621E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    3.7592        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    .23332        .50210E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    1.1700        .16800E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     28.080        34.165        .75612E-04   -1.4648    
   6  Prefactor     3.5318        6.9215        .10762E-02   -1.5332    
   7  Prefactor     .10000E-03    5.5246        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          10.155        2.8161        .44473E-03   -1.5071    
   9  Prefactor     .10000E-03    46.241        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    .62467        .16301E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10166E-03    23.192        .12988       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .60752        .61052        .70172E-03   -1.5552    
  13  Prefactor     43.148        44.163        .61078E-04   -1.4393    
  14  Prefactor     13.609        17.073        .10859E-03   -1.4970    
  15  norm          3.2456        4.0637        .10214E-02   -1.5348    
  16  norm          .10000E-03    37.320        .42798E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    12.422        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     4.0915        4.4482        .19930E-03   -1.5303    
  19  norm          .10000E-03    4.9638        .20862E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.0988        .18942        .40200E-03   -.89790    
  21  Prefactor     .93428        .59416E-01    .14497E-03   -.94953    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.07555e-09
Minuit parameter uncertainties:
  1  7.05645e-07
  2  1.63857e-06
  3  4.62046e-07
  4  1.80998e-05
  5  34.1887
  6  6.92312
  7  3.30974e-07
  8  2.81614
  9  5.18559e-05
  10  1.73346e-06
  11  0.0123998
  12  0.610527
  13  44.1968
  14  17.0789
  15  4.06406
  16  4.72283e-05
  17  3.95834e-06
  18  4.44856
  19  2.31826e-05
  20  0.189539
  21  0.0594203
Done.

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

Extracting fit parameters...

4FGL J0505.8-0419
   Spectrum: PowerLaw
204    Prefactor:  1.361e+01  1.708e+01  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.343e-01  5.942e-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.099e+00  1.895e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.97
Ra Dec: 76.460 -4.318
Photon Flux Upper Limit: 1.02e-07 ph cm-2 s-1
Energy Flux Upper Limit: 7.90e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/968978/likelihoodResults_294019201_294278401_4FGL_J0505.8-0419_daily_bin211.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) = 11568.4106811
delta logL = 0.336067393862

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 11568.3588924
delta logL = 0.387856058007

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    20.230       1.0000         .10000E-03   10000.    
     2 'Index     '    1.7563       1.0000          .0000       10.000    
     3 'Normalizat'    1.1096       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93247       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   11568.36     FROM MIGRAD    STATUS=CONVERGED    104 CALLS      304 TOTAL
                     EDM=   .65E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     20.219        21.895        .89051E-04    .20426E-04
   2  Index         1.7560        .63087        .13191E-01   -.12411E-04
   3  Normalizat    1.1098        .17396        .40015E-03   -.18694E-04
   4  Prefactor     .93243        .58583E-01    .14507E-03   -.97333E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 20.2193
  Index      = 1.75595
  Normalizat = 1.10979
  Prefactor  = 0.932434
 **********
 **   18 **HESSE 
 **********

 FCN=   11568.36     FROM HESSE     STATUS=OK            25 CALLS      329 TOTAL
                     EDM=   .35E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     20.219        22.100        .35620E-05   -1.4808    
   2  Index         1.7560        .63687        .52763E-03   -.70602    
   3  Normalizat    1.1098        .17402        .16006E-04   -.89438    
   4  Prefactor     .93243        .58599E-01    .58027E-05   -.95017    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.47249e-12
Minuit parameter uncertainties:
  1  22.1085
  2  0.639885
  3  0.174109
  4  0.0586033
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/968978': 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) = 11568.3588916
delta logL = 0.387856850384

Extracting fit parameters...

4FGL J0505.8-0419
   Spectrum: PowerLaw
204    Prefactor:  2.022e+01  2.211e+01  1.000e-04  1.000e+04 ( 1.000e-13)
205        Index:  1.756e+00  6.399e-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.324e-01  5.860e-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.110e+00  1.741e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.74
Ra Dec: 76.460 -4.318
Photon Index (Free Index): 1.76 +/- 0.64
Photon Flux (Free Index): 1.54e-08 +/- 2.14e-08
Energy Flux (Free Index): 2.11e-05 +/- 3.23e-05

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/968978/cmap_HighResolution_294019201_294278401_4FGL_J0505.8-0419_daily_bin211.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.90e-03', comment='SUCCESS', energy_flux2='2.11e-05', dlogl='3.88e-01', photon_flux2='1.54e-08', job_status='DONE', time_completed='2021-08-21 20:46:34.714549', photon_index_error2='0.64', photon_index2='1.76', ts='0.97', fit_tolerance='1e-08', GAL='0.93', photon_index_error='0.00', photon_flux_upper_limit='1.02e-07', energy_flux_error2='3.23e-05', EG='1.10', time_epoch_completed='1629603994.71', return_code='0', job_id='968978', GAL2='0.93', EG2='1.11', return_code2='0', photon_flux_error2='2.14e-08', ts2='1.74', photon_index='2.40' WHERE bin_id='211' AND source_name='4FGL J0505.8-0419' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 21 20:46:34 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0075>
Subject: Job 968978: <4FGL_J0505.8-0419_daily_bin211> in cluster <slac> Done

Job <4FGL_J0505.8-0419_daily_bin211> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Aug 21 20:30:41 2021
Job was executed on host(s) <bullet0075>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 21 20:30:42 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:30:42 2021
Terminated at Sat Aug 21 20:46:35 2021
Results reported at Sat Aug 21 20:46:35 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0505.8-0419_daily_bin211 76.4598 -4.3182 294019201 294278401 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 :                                   935.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             363.32 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   953 sec.
    Turnaround time :                            954 sec.

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

