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


Performing analysis on: 4FGL_J1453.5+3505_daily_bin712
RA = 223.392, Dec = 35.0884
tmin = 423878401, tmax = 424137601
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='831584', job_status='RUN', time_executed='2021-09-10 11:53:20.660695', time_epoch_executed='1631300000.66' WHERE source_name='4FGL J1453.5+3505' and cadence='daily' and bin_id='712'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/831584

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/831584/ft1_4FGL_J1453.5+3505_daily_bin712.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/831584/ft2_4FGL_J1453.5+3505_daily_bin712.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/831584/ft1_4FGL_J1453.5+3505_daily_bin712.fits outfile=/scratch/kocevski/831584/ft1_filteredMKT_4FGL_J1453.5+3505_daily_bin712.fits ra=223.392 dec=35.0884 rad=12.0 tmin=423878401.0 tmax=424137601.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 5.45
user 5.07
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/831584/ft1_filtered_4FGL_J1453.5+3505_daily_bin712.fits" evtable="EVENTS" scfile=/scratch/kocevski/831584/ft2_4FGL_J1453.5+3505_daily_bin712.fits sctable="SC_DATA" outfile=/scratch/kocevski/831584/ltcube_423878401_424137601_4FGL_J1453.5+3505_daily_bin712.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/831584/ft2_4FGL_J1453.5+3505_daily_bin712.fits
.....................!
real 11.94
user 11.54
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/831584/ft1_filtered_4FGL_J1453.5+3505_daily_bin712.fits evtable="EVENTS" scfile=/scratch/kocevski/831584/ft2_4FGL_J1453.5+3505_daily_bin712.fits sctable="SC_DATA" expcube=/scratch/kocevski/831584/ltcube_423878401_424137601_4FGL_J1453.5+3505_daily_bin712.fits outfile=/scratch/kocevski/831584/expmap_423878401_424137601_4FGL_J1453.5+3505_daily_bin712.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/831584/ltcube_423878401_424137601_4FGL_J1453.5+3505_daily_bin712.fits
.....................!
real 191.15
user 185.39
sys 4.56

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/831584/ft1_filtered_4FGL_J1453.5+3505_daily_bin712.fits scfile=/scratch/kocevski/831584/ft2_4FGL_J1453.5+3505_daily_bin712.fits outfile=/scratch/kocevski/831584/cmap_423878401_424137601_4FGL_J1453.5+3505_daily_bin712.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.82
user 0.37
sys 0.18

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    9.6373       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .25429E-01   1.0000         .10000E-03   10000.    
     6 'Prefactor '    10.390       1.0000         .10000E-03   10000.    
     7 'norm      '    .10019E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    43.708       1.0000         .10000E-03   10000.    
     9 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    208.16       1.0000         .10000E-03   10000.    
    11 'norm      '    .10025E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    205.94       1.0000         .10000E-03   10000.    
    13 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    22.895       1.0000         .10000E-03   10000.    
    15 'Prefactor '    16.604       1.0000         .10000E-03   10000.    
    16 'norm      '    .10051E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    25.079       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    11.659       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10362E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .11728E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    33.403       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    .94172       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .62262       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=   1118.148     FROM MIGRAD    STATUS=CONVERGED    776 CALLS     3917 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    25.946       -.31986E-05** at limit **
   2  Prefactor     .10000E-03    26.533        .25503E-06** at limit **
   3  norm          9.6382        11.819       -.22551E-06    .11233E-03
   4  Prefactor     .10000E-03    23.688        .12650E-05** at limit **
   5  Prefactor     .10556E-03    90.568       -.15732E-04** at limit **
   6  Prefactor     10.388        16.246        .10469E-05    .30032E-04
   7  norm          .10000E-03    47.036       -.30565E-05** at limit **
   8  Prefactor     43.441        104.09       -.23340E-03    .78305E-04
   9  norm          .10000E-03    11.075       -.75344E-06** at limit **
  10  Prefactor     208.48        250.23        .20941E-03    .16103E-03
  11  norm          .10000E-03    8.5398        .91895E-07** at limit **
  12  Prefactor     205.92        140.13       -.12443E-04    .22050E-04
  13  norm          .10000E-03    14.186        .27011E-05** at limit **
  14  Prefactor     22.876        53.366       -.16548E-05    .32043E-04
  15  Prefactor     16.595        26.054       -.45151E-05    .34063E-04
  16  norm          .10000E-03    2.1305       -.53817E-07** at limit **
  17  norm          .10000E-03    6.7009        .25262E-06** at limit **
  18  Prefactor     25.084        17.430       -.14251E-05    .43816E-05
  19  Prefactor     .10000E-03    91.305        .10267E-04** at limit **
  20  Prefactor     11.651        24.244        .49518E-05   -.27294E-05
  21  Prefactor     .10000E-03    12.563       -.10995E-06** at limit **
  22  Prefactor     .10000E-03    9.9891        .55109E-07** at limit **
  23  norm          .10000E-03    1.0931       -.61714E-07** at limit **
  24  Prefactor     .10000E-03    14.173       -.28271E-05** at limit **
  25  Prefactor     .10000E-03    173.06       -.34402E-04** at limit **
  26  Prefactor     .10009E-03    93.075       -.96752E-05** at limit **
  27  norm          33.285        42.373        .36030E-04    .45992E-04
  28  Prefactor     .10000E-03    30.984        .22463E-05** at limit **
  29  Normalizat    .94211        .40105       -.21010E-06    .19831E-03
  30  Prefactor     .62237        .35368       -.59336E-05    .21935E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 9.63825
  Prefactor  = 0.0001
  Prefactor  = 0.000105563
  Prefactor  = 10.3877
  norm       = 0.000100001
  Prefactor  = 43.4409
  norm       = 0.000100001
  Prefactor  = 208.478
  norm       = 0.0001
  Prefactor  = 205.919
  norm       = 0.0001
  Prefactor  = 22.8762
  Prefactor  = 16.5948
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 25.0837
  Prefactor  = 0.0001
  Prefactor  = 11.6513
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100089
  norm       = 33.2849
  Prefactor  = 0.0001
  Normalizat = 0.94211
  Prefactor  = 0.622368
 **********
 **   18 **HESSE 
 **********

 FCN=   1118.148     FROM HESSE     STATUS=OK           574 CALLS     4491 TOTAL
                     EDM=   .95E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    25.946        .16644E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    26.532        .16832E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          9.6382        11.809        .12286E-03   -1.5087    
   4  Prefactor     .10000E-03    23.691        .15900E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10556E-03    723.29        .59739E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     10.388        16.267        .12430E-03   -1.5063    
   7  norm          .10000E-03    47.050        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     43.441        103.94        .30320E-03   -1.4389    
   9  norm          .10000E-03    11.079        .10870E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     208.48        247.00        .14009E-03   -1.2810    
  11  norm          .10000E-03    8.5673        .95446E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     205.92        141.06        .14083E-03   -1.2828    
  13  norm          .10000E-03    14.185        .12304E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     22.876        53.441        .83712E-04   -1.4751    
  15  Prefactor     16.595        25.997        .98290E-04   -1.4893    
  16  norm          .10000E-03    2.1369        .47444E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    6.7285        .84363E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     25.084        17.413        .79990E-04   -1.4706    
  19  Prefactor     .10000E-03    91.301        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     11.651        24.305        .11732E-03   -1.5025    
  21  Prefactor     .10000E-03    12.564        .11579E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    9.9989        .10322E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    1.1066        .34104E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    14.254        .12293E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    174.73        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10009E-03    93.104        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          33.285        42.465        .69333E-04   -1.4553    
  28  Prefactor     .10000E-03    30.993        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    .94211        .47422        .23468E-03   -.94996    
  30  Prefactor     .62237        .41342        .26652E-03   -1.0665    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.46109e-09
Minuit parameter uncertainties:
  1  1.90308e-05
  2  1.35055e-05
  3  11.8119
  4  0.00012218
  5  0.128445
  6  16.274
  7  0.00049162
  8  104.376
  9  0.000249685
  10  248.243
  11  2.77168e-05
  12  141.295
  13  3.30704e-05
  14  53.5526
  15  26.0145
  16  7.97704e-06
  17  6.187e-05
  18  17.4169
  19  0.000402163
  20  24.3258
  21  2.0612e-05
  22  1.58054e-05
  23  6.58638e-06
  24  1.62718e-05
  25  0.000664819
  26  0.00575342
  27  42.5031
  28  6.90144e-05
  29  0.476349
  30  0.415465
Done.

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

Extracting fit parameters...

4FGL J1453.5+3505
   Spectrum: PowerLaw
273    Prefactor:  2.288e+01  5.355e+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.224e-01  4.155e-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:  9.421e-01  4.763e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.31
Ra Dec: 223.392 35.088
Photon Flux Upper Limit: 3.31e-07 ph cm-2 s-1
Energy Flux Upper Limit: 2.55e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/831584/likelihoodResults_423878401_424137601_4FGL_J1453.5+3505_daily_bin712.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) = 1116.76784423
delta logL = 1.38003572668

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 1116.74555912
delta logL = 1.40232083205

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .70414       1.0000         .10000E-03   10000.    
     2 'Index     '    4.8733       1.0000          .0000       10.000    
     3 'Normalizat'    .73394       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .75264       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=   1116.746     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      262 TOTAL
                     EDM=   .38E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .70964        13.709        .43835E-02    .15960E-03
   2  Index         4.8690        3.5287        .47656E-01    .39860E-04
   3  Normalizat    .73244        .15888        .42742E-01    .33487E-06
   4  Prefactor     .75363        .14865        .43098E-01   -.25922E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.709638
  Index      = 4.86897
  Normalizat = 0.732436
  Prefactor  = 0.753634
 **********
 **   18 **HESSE 
 **********

 FCN=   1116.746     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      295 TOTAL
                     EDM=   .15E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .70964        18.448        .19457E-04   -1.5539    
   2  Index         4.8690        4.0342        .20555E-02   -.26209E-01
   3  Normalizat    .73244        .42882        .25937E-03   -1.0263    
   4  Prefactor     .75363        .39903        .24341E-03   -1.0146    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.4828e-11
Minuit parameter uncertainties:
  1  7.23834
  2  4.69462
  3  0.430808
  4  0.400564
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/831584': 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) = 1116.74554471
delta logL = 1.40233524039

Extracting fit parameters...

4FGL J1453.5+3505
   Spectrum: PowerLaw
273    Prefactor:  7.096e-01  7.238e+00  1.000e-04  1.000e+04 ( 1.000e-13)
274        Index:  4.869e+00  4.695e+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:  7.536e-01  4.006e-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:  7.324e-01  4.308e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.45
Ra Dec: 223.392 35.088
Photon Index (Free Index): 4.87 +/- 4.69
Photon Flux (Free Index): 2.53e-07 +/- 1.87e-07
Energy Flux (Free Index): 3.40e-05 +/- 2.87e-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/831584/cmap_HighResolution_423878401_424137601_4FGL_J1453.5+3505_daily_bin712.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.55e-02', comment='SUCCESS', energy_flux2='3.40e-05', dlogl='1.40e+00', photon_flux2='2.53e-07', job_status='DONE', time_completed='2021-09-10 12:00:47.201651', photon_index_error2='4.69', photon_index2='4.87', ts='0.31', fit_tolerance='1e-08', GAL='0.62', photon_index_error='0.00', photon_flux_upper_limit='3.31e-07', energy_flux_error2='2.87e-05', EG='0.94', time_epoch_completed='1631300447.2', return_code='0', job_id='831584', GAL2='0.75', EG2='0.73', return_code2='102', photon_flux_error2='1.87e-07', ts2='3.45', photon_index='2.36' WHERE bin_id='712' AND source_name='4FGL J1453.5+3505' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 12:00:47 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0223>
Subject: Job 831584: <4FGL_J1453.5+3505_daily_bin712> in cluster <slac> Done

Job <4FGL_J1453.5+3505_daily_bin712> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Fri Sep 10 11:53:00 2021
Job was executed on host(s) <bullet0223>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 10 11:53:01 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:53:01 2021
Terminated at Fri Sep 10 12:00:48 2021
Results reported at Fri Sep 10 12:00:48 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1453.5+3505_daily_bin712 223.392 35.0884 423878401 424137601 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 :                                   420.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             272.59 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   466 sec.
    Turnaround time :                            468 sec.

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

