/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 99 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 = 7405
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0303.6+4716_daily_bin1371
RA = 45.9098, Dec = 47.2759
tmin = 594691201, tmax = 594950401
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='122382', job_status='RUN', time_executed='2021-08-17 13:18:34.409413', time_epoch_executed='1629231514.41' WHERE source_name='4FGL J0303.6+4716' and cadence='daily' and bin_id='1371'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/122382

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/122382/ft1_4FGL_J0303.6+4716_daily_bin1371.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/122382/ft2_4FGL_J0303.6+4716_daily_bin1371.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/122382/ft1_4FGL_J0303.6+4716_daily_bin1371.fits outfile=/scratch/kocevski/122382/ft1_filteredMKT_4FGL_J0303.6+4716_daily_bin1371.fits ra=45.9098 dec=47.2759 rad=12.0 tmin=594691201.0 tmax=594950401.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 6.39
user 2.82
sys 1.40

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/122382/ft2_4FGL_J0303.6+4716_daily_bin1371.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/122382/ft2_4FGL_J0303.6+4716_daily_bin1371.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/122382/ft1_filteredMKT_4FGL_J0303.6+4716_daily_bin1371.fits evtable="EVENTS" outfile="/scratch/kocevski/122382/ft1_filtered_4FGL_J0303.6+4716_daily_bin1371.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.61
user 0.34
sys 1.36

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/122382/ft1_filtered_4FGL_J0303.6+4716_daily_bin1371.fits" evtable="EVENTS" scfile=/scratch/kocevski/122382/ft2_4FGL_J0303.6+4716_daily_bin1371.fits sctable="SC_DATA" outfile=/scratch/kocevski/122382/ltcube_594691201_594950401_4FGL_J0303.6+4716_daily_bin1371.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/122382/ft2_4FGL_J0303.6+4716_daily_bin1371.fits
.....................!
real 17.51
user 14.28
sys 1.73

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/122382/ft1_filtered_4FGL_J0303.6+4716_daily_bin1371.fits evtable="EVENTS" scfile=/scratch/kocevski/122382/ft2_4FGL_J0303.6+4716_daily_bin1371.fits sctable="SC_DATA" expcube=/scratch/kocevski/122382/ltcube_594691201_594950401_4FGL_J0303.6+4716_daily_bin1371.fits outfile=/scratch/kocevski/122382/expmap_594691201_594950401_4FGL_J0303.6+4716_daily_bin1371.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/122382/ltcube_594691201_594950401_4FGL_J0303.6+4716_daily_bin1371.fits
.....................!
real 204.57
user 188.46
sys 6.85

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 HB 3 in ROI with RadialDisk spatial model.
Extended source W 3 in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/W3.fits is the correct path to the extended template.
Extended source G150.3+4.5 in ROI with RadialDisk spatial model.
Extended source HB 9 in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/HB9.fits is the correct path to the extended template.
Added 179 point sources and 4 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.6+4716 @ 45.9098 47.2759

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/122382/ft1_filtered_4FGL_J0303.6+4716_daily_bin1371.fits scfile=/scratch/kocevski/122382/ft2_4FGL_J0303.6+4716_daily_bin1371.fits outfile=/scratch/kocevski/122382/cmap_594691201_594950401_4FGL_J0303.6+4716_daily_bin1371.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.9098 yref=47.2759 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.21
user 0.39
sys 1.35

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/122382/ft1_filtered_4FGL_J0303.6+4716_daily_bin1371.fits scfile=/scratch/kocevski/122382/ft2_4FGL_J0303.6+4716_daily_bin1371.fits outfile=/scratch/kocevski/122382/cmap_HighResolution_594691201_594950401_4FGL_J0303.6+4716_daily_bin1371.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.9098 yref=47.2759 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.09
user 0.39
sys 1.37

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/122382/ft1_filtered_4FGL_J0303.6+4716_daily_bin1371.fits evtable="EVENTS" scfile=/scratch/kocevski/122382/ft2_4FGL_J0303.6+4716_daily_bin1371.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/122382/Model_4FGL_J0303.6+4716_daily_bin1371.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 G150.3+4.5
adding source GAL_V02
adding source HB 3
adding source HB 9
adding source W 3
Working on...
/scratch/kocevski/122382/ft1_filtered_4FGL_J0303.6+4716_daily_bin1371.fits.......................!
real 32.80
user 24.87
sys 2.86

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/122382/ft1_filtered_4FGL_J0303.6+4716_daily_bin1371.fits', '/scratch/kocevski/122382/ft2_4FGL_J0303.6+4716_daily_bin1371.fits', expMap='/scratch/kocevski/122382/expmap_594691201_594950401_4FGL_J0303.6+4716_daily_bin1371.fits', expCube='/scratch/kocevski/122382/ltcube_594691201_594950401_4FGL_J0303.6+4716_daily_bin1371.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/122382/Model_4FGL_J0303.6+4716_daily_bin1371.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0303.6+4716'

4FGL J0303.6+4716
   Spectrum: LogParabola
312         norm:  3.413e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
313        alpha:  2.097e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
314         beta:  7.937e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
315           Eb:  9.673e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/122382/ft1_filtered_4FGL_J0303.6+4716_daily_bin1371.fits
Spacecraft file(s): /scratch/kocevski/122382/ft2_4FGL_J0303.6+4716_daily_bin1371.fits
Exposure map: /scratch/kocevski/122382/expmap_594691201_594950401_4FGL_J0303.6+4716_daily_bin1371.fits
Exposure cube: /scratch/kocevski/122382/ltcube_594691201_594950401_4FGL_J0303.6+4716_daily_bin1371.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/122382/Model_4FGL_J0303.6+4716_daily_bin1371.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 806.71508584

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 806.40173156

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.9827       1.0000         .10000E-03   10000.    
     2 'norm      '    .10250E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    4.3899       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .15134E-01   1.0000         .10000E-03   10000.    
     5 'norm      '    .96254E-01   1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.8030       1.0000         .10000E-03   10000.    
     7 'norm      '    .17655E-01   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10098E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    1.8756       1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.8322       1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.4660       1.0000         .10000E-03   10000.    
    12 'norm      '    4.5584       1.0000         .10000E-03   10000.    
    13 'Prefactor '    9.1740       1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.7834       1.0000         .10000E-03   10000.    
    15 'norm      '    8.9542       1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.5110       1.0000         .10000E-03   10000.    
    17 'norm      '    8.8537       1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.2879       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .57395       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6340E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   801.8097     FROM MIGRAD    STATUS=CONVERGED    430 CALLS      689 TOTAL
                     EDM=   .32E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10002E-03    521.03        .50525E-02** at limit **
   2  norm          .10000E-03    2.5112        .28097E-01** at limit **
   3  Prefactor     206.40        469.46        .48056E-02    .21428E-03
   4  Prefactor     .10000E-03    66.612        .90985E-02** at limit **
   5  norm          .10000E-03    65.633        .94934E-02** at limit **
   6  Prefactor     .10000E-03    486.38        .77819E-02** at limit **
   7  norm          .10000E-03    21.270        .91110E-02** at limit **
   8  Prefactor     .10000E-03    20.055        .90712E-02** at limit **
   9  norm          .10000E-03    234.43        .76011E-02** at limit **
  10  Prefactor    10000.0        5944.9        .77075E-02** at limit **
  11  Prefactor    10000.0        7334.1        .54304E-02** at limit **
  12  norm         10000.0        9447.5        .47137E-02** at limit **
  13  Prefactor     9.1740        1.0015         .0000         .0000    
  14  Prefactor    10000.0        .52874E-01   -.48783E-04** at limit **
  15  norm         10000.0        .28033E-01   -.52563E-03** at limit **
  16  Prefactor    10000.0        .18916       -.14048E-03** at limit **
  17  norm         10000.0        .28353E-01    .11952E-04** at limit **
  18  Normalizat    .96162        .95102       -.15354E-04   -.98049E-05
  19  Prefactor     .55547        .90664        .53040E-05   -.17830E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100025
  norm       = 0.0001
  Prefactor  = 206.4
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100002
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100001
  Prefactor  = 10000
  Prefactor  = 10000
  norm       = 10000
  Prefactor  = 9.17399
  Prefactor  = 10000
  norm       = 10000
  Prefactor  = 10000
  norm       = 10000
  Normalizat = 0.961618
  Prefactor  = 0.555472
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   801.8097     FROM HESSE     STATUS=FAILED        35 CALLS      724 TOTAL
                     EDM=   .32E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10002E-03    521.03        .50525E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    2.5112        .28097E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     206.40        469.46        .48056E-02   -1.2825    
   4  Prefactor     .10000E-03    66.612        .90985E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    65.633        .94934E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    486.38        .77819E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    21.270        .91110E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    20.055        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    234.43        .76011E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor    10000.0        5944.9        .77075E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor    10000.0        7334.1        .54304E-02    1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm         10000.0        9447.5        .47137E-02   -4.7124    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     496.49        487.29         .0000       -1.5102    
  14  Prefactor    10000.0        .52874E-01   -.48783E-04   -4.7124    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm         10000.0        .28033E-01   -.52563E-03    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor    10000.0        .18916       -.14048E-03   -4.7124    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm         10000.0        .28353E-01    .11952E-04    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    .96162        .95102       -.15354E-04   -.94328    
  19  Prefactor     .55547        .90664        .53040E-05   -1.0950    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 3.19451e-10
Minuit parameter uncertainties:
  1  0.00726245
  2  2.25236e-05
  3  478.434
  4  0.000322541
  5  9.88174e-05
  6  0.00200808
  7  0.0001168
  8  4.53131e-05
  9  0.0007101
  10  0.555814
  11  7.91828
  12  0.540703
  13  1.00149
  14  0.000170284
  15  0.000316069
  16  0.000681776
  17  6.8784e-05
  18  0.968529
  19  0.932157
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 801.809738582

Extracting fit parameters...

4FGL J0303.6+4716
   Spectrum: LogParabola
312         norm:  1.000e-04  7.101e-04  1.000e-04  1.000e+04 ( 1.000e-12)
313        alpha:  2.097e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
314         beta:  7.937e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
315           Eb:  9.673e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
619    Prefactor:  5.555e-01  9.322e-01  0.000e+00  1.000e+01 ( 1.000e+00)
620        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
621        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
614   Normalization:  9.616e-01  9.685e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 45.910 47.276
Photon Flux Upper Limit: 3.59e-06 ph cm-2 s-1
Energy Flux Upper Limit: 1.82e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/122382/likelihoodResults_594691201_594950401_4FGL_J0303.6+4716_daily_bin1371.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) = 801.809758726
delta logL = -2.01436345151e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 801.809758725
delta logL = -2.01423479211e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .96356E-02   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0975       1.0000          .0000       5.0000    
     3 'Normalizat'    .96162       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .55547       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6340E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   801.8097     FROM MIGRAD    STATUS=CONVERGED     61 CALLS      199 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10001E-03    244.73        .90713E-02** at limit **
   2  alpha         2.1529        3.4657        .41847       -.11774E-05
   3  Normalizat    .96161        .82927        .13834       -.36352E-04
   4  Prefactor     .55547        .12753        .26411E-01    .56789E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100011
  alpha      = 2.15291
  Normalizat = 0.961607
  Prefactor  = 0.555473
 **********
 **   18 **HESSE 
 **********

 FCN=   801.8097     FROM HESSE     STATUS=OK            27 CALLS      226 TOTAL
                     EDM=   .23E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10001E-03    241.93        .18143E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.1529        3.4620        .16739       -.13929    
   3  Normalizat    .96161        .84747        .61461E-03   -.94328    
   4  Prefactor     .55547        .13113        .11670E-03   -1.0949    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.32982e-10
Minuit parameter uncertainties:
  1  0.00323038
  2  2.47622
  3  0.859726
  4  0.131202
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/122382': 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) = 801.809738556
delta logL = 2.60391743723e-08

Extracting fit parameters...

4FGL J0303.6+4716
   Spectrum: LogParabola
312         norm:  1.000e-04  3.230e-03  1.000e-04  1.000e+04 ( 1.000e-12)
313        alpha:  2.153e+00  2.476e+00  0.000e+00  5.000e+00 ( 1.000e+00)
314         beta:  7.937e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
315           Eb:  9.673e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
619    Prefactor:  5.555e-01  1.312e-01  0.000e+00  1.000e+01 ( 1.000e+00)
620        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
621        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
614   Normalization:  9.616e-01  8.597e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 45.910 47.276

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/122382/cmap_HighResolution_594691201_594950401_4FGL_J0303.6+4716_daily_bin1371.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.82e-03', job_status='DONE', photon_flux_upper_limit='3.59e-06', time_completed='2021-08-17 13:25:14.279341', job_id='122382', GAL2='0.56', fit_tolerance='1e-08', EG2='0.96', EG='0.96', time_epoch_completed='1629231914.28', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='101', GAL='0.56', dlogl='2.60e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.10' WHERE bin_id='1371' AND source_name='4FGL J0303.6+4716' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 17 13:25:14 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0025>
Subject: Job 122382: <4FGL_J0303.6+4716_daily_bin1371> in cluster <slac> Done

Job <4FGL_J0303.6+4716_daily_bin1371> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Tue Aug 17 13:11:16 2021
Job was executed on host(s) <bullet0025>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug 17 13:12:35 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Aug 17 13:12:35 2021
Terminated at Tue Aug 17 13:25:15 2021
Results reported at Tue Aug 17 13:25:15 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0303.6+4716_daily_bin1371 45.9098 47.2759 594691201 594950401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0303.6+4716 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   386.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             308.37 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   761 sec.
    Turnaround time :                            839 sec.

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

