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


Performing analysis on: 4FGL_J0447.4-2747_daily_bin665
RA = 71.8687, Dec = -27.7998
tmin = 411696001, tmax = 411955201
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='736022', job_status='RUN', time_executed='2021-08-21 07:57:52.330060', time_epoch_executed='1629557872.33' WHERE source_name='4FGL J0447.4-2747' and cadence='daily' and bin_id='665'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/736022

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/736022/ft1_4FGL_J0447.4-2747_daily_bin665.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/736022/ft2_4FGL_J0447.4-2747_daily_bin665.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/736022/ft1_4FGL_J0447.4-2747_daily_bin665.fits outfile=/scratch/kocevski/736022/ft1_filteredMKT_4FGL_J0447.4-2747_daily_bin665.fits ra=71.8687 dec=-27.7998 rad=12.0 tmin=411696001.0 tmax=411955201.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 14.39
user 6.01
sys 8.31

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/736022/ft2_4FGL_J0447.4-2747_daily_bin665.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/736022/ft2_4FGL_J0447.4-2747_daily_bin665.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/736022/ft1_filteredMKT_4FGL_J0447.4-2747_daily_bin665.fits evtable="EVENTS" outfile="/scratch/kocevski/736022/ft1_filtered_4FGL_J0447.4-2747_daily_bin665.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.82
user 0.31
sys 8.47

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/736022/ft1_filtered_4FGL_J0447.4-2747_daily_bin665.fits" evtable="EVENTS" scfile=/scratch/kocevski/736022/ft2_4FGL_J0447.4-2747_daily_bin665.fits sctable="SC_DATA" outfile=/scratch/kocevski/736022/ltcube_411696001_411955201_4FGL_J0447.4-2747_daily_bin665.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/736022/ft2_4FGL_J0447.4-2747_daily_bin665.fits
.....................!
real 21.09
user 11.67
sys 9.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/736022/ft1_filtered_4FGL_J0447.4-2747_daily_bin665.fits evtable="EVENTS" scfile=/scratch/kocevski/736022/ft2_4FGL_J0447.4-2747_daily_bin665.fits sctable="SC_DATA" expcube=/scratch/kocevski/736022/ltcube_411696001_411955201_4FGL_J0447.4-2747_daily_bin665.fits outfile=/scratch/kocevski/736022/expmap_411696001_411955201_4FGL_J0447.4-2747_daily_bin665.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/736022/ltcube_411696001_411955201_4FGL_J0447.4-2747_daily_bin665.fits
.....................!
real 203.97
user 187.36
sys 16.04

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
Extended source Fornax A in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/FornaxA.fits is the correct path to the extended template.
Added 172 point sources and 1 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J0447.4-2747 @ 71.8687 -27.7998

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/736022/ft1_filtered_4FGL_J0447.4-2747_daily_bin665.fits scfile=/scratch/kocevski/736022/ft2_4FGL_J0447.4-2747_daily_bin665.fits outfile=/scratch/kocevski/736022/cmap_411696001_411955201_4FGL_J0447.4-2747_daily_bin665.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=71.8687 yref=-27.7998 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 12.31
user 0.37
sys 8.18

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/736022/ft1_filtered_4FGL_J0447.4-2747_daily_bin665.fits scfile=/scratch/kocevski/736022/ft2_4FGL_J0447.4-2747_daily_bin665.fits outfile=/scratch/kocevski/736022/cmap_HighResolution_411696001_411955201_4FGL_J0447.4-2747_daily_bin665.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=71.8687 yref=-27.7998 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 10.06
user 0.36
sys 8.09

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/736022/ft1_filtered_4FGL_J0447.4-2747_daily_bin665.fits evtable="EVENTS" scfile=/scratch/kocevski/736022/ft2_4FGL_J0447.4-2747_daily_bin665.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/736022/Model_4FGL_J0447.4-2747_daily_bin665.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 Fornax A
adding source GAL_V02
Working on...
/scratch/kocevski/736022/ft1_filtered_4FGL_J0447.4-2747_daily_bin665.fits.....................!
real 133.74
user 99.61
sys 12.15

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/736022/ft1_filtered_4FGL_J0447.4-2747_daily_bin665.fits', '/scratch/kocevski/736022/ft2_4FGL_J0447.4-2747_daily_bin665.fits', expMap='/scratch/kocevski/736022/expmap_411696001_411955201_4FGL_J0447.4-2747_daily_bin665.fits', expCube='/scratch/kocevski/736022/ltcube_411696001_411955201_4FGL_J0447.4-2747_daily_bin665.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/736022/Model_4FGL_J0447.4-2747_daily_bin665.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0447.4-2747'

4FGL J0447.4-2747
   Spectrum: LogParabola
273         norm:  6.926e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
274        alpha:  2.103e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
275         beta:  9.986e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
276           Eb:  1.817e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/736022/ft1_filtered_4FGL_J0447.4-2747_daily_bin665.fits
Spacecraft file(s): /scratch/kocevski/736022/ft2_4FGL_J0447.4-2747_daily_bin665.fits
Exposure map: /scratch/kocevski/736022/expmap_411696001_411955201_4FGL_J0447.4-2747_daily_bin665.fits
Exposure cube: /scratch/kocevski/736022/ltcube_411696001_411955201_4FGL_J0447.4-2747_daily_bin665.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/736022/Model_4FGL_J0447.4-2747_daily_bin665.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) = 4385.34932124

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    19.151       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .13322E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    21.918       1.0000         .10000E-03   10000.    
     6 'norm      '    3.5449       1.0000         .10000E-03   10000.    
     7 'Prefactor '    33.251       1.0000         .10000E-03   10000.    
     8 'norm      '    150.85       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    7.7796       1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.7996       1.0000         .10000E-03   10000.    
    13 'norm      '    .74938       1.0000         .10000E-03   10000.    
    14 'Prefactor '    32.795       1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.8917       1.0000         .10000E-03   10000.    
    16 'norm      '    .15683       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    4.3594       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.4007       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .67656       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5650E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4385.332     FROM MIGRAD    STATUS=CONVERGED    434 CALLS     2079 TOTAL
                     EDM=   .76E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          19.155        19.831       -.38928E-06   -.10661E-03
   2  Prefactor     .10000E-03    227.50        .76069E-07** at limit **
   3  Prefactor     .10000E-03    2.7998        .26057E-07** at limit **
   4  Prefactor     .10000E-03    15.159       -.36049E-07** at limit **
   5  Prefactor     21.928        28.563       -.75875E-06   -.77800E-04
   6  norm          3.5442        1.2949        .56531E-07   -.13824E-03
   7  Prefactor     33.249        25.252        .38852E-06    .49965E-04
   8  norm          150.78        178.19       -.11212E-04   -.18842E-03
   9  Prefactor     .10000E-03    8.0217        .69830E-07** at limit **
  10  Prefactor     .10000E-03    26.753        .33213E-07** at limit **
  11  norm          7.7789        6.4628       -.47935E-07   -.11185E-03
  12  Prefactor     4.7991        6.3291        .29631E-05   -.89075E-03
  13  norm          .74935        .28845        .11600E-07   -.13002E-03
  14  Prefactor     32.811        57.174        .32960E-05    .13700E-03
  15  Prefactor     2.8944        59.722        .77105E-07   -.20250E-04
  16  norm          .15343        1.8627       -.13861E-06    .46456E-04
  17  Prefactor     .10000E-03    44.611       -.20281E-07** at limit **
  18  norm          4.3589        3.6830        .66348E-07   -.40165E-04
  19  Normalizat    1.4009        .25594       -.11727E-05    .53228E-04
  20  Prefactor     .67643        .21816        .36616E-06   -.21559E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 19.1551
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 21.9277
  norm       = 3.54424
  Prefactor  = 33.2493
  norm       = 150.777
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 7.77886
  Prefactor  = 4.79907
  norm       = 0.749349
  Prefactor  = 32.8112
  Prefactor  = 2.89439
  norm       = 0.153426
  Prefactor  = 0.0001
  norm       = 4.3589
  Normalizat = 1.40094
  Prefactor  = 0.676431
 **********
 **   18 **HESSE 
 **********

 FCN=   4385.332     FROM HESSE     STATUS=OK           293 CALLS     2372 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          19.155        19.872        .91523E-04   -1.4832    
   2  Prefactor     .10000E-03    235.55        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    2.8180        .10820E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    15.210        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     21.928        29.370        .85555E-04   -1.4771    
   6  norm          3.5442        1.3225        .38000E-04   -1.5331    
   7  Prefactor     33.249        25.273        .69492E-04   -1.4554    
   8  norm          150.78        191.39        .16408E-03   -1.3246    
   9  Prefactor     .10000E-03    8.2069        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    26.770        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          7.7789        6.4873        .14095E-03   -1.5150    
  12  Prefactor     4.7991        6.7418        .91819E-03   -1.5270    
  13  norm          .74935        .28866        .20842E-04   -1.5535    
  14  Prefactor     32.811        57.976        .69971E-04   -1.4562    
  15  Prefactor     2.8944        59.980        .23898E-03   -1.5368    
  16  norm          .15343        14.330        .17247E-02   -1.5630    
  17  Prefactor     .10000E-03    44.722        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          4.3589        3.6886        .11214E-03   -1.5290    
  19  Normalizat    1.4009        .30941        .25541E-03   -.80602    
  20  Prefactor     .67643        .26142        .30681E-03   -1.0446    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.92984e-09
Minuit parameter uncertainties:
  1  19.8788
  2  0.000690463
  3  1.1011e-06
  4  1.08799e-05
  5  29.3896
  6  1.32256
  7  25.281
  8  192.187
  9  2.11931e-06
  10  4.86583e-06
  11  6.48792
  12  6.7429
  13  0.288662
  14  58.0761
  15  26.3816
  16  2.96529
  17  5.07115e-06
  18  3.68875
  19  0.30982
  20  0.261893
Done.

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

Extracting fit parameters...

4FGL J0447.4-2747
   Spectrum: LogParabola
273         norm:  1.508e+02  1.922e+02  1.000e-04  1.000e+04 ( 1.000e-14)
274        alpha:  2.103e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
275         beta:  9.986e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
276           Eb:  1.817e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
562    Prefactor:  6.764e-01  2.619e-01  0.000e+00  1.000e+01 ( 1.000e+00)
563        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
564        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
558   Normalization:  1.401e+00  3.098e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.38
Ra Dec: 71.869 -27.800
Photon Index (Fixed Index): 2.10 +/- 0.00
Photon Flux (Fixed Index): 6.59e-09 +/- 8.39e-09
Energy Flux (Fixed Index): 8.85e-06 +/- 1.13e-05

TS (Fixed Index): 1.38
Ra Dec: 71.869 -27.800
Photon Flux Upper Limit: 3.44e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.62e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/736022/likelihoodResults_411696001_411955201_4FGL_J0447.4-2747_daily_bin665.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) = 4385.31521271
delta logL = 0.017263707321

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4385.3149704
delta logL = 0.0175060205383

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    153.94       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.6616       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3997       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .67858       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5650E+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=   4385.315     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      233 TOTAL
                     EDM=   .16E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          154.76        196.52        .16245E-03    .18056E-05
   2  alpha         1.6768        1.9388        .58812E-01    .11956E-05
   3  Normalizat    1.3998        .29313        .25552E-03    .42820E-04
   4  Prefactor     .67836        .25558        .30642E-03    .66708E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 154.759
  alpha      = 1.67675
  Normalizat = 1.39982
  Prefactor  = 0.67836
 **********
 **   18 **HESSE 
 **********

 FCN=   4385.315     FROM HESSE     STATUS=OK            25 CALLS      258 TOTAL
                     EDM=   .16E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          154.76        196.74        .32490E-04   -1.3213    
   2  alpha         1.6768        1.9412        .23525E-02   -.33556    
   3  Normalizat    1.3998        .29340        .51103E-04   -.80634    
   4  Prefactor     .67836        .25581        .12257E-04   -1.0438    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.57223e-11
Minuit parameter uncertainties:
  1  197.578
  2  2.2792
  3  0.293751
  4  0.256256
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/736022': 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) = 4385.31494104
delta logL = 0.0175353767918

Extracting fit parameters...

4FGL J0447.4-2747
   Spectrum: LogParabola
273         norm:  1.548e+02  1.976e+02  1.000e-04  1.000e+04 ( 1.000e-14)
274        alpha:  1.677e+00  2.279e+00  0.000e+00  5.000e+00 ( 1.000e+00)
275         beta:  9.986e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
276           Eb:  1.817e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
562    Prefactor:  6.784e-01  2.563e-01  0.000e+00  1.000e+01 ( 1.000e+00)
563        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
564        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
558   Normalization:  1.400e+00  2.938e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.42
Ra Dec: 71.869 -27.800
Photon Index (Free Index): 1.68 +/- 2.28
Photon Flux (Free Index): 5.59e-09 +/- 8.51e-09
Energy Flux (Free Index): 9.30e-06 +/- 1.22e-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/736022/cmap_HighResolution_411696001_411955201_4FGL_J0447.4-2747_daily_bin665.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.62e-05', comment='SUCCESS', photon_flux='6.59e-09', energy_flux2='9.30e-06', photon_flux_error='8.39e-09', dlogl='1.75e-02', energy_flux='8.85e-06', photon_flux2='5.59e-09', job_status='DONE', time_completed='2021-08-21 08:10:16.635757', photon_index_error2='2.28', photon_index2='1.68', ts='1.38', fit_tolerance='1e-08', GAL='0.68', photon_index_error='0.00', photon_flux_upper_limit='3.44e-08', energy_flux_error2='1.22e-05', EG='1.40', time_epoch_completed='1629558616.64', return_code='0', job_id='736022', GAL2='0.68', EG2='1.40', return_code2='0', energy_flux_error='1.13e-05', photon_flux_error2='8.51e-09', ts2='1.42', photon_index='2.10' WHERE bin_id='665' AND source_name='4FGL J0447.4-2747' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 21 08:10:16 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0112>
Subject: Job 736022: <4FGL_J0447.4-2747_daily_bin665> in cluster <slac> Done

Job <4FGL_J0447.4-2747_daily_bin665> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sat Aug 21 07:55:26 2021
Job was executed on host(s) <bullet0112>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 21 07:55:28 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Aug 21 07:55:28 2021
Terminated at Sat Aug 21 08:10:18 2021
Results reported at Sat Aug 21 08:10:18 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0447.4-2747_daily_bin665 71.8687 -27.7998 411696001 411955201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0447.4-2747 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   831.03 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             267.57 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   889 sec.
    Turnaround time :                            892 sec.

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

