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


Performing analysis on: 4FGL_J1453.5+3505_daily_bin1594
RA = 223.392, Dec = 35.0884
tmin = 652492801, tmax = 652752001
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='836924', job_status='RUN', time_executed='2021-09-10 12:09:05.996877', time_epoch_executed='1631300946.0' WHERE source_name='4FGL J1453.5+3505' and cadence='daily' and bin_id='1594'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/836924

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/836924/ft1_4FGL_J1453.5+3505_daily_bin1594.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/836924/ft2_4FGL_J1453.5+3505_daily_bin1594.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/836924/ft1_4FGL_J1453.5+3505_daily_bin1594.fits outfile=/scratch/kocevski/836924/ft1_filteredMKT_4FGL_J1453.5+3505_daily_bin1594.fits ra=223.392 dec=35.0884 rad=12.0 tmin=652492801.0 tmax=652752001.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.51
user 4.19
sys 0.25

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/836924/ft1_filtered_4FGL_J1453.5+3505_daily_bin1594.fits evtable="EVENTS" scfile=/scratch/kocevski/836924/ft2_4FGL_J1453.5+3505_daily_bin1594.fits sctable="SC_DATA" expcube=/scratch/kocevski/836924/ltcube_652492801_652752001_4FGL_J1453.5+3505_daily_bin1594.fits outfile=/scratch/kocevski/836924/expmap_652492801_652752001_4FGL_J1453.5+3505_daily_bin1594.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/836924/ltcube_652492801_652752001_4FGL_J1453.5+3505_daily_bin1594.fits
.....................!
real 191.08
user 185.78
sys 4.87

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/836924/ft1_filtered_4FGL_J1453.5+3505_daily_bin1594.fits scfile=/scratch/kocevski/836924/ft2_4FGL_J1453.5+3505_daily_bin1594.fits outfile=/scratch/kocevski/836924/cmap_652492801_652752001_4FGL_J1453.5+3505_daily_bin1594.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.61
user 0.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/836924/ft1_filtered_4FGL_J1453.5+3505_daily_bin1594.fits scfile=/scratch/kocevski/836924/ft2_4FGL_J1453.5+3505_daily_bin1594.fits outfile=/scratch/kocevski/836924/cmap_HighResolution_652492801_652752001_4FGL_J1453.5+3505_daily_bin1594.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.72
user 0.38
sys 0.19

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    2.3351       1.0000         .10000E-03   10000.    
     3 'norm      '    2.2933       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10126E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    15.868       1.0000         .10000E-03   10000.    
     7 'norm      '    11.523       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    5.1896       1.0000         .10000E-03   10000.    
    10 'Prefactor '    34.191       1.0000         .10000E-03   10000.    
    11 'norm      '    12.999       1.0000         .10000E-03   10000.    
    12 'Prefactor '    29.518       1.0000         .10000E-03   10000.    
    13 'norm      '    .39399E-01   1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.7027       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10340E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    13.117       1.0000         .10000E-03   10000.    
    23 'norm      '    .10140E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10198E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    47.389       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .71776E-02   1.0000         .10000E-03   10000.    
    27 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    4.0869       1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.1795       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .66909       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.

 FCN=   5616.985     FROM MIGRAD    STATUS=CONVERGED   1423 CALLS     4604 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    6.7656        .18142E-02** at limit **
   2  Prefactor     2.3369        14.532        .13417E-02    .19802E-04
   3  norm          2.2936        2.7794        .13371E-03   -.20679E-03
   4  Prefactor     .10000E-03    14.690        .18142E-02** at limit **
   5  Prefactor     .10000E-03    6.4822        .18142E-02** at limit **
   6  Prefactor     15.868        5.2369        .94107E-04   -.18954E-03
   7  norm          11.534        13.784        .11802E-03   -.24815E-03
   8  Prefactor     .10000E-03    28.445        .18142E-02** at limit **
   9  norm          5.1909        4.7342        .14997E-03    .30929E-04
  10  Prefactor     34.194        35.915        .68532E-04   -.57397E-04
  11  norm          12.997        6.4795        .11110E-03    .99667E-04
  12  Prefactor     29.515        30.847        .73743E-04   -.92500E-05
  13  norm          .10033E-03    10.864        .66310E-01** at limit **
  14  Prefactor     5.7165        16.090        .16820E-03    .22237E-03
  15  Prefactor     .10000E-03    4.1958        .14920E-02** at limit **
  16  norm          .10000E-03    1.2697        .12979E-02** at limit **
  17  norm          .10000E-03    7.3016        .19272E-02** at limit **
  18  Prefactor     .10000E-03    4.2911        .15080E-02** at limit **
  19  Prefactor     .10000E-03    31.848        .18142E-02** at limit **
  20  Prefactor     .10000E-03    3.8450        .14286E-02** at limit **
  21  Prefactor     .10000E-03    6.8277        .18142E-02** at limit **
  22  Prefactor     13.110        11.045        .11060E-03   -.18904E-03
  23  norm          .10000E-03    .45655        .84339E-03** at limit **
  24  Prefactor     .10000E-03    3.7448        .14095E-02** at limit **
  25  Prefactor     47.394        30.571        .58247E-04   -.96809E-05
  26  Prefactor     .10001E-03    82.530        .50147E-02** at limit **
  27  norm          .10000E-03    6.2159        .18142E-02** at limit **
  28  Prefactor     3.9742        57.568        .19943E-03   -.23088E-04
  29  Normalizat    1.1793        .20387        .21109E-03   -.28384E-03
  30  Prefactor     .66938        .19553        .26898E-03   -.43239E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 2.33686
  norm       = 2.29365
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 15.8679
  norm       = 11.5343
  Prefactor  = 0.000100002
  norm       = 5.1909
  Prefactor  = 34.1938
  norm       = 12.9972
  Prefactor  = 29.5155
  norm       = 0.00010033
  Prefactor  = 5.71652
  Prefactor  = 0.0001
  norm       = 0.000100001
  norm       = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 13.1099
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 47.3944
  Prefactor  = 0.000100008
  norm       = 0.000100001
  Prefactor  = 3.97425
  Normalizat = 1.17935
  Prefactor  = 0.669375
 **********
 **   18 **HESSE 
 **********

 FCN=   5616.985     FROM HESSE     STATUS=OK           568 CALLS     5172 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    6.7658        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     2.3369        14.526        .53668E-04   -1.5402    
   3  norm          2.2936        2.7793        .53482E-05   -1.5405    
   4  Prefactor     .10000E-03    14.699        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    6.4828        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     15.868        5.2370        .37643E-05   -1.4911    
   7  norm          11.534        13.783        .47207E-05   -1.5029    
   8  Prefactor     .10000E-03    28.457        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          5.1909        4.7342        .59988E-05   -1.5252    
  10  Prefactor     34.194        35.915        .13706E-04   -1.4538    
  11  norm          12.997        6.4793        .44441E-05   -1.4987    
  12  Prefactor     29.515        30.851        .29497E-05   -1.4621    
  13  norm          .10033E-03    9.9569        .70827E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     5.7165        16.088        .67282E-05   -1.5230    
  15  Prefactor     .10000E-03    4.1967        .29840E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    1.2716        .25959E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    7.3510        .38544E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    4.2918        .30161E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    31.849        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    3.8458        .28573E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    6.8280        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     13.110        11.041        .44239E-05   -1.4984    
  23  norm          .10000E-03    .45685        .16868E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    3.7456        .28191E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     47.394        30.570        .11649E-04   -1.4330    
  26  Prefactor     .10001E-03    85.031        .20059E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10000E-03    6.2167        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     3.9742        57.588        .79770E-05   -1.5309    
  29  Normalizat    1.1793        .20402        .42218E-04   -.87243    
  30  Prefactor     .66938        .19565        .10759E-04   -1.0474    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.74053e-09
Minuit parameter uncertainties:
  1  6.80752e-06
  2  11.6563
  3  2.77948
  4  0.000353837
  5  8.76247e-05
  6  5.23717
  7  13.7864
  8  0.00041656
  9  4.73457
  10  35.9379
  11  6.47966
  12  30.8672
  13  0.00362417
  14  16.1004
  15  4.72083e-05
  16  7.79536e-05
  17  0.000264259
  18  9.2153e-05
  19  0.00015359
  20  2.00774e-05
  21  0.000189073
  22  11.0432
  23  6.8931e-06
  24  4.43623e-05
  25  30.5805
  26  0.00164771
  27  0.000112444
  28  30.2916
  29  0.204156
  30  0.195849
Done.

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

Extracting fit parameters...

4FGL J1453.5+3505
   Spectrum: PowerLaw
273    Prefactor:  5.717e+00  1.610e+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:  6.694e-01  1.958e-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:  1.179e+00  2.042e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/836924/likelihoodResults_652492801_652752001_4FGL_J1453.5+3505_daily_bin1594.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) = 5616.98278444
delta logL = 0.00240730840142

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5616.98189833
delta logL = 0.00329341731049

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.4868       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2707       1.0000          .0000       10.000    
     3 'Normalizat'    1.1804       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .66826       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=   5616.982     FROM MIGRAD    STATUS=FAILED        76 CALLS      265 TOTAL
                     EDM=   .28E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.4779        19.927        .15758E-03    .12562E-02
   2  Index         2.2710        1.1477        .11419E-01    .53068E-03
   3  Normalizat    1.1803        .19560        .21101E-03   -.28669E-02
   4  Prefactor     .66840        .19256        .26915E-03   -.22886E-02
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5616.982     FROM SIMPLEX   STATUS=UNCHANGED     71 CALLS      336 TOTAL
                     EDM=   .98E-05    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.4779        19.927        .25658E-03   -1.5199    
   2  Index         2.2710        1.1477        .97172E-03   -.57734    
   3  Normalizat    1.1803        .19560        .21695E-03   -.87213    
   4  Prefactor     .66840        .19256        .29877E-03   -1.0478    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5616.982     FROM MIGRAD    STATUS=CONVERGED     28 CALLS      364 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.4770        18.871        .31515E-04    .16392E-03
   2  Index         2.2709        1.0882        .45676E-03    .19339E-04
   3  Normalizat    1.1803        .19577        .42203E-04    .26076E-04
   4  Prefactor     .66841        .19260        .53830E-04    .13686E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.47704
  Index      = 2.27092
  Normalizat = 1.18033
  Prefactor  = 0.668407
 **********
 **   18 **HESSE 
 **********

 FCN=   5616.982     FROM HESSE     STATUS=OK            23 CALLS      387 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.4770        18.834        .63031E-05   -1.5199    
   2  Index         2.2709        1.0861        .18271E-04   -.57736    
   3  Normalizat    1.1803        .19577        .84406E-05   -.87213    
   4  Prefactor     .66841        .19260        .10766E-04   -1.0478    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.19353e-10
Minuit parameter uncertainties:
  1  18.851
  2  1.09864
  3  0.195895
  4  0.192793
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/836924': 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) = 5616.9818979
delta logL = 0.00329385004898

Extracting fit parameters...

4FGL J1453.5+3505
   Spectrum: PowerLaw
273    Prefactor:  6.477e+00  1.885e+01  1.000e-04  1.000e+04 ( 1.000e-13)
274        Index:  2.271e+00  1.099e+00  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:  6.684e-01  1.928e-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:  1.180e+00  1.959e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.15
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/836924/cmap_HighResolution_652492801_652752001_4FGL_J1453.5+3505_daily_bin1594.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.13e-03', job_status='DONE', photon_flux_upper_limit='9.25e-08', time_completed='2021-09-10 12:23:16.812400', job_id='836924', GAL2='0.67', fit_tolerance='1e-08', EG2='1.18', EG='1.18', time_epoch_completed='1631301796.81', return_code2='0', ts='0.15', comment='SUCCESS', return_code='0', GAL='0.67', dlogl='3.29e-03', ts2='0.15', photon_index_error='0.00', photon_index='2.36' WHERE bin_id='1594' AND source_name='4FGL J1453.5+3505' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 12:23:16 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0270>
Subject: Job 836924: <4FGL_J1453.5+3505_daily_bin1594> in cluster <slac> Done

Job <4FGL_J1453.5+3505_daily_bin1594> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Fri Sep 10 12:07:45 2021
Job was executed on host(s) <bullet0270>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 10 12:07:46 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:07:46 2021
Terminated at Fri Sep 10 12:23:17 2021
Results reported at Fri Sep 10 12:23:17 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1453.5+3505_daily_bin1594 223.392 35.0884 652492801 652752001 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 :                                   843.07 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             310.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   932 sec.
    Turnaround time :                            932 sec.

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

