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


Performing analysis on: 4FGL_J0303.4-2407_daily_bin1181
RA = 45.8625, Dec = -24.1225
tmin = 545443201, tmax = 545702401
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='91492', job_status='RUN', time_executed='2021-08-17 11:40:34.760000', time_epoch_executed='1629225634.76' WHERE source_name='4FGL J0303.4-2407' and cadence='daily' and bin_id='1181'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/91492

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/91492/ft1_4FGL_J0303.4-2407_daily_bin1181.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/91492/ft2_4FGL_J0303.4-2407_daily_bin1181.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/91492/ft1_4FGL_J0303.4-2407_daily_bin1181.fits outfile=/scratch/kocevski/91492/ft1_filteredMKT_4FGL_J0303.4-2407_daily_bin1181.fits ra=45.8625 dec=-24.1225 rad=12.0 tmin=545443201.0 tmax=545702401.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.27
user 3.94
sys 0.47

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/91492/ft1_filtered_4FGL_J0303.4-2407_daily_bin1181.fits" evtable="EVENTS" scfile=/scratch/kocevski/91492/ft2_4FGL_J0303.4-2407_daily_bin1181.fits sctable="SC_DATA" outfile=/scratch/kocevski/91492/ltcube_545443201_545702401_4FGL_J0303.4-2407_daily_bin1181.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/91492/ft2_4FGL_J0303.4-2407_daily_bin1181.fits
.....................!
real 14.12
user 13.22
sys 0.65

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/91492/ft1_filtered_4FGL_J0303.4-2407_daily_bin1181.fits evtable="EVENTS" scfile=/scratch/kocevski/91492/ft2_4FGL_J0303.4-2407_daily_bin1181.fits sctable="SC_DATA" expcube=/scratch/kocevski/91492/ltcube_545443201_545702401_4FGL_J0303.4-2407_daily_bin1181.fits outfile=/scratch/kocevski/91492/expmap_545443201_545702401_4FGL_J0303.4-2407_daily_bin1181.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/91492/ltcube_545443201_545702401_4FGL_J0303.4-2407_daily_bin1181.fits
.....................!
real 195.93
user 188.10
sys 5.37

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/91492/ft1_filtered_4FGL_J0303.4-2407_daily_bin1181.fits scfile=/scratch/kocevski/91492/ft2_4FGL_J0303.4-2407_daily_bin1181.fits outfile=/scratch/kocevski/91492/cmap_545443201_545702401_4FGL_J0303.4-2407_daily_bin1181.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 0.90
user 0.40
sys 0.39

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/91492/ft1_filtered_4FGL_J0303.4-2407_daily_bin1181.fits scfile=/scratch/kocevski/91492/ft2_4FGL_J0303.4-2407_daily_bin1181.fits outfile=/scratch/kocevski/91492/cmap_HighResolution_545443201_545702401_4FGL_J0303.4-2407_daily_bin1181.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 0.92
user 0.39
sys 0.40

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/91492/ft1_filtered_4FGL_J0303.4-2407_daily_bin1181.fits evtable="EVENTS" scfile=/scratch/kocevski/91492/ft2_4FGL_J0303.4-2407_daily_bin1181.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/91492/Model_4FGL_J0303.4-2407_daily_bin1181.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/91492/ft1_filtered_4FGL_J0303.4-2407_daily_bin1181.fits.....................!
real 104.45
user 101.10
sys 1.67

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    73.642       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .14103E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10567E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    5.7740       1.0000         .10000E-03   10000.    
     8 'Prefactor '    42.858       1.0000         .10000E-03   10000.    
     9 'norm      '    .10070E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    6.7176       1.0000         .10000E-03   10000.    
    13 'norm      '    2.6332       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .13317E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    25.388       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    114.73       1.0000         .10000E-03   10000.    
    21 'Prefactor '    1.9394       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10064E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .57009       1.0000         .10000E-03   10000.    
    24 'norm      '    9.9705       1.0000         .10000E-03   10000.    
    25 'norm      '    1.4099       1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.1643       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .89255       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=   5027.853     FROM MIGRAD    STATUS=CONVERGED    653 CALLS     3273 TOTAL
                     EDM=   .26E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.0578       -.11727E-06** at limit **
   2  norm          73.500        123.44       -.27780E-07   -.31967E-04
   3  Prefactor     .10000E-03    12.722        .52242E-06** at limit **
   4  Prefactor     .10000E-03    61.098       -.30653E-05** at limit **
   5  Prefactor     .10000E-03    24.322        .18331E-06** at limit **
   6  Prefactor     .10000E-03    30.932        .24658E-06** at limit **
   7  Prefactor     5.7750        4.6703        .70115E-07   -.62729E-05
   8  Prefactor     42.860        56.325       -.23341E-05   -.17553E-04
   9  norm          .10000E-03    2.3123        .21168E-06** at limit **
  10  Prefactor     .10000E-03    14.103        .26648E-07** at limit **
  11  Prefactor     .10000E-03    46.371        .10789E-06** at limit **
  12  Prefactor     6.7290        21.074        .59573E-05   -.16915E-04
  13  norm          2.6333        3.3873       -.54609E-07   -.54940E-04
  14  Prefactor     .10000E-03    6.6718        .35390E-07** at limit **
  15  Prefactor     .10000E-03    73.801       -.28173E-07** at limit **
  16  Prefactor     .10000E-03    2.1884       -.12920E-08** at limit **
  17  Prefactor     .10000E-03    42.640       -.40096E-06** at limit **
  18  Prefactor     25.373        33.427        .36700E-07   -.15113E-04
  19  Prefactor     .10000E-03    14.303       -.22564E-07** at limit **
  20  Prefactor     114.71        73.085        .39524E-08   -.21911E-04
  21  Prefactor     1.9391        1.8228       -.75083E-07   -.59871E-04
  22  Prefactor     .10000E-03    2.7031       -.18614E-07** at limit **
  23  Prefactor     .56807        3.0460        .52209E-06   -.14097E-03
  24  norm          9.9712        1.6042       -.19391E-07   -.15614E-03
  25  norm          1.4094        1.2366       -.45225E-07   -.77375E-04
  26  Normalizat    1.1631        .20272       -.52839E-06   -.65103E-04
  27  Prefactor     .89374        .20428       -.42280E-06   -.60303E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 73.4997
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.77502
  Prefactor  = 42.8601
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.72896
  norm       = 2.63328
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 25.3726
  Prefactor  = 0.0001
  Prefactor  = 114.705
  Prefactor  = 1.93914
  Prefactor  = 0.0001
  Prefactor  = 0.568068
  norm       = 9.97119
  norm       = 1.40943
  Normalizat = 1.16312
  Prefactor  = 0.893743
 **********
 **   18 **HESSE 
 **********

 FCN=   5027.853     FROM HESSE     STATUS=OK           488 CALLS     3761 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.1020        .15567E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          73.500        123.23        .23393E-03   -1.3991    
   3  Prefactor     .10000E-03    13.033        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    61.051        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    24.331        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    30.998        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     5.7750        4.6701        .13265E-03   -1.5227    
   8  Prefactor     42.860        56.948        .61236E-04   -1.4398    
   9  norm          .10000E-03    2.4099        .21027E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    14.120        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    46.386        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     6.7290        21.111        .77408E-03   -1.5189    
  13  norm          2.6333        3.3734        .14200E-03   -1.5383    
  14  Prefactor     .10000E-03    6.6729        .17889E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    73.800        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    2.1941        .10243E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    42.996        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     25.373        33.452        .79503E-04   -1.4700    
  19  Prefactor     .10000E-03    14.307        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     114.71        73.164        .18780E-03   -1.3562    
  21  Prefactor     1.9391        1.8227        .89158E-04   -1.5429    
  22  Prefactor     .10000E-03    2.7943        .22676E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .56807        5.1157        .22900E-02   -1.5557    
  24  norm          9.9712        1.6036        .34780E-04   -1.5076    
  25  norm          1.4094        1.2314        .71104E-04   -1.5471    
  26  Normalizat    1.1631        .24543        .24708E-03   -.87750    
  27  Prefactor     .89374        .24637        .28567E-03   -.96360    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.87371e-08
Minuit parameter uncertainties:
  1  5.80134e-06
  2  123.665
  3  2.60557e-05
  4  0.000120549
  5  2.51144e-05
  6  1.14773e-05
  7  4.67037
  8  57.0203
  9  3.2797e-06
  10  1.63985e-06
  11  2.80237e-05
  12  21.1349
  13  3.37361
  14  9.89737e-07
  15  4.62832e-05
  16  1.24541e-06
  17  5.67288e-05
  18  33.4766
  19  3.85983e-07
  20  73.2214
  21  1.82276
  22  3.29937e-06
  23  3.40953
  24  1.60359
  25  1.23139
  26  0.245677
  27  0.246675
Done.

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

Extracting fit parameters...

4FGL J0303.4-2407
   Spectrum: LogParabola
245         norm:  2.633e+00  3.374e+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:  8.937e-01  2.467e-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.163e+00  2.457e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.12
Ra Dec: 45.862 -24.122
Photon Index (Fixed Index): 1.85 +/- 0.00
Photon Flux (Fixed Index): 1.83e-08 +/- 2.34e-08
Energy Flux (Fixed Index): 1.67e-05 +/- 2.14e-05

TS (Fixed Index): 1.12
Ra Dec: 45.862 -24.122
Photon Flux Upper Limit: 8.25e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.56e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/91492/likelihoodResults_545443201_545702401_4FGL_J0303.4-2407_daily_bin1181.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) = 5027.75133032
delta logL = 0.101666582611

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5027.73649506
delta logL = 0.116501845607

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.1351       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3645       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1348       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90709       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=   5027.736     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      214 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.1376        80.651        .57239E-02    .33994E-03
   2  alpha         2.3638        3.4084        .41228        .21584E-04
   3  Normalizat    1.1348        .68683E-01    .56466E-01   -.12876E-04
   4  Prefactor     .90710        .62153E-01    .45095E-01    .59443E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 3.13762
  alpha      = 2.36378
  Normalizat = 1.13481
  Prefactor  = 0.907096
 **********
 **   18 **HESSE 
 **********

 FCN=   5027.736     FROM HESSE     STATUS=OK            33 CALLS      247 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.1376        3.5451        .12279E-03   -1.5354    
   2  alpha         2.3638        .95642        .14918E-01   -.54513E-01
   3  Normalizat    1.1348        .24233        .24969E-03   -.88642    
   4  Prefactor     .90710        .24328        .28352E-03   -.95894    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.50862e-09
Minuit parameter uncertainties:
  1  3.54538
  2  0.981513
  3  0.242564
  4  0.243572
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/91492': 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) = 5027.73649464
delta logL = 0.116502264153

Extracting fit parameters...

4FGL J0303.4-2407
   Spectrum: LogParabola
245         norm:  3.138e+00  3.545e+00  1.000e-04  1.000e+04 ( 1.000e-12)
246        alpha:  2.364e+00  9.815e-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.071e-01  2.436e-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.135e+00  2.426e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.36
Ra Dec: 45.862 -24.122
Photon Index (Free Index): 2.36 +/- 0.98
Photon Flux (Free Index): 4.27e-08 +/- 6.12e-08
Energy Flux (Free Index): 1.47e-05 +/- 1.56e-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/91492/cmap_HighResolution_545443201_545702401_4FGL_J0303.4-2407_daily_bin1181.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.56e-05', comment='SUCCESS', photon_flux='1.83e-08', energy_flux2='1.47e-05', photon_flux_error='2.34e-08', dlogl='1.17e-01', energy_flux='1.67e-05', photon_flux2='4.27e-08', job_status='DONE', time_completed='2021-08-17 11:52:22.174986', photon_index_error2='0.98', photon_index2='2.36', ts='1.12', fit_tolerance='1e-08', GAL='0.89', photon_index_error='0.00', photon_flux_upper_limit='8.25e-08', energy_flux_error2='1.56e-05', EG='1.16', time_epoch_completed='1629226342.18', return_code='0', job_id='91492', GAL2='0.91', EG2='1.13', return_code2='0', energy_flux_error='2.14e-05', photon_flux_error2='6.12e-08', ts2='1.36', photon_index='1.85' WHERE bin_id='1181' AND source_name='4FGL J0303.4-2407' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 17 11:52:22 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0173>
Subject: Job 91492: <4FGL_J0303.4-2407_daily_bin1181> in cluster <slac> Done

Job <4FGL_J0303.4-2407_daily_bin1181> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Tue Aug 17 11:35:56 2021
Job was executed on host(s) <bullet0173>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug 17 11:39:41 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:39:41 2021
Terminated at Tue Aug 17 11:52:23 2021
Results reported at Tue Aug 17 11:52:23 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0303.4-2407_daily_bin1181 45.8625 -24.1225 545443201 545702401 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 :                                   703.04 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             328.63 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   761 sec.
    Turnaround time :                            987 sec.

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

