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


Performing analysis on: 4FGL_J0303.4-2407_daily_bin1370
RA = 45.8625, Dec = -24.1225
tmin = 594432001, tmax = 594691201
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='93333', job_status='RUN', time_executed='2021-08-17 11:44:56.780637', time_epoch_executed='1629225896.78' WHERE source_name='4FGL J0303.4-2407' and cadence='daily' and bin_id='1370'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/93333

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/93333/ft1_4FGL_J0303.4-2407_daily_bin1370.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/93333/ft2_4FGL_J0303.4-2407_daily_bin1370.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/93333/ft1_4FGL_J0303.4-2407_daily_bin1370.fits outfile=/scratch/kocevski/93333/ft1_filteredMKT_4FGL_J0303.4-2407_daily_bin1370.fits ra=45.8625 dec=-24.1225 rad=12.0 tmin=594432001.0 tmax=594691201.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.76
user 4.13
sys 0.50

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/93333/ft1_filtered_4FGL_J0303.4-2407_daily_bin1370.fits" evtable="EVENTS" scfile=/scratch/kocevski/93333/ft2_4FGL_J0303.4-2407_daily_bin1370.fits sctable="SC_DATA" outfile=/scratch/kocevski/93333/ltcube_594432001_594691201_4FGL_J0303.4-2407_daily_bin1370.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/93333/ft2_4FGL_J0303.4-2407_daily_bin1370.fits
.....................!
real 14.02
user 13.22
sys 0.66

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/93333/ft1_filtered_4FGL_J0303.4-2407_daily_bin1370.fits evtable="EVENTS" scfile=/scratch/kocevski/93333/ft2_4FGL_J0303.4-2407_daily_bin1370.fits sctable="SC_DATA" expcube=/scratch/kocevski/93333/ltcube_594432001_594691201_4FGL_J0303.4-2407_daily_bin1370.fits outfile=/scratch/kocevski/93333/expmap_594432001_594691201_4FGL_J0303.4-2407_daily_bin1370.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/93333/ltcube_594432001_594691201_4FGL_J0303.4-2407_daily_bin1370.fits
.....................!
real 192.44
user 186.03
sys 5.52

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/93333/ft1_filtered_4FGL_J0303.4-2407_daily_bin1370.fits scfile=/scratch/kocevski/93333/ft2_4FGL_J0303.4-2407_daily_bin1370.fits outfile=/scratch/kocevski/93333/cmap_594432001_594691201_4FGL_J0303.4-2407_daily_bin1370.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.12
user 0.37
sys 0.45

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/93333/ft1_filtered_4FGL_J0303.4-2407_daily_bin1370.fits scfile=/scratch/kocevski/93333/ft2_4FGL_J0303.4-2407_daily_bin1370.fits outfile=/scratch/kocevski/93333/cmap_HighResolution_594432001_594691201_4FGL_J0303.4-2407_daily_bin1370.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.08
user 0.39
sys 0.43

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/93333/ft1_filtered_4FGL_J0303.4-2407_daily_bin1370.fits evtable="EVENTS" scfile=/scratch/kocevski/93333/ft2_4FGL_J0303.4-2407_daily_bin1370.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/93333/Model_4FGL_J0303.4-2407_daily_bin1370.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/93333/ft1_filtered_4FGL_J0303.4-2407_daily_bin1370.fits.....................!
real 115.84
user 108.96
sys 1.65

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    54.399       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.1143       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.4937       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    3.2041       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    31.588       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .70276E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .19657E-02   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    17.057       1.0000         .10000E-03   10000.    
    25 'norm      '    1.2041       1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.2716       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .85561       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=   5254.087     FROM MIGRAD    STATUS=CONVERGED    670 CALLS     3313 TOTAL
                     EDM=   .82E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.5761       -.21753E-07** at limit **
   2  norm          .10000E-03    37.902        .19372E-06** at limit **
   3  Prefactor     .10000E-03    2.1763        .36525E-07** at limit **
   4  Prefactor     54.397        53.968       -.89116E-06   -.16337E-04
   5  Prefactor     .10001E-03    101.83       -.14954E-04** at limit **
   6  Prefactor     .10000E-03    37.126       -.66580E-06** at limit **
   7  Prefactor     2.1128        4.3311       -.59996E-07   -.12006E-03
   8  Prefactor     .10000E-03    21.569        .25221E-05** at limit **
   9  norm          .10000E-03    1.0685        .11827E-07** at limit **
  10  Prefactor     2.4905        12.098        .29238E-05   -.46075E-03
  11  Prefactor     .10000E-03    39.012        .25798E-05** at limit **
  12  Prefactor     .10000E-03    4.2493       -.58950E-09** at limit **
  13  norm          3.2041        3.0818        .52213E-08   -.43557E-04
  14  Prefactor     .10000E-03    8.6499       -.38880E-07** at limit **
  15  Prefactor     .10001E-03    92.591        .13548E-04** at limit **
  16  Prefactor     .10000E-03    1.9923        .32544E-07** at limit **
  17  Prefactor     .10000E-03    12.154        .35828E-06** at limit **
  18  Prefactor     31.589        43.148        .21785E-06    .86293E-05
  19  Prefactor     .10000E-03    20.640        .38567E-06** at limit **
  20  Prefactor     .10000E-03    28.335       -.32754E-05** at limit **
  21  Prefactor     .10018E-03    1.6328       -.63034E-06** at limit **
  22  Prefactor     .10002E-03    3.7991       -.21074E-06** at limit **
  23  Prefactor     .10000E-03    4.6919        .36307E-07** at limit **
  24  norm          17.060        2.6051        .14681E-08    .51807E-03
  25  norm          1.2054        1.9794        .11880E-06    .41252E-03
  26  Normalizat    1.2717        .19335        .59213E-07    .16161E-03
  27  Prefactor     .85564        .19144       -.10240E-06    .15112E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 54.397
  Prefactor  = 0.000100006
  Prefactor  = 0.0001
  Prefactor  = 2.11276
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 2.49046
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.20409
  Prefactor  = 0.0001
  Prefactor  = 0.000100005
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 31.5888
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100178
  Prefactor  = 0.000100023
  Prefactor  = 0.0001
  norm       = 17.06
  norm       = 1.20542
  Normalizat = 1.27165
  Prefactor  = 0.855645
 **********
 **   18 **HESSE 
 **********

 FCN=   5254.087     FROM HESSE     STATUS=OK           480 CALLS     3793 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.6338        .15135E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    37.910        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    2.1822        .10442E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     54.397        54.193        .54384E-04   -1.4232    
   5  Prefactor     .10001E-03    103.46        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    37.430        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     2.1128        4.3318        .20783E-03   -1.5417    
   8  Prefactor     .10000E-03    21.633        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    1.1030        .14618E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     2.4905        38.047        .12941E-02   -1.5392    
  11  Prefactor     .10000E-03    39.064        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    4.2517        .14593E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          3.2041        3.0757        .12089E-03   -1.5350    
  14  Prefactor     .10000E-03    8.6641        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10001E-03    93.855        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    1.9993        .99911E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    12.194        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     31.589        43.173        .71292E-04   -1.4583    
  19  Prefactor     .10000E-03    20.645        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    28.429        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10018E-03    20.740        .16584E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10002E-03    41.549        .25822E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    4.8905        .30570E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          17.060        2.5002        .42161E-04   -1.4882    
  25  norm          1.2054        1.8618        .11932E-03   -1.5488    
  26  Normalizat    1.2717        .22920        .24138E-03   -.84417    
  27  Prefactor     .85564        .22756        .28719E-03   -.97709    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.20823e-08
Minuit parameter uncertainties:
  1  2.34464e-07
  2  1.96662e-05
  3  6.15351e-07
  4  54.2422
  5  0.00152868
  6  4.37203e-05
  7  4.33243
  8  0.000122782
  9  2.24459e-07
  10  19.4828
  11  0.000170806
  12  3.42724e-07
  13  3.07586
  14  1.99422e-06
  15  0.00140719
  16  4.32819e-07
  17  1.52817e-05
  18  43.2159
  19  1.8668e-05
  20  0.000183753
  21  0.00384547
  22  0.00194033
  23  8.97148e-06
  24  2.50018
  25  1.86192
  26  0.229384
  27  0.227816
Done.

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

Extracting fit parameters...

4FGL J0303.4-2407
   Spectrum: LogParabola
245         norm:  3.204e+00  3.076e+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.556e-01  2.278e-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.272e+00  2.294e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.89
Ra Dec: 45.862 -24.122
Photon Index (Fixed Index): 1.85 +/- 0.00
Photon Flux (Fixed Index): 2.22e-08 +/- 2.13e-08
Energy Flux (Fixed Index): 2.04e-05 +/- 1.95e-05

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

Saving results to:
/scratch/kocevski/93333/likelihoodResults_594432001_594691201_4FGL_J0303.4-2407_daily_bin1370.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) = 5253.93479652
delta logL = 0.15211225565

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5253.92348062
delta logL = 0.163428155212

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.7885       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3139       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2551       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86588       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=   5253.923     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      213 TOTAL
                     EDM=   .32E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.7876        66.098        .60915E-02    .20138E-03
   2  alpha         2.3143        3.1647        .41297        .20899E-04
   3  Normalizat    1.2551        .86657E-01    .54901E-01   -.12008E-05
   4  Prefactor     .86590        .68131E-01    .64576E-01    .70052E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 2.78761
  alpha      = 2.31433
  Normalizat = 1.25506
  Prefactor  = 0.865899
 **********
 **   18 **HESSE 
 **********

 FCN=   5253.923     FROM HESSE     STATUS=OK            33 CALLS      246 TOTAL
                     EDM=   .17E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.7876        3.1187        .10389E-03   -1.5374    
   2  alpha         2.3143        .91010        .15367E-01   -.74338E-01
   3  Normalizat    1.2551        .22741        .24275E-03   -.84918    
   4  Prefactor     .86590        .22549        .28563E-03   -.97343    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.70051e-12
Minuit parameter uncertainties:
  1  3.11884
  2  0.931637
  3  0.227586
  4  0.225734
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/93333': 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) = 5253.92348038
delta logL = 0.163428399464

Extracting fit parameters...

4FGL J0303.4-2407
   Spectrum: LogParabola
245         norm:  2.788e+00  3.119e+00  1.000e-04  1.000e+04 ( 1.000e-12)
246        alpha:  2.314e+00  9.316e-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:  8.659e-01  2.257e-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.255e+00  2.276e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.21
Ra Dec: 45.862 -24.122
Photon Index (Free Index): 2.31 +/- 0.93
Photon Flux (Free Index): 3.52e-08 +/- 3.94e-08
Energy Flux (Free Index): 1.30e-05 +/- 1.40e-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/93333/cmap_HighResolution_594432001_594691201_4FGL_J0303.4-2407_daily_bin1370.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.07e-05', comment='SUCCESS', photon_flux='2.22e-08', energy_flux2='1.30e-05', photon_flux_error='2.13e-08', dlogl='1.63e-01', energy_flux='2.04e-05', photon_flux2='3.52e-08', job_status='DONE', time_completed='2021-08-17 11:57:15.706933', photon_index_error2='0.93', photon_index2='2.31', ts='1.89', fit_tolerance='1e-08', GAL='0.86', photon_index_error='0.00', photon_flux_upper_limit='7.72e-08', energy_flux_error2='1.40e-05', EG='1.27', time_epoch_completed='1629226635.71', return_code='0', job_id='93333', GAL2='0.87', EG2='1.26', return_code2='0', energy_flux_error='1.95e-05', photon_flux_error2='3.94e-08', ts2='2.21', photon_index='1.85' WHERE bin_id='1370' AND source_name='4FGL J0303.4-2407' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 17 11:57:15 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0185>
Subject: Job 93333: <4FGL_J0303.4-2407_daily_bin1370> in cluster <slac> Done

Job <4FGL_J0303.4-2407_daily_bin1370> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Aug 17 11:41:57 2021
Job was executed on host(s) <bullet0185>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug 17 11:44:17 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:17 2021
Terminated at Tue Aug 17 11:57:16 2021
Results reported at Tue Aug 17 11:57:16 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0303.4-2407_daily_bin1370 45.8625 -24.1225 594432001 594691201 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 :                                   726.17 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             306.30 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   779 sec.
    Turnaround time :                            919 sec.

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

