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


Performing analysis on: 4FGL_J0453.1-2806_daily_bin1068
RA = 73.2887, Dec = -28.1144
tmin = 516153601, tmax = 516412801
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='818635', job_status='RUN', time_executed='2021-08-21 12:21:28.732167', time_epoch_executed='1629573688.73' WHERE source_name='4FGL J0453.1-2806' and cadence='daily' and bin_id='1068'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/818635

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/818635/ft1_4FGL_J0453.1-2806_daily_bin1068.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/818635/ft2_4FGL_J0453.1-2806_daily_bin1068.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/818635/ft1_4FGL_J0453.1-2806_daily_bin1068.fits outfile=/scratch/kocevski/818635/ft1_filteredMKT_4FGL_J0453.1-2806_daily_bin1068.fits ra=73.2887 dec=-28.1144 rad=12.0 tmin=516153601.0 tmax=516412801.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.30
user 3.28
sys 0.99

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/818635/ft2_4FGL_J0453.1-2806_daily_bin1068.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/818635/ft2_4FGL_J0453.1-2806_daily_bin1068.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/818635/ft1_filteredMKT_4FGL_J0453.1-2806_daily_bin1068.fits evtable="EVENTS" outfile="/scratch/kocevski/818635/ft1_filtered_4FGL_J0453.1-2806_daily_bin1068.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 1.27
user 0.32
sys 0.93

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/818635/ft1_filtered_4FGL_J0453.1-2806_daily_bin1068.fits" evtable="EVENTS" scfile=/scratch/kocevski/818635/ft2_4FGL_J0453.1-2806_daily_bin1068.fits sctable="SC_DATA" outfile=/scratch/kocevski/818635/ltcube_516153601_516412801_4FGL_J0453.1-2806_daily_bin1068.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/818635/ft2_4FGL_J0453.1-2806_daily_bin1068.fits
.....................!
real 13.39
user 12.12
sys 1.06

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/818635/ft1_filtered_4FGL_J0453.1-2806_daily_bin1068.fits evtable="EVENTS" scfile=/scratch/kocevski/818635/ft2_4FGL_J0453.1-2806_daily_bin1068.fits sctable="SC_DATA" expcube=/scratch/kocevski/818635/ltcube_516153601_516412801_4FGL_J0453.1-2806_daily_bin1068.fits outfile=/scratch/kocevski/818635/expmap_516153601_516412801_4FGL_J0453.1-2806_daily_bin1068.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/818635/ltcube_516153601_516412801_4FGL_J0453.1-2806_daily_bin1068.fits
.....................!
real 192.51
user 185.69
sys 6.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 171 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 J0453.1-2806 @ 73.2887 -28.1144

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/818635/ft1_filtered_4FGL_J0453.1-2806_daily_bin1068.fits scfile=/scratch/kocevski/818635/ft2_4FGL_J0453.1-2806_daily_bin1068.fits outfile=/scratch/kocevski/818635/cmap_516153601_516412801_4FGL_J0453.1-2806_daily_bin1068.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=73.2887 yref=-28.1144 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.29
user 0.38
sys 0.90

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/818635/ft1_filtered_4FGL_J0453.1-2806_daily_bin1068.fits scfile=/scratch/kocevski/818635/ft2_4FGL_J0453.1-2806_daily_bin1068.fits outfile=/scratch/kocevski/818635/cmap_HighResolution_516153601_516412801_4FGL_J0453.1-2806_daily_bin1068.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=73.2887 yref=-28.1144 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.31
user 0.37
sys 0.94

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/818635/ft1_filtered_4FGL_J0453.1-2806_daily_bin1068.fits evtable="EVENTS" scfile=/scratch/kocevski/818635/ft2_4FGL_J0453.1-2806_daily_bin1068.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/818635/Model_4FGL_J0453.1-2806_daily_bin1068.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/818635/ft1_filtered_4FGL_J0453.1-2806_daily_bin1068.fits.....................!
real 141.12
user 138.46
sys 2.28

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/818635/ft1_filtered_4FGL_J0453.1-2806_daily_bin1068.fits', '/scratch/kocevski/818635/ft2_4FGL_J0453.1-2806_daily_bin1068.fits', expMap='/scratch/kocevski/818635/expmap_516153601_516412801_4FGL_J0453.1-2806_daily_bin1068.fits', expCube='/scratch/kocevski/818635/ltcube_516153601_516412801_4FGL_J0453.1-2806_daily_bin1068.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/818635/Model_4FGL_J0453.1-2806_daily_bin1068.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0453.1-2806'

4FGL J0453.1-2806
   Spectrum: LogParabola
274         norm:  4.593e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-11)
275        alpha:  2.539e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
276         beta:  9.636e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
277           Eb:  3.180e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/818635/ft1_filtered_4FGL_J0453.1-2806_daily_bin1068.fits
Spacecraft file(s): /scratch/kocevski/818635/ft2_4FGL_J0453.1-2806_daily_bin1068.fits
Exposure map: /scratch/kocevski/818635/expmap_516153601_516412801_4FGL_J0453.1-2806_daily_bin1068.fits
Exposure cube: /scratch/kocevski/818635/ltcube_516153601_516412801_4FGL_J0453.1-2806_daily_bin1068.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/818635/Model_4FGL_J0453.1-2806_daily_bin1068.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) = 6121.76403576

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    6.0076       1.0000         .10000E-03   10000.    
     5 'Prefactor '    9.3544       1.0000         .10000E-03   10000.    
     6 'norm      '    .12304E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    124.44       1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.3026       1.0000         .10000E-03   10000.    
    11 'norm      '    .50120       1.0000         .10000E-03   10000.    
    12 'Prefactor '    37.231       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    5.1596       1.0000         .10000E-03   10000.    
    16 'Prefactor '    73.085       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .67411       1.0000         .10000E-03   10000.    
    18 'norm      '    6.2836       1.0000         .10000E-03   10000.    
    19 'norm      '    3.5575       1.0000         .10000E-03   10000.    
    20 'Normalizat'    .83995       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.1576       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5630E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6121.751     FROM MIGRAD    STATUS=CONVERGED    468 CALLS     2223 TOTAL
                     EDM=   .94E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    7.7816       -.91991E-07** at limit **
   2  Prefactor     .10000E-03    10.900        .56170E-07** at limit **
   3  Prefactor     .10000E-03    7.6715        .95632E-07** at limit **
   4  norm          6.0076        1.0493        .13975E-07   -.26387E-03
   5  Prefactor     9.3553        22.853        .12373E-05   -.60268E-04
   6  norm          .10004E-03    331.46        .37737E-05** at limit **
   7  Prefactor     .10000E-03    1.6829       -.11399E-08** at limit **
   8  Prefactor     124.44        61.095        .31255E-06   -.44103E-04
   9  norm          .10000E-03    .95428       -.87284E-08** at limit **
  10  Prefactor     1.3025        4.9143        .47582E-05    .70224E-03
  11  norm          .50119        .20973        .19275E-07   -.35478E-03
  12  Prefactor     37.231        40.765        .13828E-06   -.12247E-04
  13  Prefactor     .10000E-03    34.588        .10837E-05** at limit **
  14  norm          .10000E-03    48.941       -.10017E-05** at limit **
  15  norm          5.1598        2.8865       -.30314E-08   -.16226E-03
  16  Prefactor     73.087        53.705       -.40945E-06   -.89395E-05
  17  Prefactor     .68132        32.994       -.17746E-04    .19249E-03
  18  norm          6.2822        6.6459       -.62177E-06    .22246E-03
  19  norm          3.5576        2.8948        .26433E-06    .15090E-03
  20  Normalizat    .83996        .20674       -.27364E-05   -.24407E-03
  21  Prefactor     1.1576        .18324        .46270E-06   -.35326E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 6.00759
  Prefactor  = 9.35532
  norm       = 0.000100041
  Prefactor  = 0.0001
  Prefactor  = 124.439
  norm       = 0.0001
  Prefactor  = 1.30252
  norm       = 0.501192
  Prefactor  = 37.2315
  Prefactor  = 0.000100002
  norm       = 0.000100003
  norm       = 5.15981
  Prefactor  = 73.0867
  Prefactor  = 0.681315
  norm       = 6.28215
  norm       = 3.55759
  Normalizat = 0.839962
  Prefactor  = 1.15757
 **********
 **   18 **HESSE 
 **********

 FCN=   6121.751     FROM HESSE     STATUS=OK           317 CALLS     2540 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    7.8345        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    10.910        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    7.6822        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          6.0076        1.0501        .32353E-04   -1.5218    
   5  Prefactor     9.3553        22.856        .13103E-03   -1.5096    
   6  norm          .10004E-03    331.08        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    1.6838        .99124E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     124.44        61.084        .36083E-04   -1.3472    
   9  norm          .10000E-03    .95908        .74623E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     1.3025        5.1525        .33289E-03   -1.5480    
  11  norm          .50119        .20883        .21767E-04   -1.5566    
  12  Prefactor     37.231        40.769        .65684E-04   -1.4487    
  13  Prefactor     .10000E-03    34.677        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    48.949        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          5.1598        2.8855        .93681E-04   -1.5254    
  16  Prefactor     73.087        53.810        .46962E-04   -1.3996    
  17  Prefactor     .68132        39.958        .43191E-02   -1.5543    
  18  norm          6.2822        6.9525        .16013E-03   -1.5207    
  19  norm          3.5576        2.8897        .11150E-03   -1.5331    
  20  Normalizat    .83996        .24551        .30444E-03   -.98603    
  21  Prefactor     1.1576        .21901        .24539E-03   -.87647    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.61536e-09
Minuit parameter uncertainties:
  1  5.56463e-05
  2  2.08883e-06
  3  2.10172e-05
  4  1.0501
  5  22.8773
  6  0.00738913
  7  1.00382e-06
  8  61.1148
  9  1.47131e-06
  10  5.15426
  11  0.208826
  12  40.7991
  13  0.000574945
  14  0.000821747
  15  2.88563
  16  53.8458
  17  10.4419
  18  6.9534
  19  2.88977
  20  0.245837
  21  0.219183
Done.

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

Extracting fit parameters...

4FGL J0453.1-2806
   Spectrum: LogParabola
274         norm:  1.000e-04  1.471e-06  1.000e-04  1.000e+04 ( 1.000e-11)
275        alpha:  2.539e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
276         beta:  9.636e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
277           Eb:  3.180e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
560    Prefactor:  1.158e+00  2.192e-01  0.000e+00  1.000e+01 ( 1.000e+00)
561        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
562        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
556   Normalization:  8.400e-01  2.458e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 73.289 -28.114
Photon Flux Upper Limit: 5.65e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.42e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/818635/likelihoodResults_516153601_516412801_4FGL_J0453.1-2806_daily_bin1068.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): 102
logL (Free Index) = 6121.75579359
delta logL = -0.00477227913689

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6121.75102127
delta logL = 3.68954715668e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.5304       1.0000          .0000       5.0000    
     3 'Normalizat'    .83995       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1576       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5630E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   6121.751     FROM MIGRAD    STATUS=FAILED       100 CALLS      242 TOTAL
                     EDM=   .54E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    54.059        .74884E-02** at limit **
   2  alpha         2.0417        3.2328        .50000       -.24257E-05
   3  Normalizat    .83996        .37054E-01    .30444E-03    .14209E-03
   4  Prefactor     1.1576        .34700E-01    .24539E-03    .20155E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6121.751     FROM SIMPLEX   STATUS=UNCHANGED    184 CALLS      426 TOTAL
                     EDM=   .13E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    54.059        .18155E-03** at limit **
   2  alpha         2.0417        3.2328        .56603E-05   -.24257E-05
   3  Normalizat    .83996        .37054E-01    .36638E-07    .14209E-03
   4  Prefactor     1.1576        .34700E-01    .61420E-08    .20155E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6121.751     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      475 TOTAL
                     EDM=   .45E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    9.0721         .0000    ** at limit **
   2  alpha         2.0417        2.8467         .0000       -.24257E-05
   3  Normalizat    .83996        .23178         .0000        .14209E-03
   4  Prefactor     1.1576        .21711         .0000        .20139E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.04166
  Normalizat = 0.839962
  Prefactor  = 1.15757
 **********
 **   18 **HESSE 
 **********

 FCN=   6121.751     FROM HESSE     STATUS=OK            27 CALLS      502 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.1133        .15776E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.0417        2.7595        .50000       -.18438    
   3  Normalizat    .83996        .23193        .24355E-05   -.98603    
   4  Prefactor     1.1576        .21723        .98157E-05   -.87647    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.00538e-08
Minuit parameter uncertainties:
  1  1.35639e-05
  2  99.9776
  3  0.2322
  4  0.217399
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/818635': 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) = 6121.75101574
delta logL = 5.57289331482e-06

Extracting fit parameters...

4FGL J0453.1-2806
   Spectrum: LogParabola
274         norm:  1.000e-04  1.356e-05  1.000e-04  1.000e+04 ( 1.000e-11)
275        alpha:  2.042e+00  9.998e+01  0.000e+00  5.000e+00 ( 1.000e+00)
276         beta:  9.636e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
277           Eb:  3.180e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
560    Prefactor:  1.158e+00  2.174e-01  0.000e+00  1.000e+01 ( 1.000e+00)
561        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
562        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
556   Normalization:  8.400e-01  2.322e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 73.289 -28.114

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/818635/cmap_HighResolution_516153601_516412801_4FGL_J0453.1-2806_daily_bin1068.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.42e-05', job_status='DONE', photon_flux_upper_limit='5.65e-08', time_completed='2021-08-21 12:33:34.402420', job_id='818635', GAL2='1.16', fit_tolerance='1e-08', EG2='0.84', EG='0.84', time_epoch_completed='1629574414.4', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.16', dlogl='5.57e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.54' WHERE bin_id='1068' AND source_name='4FGL J0453.1-2806' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 21 12:33:34 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0034>
Subject: Job 818635: <4FGL_J0453.1-2806_daily_bin1068> in cluster <slac> Done

Job <4FGL_J0453.1-2806_daily_bin1068> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Sat Aug 21 12:20:35 2021
Job was executed on host(s) <bullet0034>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 21 12:20:37 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Aug 21 12:20:37 2021
Terminated at Sat Aug 21 12:33:34 2021
Results reported at Sat Aug 21 12:33:34 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0453.1-2806_daily_bin1068 73.2887 -28.1144 516153601 516412801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0453.1-2806 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   727.48 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             348.36 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   777 sec.
    Turnaround time :                            779 sec.

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

