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


Performing analysis on: 4FGL_J0505.8-0419_daily_bin237
RA = 76.4598, Dec = -4.3182
tmin = 300758401, tmax = 301017601
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='969026', job_status='RUN', time_executed='2021-08-21 20:32:58.056701', time_epoch_executed='1629603178.06' WHERE source_name='4FGL J0505.8-0419' and cadence='daily' and bin_id='237'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/969026

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/969026/ft1_4FGL_J0505.8-0419_daily_bin237.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/969026/ft2_4FGL_J0505.8-0419_daily_bin237.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/969026/ft1_4FGL_J0505.8-0419_daily_bin237.fits outfile=/scratch/kocevski/969026/ft1_filteredMKT_4FGL_J0505.8-0419_daily_bin237.fits ra=76.4598 dec=-4.3182 rad=12.0 tmin=300758401.0 tmax=301017601.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 11.65
user 3.31
sys 8.26

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/969026/ft2_4FGL_J0505.8-0419_daily_bin237.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/969026/ft1_filteredMKT_4FGL_J0505.8-0419_daily_bin237.fits evtable="EVENTS" outfile="/scratch/kocevski/969026/ft1_filtered_4FGL_J0505.8-0419_daily_bin237.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 8.75
user 0.35
sys 8.36

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/969026/ft1_filtered_4FGL_J0505.8-0419_daily_bin237.fits" evtable="EVENTS" scfile=/scratch/kocevski/969026/ft2_4FGL_J0505.8-0419_daily_bin237.fits sctable="SC_DATA" outfile=/scratch/kocevski/969026/ltcube_300758401_301017601_4FGL_J0505.8-0419_daily_bin237.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/969026/ft2_4FGL_J0505.8-0419_daily_bin237.fits
.....................!
real 21.34
user 11.79
sys 9.49

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/969026/ft1_filtered_4FGL_J0505.8-0419_daily_bin237.fits evtable="EVENTS" scfile=/scratch/kocevski/969026/ft2_4FGL_J0505.8-0419_daily_bin237.fits sctable="SC_DATA" expcube=/scratch/kocevski/969026/ltcube_300758401_301017601_4FGL_J0505.8-0419_daily_bin237.fits outfile=/scratch/kocevski/969026/expmap_300758401_301017601_4FGL_J0505.8-0419_daily_bin237.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/969026/ltcube_300758401_301017601_4FGL_J0505.8-0419_daily_bin237.fits
.....................!
real 200.19
user 185.08
sys 14.70

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/969026/ft1_filtered_4FGL_J0505.8-0419_daily_bin237.fits scfile=/scratch/kocevski/969026/ft2_4FGL_J0505.8-0419_daily_bin237.fits outfile=/scratch/kocevski/969026/cmap_300758401_301017601_4FGL_J0505.8-0419_daily_bin237.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 8.55
user 0.38
sys 8.10

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/969026/ft1_filtered_4FGL_J0505.8-0419_daily_bin237.fits scfile=/scratch/kocevski/969026/ft2_4FGL_J0505.8-0419_daily_bin237.fits outfile=/scratch/kocevski/969026/cmap_HighResolution_300758401_301017601_4FGL_J0505.8-0419_daily_bin237.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 8.45
user 0.39
sys 8.02

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/969026/ft1_filtered_4FGL_J0505.8-0419_daily_bin237.fits evtable="EVENTS" scfile=/scratch/kocevski/969026/ft2_4FGL_J0505.8-0419_daily_bin237.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/969026/Model_4FGL_J0505.8-0419_daily_bin237.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/969026/ft1_filtered_4FGL_J0505.8-0419_daily_bin237.fits.....................!
real 164.04
user 151.50
sys 11.94

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.2491       1.0000         .10000E-03   10000.    
     2 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.0279       1.0000         .10000E-03   10000.    
     5 'Prefactor '    78.222       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    6.8121       1.0000         .10000E-03   10000.    
     8 'norm      '    7.1111       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    2.1494       1.0000         .10000E-03   10000.    
    11 'Prefactor '    23.102       1.0000         .10000E-03   10000.    
    12 'norm      '    .26846       1.0000         .10000E-03   10000.    
    13 'Prefactor '    40.363       1.0000         .10000E-03   10000.    
    14 'Prefactor '    40.150       1.0000         .10000E-03   10000.    
    15 'norm      '    11.852       1.0000         .10000E-03   10000.    
    16 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    2.8597       1.0000         .10000E-03   10000.    
    20 'Normalizat'    .85406       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.0657       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=   8411.465     FROM MIGRAD    STATUS=CONVERGED    431 CALLS     2202 TOTAL
                     EDM=   .95E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.2492        1.8876        .44937E-06   -.23926E-02
   2  norm          .10000E-03    4.0980       -.57821E-07** at limit **
   3  norm          .10000E-03    .39618        .29022E-07** at limit **
   4  Prefactor     1.0277        1.8676        .15779E-05    .43423E-03
   5  Prefactor     78.241        62.331       -.18761E-05    .17636E-04
   6  Prefactor     .10000E-03    5.3983        .80549E-06** at limit **
   7  Prefactor     6.8122        23.274        .23322E-06   -.49177E-04
   8  norm          7.1115        3.2482       -.11502E-06   -.33740E-03
   9  Prefactor     .10000E-03    8.0195       -.62832E-06** at limit **
  10  norm          2.1501        2.1922        .59014E-07   -.59414E-05
  11  Prefactor     23.101        20.664       -.17778E-06   -.26253E-04
  12  norm          .26857        .51319       -.35884E-07   -.56861E-04
  13  Prefactor     40.367        54.640        .72847E-06    .20653E-04
  14  Prefactor     40.144        33.193       -.75655E-06   -.83111E-04
  15  norm          11.852        4.6275        .40373E-07    .18168E-04
  16  norm          .10000E-03    13.630       -.87049E-06** at limit **
  17  Prefactor     .10000E-03    9.7879        .14493E-05** at limit **
  18  Prefactor     .10000E-03    5.9159       -.87724E-06** at limit **
  19  norm          2.8587        4.2078        .21905E-07   -.56820E-04
  20  Normalizat    .85392        .23862       -.67305E-06   -.40669E-04
  21  Prefactor     1.0658        .75867E-01    .47591E-07   -.48576E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.2492
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 1.02774
  Prefactor  = 78.2409
  Prefactor  = 0.0001
  Prefactor  = 6.81219
  norm       = 7.11145
  Prefactor  = 0.0001
  norm       = 2.15005
  Prefactor  = 23.1006
  norm       = 0.26857
  Prefactor  = 40.3672
  Prefactor  = 40.1444
  norm       = 11.8516
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.8587
  Normalizat = 0.853922
  Prefactor  = 1.0658
 **********
 **   18 **HESSE 
 **********

 FCN=   8411.465     FROM HESSE     STATUS=OK           321 CALLS     2523 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.2492        6.0412        .20015E-02   -1.5484    
   2  norm          .10000E-03    4.1053        .18132E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    .40085        .56260E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.0277        1.8807        .17243E-02   -1.5505    
   5  Prefactor     78.241        62.865        .45406E-04   -1.3937    
   6  Prefactor     .10000E-03    5.4120        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     6.8122        23.344        .76864E-03   -1.5186    
   8  norm          7.1115        3.2550        .10336E-03   -1.5175    
   9  Prefactor     .10000E-03    8.0248        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          2.1501        2.1716        .12759E-03   -1.5415    
  11  Prefactor     23.101        20.471        .83337E-04   -1.4746    
  12  norm          .26857        .42733        .82425E-03   -1.5604    
  13  Prefactor     40.367        54.695        .63093E-04   -1.4436    
  14  Prefactor     40.144        33.207        .63259E-04   -1.4440    
  15  norm          11.852        4.5480        .11452E-03   -1.5019    
  16  norm          .10000E-03    13.629        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    9.8373        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    6.0094        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          2.8587        4.2190        .21491E-03   -1.5370    
  20  Normalizat    .85392        .25218        .48838E-03   -.98099    
  21  Prefactor     1.0658        .80798E-01    .15020E-03   -.90567    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.84039e-08
Minuit parameter uncertainties:
  1  5.4949
  2  4.92419e-06
  3  3.76781e-06
  4  1.88078
  5  62.918
  6  3.20811e-05
  7  23.3752
  8  3.25504
  9  4.1429e-05
  10  2.17166
  11  20.477
  12  0.427338
  13  54.7626
  14  33.2225
  15  4.54812
  16  6.33801e-05
  17  0.000118187
  18  3.41167e-05
  19  4.21947
  20  0.252527
  21  0.0808068
Done.

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

Extracting fit parameters...

4FGL J0505.8-0419
   Spectrum: PowerLaw
204    Prefactor:  4.014e+01  3.322e+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:  1.066e+00  8.081e-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:  8.539e-01  2.525e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.39
Ra Dec: 76.460 -4.318
Photon Index (Fixed Index): 2.40 +/- 0.00
Photon Flux (Fixed Index): 7.41e-08 +/- 6.12e-08
Energy Flux (Fixed Index): 2.42e-05 +/- 2.00e-05

TS (Fixed Index): 2.39
Ra Dec: 76.460 -4.318
Photon Flux Upper Limit: 1.99e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.54e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/969026/likelihoodResults_300758401_301017601_4FGL_J0505.8-0419_daily_bin237.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) = 8410.80926469
delta logL = 0.655733419935

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8410.78966144
delta logL = 0.675336669841

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    13.203       1.0000         .10000E-03   10000.    
     2 'Index     '    3.3511       1.0000          .0000       10.000    
     3 'Normalizat'    .79971       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0756       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=   8410.790     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      294 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     13.198        71.062        .11023E-03   -.41665E-03
   2  Index         3.3512        2.4072        .49768E-02   -.16546E-03
   3  Normalizat    .79977        .23599        .50294E-03    .39581E-03
   4  Prefactor     1.0756        .78911E-01    .14958E-03    .13393E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 13.1975
  Index      = 3.35125
  Normalizat = 0.799773
  Prefactor  = 1.07555
 **********
 **   18 **HESSE 
 **********

 FCN=   8410.790     FROM HESSE     STATUS=OK            25 CALLS      319 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     13.198        24.106        .44094E-05   -1.4981    
   2  Index         3.3512        .98470        .19907E-03   -.33604    
   3  Normalizat    .79977        .23488        .20117E-04   -1.0008    
   4  Prefactor     1.0756        .78153E-01    .29917E-04   -.90252    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.03212e-09
Minuit parameter uncertainties:
  1  24.1232
  2  0.991986
  3  0.235178
  4  0.0781612
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/969026': 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) = 8410.78966137
delta logL = 0.675336740849

Extracting fit parameters...

4FGL J0505.8-0419
   Spectrum: PowerLaw
204    Prefactor:  1.320e+01  2.412e+01  1.000e-04  1.000e+04 ( 1.000e-13)
205        Index:  3.351e+00  9.920e-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:  1.076e+00  7.816e-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:  7.998e-01  2.352e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.92
Ra Dec: 76.460 -4.318
Photon Index (Free Index): 3.35 +/- 0.99
Photon Flux (Free Index): 1.30e-07 +/- 8.52e-08
Energy Flux (Free Index): 2.27e-05 +/- 1.48e-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/969026/cmap_HighResolution_300758401_301017601_4FGL_J0505.8-0419_daily_bin237.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.54e-02', comment='SUCCESS', photon_flux='7.41e-08', energy_flux2='2.27e-05', photon_flux_error='6.12e-08', dlogl='6.75e-01', energy_flux='2.42e-05', photon_flux2='1.30e-07', job_status='DONE', time_completed='2021-08-21 20:47:20.874044', photon_index_error2='0.99', photon_index2='3.35', ts='2.39', fit_tolerance='1e-08', GAL='1.07', photon_index_error='0.00', photon_flux_upper_limit='1.99e-07', energy_flux_error2='1.48e-05', EG='0.85', time_epoch_completed='1629604040.87', return_code='0', job_id='969026', GAL2='1.08', EG2='0.80', return_code2='0', energy_flux_error='2.00e-05', photon_flux_error2='8.52e-08', ts2='3.92', photon_index='2.40' WHERE bin_id='237' AND source_name='4FGL J0505.8-0419' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 21 20:47:21 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0262>
Subject: Job 969026: <4FGL_J0505.8-0419_daily_bin237> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0505.8-0419_daily_bin237 76.4598 -4.3182 300758401 301017601 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 :                                   973.38 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             293.40 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              6
    Max Threads :                                22
    Run time :                                   996 sec.
    Turnaround time :                            998 sec.

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

