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


Performing analysis on: 4FGL_J1453.5+3505_daily_bin1044
RA = 223.392, Dec = 35.0884
tmin = 509932801, tmax = 510192001
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='834458', job_status='RUN', time_executed='2021-09-10 12:03:09.084932', time_epoch_executed='1631300589.08' WHERE source_name='4FGL J1453.5+3505' and cadence='daily' and bin_id='1044'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/834458

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/834458/ft1_4FGL_J1453.5+3505_daily_bin1044.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/834458/ft2_4FGL_J1453.5+3505_daily_bin1044.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/834458/ft1_4FGL_J1453.5+3505_daily_bin1044.fits outfile=/scratch/kocevski/834458/ft1_filteredMKT_4FGL_J1453.5+3505_daily_bin1044.fits ra=223.392 dec=35.0884 rad=12.0 tmin=509932801.0 tmax=510192001.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 3.65
user 3.31
sys 0.23

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/834458/ft2_4FGL_J1453.5+3505_daily_bin1044.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/834458/ft2_4FGL_J1453.5+3505_daily_bin1044.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/834458/ft1_filteredMKT_4FGL_J1453.5+3505_daily_bin1044.fits evtable="EVENTS" outfile="/scratch/kocevski/834458/ft1_filtered_4FGL_J1453.5+3505_daily_bin1044.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.84
user 0.35
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/834458/ft1_filtered_4FGL_J1453.5+3505_daily_bin1044.fits" evtable="EVENTS" scfile=/scratch/kocevski/834458/ft2_4FGL_J1453.5+3505_daily_bin1044.fits sctable="SC_DATA" outfile=/scratch/kocevski/834458/ltcube_509932801_510192001_4FGL_J1453.5+3505_daily_bin1044.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/834458/ft2_4FGL_J1453.5+3505_daily_bin1044.fits
.....................!
real 11.97
user 11.44
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/834458/ft1_filtered_4FGL_J1453.5+3505_daily_bin1044.fits evtable="EVENTS" scfile=/scratch/kocevski/834458/ft2_4FGL_J1453.5+3505_daily_bin1044.fits sctable="SC_DATA" expcube=/scratch/kocevski/834458/ltcube_509932801_510192001_4FGL_J1453.5+3505_daily_bin1044.fits outfile=/scratch/kocevski/834458/expmap_509932801_510192001_4FGL_J1453.5+3505_daily_bin1044.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/834458/ltcube_509932801_510192001_4FGL_J1453.5+3505_daily_bin1044.fits
.....................!
real 194.06
user 186.23
sys 4.31

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
Added 180 point sources and 0 extended sources

Setting source of interest to:
4FGL J1453.5+3505 @ 223.392 35.0884

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/834458/ft1_filtered_4FGL_J1453.5+3505_daily_bin1044.fits scfile=/scratch/kocevski/834458/ft2_4FGL_J1453.5+3505_daily_bin1044.fits outfile=/scratch/kocevski/834458/cmap_509932801_510192001_4FGL_J1453.5+3505_daily_bin1044.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=223.392 yref=35.0884 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.43
user 0.37
sys 0.18

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/834458/ft1_filtered_4FGL_J1453.5+3505_daily_bin1044.fits scfile=/scratch/kocevski/834458/ft2_4FGL_J1453.5+3505_daily_bin1044.fits outfile=/scratch/kocevski/834458/cmap_HighResolution_509932801_510192001_4FGL_J1453.5+3505_daily_bin1044.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=223.392 yref=35.0884 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.67
user 0.38
sys 0.19

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/834458/ft1_filtered_4FGL_J1453.5+3505_daily_bin1044.fits evtable="EVENTS" scfile=/scratch/kocevski/834458/ft2_4FGL_J1453.5+3505_daily_bin1044.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/834458/Model_4FGL_J1453.5+3505_daily_bin1044.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 GAL_V02
Working on...
/scratch/kocevski/834458/ft1_filtered_4FGL_J1453.5+3505_daily_bin1044.fits.....................!
real 52.57
user 48.87
sys 1.22

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/834458/ft1_filtered_4FGL_J1453.5+3505_daily_bin1044.fits', '/scratch/kocevski/834458/ft2_4FGL_J1453.5+3505_daily_bin1044.fits', expMap='/scratch/kocevski/834458/expmap_509932801_510192001_4FGL_J1453.5+3505_daily_bin1044.fits', expCube='/scratch/kocevski/834458/ltcube_509932801_510192001_4FGL_J1453.5+3505_daily_bin1044.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/834458/Model_4FGL_J1453.5+3505_daily_bin1044.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1453.5+3505'

4FGL J1453.5+3505
   Spectrum: PowerLaw
273    Prefactor:  1.970e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
274        Index:  2.363e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
275        Scale:  1.135e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/834458/ft1_filtered_4FGL_J1453.5+3505_daily_bin1044.fits
Spacecraft file(s): /scratch/kocevski/834458/ft2_4FGL_J1453.5+3505_daily_bin1044.fits
Exposure map: /scratch/kocevski/834458/expmap_509932801_510192001_4FGL_J1453.5+3505_daily_bin1044.fits
Exposure cube: /scratch/kocevski/834458/ltcube_509932801_510192001_4FGL_J1453.5+3505_daily_bin1044.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/834458/Model_4FGL_J1453.5+3505_daily_bin1044.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) = 6472.02934953

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10080E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10025E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.2834       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10247E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.0788       1.0000         .10000E-03   10000.    
     7 'norm      '    18.585       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .70108       1.0000         .10000E-03   10000.    
     9 'norm      '    9.4559       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10082E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    4.0816       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .13396E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    13.020       1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.5757       1.0000         .10000E-03   10000.    
    16 'norm      '    2.0262       1.0000         .10000E-03   10000.    
    17 'norm      '    1.4968       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    9.5017       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    7.3413       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .10272E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    .51887       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.3684       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5780E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6471.951     FROM MIGRAD    STATUS=CONVERGED    767 CALLS     3301 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    10.111       -.18693E-05** at limit **
   2  Prefactor     .10000E-03    7.9668       -.14699E-05** at limit **
   3  norm          .10000E-03    2.0018       -.15289E-07** at limit **
   4  Prefactor     4.2887        6.5047        .31487E-05   -.63867E-03
   5  Prefactor     .10000E-03    5.2420       -.36197E-06** at limit **
   6  Prefactor     2.0785        2.0324       -.62435E-08    .65130E-04
   7  norm          18.582        13.722       -.45715E-06    .58268E-04
   8  Prefactor     .61643        23.003       -.25962E-05    .23441E-03
   9  norm          9.4554        5.4475       -.24937E-07    .18425E-03
  10  Prefactor     .10000E-03    35.845        .16806E-05** at limit **
  11  norm          4.0804        4.4086        .13046E-06   -.10125E-03
  12  Prefactor     .10000E-03    18.642        .74517E-06** at limit **
  13  norm          .10001E-03    4.6878       -.19696E-05** at limit **
  14  Prefactor     13.014        11.182       -.21710E-07    .11611E-03
  15  Prefactor     3.5758        4.2927        .44892E-07    .66343E-04
  16  norm          2.0260        1.1303        .32884E-08    .12583E-03
  17  norm          1.4966        2.2667        .12025E-06   -.66545E-04
  18  Prefactor     .10000E-03    4.3270       -.56270E-07** at limit **
  19  Prefactor     .10001E-03    15.969        .33719E-05** at limit **
  20  Prefactor     9.5008        8.8528        .10329E-06   -.19397E-04
  21  Prefactor     .10000E-03    3.5421        .42342E-07** at limit **
  22  Prefactor     .10000E-03    3.6199       -.22608E-07** at limit **
  23  norm          7.3405        1.5822        .12779E-07   -.15701E-04
  24  Prefactor     .10000E-03    3.8731        .52184E-07** at limit **
  25  Prefactor     .10000E-03    9.4884        .10034E-05** at limit **
  26  Prefactor     .10000E-03    9.4349        .10651E-05** at limit **
  27  norm          .10001E-03    19.186       -.42057E-05** at limit **
  28  Prefactor     .10000E-03    8.6976        .20827E-05** at limit **
  29  Normalizat    .51902        .16269       -.42582E-06    .24137E-03
  30  Prefactor     1.3684        .17157       -.87864E-07    .29528E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100002
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 4.28867
  Prefactor  = 0.0001
  Prefactor  = 2.07855
  norm       = 18.5822
  Prefactor  = 0.616433
  norm       = 9.45541
  Prefactor  = 0.000100002
  norm       = 4.08044
  Prefactor  = 0.0001
  norm       = 0.000100012
  Prefactor  = 13.0145
  Prefactor  = 3.57584
  norm       = 2.02602
  norm       = 1.49661
  Prefactor  = 0.0001
  Prefactor  = 0.000100008
  Prefactor  = 9.50076
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 7.3405
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100001
  norm       = 0.000100011
  Prefactor  = 0.000100003
  Normalizat = 0.519025
  Prefactor  = 1.36836
 **********
 **   18 **HESSE 
 **********

 FCN=   6471.951     FROM HESSE     STATUS=OK           584 CALLS     3885 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    10.389        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    8.1385        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    2.0599        .22216E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     4.2887        7.1370        .97332E-03   -1.5294    
   5  Prefactor     .10000E-03    5.2786        .18013E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     2.0785        2.0423        .10965E-03   -1.5420    
   7  norm          18.582        13.758        .92905E-04   -1.4846    
   8  Prefactor     .61643        253.74        .69103E-02   -1.5551    
   9  norm          9.4554        5.4384        .13032E-03   -1.5093    
  10  Prefactor     .10000E-03    36.142        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          4.0804        4.4198        .16902E-03   -1.5304    
  12  Prefactor     .10000E-03    18.712        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10001E-03    10.348        .31844E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     13.014        11.144        .11101E-03   -1.4986    
  15  Prefactor     3.5758        4.2825        .17523E-03   -1.5330    
  16  norm          2.0260        1.1313        .61150E-04   -1.5423    
  17  norm          1.4966        2.2366        .14441E-03   -1.5463    
  18  Prefactor     .10000E-03    4.3843        .16314E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10001E-03    16.781        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     9.5008        8.8856        .13001E-03   -1.5091    
  21  Prefactor     .10000E-03    3.5440        .14787E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    3.6362        .14943E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          7.3405        1.5812        .44699E-04   -1.5166    
  24  Prefactor     .10000E-03    3.8876        .15443E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    9.5633        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    9.5415        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10001E-03    20.643        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    9.0090        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    .51902        .19019        .30521E-03   -1.1154    
  30  Prefactor     1.3684        .20152        .21270E-03   -.81296    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.02086e-08
Minuit parameter uncertainties:
  1  0.000312215
  2  0.000215909
  3  8.74352e-07
  4  7.13839
  5  3.11278e-05
  6  2.04237
  7  13.7602
  8  25.1191
  9  5.43868
  10  0.000571886
  11  4.42018
  12  0.000168555
  13  0.000714122
  14  11.1462
  15  4.28288
  16  1.13129
  17  2.23672
  18  5.32384e-06
  19  0.000734446
  20  8.88681
  21  4.28546e-06
  22  2.17989e-06
  23  1.58123
  24  5.17741e-06
  25  0.000164326
  26  0.00018181
  27  0.000943259
  28  0.000331935
  29  0.190429
  30  0.201635
Done.

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

Extracting fit parameters...

4FGL J1453.5+3505
   Spectrum: PowerLaw
273    Prefactor:  1.301e+01  1.115e+01  1.000e-04  1.000e+04 ( 1.000e-13)
274        Index:  2.363e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
275        Scale:  1.135e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
575    Prefactor:  1.368e+00  2.016e-01  0.000e+00  1.000e+01 ( 1.000e+00)
576        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
577        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
574   Normalization:  5.190e-01  1.904e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.75
Ra Dec: 223.392 35.088
Photon Index (Fixed Index): 2.36 +/- 0.00
Photon Flux (Fixed Index): 2.97e-08 +/- 2.54e-08
Energy Flux (Fixed Index): 1.02e-05 +/- 8.78e-06

TS (Fixed Index): 2.75
Ra Dec: 223.392 35.088
Photon Flux Upper Limit: 8.93e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.89e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/834458/likelihoodResults_509932801_510192001_4FGL_J1453.5+3505_daily_bin1044.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) = 6471.95009709
delta logL = 0.0010820953039

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6471.94927997
delta logL = 0.00189921923447

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    13.564       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3121       1.0000          .0000       10.000    
     3 'Normalizat'    .52088       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3671       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5780E+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=   6471.949     FROM MIGRAD    STATUS=FAILED        92 CALLS      282 TOTAL
                     EDM=   .20E-05    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     13.565        31.846        .10876E-03   -.33117E-03
   2  Index         2.3121        1.7384        .46522E-01    .32793E-02
   3  Normalizat    .52091        .19196        .30470E-03   -.51938E-04
   4  Prefactor     1.3671        .20196        .21279E-03   -.35725E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6471.949     FROM SIMPLEX   STATUS=UNCHANGED     80 CALLS      362 TOTAL
                     EDM=   .16E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     13.565        31.846        .17251E-03   -1.4971    
   2  Index         2.3121        1.7384        .86192E-03   -.56757    
   3  Normalizat    .52091        .19196        .32475E-03   -1.1146    
   4  Prefactor     1.3671        .20196        .19301E-03   -.81334    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6471.949     FROM MIGRAD    STATUS=CONVERGED     69 CALLS      431 TOTAL
                     EDM=   .80E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     13.565        15.098        .87004E-06   -.81537E-04
   2  Index         2.3121        .85534        .74441E-02   -.17713E-04
   3  Normalizat    .52090        .18196        .24376E-05   -.18656E-04
   4  Prefactor     1.3671        .19621        .85116E-05   -.16749E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 13.5645
  Index      = 2.31208
  Normalizat = 0.520904
  Prefactor  = 1.36706
 **********
 **   18 **HESSE 
 **********

 FCN=   6471.949     FROM HESSE     STATUS=OK            25 CALLS      456 TOTAL
                     EDM=   .92E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     13.565        14.476        .35694E-06   -1.4971    
   2  Index         2.3121        .81931        .29776E-03   -.56757    
   3  Normalizat    .52090        .18432        .48751E-06   -1.1146    
   4  Prefactor     1.3671        .19860        .17023E-05   -.81334    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.16685e-11
Minuit parameter uncertainties:
  1  14.48
  2  0.82456
  3  0.184535
  4  0.198712
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/834458': 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) = 6471.94927996
delta logL = 0.00189922842856

Extracting fit parameters...

4FGL J1453.5+3505
   Spectrum: PowerLaw
273    Prefactor:  1.356e+01  1.448e+01  1.000e-04  1.000e+04 ( 1.000e-13)
274        Index:  2.312e+00  8.246e-01  0.000e+00  1.000e+01 (-1.000e+00)
275        Scale:  1.135e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
575    Prefactor:  1.367e+00  1.987e-01  0.000e+00  1.000e+01 ( 1.000e+00)
576        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
577        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
574   Normalization:  5.209e-01  1.845e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.75
Ra Dec: 223.392 35.088
Photon Index (Free Index): 2.31 +/- 0.82
Photon Flux (Free Index): 2.84e-08 +/- 3.22e-08
Energy Flux (Free Index): 1.06e-05 +/- 1.06e-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/834458/cmap_HighResolution_509932801_510192001_4FGL_J1453.5+3505_daily_bin1044.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.89e-03', comment='SUCCESS', photon_flux='2.97e-08', energy_flux2='1.06e-05', photon_flux_error='2.54e-08', dlogl='1.90e-03', energy_flux='1.02e-05', photon_flux2='2.84e-08', job_status='DONE', time_completed='2021-09-10 12:16:52.430311', photon_index_error2='0.82', photon_index2='2.31', ts='2.75', fit_tolerance='1e-08', GAL='1.37', photon_index_error='0.00', photon_flux_upper_limit='8.93e-08', energy_flux_error2='1.06e-05', EG='0.52', time_epoch_completed='1631301412.43', return_code='0', job_id='834458', GAL2='1.37', EG2='0.52', return_code2='0', energy_flux_error='8.78e-06', photon_flux_error2='3.22e-08', ts2='2.75', photon_index='2.36' WHERE bin_id='1044' AND source_name='4FGL J1453.5+3505' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 12:16:52 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0105>
Subject: Job 834458: <4FGL_J1453.5+3505_daily_bin1044> in cluster <slac> Done

Job <4FGL_J1453.5+3505_daily_bin1044> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Fri Sep 10 12:02:53 2021
Job was executed on host(s) <bullet0105>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 10 12:02:54 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep 10 12:02:54 2021
Terminated at Fri Sep 10 12:16:53 2021
Results reported at Fri Sep 10 12:16:53 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1453.5+3505_daily_bin1044 223.392 35.0884 509932801 510192001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1453.5+3505 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   812.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             329.39 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   838 sec.
    Turnaround time :                            840 sec.

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

