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


Performing analysis on: 4FGL_J0303.4-2407_daily_bin1418
RA = 45.8625, Dec = -24.1225
tmin = 606873601, tmax = 607132801
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='93409', job_status='RUN', time_executed='2021-08-17 11:45:35.328020', time_epoch_executed='1629225935.33' WHERE source_name='4FGL J0303.4-2407' and cadence='daily' and bin_id='1418'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/93409

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/93409/ft1_4FGL_J0303.4-2407_daily_bin1418.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/93409/ft2_4FGL_J0303.4-2407_daily_bin1418.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/93409/ft1_4FGL_J0303.4-2407_daily_bin1418.fits outfile=/scratch/kocevski/93409/ft1_filteredMKT_4FGL_J0303.4-2407_daily_bin1418.fits ra=45.8625 dec=-24.1225 rad=12.0 tmin=606873601.0 tmax=607132801.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 4.46
user 4.13
sys 0.26

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/93409/ft1_filtered_4FGL_J0303.4-2407_daily_bin1418.fits" evtable="EVENTS" scfile=/scratch/kocevski/93409/ft2_4FGL_J0303.4-2407_daily_bin1418.fits sctable="SC_DATA" outfile=/scratch/kocevski/93409/ltcube_606873601_607132801_4FGL_J0303.4-2407_daily_bin1418.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/93409/ft2_4FGL_J0303.4-2407_daily_bin1418.fits
.....................!
real 10.00
user 9.55
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/93409/ft1_filtered_4FGL_J0303.4-2407_daily_bin1418.fits evtable="EVENTS" scfile=/scratch/kocevski/93409/ft2_4FGL_J0303.4-2407_daily_bin1418.fits sctable="SC_DATA" expcube=/scratch/kocevski/93409/ltcube_606873601_607132801_4FGL_J0303.4-2407_daily_bin1418.fits outfile=/scratch/kocevski/93409/expmap_606873601_607132801_4FGL_J0303.4-2407_daily_bin1418.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/93409/ltcube_606873601_607132801_4FGL_J0303.4-2407_daily_bin1418.fits
.....................!
real 156.49
user 150.85
sys 4.16

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/93409/ft1_filtered_4FGL_J0303.4-2407_daily_bin1418.fits scfile=/scratch/kocevski/93409/ft2_4FGL_J0303.4-2407_daily_bin1418.fits outfile=/scratch/kocevski/93409/cmap_606873601_607132801_4FGL_J0303.4-2407_daily_bin1418.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.87
user 0.32
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/93409/ft1_filtered_4FGL_J0303.4-2407_daily_bin1418.fits scfile=/scratch/kocevski/93409/ft2_4FGL_J0303.4-2407_daily_bin1418.fits outfile=/scratch/kocevski/93409/cmap_HighResolution_606873601_607132801_4FGL_J0303.4-2407_daily_bin1418.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 1.04
user 0.34
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/93409/ft1_filtered_4FGL_J0303.4-2407_daily_bin1418.fits evtable="EVENTS" scfile=/scratch/kocevski/93409/ft2_4FGL_J0303.4-2407_daily_bin1418.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/93409/Model_4FGL_J0303.4-2407_daily_bin1418.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/93409/ft1_filtered_4FGL_J0303.4-2407_daily_bin1418.fits.....................!
real 136.90
user 128.29
sys 1.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.7747       1.0000         .10000E-03   10000.    
     2 'norm      '    10.262       1.0000         .10000E-03   10000.    
     3 'Prefactor '    5.7873       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    3.2557       1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.5365       1.0000         .10000E-03   10000.    
    11 'Prefactor '    73.873       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    3.0445       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    64.269       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    2.2054       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    2.5978       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    16.263       1.0000         .10000E-03   10000.    
    25 'norm      '    .69205       1.0000         .10000E-03   10000.    
    26 'Normalizat'    .71858       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.0518       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=   7788.209     FROM MIGRAD    STATUS=CONVERGED    624 CALLS     3223 TOTAL
                     EDM=   .42E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.7746        3.5142       -.52416E-07   -.71915E-04
   2  norm          10.262        26.211        .17744E-06   -.59883E-05
   3  Prefactor     5.7866        5.2208       -.54283E-06   -.36353E-03
   4  Prefactor     .10000E-03    14.301       -.14607E-05** at limit **
   5  Prefactor     .10000E-03    16.223        .23140E-05** at limit **
   6  Prefactor     .10000E-03    21.974       -.11632E-05** at limit **
   7  Prefactor     .10000E-03    2.5756        .20721E-07** at limit **
   8  Prefactor     .10000E-03    11.435       -.30933E-06** at limit **
   9  norm          3.2556        1.4968       -.10510E-06   -.69244E-04
  10  Prefactor     3.5368        7.8137       -.85377E-06   -.23611E-03
  11  Prefactor     73.874        56.362        .11528E-05    .64274E-05
  12  Prefactor     .10000E-03    3.5844        .41104E-07** at limit **
  13  norm          3.0446        2.3445       -.85688E-07   -.17292E-03
  14  Prefactor     .10000E-03    3.1438        .29244E-07** at limit **
  15  Prefactor     64.184        132.01       -.10440E-03   -.86017E-06
  16  Prefactor     .10000E-03    1.2497       -.23351E-07** at limit **
  17  Prefactor     2.2058        12.061        .20830E-05   -.17394E-03
  18  Prefactor     .10000E-03    6.8939       -.10642E-06** at limit **
  19  Prefactor     .10000E-03    10.948        .15104E-05** at limit **
  20  Prefactor     .10000E-03    12.608       -.24680E-05** at limit **
  21  Prefactor     2.5974        1.8932        .17817E-06   -.15806E-03
  22  Prefactor     .10000E-03    2.4543        .63981E-07** at limit **
  23  Prefactor     .10000E-03    1.2081       -.43914E-07** at limit **
  24  norm          16.263        1.7274       -.16118E-07    .11702E-03
  25  norm          .69225        1.1107       -.24023E-06   -.15836E-02
  26  Normalizat    .71853        .14156        .46893E-06    .59199E-04
  27  Prefactor     1.0518        .15027        .19116E-05   -.70242E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.77463
  norm       = 10.262
  Prefactor  = 5.7866
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.25563
  Prefactor  = 3.53678
  Prefactor  = 73.8742
  Prefactor  = 0.0001
  norm       = 3.04456
  Prefactor  = 0.0001
  Prefactor  = 64.1841
  Prefactor  = 0.0001
  Prefactor  = 2.2058
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.5974
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 16.2629
  norm       = 0.692247
  Normalizat = 0.718529
  Prefactor  = 1.0518
 **********
 **   18 **HESSE 
 **********

 FCN=   7788.209     FROM HESSE     STATUS=OK           488 CALLS     3711 TOTAL
                     EDM=   .67E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.7746        3.5115        .13642E-03   -1.5271    
   2  norm          10.262        26.205        .12508E-03   -1.5067    
   3  Prefactor     5.7866        5.2276        .16695E-03   -1.5227    
   4  Prefactor     .10000E-03    14.336        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    16.234        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    22.116        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    2.6332        .13820E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    11.452        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          3.2556        1.4948        .70241E-04   -1.5347    
  10  Prefactor     3.5368        7.8029        .21495E-03   -1.5332    
  11  Prefactor     73.874        56.372        .46713E-04   -1.3987    
  12  Prefactor     .10000E-03    3.5990        .16316E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          3.0446        2.3398        .11441E-03   -1.5359    
  14  Prefactor     .10000E-03    3.1449        .15281E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     64.184        131.79        .25029E-03   -1.4104    
  16  Prefactor     .10000E-03    1.2564        .96208E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     2.2058        11.971        .27702E-03   -1.5411    
  18  Prefactor     .10000E-03    6.8956        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    10.951        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    12.616        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     2.5974        1.8525        .96225E-04   -1.5386    
  22  Prefactor     .10000E-03    2.5473        .26958E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    1.2195        .94619E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          16.263        1.7265        .36520E-04   -1.4901    
  25  norm          .69225        .98306        .10982E-02   -1.5542    
  26  Normalizat    .71853        .16237        .25660E-03   -1.0317    
  27  Prefactor     1.0518        .17287        .23477E-03   -.91022    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.71482e-10
Minuit parameter uncertainties:
  1  3.51169
  2  26.2339
  3  5.228
  4  1.60758e-05
  5  1.51937e-05
  6  3.7377e-05
  7  1.51626e-05
  8  1.20553e-05
  9  1.4948
  10  7.80511
  11  56.4123
  12  4.35822e-06
  13  2.33992
  14  2.32672e-06
  15  132.398
  16  6.20323e-07
  17  10.2802
  18  2.98789e-06
  19  2.71748e-06
  20  7.22372e-07
  21  1.85257
  22  1.34357e-06
  23  9.85378e-07
  24  1.72646
  25  0.983087
  26  0.162479
  27  0.172966
Done.

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

Extracting fit parameters...

4FGL J0303.4-2407
   Spectrum: LogParabola
245         norm:  3.045e+00  2.340e+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.052e+00  1.730e-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:  7.185e-01  1.625e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.51
Ra Dec: 45.862 -24.122
Photon Index (Fixed Index): 1.85 +/- 0.00
Photon Flux (Fixed Index): 2.11e-08 +/- 1.62e-08
Energy Flux (Fixed Index): 1.93e-05 +/- 1.49e-05

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

Saving results to:
/scratch/kocevski/93409/likelihoodResults_606873601_607132801_4FGL_J0303.4-2407_daily_bin1418.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) = 7788.18638351
delta logL = 0.0226054491768

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7788.18606034
delta logL = 0.0229286177328

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.0480       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9547       1.0000          .0000       5.0000    
     3 'Normalizat'    .71528       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0535       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=   7788.186     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      221 TOTAL
                     EDM=   .36E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.0489        69.708        .58098E-02   -.18684E-03
   2  alpha         1.9549        3.1644        .39136        .14073E-04
   3  Normalizat    .71564        .71749E-01    .42494E-01    .96922E-05
   4  Prefactor     1.0531        .69108E-01    .39709E-01    .93613E-06
                               ERR DEF=  .500    
Final values: 
  norm       = 3.0489
  alpha      = 1.95491
  Normalizat = 0.715643
  Prefactor  = 1.05308
 **********
 **   18 **HESSE 
 **********

 FCN=   7788.186     FROM HESSE     STATUS=OK            33 CALLS      254 TOTAL
                     EDM=   .34E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.0489        2.3023        .11169E-03   -1.5359    
   2  alpha         1.9549        .49605        .13824E-01   -.21980    
   3  Normalizat    .71564        .15721        .25707E-03   -1.0328    
   4  Prefactor     1.0531        .17150        .23463E-03   -.90981    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.35293e-11
Minuit parameter uncertainties:
  1  2.30235
  2  0.499529
  3  0.157305
  4  0.171588
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/93409': 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) = 7788.18605697
delta logL = 0.0229319842329

Extracting fit parameters...

4FGL J0303.4-2407
   Spectrum: LogParabola
245         norm:  3.049e+00  2.302e+00  1.000e-04  1.000e+04 ( 1.000e-12)
246        alpha:  1.955e+00  4.995e-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.053e+00  1.716e-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:  7.156e-01  1.573e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.54
Ra Dec: 45.862 -24.122
Photon Index (Free Index): 1.95 +/- 0.50
Photon Flux (Free Index): 2.39e-08 +/- 2.14e-08
Energy Flux (Free Index): 1.69e-05 +/- 1.67e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/93409/cmap_HighResolution_606873601_607132801_4FGL_J0303.4-2407_daily_bin1418.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.46e-05', comment='SUCCESS', photon_flux='2.11e-08', energy_flux2='1.69e-05', photon_flux_error='1.62e-08', dlogl='2.29e-02', energy_flux='1.93e-05', photon_flux2='2.39e-08', job_status='DONE', time_completed='2021-08-17 11:58:32.103091', photon_index_error2='0.50', photon_index2='1.95', ts='3.51', fit_tolerance='1e-08', GAL='1.05', photon_index_error='0.00', photon_flux_upper_limit='5.96e-08', energy_flux_error2='1.67e-05', EG='0.72', time_epoch_completed='1629226712.1', return_code='0', job_id='93409', GAL2='1.05', EG2='0.72', return_code2='0', energy_flux_error='1.49e-05', photon_flux_error2='2.14e-08', ts2='3.54', photon_index='1.85' WHERE bin_id='1418' AND source_name='4FGL J0303.4-2407' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 17 11:58:32 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0071>
Subject: Job 93409: <4FGL_J0303.4-2407_daily_bin1418> in cluster <slac> Done

Job <4FGL_J0303.4-2407_daily_bin1418> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Aug 17 11:42:02 2021
Job was executed on host(s) <bullet0071>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug 17 11:45:06 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:45:06 2021
Terminated at Tue Aug 17 11:58:32 2021
Results reported at Tue Aug 17 11:58:32 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0303.4-2407_daily_bin1418 45.8625 -24.1225 606873601 607132801 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 :                                   758.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             341.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   809 sec.
    Turnaround time :                            990 sec.

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

