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


Performing analysis on: 4FGL_J0303.4-2407_daily_bin1010
RA = 45.8625, Dec = -24.1225
tmin = 501120001, tmax = 501379201
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='90025', job_status='RUN', time_executed='2021-08-17 11:37:48.308739', time_epoch_executed='1629225468.31' WHERE source_name='4FGL J0303.4-2407' and cadence='daily' and bin_id='1010'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/90025

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/90025/ft1_4FGL_J0303.4-2407_daily_bin1010.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/90025/ft2_4FGL_J0303.4-2407_daily_bin1010.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/90025/ft1_4FGL_J0303.4-2407_daily_bin1010.fits outfile=/scratch/kocevski/90025/ft1_filteredMKT_4FGL_J0303.4-2407_daily_bin1010.fits ra=45.8625 dec=-24.1225 rad=12.0 tmin=501120001.0 tmax=501379201.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 7.29
user 2.52
sys 3.84

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/90025/ft2_4FGL_J0303.4-2407_daily_bin1010.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/90025/ft1_filteredMKT_4FGL_J0303.4-2407_daily_bin1010.fits evtable="EVENTS" outfile="/scratch/kocevski/90025/ft1_filtered_4FGL_J0303.4-2407_daily_bin1010.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 4.35
user 0.27
sys 3.65

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/90025/ft1_filtered_4FGL_J0303.4-2407_daily_bin1010.fits" evtable="EVENTS" scfile=/scratch/kocevski/90025/ft2_4FGL_J0303.4-2407_daily_bin1010.fits sctable="SC_DATA" outfile=/scratch/kocevski/90025/ltcube_501120001_501379201_4FGL_J0303.4-2407_daily_bin1010.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/90025/ft2_4FGL_J0303.4-2407_daily_bin1010.fits
.....................!
real 15.78
user 10.65
sys 4.46

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/90025/ft1_filtered_4FGL_J0303.4-2407_daily_bin1010.fits evtable="EVENTS" scfile=/scratch/kocevski/90025/ft2_4FGL_J0303.4-2407_daily_bin1010.fits sctable="SC_DATA" expcube=/scratch/kocevski/90025/ltcube_501120001_501379201_4FGL_J0303.4-2407_daily_bin1010.fits outfile=/scratch/kocevski/90025/expmap_501120001_501379201_4FGL_J0303.4-2407_daily_bin1010.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/90025/ltcube_501120001_501379201_4FGL_J0303.4-2407_daily_bin1010.fits
.....................!
real 160.50
user 147.89
sys 9.05

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/90025/ft1_filtered_4FGL_J0303.4-2407_daily_bin1010.fits scfile=/scratch/kocevski/90025/ft2_4FGL_J0303.4-2407_daily_bin1010.fits outfile=/scratch/kocevski/90025/cmap_501120001_501379201_4FGL_J0303.4-2407_daily_bin1010.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 4.59
user 0.31
sys 3.71

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/90025/ft1_filtered_4FGL_J0303.4-2407_daily_bin1010.fits scfile=/scratch/kocevski/90025/ft2_4FGL_J0303.4-2407_daily_bin1010.fits outfile=/scratch/kocevski/90025/cmap_HighResolution_501120001_501379201_4FGL_J0303.4-2407_daily_bin1010.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 4.24
user 0.31
sys 3.57

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/90025/ft1_filtered_4FGL_J0303.4-2407_daily_bin1010.fits evtable="EVENTS" scfile=/scratch/kocevski/90025/ft2_4FGL_J0303.4-2407_daily_bin1010.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/90025/Model_4FGL_J0303.4-2407_daily_bin1010.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/90025/ft1_filtered_4FGL_J0303.4-2407_daily_bin1010.fits.....................!
real 129.26
user 114.14
sys 6.37

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/90025/ft1_filtered_4FGL_J0303.4-2407_daily_bin1010.fits', '/scratch/kocevski/90025/ft2_4FGL_J0303.4-2407_daily_bin1010.fits', expMap='/scratch/kocevski/90025/expmap_501120001_501379201_4FGL_J0303.4-2407_daily_bin1010.fits', expCube='/scratch/kocevski/90025/ltcube_501120001_501379201_4FGL_J0303.4-2407_daily_bin1010.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/90025/Model_4FGL_J0303.4-2407_daily_bin1010.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/90025/ft1_filtered_4FGL_J0303.4-2407_daily_bin1010.fits
Spacecraft file(s): /scratch/kocevski/90025/ft2_4FGL_J0303.4-2407_daily_bin1010.fits
Exposure map: /scratch/kocevski/90025/expmap_501120001_501379201_4FGL_J0303.4-2407_daily_bin1010.fits
Exposure cube: /scratch/kocevski/90025/ltcube_501120001_501379201_4FGL_J0303.4-2407_daily_bin1010.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/90025/Model_4FGL_J0303.4-2407_daily_bin1010.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) = 6905.37554098

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.2839       1.0000         .10000E-03   10000.    
     2 'norm      '    .37721E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10074E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    19.704       1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.6403       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .93940       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .11839E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    1.9500       1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.3177       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .74778       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10196E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    2.4864       1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.3042       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .12215E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .68371E-02   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10193E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .32591E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    23.536       1.0000         .10000E-03   10000.    
    21 'Prefactor '    1.8493       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .46271       1.0000         .10000E-03   10000.    
    23 'Prefactor '    2.9958       1.0000         .10000E-03   10000.    
    24 'norm      '    6.0582       1.0000         .10000E-03   10000.    
    25 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    .74366       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.1181       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=   6905.319     FROM MIGRAD    STATUS=CONVERGED   1197 CALLS     3415 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.2850        3.6063        .25380E-03   -.19710E-04
   2  norm          .10000E-03    176.86        .42580E-03** at limit **
   3  Prefactor     .10000E-03    2.7388        .13353E-02** at limit **
   4  Prefactor     .10000E-03    12.855        .18142E-02** at limit **
   5  Prefactor     19.711        28.409        .90231E-04    .17261E-04
   6  Prefactor     3.6521        40.458        .21173E-03    .31679E-05
   7  Prefactor     .93998        2.3621        .20721E-02    .40236E-02
   8  Prefactor     .10000E-03    27.945        .18142E-02** at limit **
   9  norm          1.9501        1.6188        .91971E-04   -.31645E-04
  10  Prefactor     2.3172        7.2632        .26946E-03    .20041E-04
  11  Prefactor     .67593        60.116        .16835        .10043E-03
  12  Prefactor     .10000E-03    7.2367        .18142E-02** at limit **
  13  norm          2.4868        1.9158        .98014E-04   -.22734E-04
  14  Prefactor     5.3037        9.2532        .17451E-03   -.38436E-05
  15  Prefactor     .10000E-03    210.72        .18142E-02** at limit **
  16  Prefactor     .10000E-03    28.763        .21998E-02** at limit **
  17  Prefactor     .10000E-03    5.1956        .18142E-02** at limit **
  18  Prefactor     .10000E-03    24.235        .18142E-02** at limit **
  19  Prefactor     .10000E-03    126.79        .62433E-02** at limit **
  20  Prefactor     23.493        30.661        .82567E-04   -.44061E-05
  21  Prefactor     1.8495        1.6902        .98438E-04   -.49430E-04
  22  Prefactor     .45580        5.4960        .24401E-02    .21414E-03
  23  Prefactor     2.9936        3.3017        .14103E-03   -.20008E-03
  24  norm          6.0581        1.1968        .37847E-04   -.33343E-03
  25  norm          .10000E-03    .36064        .48174E-03** at limit **
  26  Normalizat    .74374        .16278        .24293E-03   -.49887E-04
  27  Prefactor     1.1180        .17277        .22069E-03    .93745E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.28495
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 19.7115
  Prefactor  = 3.65209
  Prefactor  = 0.939978
  Prefactor  = 0.0001
  norm       = 1.95009
  Prefactor  = 2.31717
  Prefactor  = 0.675929
  Prefactor  = 0.0001
  norm       = 2.48678
  Prefactor  = 5.30366
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 23.4934
  Prefactor  = 1.84946
  Prefactor  = 0.455797
  Prefactor  = 2.99356
  norm       = 6.05811
  norm       = 0.0001
  Normalizat = 0.743735
  Prefactor  = 1.11796
 **********
 **   18 **HESSE 
 **********

 FCN=   6905.319     FROM HESSE     STATUS=OK           474 CALLS     3889 TOTAL
                     EDM=   .39E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.2850        3.6055        .10152E-04   -1.5481    
   2  norm          .10000E-03    176.88        .85161E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    2.7393        .26706E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    12.855        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     19.711        28.406        .36092E-05   -1.4820    
   6  Prefactor     3.6521        40.426        .84694E-05   -1.5326    
   7  Prefactor     .93998        2.3587        .41441E-03   -1.5514    
   8  Prefactor     .10000E-03    27.951        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          1.9501        1.6186        .36788E-05   -1.5429    
  10  Prefactor     2.3172        7.2626        .10778E-04   -1.5404    
  11  Prefactor     .67593        59.575        .16932       -1.5544    
  12  Prefactor     .10000E-03    7.2396        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          2.4868        1.9157        .39206E-05   -1.5393    
  14  Prefactor     5.3037        9.2520        .69805E-05   -1.5247    
  15  Prefactor     .10000E-03    210.74        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    29.674        .87992E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    5.1963        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    24.240        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    130.21        .24973E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     23.493        30.662        .33027E-05   -1.4738    
  21  Prefactor     1.8495        1.6901        .39375E-05   -1.5436    
  22  Prefactor     .45580        5.3397        .97605E-04   -1.5573    
  23  Prefactor     2.9936        3.2725        .56410E-05   -1.5362    
  24  norm          6.0581        1.1923        .15139E-05   -1.5216    
  25  norm          .10000E-03    .36066        .96348E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .74374        .16277        .97172E-05   -1.0219    
  27  Prefactor     1.1180        .17282        .44138E-04   -.88895    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.88117e-10
Minuit parameter uncertainties:
  1  3.60613
  2  0.000862266
  3  1.29033e-05
  4  1.90581e-07
  5  28.4251
  6  24.3219
  7  2.35894
  8  9.79907e-05
  9  1.61866
  10  7.26539
  11  12.7036
  12  1.27427e-05
  13  1.91578
  14  9.25448
  15  0.000119008
  16  0.000241512
  17  1.80758e-06
  18  1.8545e-05
  19  8.06364e-05
  20  30.683
  21  1.69009
  22  3.12015
  23  3.27272
  24  1.1923
  25  5.62082e-07
  26  0.162879
  27  0.172906
Done.

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

Extracting fit parameters...

4FGL J0303.4-2407
   Spectrum: LogParabola
245         norm:  2.487e+00  1.916e+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:  1.118e+00  1.729e-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:  7.437e-01  1.629e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.96
Ra Dec: 45.862 -24.122
Photon Index (Fixed Index): 1.85 +/- 0.00
Photon Flux (Fixed Index): 1.73e-08 +/- 1.33e-08
Energy Flux (Fixed Index): 1.58e-05 +/- 1.22e-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) = 6905.29749023
delta logL = 0.0213165077121

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6905.29730746
delta logL = 0.0214992720712

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.4849       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.7235       1.0000          .0000       5.0000    
     3 'Normalizat'    .74642       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1163       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.

 FCN=   6905.297     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      221 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.4857        82.014        .64832E-02   -.44446E-04
   2  alpha         1.7238        2.8938        .43994       -.16419E-04
   3  Normalizat    .74619        .17540        .42907E-01    .16802E-04
   4  Prefactor     1.1166        .14920        .36998E-01    .19606E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 2.48572
  alpha      = 1.72381
  Normalizat = 0.746188
  Prefactor  = 1.11656
 **********
 **   18 **HESSE 
 **********

 FCN=   6905.297     FROM HESSE     STATUS=OK            33 CALLS      254 TOTAL
                     EDM=   .55E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.4857        1.9305        .98784E-04   -1.5393    
   2  alpha         1.7238        .58084        .15300E-01   -.31570    
   3  Normalizat    .74619        .15424        .24255E-03   -1.0210    
   4  Prefactor     1.1166        .16916        .22081E-03   -.88939    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.53941e-13
Minuit parameter uncertainties:
  1  1.93054
  2  0.586785
  3  0.154335
  4  0.169245
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/90025': 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) = 6905.29730602
delta logL = 0.0215007146326

Extracting fit parameters...

4FGL J0303.4-2407
   Spectrum: LogParabola
245         norm:  2.486e+00  1.931e+00  1.000e-04  1.000e+04 ( 1.000e-12)
246        alpha:  1.724e+00  5.868e-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:  1.117e+00  1.692e-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:  7.462e-01  1.543e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.00
Ra Dec: 45.862 -24.122
Photon Index (Free Index): 1.72 +/- 0.59
Photon Flux (Free Index): 1.52e-08 +/- 1.48e-08
Energy Flux (Free Index): 1.95e-05 +/- 2.58e-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/90025/cmap_HighResolution_501120001_501379201_4FGL_J0303.4-2407_daily_bin1010.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.73e-08', energy_flux2='1.95e-05', photon_flux_error='1.33e-08', dlogl='2.15e-02', energy_flux='1.58e-05', photon_flux2='1.52e-08', job_status='DONE', time_completed='2021-08-17 11:49:34.572815', photon_index_error2='0.59', photon_index2='1.72', ts='4.96', fit_tolerance='1e-08', GAL='1.12', photon_index_error='0.00', energy_flux_error2='2.58e-05', EG='0.74', time_epoch_completed='1629226174.57', return_code='0', job_id='90025', GAL2='1.12', EG2='0.75', return_code2='0', energy_flux_error='1.22e-05', photon_flux_error2='1.48e-08', ts2='5.00', photon_index='1.85' WHERE bin_id='1010' AND source_name='4FGL J0303.4-2407' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 17 11:49:34 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0023>
Subject: Job 90025: <4FGL_J0303.4-2407_daily_bin1010> in cluster <slac> Done

Job <4FGL_J0303.4-2407_daily_bin1010> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Tue Aug 17 11:31:08 2021
Job was executed on host(s) <bullet0023>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug 17 11:35:27 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:35:27 2021
Terminated at Tue Aug 17 11:49:36 2021
Results reported at Tue Aug 17 11:49:36 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0303.4-2407_daily_bin1010 45.8625 -24.1225 501120001 501379201 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 :                                   737.00 sec.
    Max Memory :                                 617 MB
    Average Memory :                             279.20 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   848 sec.
    Turnaround time :                            1108 sec.

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

