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


Performing analysis on: 4FGL_J0303.4-2407_daily_bin316
RA = 45.8625, Dec = -24.1225
tmin = 321235201, tmax = 321494401
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='84504', job_status='RUN', time_executed='2021-08-17 11:16:53.489127', time_epoch_executed='1629224213.49' WHERE source_name='4FGL J0303.4-2407' and cadence='daily' and bin_id='316'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/84504

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/84504/ft1_4FGL_J0303.4-2407_daily_bin316.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/84504/ft2_4FGL_J0303.4-2407_daily_bin316.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/84504/ft1_4FGL_J0303.4-2407_daily_bin316.fits outfile=/scratch/kocevski/84504/ft1_filteredMKT_4FGL_J0303.4-2407_daily_bin316.fits ra=45.8625 dec=-24.1225 rad=12.0 tmin=321235201.0 tmax=321494401.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 10.50
user 3.34
sys 5.30

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/84504/ft2_4FGL_J0303.4-2407_daily_bin316.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/84504/ft1_filteredMKT_4FGL_J0303.4-2407_daily_bin316.fits evtable="EVENTS" outfile="/scratch/kocevski/84504/ft1_filtered_4FGL_J0303.4-2407_daily_bin316.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 6.95
user 0.33
sys 5.24

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/84504/ft1_filtered_4FGL_J0303.4-2407_daily_bin316.fits" evtable="EVENTS" scfile=/scratch/kocevski/84504/ft2_4FGL_J0303.4-2407_daily_bin316.fits sctable="SC_DATA" outfile=/scratch/kocevski/84504/ltcube_321235201_321494401_4FGL_J0303.4-2407_daily_bin316.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/84504/ft2_4FGL_J0303.4-2407_daily_bin316.fits
.....................!
real 20.45
user 12.78
sys 6.54

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/84504/ft1_filtered_4FGL_J0303.4-2407_daily_bin316.fits evtable="EVENTS" scfile=/scratch/kocevski/84504/ft2_4FGL_J0303.4-2407_daily_bin316.fits sctable="SC_DATA" expcube=/scratch/kocevski/84504/ltcube_321235201_321494401_4FGL_J0303.4-2407_daily_bin316.fits outfile=/scratch/kocevski/84504/expmap_321235201_321494401_4FGL_J0303.4-2407_daily_bin316.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/84504/ltcube_321235201_321494401_4FGL_J0303.4-2407_daily_bin316.fits
.....................!
real 200.97
user 185.14
sys 11.90

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/84504/ft1_filtered_4FGL_J0303.4-2407_daily_bin316.fits scfile=/scratch/kocevski/84504/ft2_4FGL_J0303.4-2407_daily_bin316.fits outfile=/scratch/kocevski/84504/cmap_321235201_321494401_4FGL_J0303.4-2407_daily_bin316.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 5.51
user 0.38
sys 5.06

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/84504/ft1_filtered_4FGL_J0303.4-2407_daily_bin316.fits scfile=/scratch/kocevski/84504/ft2_4FGL_J0303.4-2407_daily_bin316.fits outfile=/scratch/kocevski/84504/cmap_HighResolution_321235201_321494401_4FGL_J0303.4-2407_daily_bin316.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 5.72
user 0.38
sys 4.96

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/84504/ft1_filtered_4FGL_J0303.4-2407_daily_bin316.fits evtable="EVENTS" scfile=/scratch/kocevski/84504/ft2_4FGL_J0303.4-2407_daily_bin316.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/84504/Model_4FGL_J0303.4-2407_daily_bin316.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/84504/ft1_filtered_4FGL_J0303.4-2407_daily_bin316.fits.....................!
real 105.61
user 95.73
sys 7.89

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10096E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    86.256       1.0000         .10000E-03   10000.    
     3 'Prefactor '    10.465       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .11482E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10608E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    49.601       1.0000         .10000E-03   10000.    
     9 'norm      '    3.1429       1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.2473       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .11942E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10331E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .88707E-01   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .20490E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .11080E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .15319E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .18728       1.0000         .10000E-03   10000.    
    25 'norm      '    2.3624       1.0000         .10000E-03   10000.    
    26 'Normalizat'    .81524       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .97693       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=   4566.201     FROM MIGRAD    STATUS=CONVERGED    670 CALLS     3372 TOTAL
                     EDM=   .54E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    8.7941       -.81617E-07** at limit **
   2  norm          86.242        85.295       -.10034E-05   -.19539E-03
   3  Prefactor     10.469        7.8965        .11684E-06   -.98098E-04
   4  Prefactor     .10001E-03    62.125       -.21735E-07** at limit **
   5  Prefactor     .10000E-03    36.126       -.17242E-06** at limit **
   6  Prefactor     .10000E-03    17.651       -.73190E-06** at limit **
   7  Prefactor     .10000E-03    1.6177       -.26887E-07** at limit **
   8  Prefactor     49.580        44.460        .10026E-05   -.54090E-04
   9  norm          3.1437        2.1025        .83551E-08   -.36626E-03
  10  Prefactor     1.2418        31.805        .19776E-04   -.75332E-04
  11  Prefactor     .10000E-03    135.19        .13936E-05** at limit **
  12  Prefactor     .10000E-03    4.6772       -.42119E-06** at limit **
  13  norm          .87888E-01    1.6757        .61928E-06   -.21084E-03
  14  Prefactor     .10000E-03    4.7631        .30933E-07** at limit **
  15  Prefactor     .10000E-03    93.410       -.18199E-05** at limit **
  16  Prefactor     .10000E-03    .90101        .25628E-07** at limit **
  17  Prefactor     .10000E-03    6.3481        .14556E-06** at limit **
  18  Prefactor     .10000E-03    138.97        .14924E-05** at limit **
  19  Prefactor     .10000E-03    89.695       -.93676E-06** at limit **
  20  Prefactor     .10000E-03    13.761        .22470E-07** at limit **
  21  Prefactor     .10000E-03    .94758        .92415E-07** at limit **
  22  Prefactor     .10000E-03    2.0599        .36383E-06** at limit **
  23  Prefactor     .10000E-03    1.7054        .91898E-07** at limit **
  24  norm          .18715        .63535        .32494E-06    .42476E-03
  25  norm          2.3627        1.3110        .45204E-07   -.20265E-03
  26  Normalizat    .81461        .17207        .21892E-07   -.32343E-03
  27  Prefactor     .97754        .17049       -.22065E-05   -.58040E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 86.2421
  Prefactor  = 10.4695
  Prefactor  = 0.000100006
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 49.5795
  norm       = 3.14365
  Prefactor  = 1.24179
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0878882
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.187149
  norm       = 2.3627
  Normalizat = 0.814605
  Prefactor  = 0.977545
 **********
 **   18 **HESSE 
 **********

 FCN=   4566.201     FROM HESSE     STATUS=OK           478 CALLS     3850 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    9.0809        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          86.242        85.436        .43257E-04   -1.3848    
   3  Prefactor     10.469        7.9045        .12386E-03   -1.5061    
   4  Prefactor     .10001E-03    62.176        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    36.260        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    17.709        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    1.6247        .83931E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     49.580        44.709        .56940E-04   -1.4299    
   9  norm          3.1437        2.0951        .76365E-04   -1.5353    
  10  Prefactor     1.2418        32.070        .20038E-02   -1.5485    
  11  Prefactor     .10000E-03    135.79        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    4.6910        .14286E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .87888E-01    10.847        .16714E-02   -1.5649    
  14  Prefactor     .10000E-03    4.7650        .14404E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    93.529        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    .90148        .62642E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    6.3697        .16628E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    141.13        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    90.212        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    13.768        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    .99433        .12834E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    8.1589        .18086E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    1.7335        .86023E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .18715        .61395        .92685E-04   -1.5621    
  25  norm          2.3627        1.3073        .55754E-04   -1.5401    
  26  Normalizat    .81461        .19950        .23265E-03   -.99529    
  27  Prefactor     .97754        .19940        .22105E-03   -.93482    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.10143e-09
Minuit parameter uncertainties:
  1  1.65804e-05
  2  85.5585
  3  7.90533
  4  0.00118672
  5  5.44374e-05
  6  0.000241622
  7  2.24505e-06
  8  44.7389
  9  2.09519
  10  12.6284
  11  6.09115e-06
  12  6.80511e-05
  13  1.952
  14  4.7496e-06
  15  0.000413133
  16  1.84288e-06
  17  2.69477e-05
  18  0.000722687
  19  0.000936253
  20  1.434e-05
  21  6.92689e-06
  22  1.186e-06
  23  8.41683e-06
  24  0.613973
  25  1.30727
  26  0.199679
  27  0.199555
Done.

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

Extracting fit parameters...

4FGL J0303.4-2407
   Spectrum: LogParabola
245         norm:  8.789e-02  1.952e+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.775e-01  1.996e-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:  8.146e-01  1.997e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/84504/likelihoodResults_321235201_321494401_4FGL_J0303.4-2407_daily_bin316.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): 102
logL (Free Index) = 4566.20121735
delta logL = 1.12293564598e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4566.20103012
delta logL = 0.000198458282284

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .88170E-01   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.7673       1.0000          .0000       5.0000    
     3 'Normalizat'    .81469       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97748       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   4566.201     FROM MIGRAD    STATUS=FAILED       101 CALLS      264 TOTAL
                     EDM=   .25E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .93965E-01    12.365        .16764E-02    .21805E-02
   2  alpha         1.7696        3.2337        .84348E-01   -.37982E-05
   3  Normalizat    .81468        .18957        .23264E-03   -.56736E-04
   4  Prefactor     .97746        .19771        .22106E-03   -.50656E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   4566.201     FROM SIMPLEX   STATUS=UNCHANGED     91 CALLS      355 TOTAL
                     EDM=   .12E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .93965E-01    12.365        .52304E-03   -1.5647    
   2  alpha         1.7696        3.2337        .44311E-02   -.29649    
   3  Normalizat    .81468        .18957        .85717E-04   -.99527    
   4  Prefactor     .97746        .19771        .84867E-04   -.93485    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4566.201     FROM MIGRAD    STATUS=CONVERGED     30 CALLS      385 TOTAL
                     EDM=   .34E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .93972E-01    9.7972        .33528E-03    .89130E-04
   2  alpha         1.7696        3.3258        .33739E-02   -.11726E-05
   3  Normalizat    .81468        .18967        .93056E-05   -.97736E-06
   4  Prefactor     .97746        .19747        .88426E-05   -.12857E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0939718
  alpha      = 1.76958
  Normalizat = 0.814678
  Prefactor  = 0.977457
 **********
 **   18 **HESSE 
 **********

 FCN=   4566.201     FROM HESSE     STATUS=OK            25 CALLS      410 TOTAL
                     EDM=   .34E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .93972E-01    9.8125        .67057E-04   -1.5647    
   2  alpha         1.7696        3.3253        .13496E-03   -.29649    
   3  Normalizat    .81468        .18936        .18611E-05   -.99527    
   4  Prefactor     .97746        .19709        .17685E-05   -.93485    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.39292e-12
Minuit parameter uncertainties:
  1  1.91982
  2  3.78751
  3  0.189509
  4  0.197238
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/84504': 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) = 4566.20102545
delta logL = 0.000203131008675

Extracting fit parameters...

4FGL J0303.4-2407
   Spectrum: LogParabola
245         norm:  9.397e-02  1.920e+00  1.000e-04  1.000e+04 ( 1.000e-12)
246        alpha:  1.770e+00  3.788e+00  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.775e-01  1.972e-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:  8.147e-01  1.895e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 45.862 -24.122

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/84504/cmap_HighResolution_321235201_321494401_4FGL_J0303.4-2407_daily_bin316.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.44e-05', job_status='DONE', photon_flux_upper_limit='4.85e-08', time_completed='2021-08-17 11:29:32.099062', job_id='84504', GAL2='0.98', fit_tolerance='1e-08', EG2='0.81', EG='0.81', time_epoch_completed='1629224972.1', return_code2='0', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.98', dlogl='2.03e-04', ts2='0.00', photon_index_error='0.00', photon_index='1.85' WHERE bin_id='316' AND source_name='4FGL J0303.4-2407' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 17 11:29:32 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0064>
Subject: Job 84504: <4FGL_J0303.4-2407_daily_bin316> in cluster <slac> Done

Job <4FGL_J0303.4-2407_daily_bin316> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Aug 17 11:13:04 2021
Job was executed on host(s) <bullet0064>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug 17 11:14:49 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:14:49 2021
Terminated at Tue Aug 17 11:29:33 2021
Results reported at Tue Aug 17 11:29:33 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0303.4-2407_daily_bin316 45.8625 -24.1225 321235201 321494401 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 :                                   823.52 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             331.69 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   884 sec.
    Turnaround time :                            989 sec.

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

