aklog: Couldn't determine realm of user:aklog: No credentials cache found  while getting realm
/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 83 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 make4FGLDR3xml version 01r09.
The default diffuse model files and names are for P8R3, 4FGL DRs, and the default fermitools directory locations.

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 = 7682
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0303.4-2407_daily_bin1764
RA = 45.8625, Dec = -24.1225
tmin = 696556801, tmax = 696816001
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='434454', job_status='RUN', time_executed='2023-01-31 00:10:18.825220', time_epoch_executed='1675152618.83' WHERE source_name='4FGL J0303.4-2407' and cadence='daily' and bin_id='1764'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/434454

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/434454/ft1_4FGL_J0303.4-2407_daily_bin1764.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/434454/ft2_4FGL_J0303.4-2407_daily_bin1764.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/434454/ft1_4FGL_J0303.4-2407_daily_bin1764.fits outfile=/scratch/kocevski/434454/ft1_filteredMKT_4FGL_J0303.4-2407_daily_bin1764.fits ra=45.8625 dec=-24.1225 rad=12.0 tmin=696556801.0 tmax=696816001.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.79
user 3.51
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/434454/ft2_4FGL_J0303.4-2407_daily_bin1764.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/434454/ft1_filteredMKT_4FGL_J0303.4-2407_daily_bin1764.fits evtable="EVENTS" outfile="/scratch/kocevski/434454/ft1_filtered_4FGL_J0303.4-2407_daily_bin1764.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.57
user 0.34
sys 0.16

Number of photons that the gtmktime cut: 459

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/434454/ft1_filtered_4FGL_J0303.4-2407_daily_bin1764.fits" evtable="EVENTS" scfile=/scratch/kocevski/434454/ft2_4FGL_J0303.4-2407_daily_bin1764.fits sctable="SC_DATA" outfile=/scratch/kocevski/434454/ltcube_696556801_696816001_4FGL_J0303.4-2407_daily_bin1764.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/434454/ft2_4FGL_J0303.4-2407_daily_bin1764.fits
.....................!
real 16.34
user 15.86
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/434454/ft1_filtered_4FGL_J0303.4-2407_daily_bin1764.fits evtable="EVENTS" scfile=/scratch/kocevski/434454/ft2_4FGL_J0303.4-2407_daily_bin1764.fits sctable="SC_DATA" expcube=/scratch/kocevski/434454/ltcube_696556801_696816001_4FGL_J0303.4-2407_daily_bin1764.fits outfile=/scratch/kocevski/434454/expmap_696556801_696816001_4FGL_J0303.4-2407_daily_bin1764.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/434454/ltcube_696556801_696816001_4FGL_J0303.4-2407_daily_bin1764.fits
.....................!
real 193.37
user 188.02
sys 4.78

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_8years/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/434454/ft1_filtered_4FGL_J0303.4-2407_daily_bin1764.fits scfile=/scratch/kocevski/434454/ft2_4FGL_J0303.4-2407_daily_bin1764.fits outfile=/scratch/kocevski/434454/cmap_696556801_696816001_4FGL_J0303.4-2407_daily_bin1764.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.59
user 0.40
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/434454/ft1_filtered_4FGL_J0303.4-2407_daily_bin1764.fits scfile=/scratch/kocevski/434454/ft2_4FGL_J0303.4-2407_daily_bin1764.fits outfile=/scratch/kocevski/434454/cmap_HighResolution_696556801_696816001_4FGL_J0303.4-2407_daily_bin1764.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.57
user 0.39
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/434454/ft1_filtered_4FGL_J0303.4-2407_daily_bin1764.fits evtable="EVENTS" scfile=/scratch/kocevski/434454/ft2_4FGL_J0303.4-2407_daily_bin1764.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/434454/Model_4FGL_J0303.4-2407_daily_bin1764.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/434454/ft1_filtered_4FGL_J0303.4-2407_daily_bin1764.fits.....................!
real 108.73
user 106.50
sys 1.40

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/434454/ft1_filtered_4FGL_J0303.4-2407_daily_bin1764.fits', '/scratch/kocevski/434454/ft2_4FGL_J0303.4-2407_daily_bin1764.fits', expMap='/scratch/kocevski/434454/expmap_696556801_696816001_4FGL_J0303.4-2407_daily_bin1764.fits', expCube='/scratch/kocevski/434454/ltcube_696556801_696816001_4FGL_J0303.4-2407_daily_bin1764.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/434454/Model_4FGL_J0303.4-2407_daily_bin1764.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  0.000e+00  1.000e+06 ( 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 -5.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/434454/ft1_filtered_4FGL_J0303.4-2407_daily_bin1764.fits
Spacecraft file(s): /scratch/kocevski/434454/ft2_4FGL_J0303.4-2407_daily_bin1764.fits
Exposure map: /scratch/kocevski/434454/expmap_696556801_696816001_4FGL_J0303.4-2407_daily_bin1764.fits
Exposure cube: /scratch/kocevski/434454/ltcube_696556801_696816001_4FGL_J0303.4-2407_daily_bin1764.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/434454/Model_4FGL_J0303.4-2407_daily_bin1764.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) = 5170.59443298

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .54070E-04   1.0000          .0000       .10000E+07
     2 'norm      '    86.460       1.0000          .0000       .10000E+07
     3 'Prefactor '    5.5907       1.0000          .0000       .10000E+07
     4 'Prefactor '    .68341E-02   1.0000          .0000       .10000E+07
     5 'Prefactor '    79.142       1.0000          .0000       .10000E+07
     6 'Prefactor '    .15817E-02   1.0000          .0000       .10000E+07
     7 'Prefactor '    .75927       1.0000          .0000       .10000E+07
     8 'norm      '    1.8057       1.0000          .0000       .10000E+07
     9 'Prefactor '    19.332       1.0000          .0000       .10000E+07
    10 'norm      '    3.1337       1.0000          .0000       .10000E+07
    11 'Prefactor '    .63035E-02   1.0000          .0000       .10000E+07
    12 'Prefactor '    267.98       1.0000          .0000       .10000E+07
    13 'Prefactor '    4.0257       1.0000          .0000       .10000E+07
    14 'Prefactor '    .15589E-01   1.0000          .0000       .10000E+07
    15 'Prefactor '    8.7806       1.0000          .0000       .10000E+07
    16 'Prefactor '    39.568       1.0000          .0000       .10000E+07
    17 'Prefactor '    .51224       1.0000          .0000       .10000E+07
    18 'Prefactor '    .14636E-03   1.0000          .0000       .10000E+07
    19 'Prefactor '    .14322E-04   1.0000          .0000       .10000E+07
    20 'norm      '    2.9698       1.0000          .0000       .10000E+07
    21 'norm      '    2.5586       1.0000          .0000       .10000E+07
    22 'Normalizat'    .83891       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .94225       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5080E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5170.409     FROM MIGRAD    STATUS=CONVERGED    200 CALLS     1944 TOTAL
                     EDM=   .37E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        3.7298       -.50802E-07** at limit **
   2  norm          90.135        61.431       -.81194E-06   -.28748E-04
   3  Prefactor     5.5315        7.0779       -.55248E-07    .11737E-03
   4  Prefactor      .0000        12.125        .16717E-06** at limit **
   5  Prefactor     82.559        64.263       -.39674E-06    .39859E-05
   6  Prefactor      .0000        10.484       -.74937E-06** at limit **
   7  Prefactor     .74985        2.5659        .25728E-06   -.35295E-03
   8  norm          1.8073        1.8378        .39968E-07    .11271E-03
   9  Prefactor     19.288        16.279       -.13274E-06    .11415E-03
  10  norm          3.1400        3.0925       -.32714E-08   -.46513E-04
  11  Prefactor      .0000        7.8855        .65712E-07** at limit **
  12  Prefactor     257.33        238.04       -.49183E-06    .42678E-04
  13  Prefactor     4.0596        5.8847       -.17407E-06    .28388E-04
  14  Prefactor     .55511E-10    36.835        .14905E-05** at limit **
  15  Prefactor     8.9126        30.032        .93791E-06    .12662E-03
  16  Prefactor     39.791        35.511       -.31948E-07   -.16244E-03
  17  Prefactor     .52380        1.5326       -.93690E-07   -.44583E-04
  18  Prefactor      .0000        14.528       -.54963E-06** at limit **
  19  Prefactor      .0000        2.8918       -.12543E-06** at limit **
  20  norm          2.9711        1.0738        .19875E-07    .50736E-03
  21  norm          2.5616        1.7128       -.79918E-08    .14023E-03
  22  Normalizat    .83835        .19177       -.37787E-05    .15469E-04
  23  Prefactor     .94196        .20102        .34076E-05    .10076E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  norm       = 90.1355
  Prefactor  = 5.53152
  Prefactor  = 0
  Prefactor  = 82.5589
  Prefactor  = 0
  Prefactor  = 0.749847
  norm       = 1.80728
  Prefactor  = 19.2877
  norm       = 3.14001
  Prefactor  = 0
  Prefactor  = 257.328
  Prefactor  = 4.05961
  Prefactor  = 5.55112e-11
  Prefactor  = 8.91258
  Prefactor  = 39.7913
  Prefactor  = 0.523796
  Prefactor  = 0
  Prefactor  = 0
  norm       = 2.97107
  norm       = 2.56159
  Normalizat = 0.838354
  Prefactor  = 0.941956
 **********
 **   18 **HESSE 
 **********

 FCN=   5170.409     FROM HESSE     STATUS=OK           430 CALLS     2374 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        3.7114        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          90.135        61.402        .10755E-03   -1.5518    
   3  Prefactor     5.5315        7.0585        .42465E-03   -1.5661    
   4  Prefactor      .0000        12.122        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     82.559        64.403        .11241E-03   -1.5526    
   6  Prefactor      .0000        10.486        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .74985        2.5902        .56022E-03   -1.5691    
   8  norm          1.8073        1.8540        .77743E-03   -1.5681    
   9  Prefactor     19.288        16.279        .22752E-03   -1.5620    
  10  norm          3.1400        3.1014        .57243E-03   -1.5673    
  11  Prefactor      .0000        7.8767        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     257.33        240.08        .61096E-04   -1.5387    
  13  Prefactor     4.0596        6.1960        .50236E-03   -1.5668    
  14  Prefactor     .55511E-10    11.255        .12037E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     8.9126        29.881        .33802E-03   -1.5648    
  16  Prefactor     39.791        35.515        .15899E-03   -1.5582    
  17  Prefactor     .52380        1.5751        .77488E-03   -1.5693    
  18  Prefactor      .0000        13.976        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor      .0000        2.8800        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          2.9711        1.0762        .58894E-03   -1.5673    
  21  norm          2.5616        1.7303        .63799E-03   -1.5676    
  22  Normalizat    .83835        .16875        .44116E-01   -.98661    
  23  Prefactor     .94196        .17537        .45541E-01   -.94690    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.63968e-09
Minuit parameter uncertainties:
  1  2.59857e-06
  2  61.4021
  3  7.05854
  4  1.24435e-06
  5  64.4031
  6  8.38593e-06
  7  2.59021
  8  1.85405
  9  16.2792
  10  3.10141
  11  6.22873e-06
  12  240.09
  13  6.19604
  14  5.56855e-05
  15  29.8816
  16  35.5157
  17  1.57514
  18  1.11828e-05
  19  9.4911e-07
  20  1.07617
  21  1.73029
  22  0.168855
  23  0.175478
Done.

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

Extracting fit parameters...

4FGL J0303.4-2407
   Spectrum: LogParabola
245         norm:  3.140e+00  3.101e+00  0.000e+00  1.000e+06 ( 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 -5.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.420e-01  1.755e-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.384e-01  1.689e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.64
Ra Dec: 45.862 -24.122
Photon Index (Fixed Index): 1.85 +/- 0.00
Photon Flux (Fixed Index): 2.18e-08 +/- 2.15e-08
Energy Flux (Fixed Index): 2.00e-05 +/- 1.97e-05

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

Saving results to:
/scratch/kocevski/434454/likelihoodResults_696556801_696816001_4FGL_J0303.4-2407_daily_bin1764.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) = 5170.40341438
delta logL = 0.00561391596693

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5170.40328925
delta logL = 0.00573905116562

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.1302       1.0000          .0000       .10000E+07
     2 'alpha     '    1.9263       1.0000          .0000       5.0000    
     3 'Normalizat'    .83566       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94365       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=   5170.403     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      219 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.1258        113.69        .57277E-03    .29240E-02
   2  alpha         1.9247        2.5081        .42612        .26203E-05
   3  Normalizat    .83586        .90063E-01    .44074E-01   -.14823E-03
   4  Prefactor     .94351        .80965E-01    .45559E-01   -.16928E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.12583
  alpha      = 1.92468
  Normalizat = 0.835865
  Prefactor  = 0.943508
 **********
 **   18 **HESSE 
 **********

 FCN=   5170.403     FROM HESSE     STATUS=OK            33 CALLS      252 TOTAL
                     EDM=   .99E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.1258        3.0810        .11957E-04   -1.5673    
   2  alpha         1.9247        .71771        .15010E-01   -.23221    
   3  Normalizat    .83586        .18528        .24073E-03   -.98752    
   4  Prefactor     .94351        .19331        .23753E-03   -.94637    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.91903e-11
Minuit parameter uncertainties:
  1  3.08096
  2  0.728555
  3  0.185419
  4  0.193454
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/434454': 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) = 5170.40328488
delta logL = 0.0057434188675

Extracting fit parameters...

4FGL J0303.4-2407
   Spectrum: LogParabola
245         norm:  3.126e+00  3.081e+00  0.000e+00  1.000e+06 ( 1.000e-12)
246        alpha:  1.925e+00  7.286e-01  0.000e+00  5.000e+00 ( 1.000e+00)
247         beta:  3.126e-02  0.000e+00 -5.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.435e-01  1.935e-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.359e-01  1.854e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.64
Ra Dec: 45.862 -24.122
Photon Index (Free Index): 1.92 +/- 0.73
Photon Flux (Free Index): 2.36e-08 +/- 2.81e-08
Energy Flux (Free Index): 1.79e-05 +/- 2.55e-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/434454/cmap_HighResolution_696556801_696816001_4FGL_J0303.4-2407_daily_bin1764.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.75e-05', comment='SUCCESS', photon_flux='2.18e-08', energy_flux2='1.79e-05', photon_flux_error='2.15e-08', dlogl='5.74e-03', energy_flux='2.00e-05', photon_flux2='2.36e-08', job_status='DONE', time_completed='2023-01-31 00:20:26.508722', photon_index_error2='0.73', photon_index2='1.92', ts='1.64', fit_tolerance='1e-08', GAL='0.94', photon_index_error='0.00', photon_flux_upper_limit='7.37e-08', energy_flux_error2='2.55e-05', EG='0.84', time_epoch_completed='1675153226.51', return_code='0', job_id='434454', GAL2='0.94', EG2='0.84', return_code2='0', energy_flux_error='1.97e-05', photon_flux_error2='2.81e-08', ts2='1.64', photon_index='1.85' WHERE bin_id='1764' AND source_name='4FGL J0303.4-2407' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Jan 31 00:20:26 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0283>
Subject: Job 434454: <4FGL_J0303.4-2407_daily_bin1764> in cluster <slac> Done

Job <4FGL_J0303.4-2407_daily_bin1764> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Tue Jan 31 00:04:57 2023
Job was executed on host(s) <bullet0283>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Jan 31 00:08:38 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Jan 31 00:08:38 2023
Terminated at Tue Jan 31 00:20:27 2023
Results reported at Tue Jan 31 00:20:27 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0303.4-2407_daily_bin1764 45.8625 -24.1225 696556801 696816001 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 :                                   604.41 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             320.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   708 sec.
    Turnaround time :                            930 sec.

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

