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


Performing analysis on: 4FGL_J0303.4-2407_daily_bin1149
RA = 45.8625, Dec = -24.1225
tmin = 537148801, tmax = 537408001
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='91447', job_status='RUN', time_executed='2021-08-17 11:40:24.100894', time_epoch_executed='1629225624.1' WHERE source_name='4FGL J0303.4-2407' and cadence='daily' and bin_id='1149'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/91447

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/91447/ft1_4FGL_J0303.4-2407_daily_bin1149.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/91447/ft2_4FGL_J0303.4-2407_daily_bin1149.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/91447/ft1_4FGL_J0303.4-2407_daily_bin1149.fits outfile=/scratch/kocevski/91447/ft1_filteredMKT_4FGL_J0303.4-2407_daily_bin1149.fits ra=45.8625 dec=-24.1225 rad=12.0 tmin=537148801.0 tmax=537408001.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 3.66
user 2.70
sys 0.36

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/91447/ft2_4FGL_J0303.4-2407_daily_bin1149.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/91447/ft1_filteredMKT_4FGL_J0303.4-2407_daily_bin1149.fits evtable="EVENTS" outfile="/scratch/kocevski/91447/ft1_filtered_4FGL_J0303.4-2407_daily_bin1149.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.96
user 0.29
sys 0.29

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/91447/ft1_filtered_4FGL_J0303.4-2407_daily_bin1149.fits" evtable="EVENTS" scfile=/scratch/kocevski/91447/ft2_4FGL_J0303.4-2407_daily_bin1149.fits sctable="SC_DATA" outfile=/scratch/kocevski/91447/ltcube_537148801_537408001_4FGL_J0303.4-2407_daily_bin1149.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/91447/ft2_4FGL_J0303.4-2407_daily_bin1149.fits
.....................!
real 11.32
user 10.58
sys 0.43

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/91447/ft1_filtered_4FGL_J0303.4-2407_daily_bin1149.fits evtable="EVENTS" scfile=/scratch/kocevski/91447/ft2_4FGL_J0303.4-2407_daily_bin1149.fits sctable="SC_DATA" expcube=/scratch/kocevski/91447/ltcube_537148801_537408001_4FGL_J0303.4-2407_daily_bin1149.fits outfile=/scratch/kocevski/91447/expmap_537148801_537408001_4FGL_J0303.4-2407_daily_bin1149.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/91447/ltcube_537148801_537408001_4FGL_J0303.4-2407_daily_bin1149.fits
.....................!
real 156.04
user 147.12
sys 4.28

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/91447/ft1_filtered_4FGL_J0303.4-2407_daily_bin1149.fits scfile=/scratch/kocevski/91447/ft2_4FGL_J0303.4-2407_daily_bin1149.fits outfile=/scratch/kocevski/91447/cmap_537148801_537408001_4FGL_J0303.4-2407_daily_bin1149.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 1.15
user 0.32
sys 0.28

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/91447/ft1_filtered_4FGL_J0303.4-2407_daily_bin1149.fits scfile=/scratch/kocevski/91447/ft2_4FGL_J0303.4-2407_daily_bin1149.fits outfile=/scratch/kocevski/91447/cmap_HighResolution_537148801_537408001_4FGL_J0303.4-2407_daily_bin1149.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.83
user 0.33
sys 0.28

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/91447/ft1_filtered_4FGL_J0303.4-2407_daily_bin1149.fits evtable="EVENTS" scfile=/scratch/kocevski/91447/ft2_4FGL_J0303.4-2407_daily_bin1149.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/91447/Model_4FGL_J0303.4-2407_daily_bin1149.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/91447/ft1_filtered_4FGL_J0303.4-2407_daily_bin1149.fits.....................!
real 92.99
user 88.99
sys 1.27

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.0838       1.0000         .10000E-03   10000.    
     2 'norm      '    .66115E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    5.9902       1.0000         .10000E-03   10000.    
     4 'Prefactor '    98.641       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10197E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.7391       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    66.763       1.0000         .10000E-03   10000.    
    12 'Prefactor '    17.281       1.0000         .10000E-03   10000.    
    13 'norm      '    3.9604       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10182E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    9.2683       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    14.801       1.0000         .10000E-03   10000.    
    20 'Prefactor '    16.033       1.0000         .10000E-03   10000.    
    21 'Prefactor '    1.5797       1.0000         .10000E-03   10000.    
    22 'Prefactor '    5.0777       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    2.5212       1.0000         .10000E-03   10000.    
    25 'norm      '    .47548       1.0000         .10000E-03   10000.    
    26 'Normalizat'    .48255       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.2985       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=   5325.598     FROM MIGRAD    STATUS=CONVERGED    672 CALLS     3338 TOTAL
                     EDM=   .17E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.0842        6.3468        .30797E-05   -.18324E-03
   2  norm          .10002E-03    222.20       -.70289E-05** at limit **
   3  Prefactor     5.9891        8.9475       -.36249E-06   -.36898E-04
   4  Prefactor     98.612        53.242        .10441E-05   -.42354E-04
   5  Prefactor     .10000E-03    183.61       -.46410E-06** at limit **
   6  Prefactor     .10000E-03    25.454       -.40536E-06** at limit **
   7  Prefactor     3.7390        3.3271        .41786E-07    .56327E-05
   8  Prefactor     .10000E-03    10.955       -.37653E-08** at limit **
   9  norm          .10000E-03    .80222       -.90072E-08** at limit **
  10  Prefactor     .10000E-03    5.6477        .45448E-07** at limit **
  11  Prefactor     66.772        66.038       -.40277E-06    .20686E-04
  12  Prefactor     17.281        14.737        .11984E-06   -.29074E-05
  13  norm          3.9603        3.5206        .93296E-07    .40155E-05
  14  Prefactor     .10000E-03    5.3274        .11133E-06** at limit **
  15  Prefactor     .10000E-03    61.717       -.81530E-08** at limit **
  16  Prefactor     .10000E-03    3.4138       -.31145E-07** at limit **
  17  Prefactor     9.2674        16.426        .16521E-05   -.65731E-05
  18  Prefactor     .10000E-03    49.445        .17683E-06** at limit **
  19  Prefactor     14.804        37.660        .23578E-06    .15249E-05
  20  Prefactor     16.051        63.614       -.37964E-05    .18024E-05
  21  Prefactor     1.5801        2.2900        .94095E-07   -.14673E-04
  22  Prefactor     5.0779        3.7713        .24837E-07   -.90560E-04
  23  Prefactor     .10000E-03    1.6750       -.61403E-08** at limit **
  24  norm          2.5212        .95567        .86379E-08   -.80556E-04
  25  norm          .47501        1.2051        .45296E-06    .63491E-03
  26  Normalizat    .48256        .17309       -.26795E-06    .96633E-05
  27  Prefactor     1.2985        .17476       -.75399E-06   -.13470E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.08417
  norm       = 0.000100021
  Prefactor  = 5.9891
  Prefactor  = 98.6118
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.73899
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 66.7725
  Prefactor  = 17.281
  norm       = 3.96029
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.26744
  Prefactor  = 0.0001
  Prefactor  = 14.8037
  Prefactor  = 16.0509
  Prefactor  = 1.58015
  Prefactor  = 5.07794
  Prefactor  = 0.0001
  norm       = 2.52117
  norm       = 0.475014
  Normalizat = 0.482564
  Prefactor  = 1.29853
 **********
 **   18 **HESSE 
 **********

 FCN=   5325.598     FROM HESSE     STATUS=OK           488 CALLS     3826 TOTAL
                     EDM=   .41E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.0842        6.3785        .99752E-03   -1.5304    
   2  norm          .10002E-03    228.73        .21012E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     5.9891        8.9390        .16406E-03   -1.5218    
   4  Prefactor     98.612        53.282        .40475E-04   -1.3719    
   5  Prefactor     .10000E-03    185.26        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    25.536        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     3.7390        3.3316        .12144E-03   -1.5321    
   8  Prefactor     .10000E-03    10.963        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    .81672        .63739E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    5.6728        .16937E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     66.772        65.990        .49120E-04   -1.4072    
  12  Prefactor     17.281        14.749        .96347E-04   -1.4876    
  13  norm          3.9603        3.5142        .12279E-03   -1.5310    
  14  Prefactor     .10000E-03    5.3328        .16451E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    61.721        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    3.5370        .26271E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     9.2674        16.345        .65821E-03   -1.5099    
  18  Prefactor     .10000E-03    50.171        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     14.804        37.646        .10411E-03   -1.4938    
  20  Prefactor     16.051        63.495        .10003E-03   -1.4906    
  21  Prefactor     1.5801        2.1995        .11980E-03   -1.5457    
  22  Prefactor     5.0779        3.7552        .11348E-03   -1.5257    
  23  Prefactor     .10000E-03    1.6996        .91971E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          2.5212        .95534        .41071E-04   -1.5390    
  25  norm          .47501        1.1163        .11683E-02   -1.5570    
  26  Normalizat    .48256        .19553        .29860E-03   -1.1323    
  27  Prefactor     1.2985        .20058        .20688E-03   -.83351    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.14349e-10
Minuit parameter uncertainties:
  1  6.37956
  2  0.00443354
  3  8.94097
  4  53.3076
  5  6.45358e-05
  6  0.000117437
  7  3.33178
  8  1.40114e-06
  9  5.18207e-07
  10  6.77256e-06
  11  66.0625
  12  14.7517
  13  3.51442
  14  1.40898e-05
  15  5.66513e-06
  16  3.92371e-06
  17  16.3526
  18  7.17057e-05
  19  37.706
  20  63.7644
  21  2.19961
  22  3.75533
  23  1.40136e-06
  24  0.955346
  25  1.11632
  26  0.195808
  27  0.200704
Done.

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

Extracting fit parameters...

4FGL J0303.4-2407
   Spectrum: LogParabola
245         norm:  3.960e+00  3.514e+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.299e+00  2.007e-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:  4.826e-01  1.958e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.93
Ra Dec: 45.862 -24.122
Photon Index (Fixed Index): 1.85 +/- 0.00
Photon Flux (Fixed Index): 2.75e-08 +/- 2.44e-08
Energy Flux (Fixed Index): 2.52e-05 +/- 2.23e-05

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

Saving results to:
/scratch/kocevski/91447/likelihoodResults_537148801_537408001_4FGL_J0303.4-2407_daily_bin1149.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) = 5325.23331939
delta logL = 0.364558550347

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5325.23248392
delta logL = 0.365394012283

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.9935       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3521       1.0000          .0000       5.0000    
     3 'Normalizat'    .45240       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3131       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=   5325.232     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      235 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.9978        60.132        .50454E-02    .25668E-03
   2  alpha         2.3534        3.6369        .30756        .41204E-04
   3  Normalizat    .45233        .67435E-01    .69567E-01    .37384E-04
   4  Prefactor     1.3130        .63630E-01    .46565E-01   -.28545E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 3.99781
  alpha      = 2.35336
  Normalizat = 0.452329
  Prefactor  = 1.31296
 **********
 **   18 **HESSE 
 **********

 FCN=   5325.232     FROM HESSE     STATUS=OK            33 CALLS      268 TOTAL
                     EDM=   .28E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.9978        3.3075        .96240E-04   -1.5308    
   2  alpha         2.3534        .58848        .10900E-01   -.58690E-01
   3  Normalizat    .45233        .18306        .30798E-03   -1.1468    
   4  Prefactor     1.3130        .19724        .20583E-03   -.82923    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.78495e-12
Minuit parameter uncertainties:
  1  3.30769
  2  0.594072
  3  0.183301
  4  0.197348
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/91447': 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) = 5325.23247694
delta logL = 0.365400995257

Extracting fit parameters...

4FGL J0303.4-2407
   Spectrum: LogParabola
245         norm:  3.998e+00  3.308e+00  1.000e-04  1.000e+04 ( 1.000e-12)
246        alpha:  2.353e+00  5.941e-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.313e+00  1.973e-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:  4.523e-01  1.833e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.68
Ra Dec: 45.862 -24.122
Photon Index (Free Index): 2.35 +/- 0.59
Photon Flux (Free Index): 5.35e-08 +/- 4.40e-08
Energy Flux (Free Index): 1.87e-05 +/- 1.45e-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/91447/cmap_HighResolution_537148801_537408001_4FGL_J0303.4-2407_daily_bin1149.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.77e-05', comment='SUCCESS', photon_flux='2.75e-08', energy_flux2='1.87e-05', photon_flux_error='2.44e-08', dlogl='3.65e-01', energy_flux='2.52e-05', photon_flux2='5.35e-08', job_status='DONE', time_completed='2021-08-17 11:50:26.320467', photon_index_error2='0.59', photon_index2='2.35', ts='2.93', fit_tolerance='1e-08', GAL='1.30', photon_index_error='0.00', photon_flux_upper_limit='8.48e-08', energy_flux_error2='1.45e-05', EG='0.48', time_epoch_completed='1629226226.32', return_code='0', job_id='91447', GAL2='1.31', EG2='0.45', return_code2='0', energy_flux_error='2.23e-05', photon_flux_error2='4.40e-08', ts2='3.68', photon_index='1.85' WHERE bin_id='1149' AND source_name='4FGL J0303.4-2407' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 17 11:50:26 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0189>
Subject: Job 91447: <4FGL_J0303.4-2407_daily_bin1149> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0303.4-2407_daily_bin1149 45.8625 -24.1225 537148801 537408001 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 :                                   590.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             343.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   679 sec.
    Turnaround time :                            875 sec.

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

