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


Performing analysis on: 4FGL_J0303.4-2407_daily_bin1407
RA = 45.8625, Dec = -24.1225
tmin = 604022401, tmax = 604281601
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='93395', job_status='RUN', time_executed='2021-08-17 11:48:03.224139', time_epoch_executed='1629226083.22' WHERE source_name='4FGL J0303.4-2407' and cadence='daily' and bin_id='1407'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/93395

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/93395/ft1_4FGL_J0303.4-2407_daily_bin1407.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/93395/ft2_4FGL_J0303.4-2407_daily_bin1407.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/93395/ft1_4FGL_J0303.4-2407_daily_bin1407.fits outfile=/scratch/kocevski/93395/ft1_filteredMKT_4FGL_J0303.4-2407_daily_bin1407.fits ra=45.8625 dec=-24.1225 rad=12.0 tmin=604022401.0 tmax=604281601.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.08
user 3.16
sys 1.51

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/93395/ft1_filtered_4FGL_J0303.4-2407_daily_bin1407.fits" evtable="EVENTS" scfile=/scratch/kocevski/93395/ft2_4FGL_J0303.4-2407_daily_bin1407.fits sctable="SC_DATA" outfile=/scratch/kocevski/93395/ltcube_604022401_604281601_4FGL_J0303.4-2407_daily_bin1407.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/93395/ft2_4FGL_J0303.4-2407_daily_bin1407.fits
.....................!
real 12.53
user 10.20
sys 1.68

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/93395/ft1_filtered_4FGL_J0303.4-2407_daily_bin1407.fits evtable="EVENTS" scfile=/scratch/kocevski/93395/ft2_4FGL_J0303.4-2407_daily_bin1407.fits sctable="SC_DATA" expcube=/scratch/kocevski/93395/ltcube_604022401_604281601_4FGL_J0303.4-2407_daily_bin1407.fits outfile=/scratch/kocevski/93395/expmap_604022401_604281601_4FGL_J0303.4-2407_daily_bin1407.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/93395/ltcube_604022401_604281601_4FGL_J0303.4-2407_daily_bin1407.fits
.....................!
real 157.83
user 147.67
sys 5.77

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/93395/ft1_filtered_4FGL_J0303.4-2407_daily_bin1407.fits scfile=/scratch/kocevski/93395/ft2_4FGL_J0303.4-2407_daily_bin1407.fits outfile=/scratch/kocevski/93395/cmap_604022401_604281601_4FGL_J0303.4-2407_daily_bin1407.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 3.03
user 0.31
sys 1.37

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/93395/ft1_filtered_4FGL_J0303.4-2407_daily_bin1407.fits scfile=/scratch/kocevski/93395/ft2_4FGL_J0303.4-2407_daily_bin1407.fits outfile=/scratch/kocevski/93395/cmap_HighResolution_604022401_604281601_4FGL_J0303.4-2407_daily_bin1407.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=45.8625 yref=-24.1225 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 2.04
user 0.31
sys 1.38

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/93395/ft1_filtered_4FGL_J0303.4-2407_daily_bin1407.fits evtable="EVENTS" scfile=/scratch/kocevski/93395/ft2_4FGL_J0303.4-2407_daily_bin1407.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/93395/Model_4FGL_J0303.4-2407_daily_bin1407.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/93395/ft1_filtered_4FGL_J0303.4-2407_daily_bin1407.fits.....................!
real 97.37
user 88.20
sys 2.67

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.2456       1.0000         .10000E-03   10000.    
     2 'norm      '    6.4490       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10196E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.4419       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    15.659       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    5.2244       1.0000         .10000E-03   10000.    
    13 'norm      '    2.1333       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    7.0846       1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.4354       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10461E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    3.0221       1.0000         .10000E-03   10000.    
    24 'norm      '    48.674       1.0000         .10000E-03   10000.    
    25 'norm      '    .10198E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.4298       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .86806       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=   5203.580     FROM MIGRAD    STATUS=CONVERGED    676 CALLS     2886 TOTAL
                     EDM=   .79E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.2406        11.726        .32172E-06   -.95490E-05
   2  norm          6.3690        226.16       -.22946E-05   -.23212E-04
   3  Prefactor     .10000E-03    10.900        .26198E-06** at limit **
   4  Prefactor     .10000E-03    51.347       -.19457E-05** at limit **
   5  Prefactor     .10000E-03    30.344       -.11838E-06** at limit **
   6  Prefactor     .10000E-03    34.788        .32868E-06** at limit **
   7  Prefactor     4.4418        4.7040       -.78845E-08   -.28957E-04
   8  Prefactor     .10000E-03    62.701       -.53790E-06** at limit **
   9  norm          .10000E-03    1.5708        .80095E-07** at limit **
  10  Prefactor     15.658        16.646        .15038E-06   -.17001E-04
  11  Prefactor     .10000E-03    48.282        .99668E-07** at limit **
  12  Prefactor     5.2263        19.063        .78474E-05    .14511E-03
  13  norm          2.1332        3.9563        .24817E-06    .14182E-04
  14  Prefactor     .10000E-03    15.601        .13066E-06** at limit **
  15  Prefactor     .10000E-03    266.46       -.12837E-05** at limit **
  16  Prefactor     7.0836        6.0383       -.61750E-07   -.15008E-03
  17  Prefactor     1.4302        53.090        .28846E-05   -.11201E-04
  18  Prefactor     .10000E-03    19.575        .22326E-06** at limit **
  19  Prefactor     .10000E-03    131.38        .14589E-05** at limit **
  20  Prefactor     .10000E-03    20.896       -.14500E-06** at limit **
  21  Prefactor     .10093E-03    2.4720        .11529E-05** at limit **
  22  Prefactor     .10000E-03    6.6144       -.56667E-07** at limit **
  23  Prefactor     3.0235        5.5736        .49103E-06   -.17136E-03
  24  norm          48.673        4.5582        .39209E-07   -.19211E-03
  25  norm          .10000E-03    1.2826        .29301E-07** at limit **
  26  Normalizat    1.4302        .24021       -.96700E-07   -.23963E-03
  27  Prefactor     .86767        .22443       -.18946E-05   -.17976E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.24058
  norm       = 6.36896
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.44175
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 15.6579
  Prefactor  = 0.0001
  Prefactor  = 5.22627
  norm       = 2.13317
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 7.08364
  Prefactor  = 1.43024
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 0.000100932
  Prefactor  = 0.0001
  Prefactor  = 3.02346
  norm       = 48.673
  norm       = 0.0001
  Normalizat = 1.43022
  Prefactor  = 0.867675
 **********
 **   18 **HESSE 
 **********

 FCN=   5203.580     FROM HESSE     STATUS=OK           488 CALLS     3374 TOTAL
                     EDM=   .25E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.2406        11.820        .16063E-03   -1.5208    
   2  norm          6.3690        229.18        .15804E-03   -1.5203    
   3  Prefactor     .10000E-03    11.037        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    51.362        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    30.361        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    34.839        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     4.4418        4.7052        .15621E-03   -1.5286    
   8  Prefactor     .10000E-03    62.880        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    1.6037        .88199E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     15.658        16.649        .10122E-03   -1.4916    
  11  Prefactor     .10000E-03    48.297        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     5.2263        19.166        .87931E-03   -1.5251    
  13  norm          2.1332        3.9292        .18761E-03   -1.5416    
  14  Prefactor     .10000E-03    15.666        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    266.81        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     7.0836        6.0073        .15071E-03   -1.5176    
  17  Prefactor     1.4302        52.993        .36034E-03   -1.5469    
  18  Prefactor     .10000E-03    19.582        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    131.80        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    20.902        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10093E-03    34.924        .18502E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    6.7324        .18084E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     3.0235        5.4667        .21841E-03   -1.5360    
  24  norm          48.673        4.5612        .45360E-04   -1.4312    
  25  norm          .10000E-03    2.3030        .15616E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    1.4302        .28790        .28174E-03   -.79758    
  27  Prefactor     .86767        .26551        .33549E-03   -.97280    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.52316e-08
Minuit parameter uncertainties:
  1  11.8242
  2  76.7289
  3  2.05921e-05
  4  0.000223473
  5  9.68462e-05
  6  0.000114095
  7  4.70557
  8  0.000413843
  9  2.17567e-06
  10  16.6535
  11  3.37647e-05
  12  19.1886
  13  3.92969
  14  1.26409e-05
  15  0.00218726
  16  6.00786
  17  17.4278
  18  7.84409e-05
  19  0.00122324
  20  7.27142e-05
  21  0.0114183
  22  1.75884e-05
  23  5.46756
  24  4.56125
  25  3.77262e-05
  26  0.288226
  27  0.2659
Done.

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

Extracting fit parameters...

4FGL J0303.4-2407
   Spectrum: LogParabola
245         norm:  2.133e+00  3.930e+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.677e-01  2.659e-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.430e+00  2.882e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/93395/likelihoodResults_604022401_604281601_4FGL_J0303.4-2407_daily_bin1407.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) = 5203.57435354
delta logL = 0.00580428692319

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5203.57403109
delta logL = 0.00612673625528

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.2053       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9950       1.0000          .0000       5.0000    
     3 'Normalizat'    1.4259       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86996       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=   5203.574     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      252 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.2050        3.9550        .18501E-03   -.10938E-04
   2  alpha         1.9953        1.3163        .27790E-01   -.64831E-04
   3  Normalizat    1.4259        .27703        .28210E-03    .31232E-04
   4  Prefactor     .86998        .26369        .33510E-03    .47869E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.20502
  alpha      = 1.99527
  Normalizat = 1.4259
  Prefactor  = 0.86998
 **********
 **   18 **HESSE 
 **********

 FCN=   5203.574     FROM HESSE     STATUS=OK            25 CALLS      277 TOTAL
                     EDM=   .91E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.2050        3.9428        .74002E-05   -1.5411    
   2  alpha         1.9953        1.3130        .55579E-02   -.20329    
   3  Normalizat    1.4259        .27715        .11284E-04   -.79883    
   4  Prefactor     .86998        .26379        .13404E-04   -.97198    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.13355e-12
Minuit parameter uncertainties:
  1  3.94327
  2  1.38584
  3  0.277443
  4  0.264174
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/93395': 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) = 5203.57403107
delta logL = 0.00612675936827

Extracting fit parameters...

4FGL J0303.4-2407
   Spectrum: LogParabola
245         norm:  2.205e+00  3.943e+00  1.000e-04  1.000e+04 ( 1.000e-12)
246        alpha:  1.995e+00  1.386e+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:  8.700e-01  2.642e-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.426e+00  2.774e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.41
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/93395/cmap_HighResolution_604022401_604281601_4FGL_J0303.4-2407_daily_bin1407.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.38e-05', job_status='DONE', photon_flux_upper_limit='9.14e-08', time_completed='2021-08-17 11:58:13.657939', job_id='93395', GAL2='0.87', fit_tolerance='1e-08', EG2='1.43', EG='1.43', time_epoch_completed='1629226693.66', return_code2='0', ts='0.41', comment='SUCCESS', return_code='0', GAL='0.87', dlogl='6.13e-03', ts2='0.42', photon_index_error='0.00', photon_index='1.85' WHERE bin_id='1407' AND source_name='4FGL J0303.4-2407' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 17 11:58:13 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0135>
Subject: Job 93395: <4FGL_J0303.4-2407_daily_bin1407> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0303.4-2407_daily_bin1407 45.8625 -24.1225 604022401 604281601 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 :                                   605.54 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             289.75 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   801 sec.
    Turnaround time :                            973 sec.

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

