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


Performing analysis on: 4FGL_J0303.4-2407_daily_bin1411
RA = 45.8625, Dec = -24.1225
tmin = 605059201, tmax = 605318401
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='93399', job_status='RUN', time_executed='2021-08-17 11:47:34.415635', time_epoch_executed='1629226054.42' WHERE source_name='4FGL J0303.4-2407' and cadence='daily' and bin_id='1411'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/93399

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/93399/ft1_4FGL_J0303.4-2407_daily_bin1411.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/93399/ft2_4FGL_J0303.4-2407_daily_bin1411.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/93399/ft1_4FGL_J0303.4-2407_daily_bin1411.fits outfile=/scratch/kocevski/93399/ft1_filteredMKT_4FGL_J0303.4-2407_daily_bin1411.fits ra=45.8625 dec=-24.1225 rad=12.0 tmin=605059201.0 tmax=605318401.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 5.50
user 5.13
sys 0.24

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/93399/ft2_4FGL_J0303.4-2407_daily_bin1411.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/93399/ft2_4FGL_J0303.4-2407_daily_bin1411.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/93399/ft1_filteredMKT_4FGL_J0303.4-2407_daily_bin1411.fits evtable="EVENTS" outfile="/scratch/kocevski/93399/ft1_filtered_4FGL_J0303.4-2407_daily_bin1411.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.70
user 0.35
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/93399/ft1_filtered_4FGL_J0303.4-2407_daily_bin1411.fits" evtable="EVENTS" scfile=/scratch/kocevski/93399/ft2_4FGL_J0303.4-2407_daily_bin1411.fits sctable="SC_DATA" outfile=/scratch/kocevski/93399/ltcube_605059201_605318401_4FGL_J0303.4-2407_daily_bin1411.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/93399/ft2_4FGL_J0303.4-2407_daily_bin1411.fits
.....................!
real 12.70
user 11.95
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/93399/ft1_filtered_4FGL_J0303.4-2407_daily_bin1411.fits evtable="EVENTS" scfile=/scratch/kocevski/93399/ft2_4FGL_J0303.4-2407_daily_bin1411.fits sctable="SC_DATA" expcube=/scratch/kocevski/93399/ltcube_605059201_605318401_4FGL_J0303.4-2407_daily_bin1411.fits outfile=/scratch/kocevski/93399/expmap_605059201_605318401_4FGL_J0303.4-2407_daily_bin1411.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/93399/ltcube_605059201_605318401_4FGL_J0303.4-2407_daily_bin1411.fits
.....................!
real 194.51
user 186.16
sys 4.98

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 161 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 J0303.4-2407 @ 45.8625 -24.1225

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/93399/ft1_filtered_4FGL_J0303.4-2407_daily_bin1411.fits scfile=/scratch/kocevski/93399/ft2_4FGL_J0303.4-2407_daily_bin1411.fits outfile=/scratch/kocevski/93399/cmap_605059201_605318401_4FGL_J0303.4-2407_daily_bin1411.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=45.8625 yref=-24.1225 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 2.50
user 0.39
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/93399/ft1_filtered_4FGL_J0303.4-2407_daily_bin1411.fits scfile=/scratch/kocevski/93399/ft2_4FGL_J0303.4-2407_daily_bin1411.fits outfile=/scratch/kocevski/93399/cmap_HighResolution_605059201_605318401_4FGL_J0303.4-2407_daily_bin1411.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=45.8625 yref=-24.1225 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 2.77
user 0.37
sys 0.20

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/93399/ft1_filtered_4FGL_J0303.4-2407_daily_bin1411.fits evtable="EVENTS" scfile=/scratch/kocevski/93399/ft2_4FGL_J0303.4-2407_daily_bin1411.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/93399/Model_4FGL_J0303.4-2407_daily_bin1411.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/93399/ft1_filtered_4FGL_J0303.4-2407_daily_bin1411.fits.....................!
real 104.48
user 88.97
sys 1.32

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/93399/ft1_filtered_4FGL_J0303.4-2407_daily_bin1411.fits', '/scratch/kocevski/93399/ft2_4FGL_J0303.4-2407_daily_bin1411.fits', expMap='/scratch/kocevski/93399/expmap_605059201_605318401_4FGL_J0303.4-2407_daily_bin1411.fits', expCube='/scratch/kocevski/93399/ltcube_605059201_605318401_4FGL_J0303.4-2407_daily_bin1411.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/93399/Model_4FGL_J0303.4-2407_daily_bin1411.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0303.4-2407'

4FGL J0303.4-2407
   Spectrum: LogParabola
245         norm:  5.310e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
246        alpha:  1.849e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
247         beta:  3.126e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
248           Eb:  9.451e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/93399/ft1_filtered_4FGL_J0303.4-2407_daily_bin1411.fits
Spacecraft file(s): /scratch/kocevski/93399/ft2_4FGL_J0303.4-2407_daily_bin1411.fits
Exposure map: /scratch/kocevski/93399/expmap_605059201_605318401_4FGL_J0303.4-2407_daily_bin1411.fits
Exposure cube: /scratch/kocevski/93399/ltcube_605059201_605318401_4FGL_J0303.4-2407_daily_bin1411.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/93399/Model_4FGL_J0303.4-2407_daily_bin1411.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) = 4053.78149741

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.8947       1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    25.418       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    1.4966       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    6.8315       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    17.110       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    4.5091       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    1.7279       1.0000         .10000E-03   10000.    
    24 'norm      '    28.331       1.0000         .10000E-03   10000.    
    25 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.0129       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .91840       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5080E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4053.766     FROM MIGRAD    STATUS=CONVERGED    651 CALLS     3331 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.8969        11.412       -.12257E-05   -.11434E-03
   2  norm          .10000E-03    84.582        .23801E-04** at limit **
   3  Prefactor     .10000E-03    22.535       -.11030E-04** at limit **
   4  Prefactor     .10000E-03    26.639        .28822E-05** at limit **
   5  Prefactor     .10000E-03    41.524        .63224E-05** at limit **
   6  Prefactor     25.433        50.585        .15503E-04    .76638E-04
   7  Prefactor     .10000E-03    2.1721        .31629E-06** at limit **
   8  Prefactor     .10000E-03    71.699       -.48703E-05** at limit **
   9  norm          1.4966        1.8954       -.57968E-06   -.21636E-03
  10  Prefactor     .10000E-03    7.9853       -.12209E-05** at limit **
  11  Prefactor     .10000E-03    42.005        .39414E-05** at limit **
  12  Prefactor     .10000E-03    14.122       -.92870E-07** at limit **
  13  norm          6.8313        4.5941        .15504E-06    .46241E-04
  14  Prefactor     .10000E-03    77.348        .12522E-04** at limit **
  15  Prefactor     .10000E-03    152.24       -.25555E-04** at limit **
  16  Prefactor     .10000E-03    2.7059       -.84883E-07** at limit **
  17  Prefactor     .10000E-03    61.889       -.25039E-04** at limit **
  18  Prefactor     17.109        42.707       -.14344E-05    .56060E-06
  19  Prefactor     .10000E-03    44.340       -.64563E-05** at limit **
  20  Prefactor     .10000E-03    21.781        .56332E-05** at limit **
  21  Prefactor     4.5089        3.3956       -.50613E-06   -.22780E-02
  22  Prefactor     .10000E-03    1.8295       -.55003E-06** at limit **
  23  Prefactor     1.7280        4.0802       -.11685E-06   -.39373E-03
  24  norm          28.331        3.2904        .53316E-07    .22257E-03
  25  norm          .10000E-03    .88664       -.10974E-06** at limit **
  26  Normalizat    1.0129        .23815       -.21414E-05    .28651E-03
  27  Prefactor     .91842        .22895        .12849E-05    .11595E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.89691
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 25.4335
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.49661
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 6.83131
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 17.1086
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.50891
  Prefactor  = 0.0001
  Prefactor  = 1.72796
  norm       = 28.3309
  norm       = 0.0001
  Normalizat = 1.01294
  Prefactor  = 0.918415
 **********
 **   18 **HESSE 
 **********

 FCN=   4053.766     FROM HESSE     STATUS=OK           476 CALLS     3807 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.8969        11.424        .23885E-03   -1.5368    
   2  norm          .10000E-03    84.213        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    23.116        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    26.641        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    41.488        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     25.433        50.733        .79456E-04   -1.4699    
   7  Prefactor     .10000E-03    2.1757        .91624E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    71.964        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          1.4966        1.8784        .95383E-04   -1.5463    
  10  Prefactor     .10000E-03    8.0067        .17571E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    42.005        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    14.201        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          6.8313        4.5923        .10822E-03   -1.5185    
  14  Prefactor     .10000E-03    79.198        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    151.70        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    2.7167        .10227E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    61.912        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     17.109        42.734        .96825E-04   -1.4880    
  19  Prefactor     .10000E-03    44.325        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    21.769        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     4.5089        3.4413        .49196E-03   -1.5283    
  22  Prefactor     .10000E-03    1.8318        .84055E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     1.7280        4.0443        .18918E-03   -1.5445    
  24  norm          28.331        3.2914        .37873E-04   -1.4643    
  25  norm          .10000E-03    .90927        .11689E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    1.0129        .27516        .27079E-03   -.92598    
  27  Prefactor     .91842        .26448        .28116E-03   -.95501    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.07399e-09
Minuit parameter uncertainties:
  1  11.4329
  2  6.35092e-06
  3  0.000222232
  4  7.08282e-06
  5  3.22071e-05
  6  50.8193
  7  3.01188e-06
  8  0.000324561
  9  1.87849
  10  3.5218e-06
  11  9.79906e-07
  12  8.58262e-06
  13  4.59249
  14  0.00030158
  15  5.91924e-05
  16  5.71331e-06
  17  0.000562295
  18  42.8104
  19  1.66915e-05
  20  9.54221e-06
  21  3.44141
  22  2.35396e-06
  23  4.04498
  24  3.29141
  25  4.67597e-06
  26  0.275547
  27  0.264846
Done.

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

Extracting fit parameters...

4FGL J0303.4-2407
   Spectrum: LogParabola
245         norm:  6.831e+00  4.592e+00  1.000e-04  1.000e+04 ( 1.000e-12)
246        alpha:  1.849e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
247         beta:  3.126e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
248           Eb:  9.451e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
505    Prefactor:  9.184e-01  2.648e-01  0.000e+00  1.000e+01 ( 1.000e+00)
506        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
507        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
501   Normalization:  1.013e+00  2.755e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.59
Ra Dec: 45.862 -24.122
Photon Index (Fixed Index): 1.85 +/- 0.00
Photon Flux (Fixed Index): 4.74e-08 +/- 3.18e-08
Energy Flux (Fixed Index): 4.34e-05 +/- 2.92e-05

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) = 4053.66677154
delta logL = 0.098824788045

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4053.66417354
delta logL = 0.101422784085

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.5695       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1370       1.0000          .0000       5.0000    
     3 'Normalizat'    .99015       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93228       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5080E+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=   4053.664     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      232 TOTAL
                     EDM=   .39E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.5694        4.6058        .10151E-03    .30541E-03
   2  alpha         2.1369        .67403        .11828E-01    .20154E-04
   3  Normalizat    .99034        .27127        .27347E-03   -.10414E-04
   4  Prefactor     .93239        .26622        .27928E-03   -.18542E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 6.5694
  alpha      = 2.13688
  Normalizat = 0.990336
  Prefactor  = 0.932389
 **********
 **   18 **HESSE 
 **********

 FCN=   4053.664     FROM HESSE     STATUS=OK            25 CALLS      257 TOTAL
                     EDM=   .36E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.5694        4.5454        .40605E-05   -1.5195    
   2  alpha         2.1369        .66464        .47310E-03   -.14576    
   3  Normalizat    .99034        .27128        .10939E-04   -.93355    
   4  Prefactor     .93239        .26634        .11171E-04   -.95018    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.58605e-11
Minuit parameter uncertainties:
  1  4.5456
  2  0.672913
  3  0.271658
  4  0.266714
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/93399': 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) = 4053.66417116
delta logL = 0.101425162776

Extracting fit parameters...

4FGL J0303.4-2407
   Spectrum: LogParabola
245         norm:  6.569e+00  4.546e+00  1.000e-04  1.000e+04 ( 1.000e-12)
246        alpha:  2.137e+00  6.729e-01  0.000e+00  5.000e+00 ( 1.000e+00)
247         beta:  3.126e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
248           Eb:  9.451e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
505    Prefactor:  9.324e-01  2.667e-01  0.000e+00  1.000e+01 ( 1.000e+00)
506        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
507        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
501   Normalization:  9.903e-01  2.717e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.75
Ra Dec: 45.862 -24.122
Photon Index (Free Index): 2.14 +/- 0.67
Photon Flux (Free Index): 6.47e-08 +/- 5.95e-08
Energy Flux (Free Index): 3.16e-05 +/- 2.70e-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/93399/cmap_HighResolution_605059201_605318401_4FGL_J0303.4-2407_daily_bin1411.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.74e-08', energy_flux2='3.16e-05', photon_flux_error='3.18e-08', dlogl='1.01e-01', energy_flux='4.34e-05', photon_flux2='6.47e-08', job_status='DONE', time_completed='2021-08-17 11:57:52.310068', photon_index_error2='0.67', photon_index2='2.14', ts='5.59', fit_tolerance='1e-08', GAL='0.92', photon_index_error='0.00', energy_flux_error2='2.70e-05', EG='1.01', time_epoch_completed='1629226672.31', return_code='0', job_id='93399', GAL2='0.93', EG2='0.99', return_code2='0', energy_flux_error='2.92e-05', photon_flux_error2='5.95e-08', ts2='5.75', photon_index='1.85' WHERE bin_id='1411' AND source_name='4FGL J0303.4-2407' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 17 11:57:52 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0231>
Subject: Job 93399: <4FGL_J0303.4-2407_daily_bin1411> in cluster <slac> Done

Job <4FGL_J0303.4-2407_daily_bin1411> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Aug 17 11:42:01 2021
Job was executed on host(s) <bullet0231>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug 17 11:44:56 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Aug 17 11:44:56 2021
Terminated at Tue Aug 17 11:57:53 2021
Results reported at Tue Aug 17 11:57:53 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0303.4-2407_daily_bin1411 45.8625 -24.1225 605059201 605318401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0303.4-2407 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   586.43 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             305.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   776 sec.
    Turnaround time :                            952 sec.

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

