/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 43 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 = 7548
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1453.5+3505_daily_bin149
RA = 223.392, Dec = 35.0884
tmin = 277948801, tmax = 278208001
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='826820', job_status='RUN', time_executed='2021-09-10 11:40:53.422681', time_epoch_executed='1631299253.42' WHERE source_name='4FGL J1453.5+3505' and cadence='daily' and bin_id='149'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/826820

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/826820/ft1_4FGL_J1453.5+3505_daily_bin149.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/826820/ft2_4FGL_J1453.5+3505_daily_bin149.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/826820/ft1_4FGL_J1453.5+3505_daily_bin149.fits outfile=/scratch/kocevski/826820/ft1_filteredMKT_4FGL_J1453.5+3505_daily_bin149.fits ra=223.392 dec=35.0884 rad=12.0 tmin=277948801.0 tmax=278208001.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.84
user 4.06
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/826820/ft2_4FGL_J1453.5+3505_daily_bin149.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/826820/ft1_filteredMKT_4FGL_J1453.5+3505_daily_bin149.fits evtable="EVENTS" outfile="/scratch/kocevski/826820/ft1_filtered_4FGL_J1453.5+3505_daily_bin149.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 5.52
user 0.33
sys 0.18

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/826820/ft1_filtered_4FGL_J1453.5+3505_daily_bin149.fits evtable="EVENTS" scfile=/scratch/kocevski/826820/ft2_4FGL_J1453.5+3505_daily_bin149.fits sctable="SC_DATA" expcube=/scratch/kocevski/826820/ltcube_277948801_278208001_4FGL_J1453.5+3505_daily_bin149.fits outfile=/scratch/kocevski/826820/expmap_277948801_278208001_4FGL_J1453.5+3505_daily_bin149.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/826820/ltcube_277948801_278208001_4FGL_J1453.5+3505_daily_bin149.fits
.....................!
real 198.23
user 184.71
sys 5.75

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/826820/ft1_filtered_4FGL_J1453.5+3505_daily_bin149.fits scfile=/scratch/kocevski/826820/ft2_4FGL_J1453.5+3505_daily_bin149.fits outfile=/scratch/kocevski/826820/cmap_277948801_278208001_4FGL_J1453.5+3505_daily_bin149.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 0.55
user 0.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/826820/ft1_filtered_4FGL_J1453.5+3505_daily_bin149.fits scfile=/scratch/kocevski/826820/ft2_4FGL_J1453.5+3505_daily_bin149.fits outfile=/scratch/kocevski/826820/cmap_HighResolution_277948801_278208001_4FGL_J1453.5+3505_daily_bin149.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 0.54
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/826820/ft1_filtered_4FGL_J1453.5+3505_daily_bin149.fits evtable="EVENTS" scfile=/scratch/kocevski/826820/ft2_4FGL_J1453.5+3505_daily_bin149.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/826820/Model_4FGL_J1453.5+3505_daily_bin149.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/826820/ft1_filtered_4FGL_J1453.5+3505_daily_bin149.fits.....................!
real 48.61
user 46.94
sys 1.14

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/826820/ft1_filtered_4FGL_J1453.5+3505_daily_bin149.fits', '/scratch/kocevski/826820/ft2_4FGL_J1453.5+3505_daily_bin149.fits', expMap='/scratch/kocevski/826820/expmap_277948801_278208001_4FGL_J1453.5+3505_daily_bin149.fits', expCube='/scratch/kocevski/826820/ltcube_277948801_278208001_4FGL_J1453.5+3505_daily_bin149.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/826820/Model_4FGL_J1453.5+3505_daily_bin149.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/826820/ft1_filtered_4FGL_J1453.5+3505_daily_bin149.fits
Spacecraft file(s): /scratch/kocevski/826820/ft2_4FGL_J1453.5+3505_daily_bin149.fits
Exposure map: /scratch/kocevski/826820/expmap_277948801_278208001_4FGL_J1453.5+3505_daily_bin149.fits
Exposure cube: /scratch/kocevski/826820/ltcube_277948801_278208001_4FGL_J1453.5+3505_daily_bin149.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/826820/Model_4FGL_J1453.5+3505_daily_bin149.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) = 5968.15158446

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10845E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    5.0355       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .62365       1.0000         .10000E-03   10000.    
     7 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    26.494       1.0000         .10000E-03   10000.    
     9 'norm      '    10.703       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .87289       1.0000         .10000E-03   10000.    
    15 'Prefactor '    9.0003       1.0000         .10000E-03   10000.    
    16 'norm      '    .68922       1.0000         .10000E-03   10000.    
    17 'norm      '    .10216E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .60354       1.0000         .10000E-03   10000.    
    19 'Prefactor '    27.754       1.0000         .10000E-03   10000.    
    20 'Prefactor '    6.2101       1.0000         .10000E-03   10000.    
    21 'Prefactor '    4.2012       1.0000         .10000E-03   10000.    
    22 'Prefactor '    28.747       1.0000         .10000E-03   10000.    
    23 'norm      '    7.2575       1.0000         .10000E-03   10000.    
    24 'Prefactor '    12.043       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .11907E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    3.4477       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    .82557       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.1760       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=   5968.121     FROM MIGRAD    STATUS=CONVERGED    760 CALLS     3953 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    37.590       -.24959E-05** at limit **
   2  Prefactor     .10000E-03    6.9937        .35191E-06** at limit **
   3  norm          .10000E-03    .96677       -.61705E-09** at limit **
   4  Prefactor     .10000E-03    5.0834        .12112E-07** at limit **
   5  Prefactor     5.0438        13.678        .43017E-06   -.23307E-04
   6  Prefactor     .62338        4.1213        .24731E-05   -.16206E-04
   7  norm          .10000E-03    5.9613       -.22891E-07** at limit **
   8  Prefactor     26.484        26.668        .63559E-06   -.45506E-04
   9  norm          10.699        7.5866       -.14630E-06   -.16686E-03
  10  Prefactor     .10000E-03    19.941        .32507E-06** at limit **
  11  norm          .10000E-03    3.9843        .21927E-06** at limit **
  12  Prefactor     .10000E-03    15.574       -.13689E-06** at limit **
  13  norm          .10000E-03    3.1468       -.59390E-07** at limit **
  14  Prefactor     .87004        25.615        .59415E-05   -.31736E-04
  15  Prefactor     9.0055        12.118        .64922E-06   -.13899E-03
  16  norm          .68880        1.8684       -.45281E-06   -.38926E-03
  17  norm          .10000E-03    2.8982        .61961E-06** at limit **
  18  Prefactor     .53125        27.187        .59653E-05   -.74064E-03
  19  Prefactor     27.690        55.407       -.41439E-05   -.67498E-04
  20  Prefactor     6.2074        7.1974       -.20302E-07   -.30681E-04
  21  Prefactor     4.1526        58.550        .19727E-05   -.38631E-03
  22  Prefactor     28.855        30.626       -.24892E-05   -.18002E-02
  23  norm          7.2585        2.4097       -.51345E-07   -.16969E-03
  24  Prefactor     12.031        16.419        .10205E-05   -.19234E-04
  25  Prefactor     .10000E-03    40.744        .21886E-05** at limit **
  26  Prefactor     .10000E-03    7.0466       -.33905E-06** at limit **
  27  norm          3.4480        8.4757        .41948E-06   -.12774E-04
  28  Prefactor     .10000E-03    15.654        .17341E-07** at limit **
  29  Normalizat    .82556        .19143       -.19825E-05   -.59503E-03
  30  Prefactor     1.1761        .17726        .32085E-06   -.63440E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.04379
  Prefactor  = 0.623375
  norm       = 0.0001
  Prefactor  = 26.4843
  norm       = 10.6987
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.870036
  Prefactor  = 9.00548
  norm       = 0.688801
  norm       = 0.0001
  Prefactor  = 0.531247
  Prefactor  = 27.6904
  Prefactor  = 6.20745
  Prefactor  = 4.15262
  Prefactor  = 28.8545
  norm       = 7.25848
  Prefactor  = 12.0309
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.44799
  Prefactor  = 0.0001
  Normalizat = 0.825562
  Prefactor  = 1.17613
 **********
 **   18 **HESSE 
 **********

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

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    38.532        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    6.9963        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    .96798        .74175E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    5.0855        .16998E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     5.0438        13.689        .17919E-03   -1.5259    
   6  Prefactor     .62338        4.0121        .29105E-03   -1.5550    
   7  norm          .10000E-03    5.9686        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     26.484        26.699        .77829E-04   -1.4678    
   9  norm          10.699        7.5849        .12247E-03   -1.5054    
  10  Prefactor     .10000E-03    19.954        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    4.1196        .30106E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    15.589        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    3.1477        .13383E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .87004        25.222        .50835E-03   -1.5521    
  15  Prefactor     9.0055        11.393        .13360E-03   -1.5108    
  16  norm          .68880        1.6992        .13790E-03   -1.5542    
  17  norm          .10000E-03    2.9014        .12724E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .53125        156.44        .43546E-02   -1.5562    
  19  Prefactor     27.690        54.677        .76045E-04   -1.4655    
  20  Prefactor     6.2074        7.2029        .16109E-03   -1.5210    
  21  Prefactor     4.1526        58.890        .19661E-03   -1.5300    
  22  Prefactor     28.855        35.658        .74723E-04   -1.4633    
  23  norm          7.2585        2.4288        .52279E-04   -1.5169    
  24  Prefactor     12.031        16.507        .11543E-03   -1.5014    
  25  Prefactor     .10000E-03    40.682        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    7.0455        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          3.4480        8.4567        .21782E-03   -1.5337    
  28  Prefactor     .10000E-03    15.664        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    .82556        .22422        .27909E-03   -.99127    
  30  Prefactor     1.1761        .20972        .23911E-03   -.87069    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.01001e-08
Minuit parameter uncertainties:
  1  3.93801e-05
  2  1.121e-05
  3  4.45046e-07
  4  4.3461e-07
  5  13.6971
  6  3.16298
  7  4.45143e-07
  8  26.7112
  9  7.58557
  10  1.45011e-05
  11  4.9916e-06
  12  8.84396e-06
  13  5.08301e-06
  14  9.3727
  15  11.3953
  16  1.69936
  17  2.98455e-05
  18  18.2793
  19  54.7757
  20  7.20394
  21  31.313
  22  35.6848
  23  2.42879
  24  16.5136
  25  8.49489e-05
  26  7.08803e-06
  27  8.45961
  28  1.2677e-05
  29  0.224473
  30  0.209867
Done.

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

Extracting fit parameters...

4FGL J1453.5+3505
   Spectrum: PowerLaw
273    Prefactor:  8.700e-01  9.373e+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

GAL_V02
   Spectrum: PowerLaw
575    Prefactor:  1.176e+00  2.099e-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:  8.256e-01  2.245e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/826820/likelihoodResults_277948801_278208001_4FGL_J1453.5+3505_daily_bin149.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) = 5968.10843518
delta logL = 0.0127381235097

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5968.09740735
delta logL = 0.023765951416

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .51338       1.0000         .10000E-03   10000.    
     2 'Index     '    3.4967       1.0000          .0000       10.000    
     3 'Normalizat'    .81587       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1817       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.

 FCN=   5968.097     FROM MIGRAD    STATUS=CONVERGED     65 CALLS      253 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .51182        12.029        .11325E-01    .16460E-02
   2  Index         3.5003        .52630        .50000        .25822E-05
   3  Normalizat    .81584        .10781E-01    .63435E-01    .18859E-04
   4  Prefactor     1.1818        .10879E-01    .53968E-01    .38841E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.511821
  Index      = 3.50029
  Normalizat = 0.815844
  Prefactor  = 1.18176
 **********
 **   18 **HESSE 
 **********

 FCN=   5968.097     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      286 TOTAL
                     EDM=   .25E-12    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .51182        452.99        .22081E-03   -1.5565    
   2  Index         3.5003        6.6299        .35186E-02   -.30463    
   3  Normalizat    .81584        .26162        .28060E-03   -.99484    
   4  Prefactor     1.1818        .24119        .23861E-03   -.86895    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.49444e-13
Minuit parameter uncertainties:
  1  30.6857
  2  34.5234
  3  0.262024
  4  0.241419
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/826820': 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): 102
logL (Free Index) = 5968.09740694
delta logL = 0.0237663577354

Extracting fit parameters...

4FGL J1453.5+3505
   Spectrum: PowerLaw
273    Prefactor:  5.118e-01  3.069e+01  1.000e-04  1.000e+04 ( 1.000e-13)
274        Index:  3.500e+00  3.452e+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.182e+00  2.414e-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:  8.158e-01  2.620e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.01
Ra Dec: 223.392 35.088

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/826820/cmap_HighResolution_277948801_278208001_4FGL_J1453.5+3505_daily_bin149.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.57e-03', job_status='DONE', photon_flux_upper_limit='7.22e-08', time_completed='2021-09-10 11:54:49.791810', job_id='826820', GAL2='1.18', fit_tolerance='1e-08', EG2='0.82', EG='0.83', time_epoch_completed='1631300089.79', return_code2='102', ts='0.01', comment='SUCCESS', return_code='0', GAL='1.18', dlogl='2.38e-02', ts2='0.06', photon_index_error='0.00', photon_index='2.36' WHERE bin_id='149' AND source_name='4FGL J1453.5+3505' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 11:54:49 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0136>
Subject: Job 826820: <4FGL_J1453.5+3505_daily_bin149> in cluster <slac> Done

Job <4FGL_J1453.5+3505_daily_bin149> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Fri Sep 10 11:38:30 2021
Job was executed on host(s) <bullet0136>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 10 11:38:32 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep 10 11:38:32 2021
Terminated at Fri Sep 10 11:54:51 2021
Results reported at Fri Sep 10 11:54:51 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1453.5+3505_daily_bin149 223.392 35.0884 277948801 278208001 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 :                                   813.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             303.85 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   978 sec.
    Turnaround time :                            981 sec.

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

