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


Performing analysis on: 4FGL_J1453.5+3505_daily_bin1607
RA = 223.392, Dec = 35.0884
tmin = 655862401, tmax = 656121601
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='374701', job_status='RUN', time_executed='2021-12-08 01:36:22.735282', time_epoch_executed='1638956182.74' WHERE source_name='4FGL J1453.5+3505' and cadence='daily' and bin_id='1607'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/374701

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/374701/ft1_4FGL_J1453.5+3505_daily_bin1607.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/374701/ft2_4FGL_J1453.5+3505_daily_bin1607.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/374701/ft1_4FGL_J1453.5+3505_daily_bin1607.fits outfile=/scratch/kocevski/374701/ft1_filteredMKT_4FGL_J1453.5+3505_daily_bin1607.fits ra=223.392 dec=35.0884 rad=12.0 tmin=655862401.0 tmax=656121601.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.54
user 4.33
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/374701/ft1_filtered_4FGL_J1453.5+3505_daily_bin1607.fits" evtable="EVENTS" scfile=/scratch/kocevski/374701/ft2_4FGL_J1453.5+3505_daily_bin1607.fits sctable="SC_DATA" outfile=/scratch/kocevski/374701/ltcube_655862401_656121601_4FGL_J1453.5+3505_daily_bin1607.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/374701/ft2_4FGL_J1453.5+3505_daily_bin1607.fits
.....................!
real 12.92
user 12.49
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/374701/ft1_filtered_4FGL_J1453.5+3505_daily_bin1607.fits evtable="EVENTS" scfile=/scratch/kocevski/374701/ft2_4FGL_J1453.5+3505_daily_bin1607.fits sctable="SC_DATA" expcube=/scratch/kocevski/374701/ltcube_655862401_656121601_4FGL_J1453.5+3505_daily_bin1607.fits outfile=/scratch/kocevski/374701/expmap_655862401_656121601_4FGL_J1453.5+3505_daily_bin1607.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/374701/ltcube_655862401_656121601_4FGL_J1453.5+3505_daily_bin1607.fits
.....................!
real 197.28
user 191.87
sys 4.96

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/374701/ft1_filtered_4FGL_J1453.5+3505_daily_bin1607.fits scfile=/scratch/kocevski/374701/ft2_4FGL_J1453.5+3505_daily_bin1607.fits outfile=/scratch/kocevski/374701/cmap_655862401_656121601_4FGL_J1453.5+3505_daily_bin1607.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.53
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/374701/ft1_filtered_4FGL_J1453.5+3505_daily_bin1607.fits scfile=/scratch/kocevski/374701/ft2_4FGL_J1453.5+3505_daily_bin1607.fits outfile=/scratch/kocevski/374701/cmap_HighResolution_655862401_656121601_4FGL_J1453.5+3505_daily_bin1607.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.55
user 0.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    20.682       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10520E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    23.202       1.0000         .10000E-03   10000.    
     9 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    10.557       1.0000         .10000E-03   10000.    
    12 'Prefactor '    12.136       1.0000         .10000E-03   10000.    
    13 'norm      '    6.9020       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10105E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .61455       1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.5598       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    5.5346       1.0000         .10000E-03   10000.    
    21 'Prefactor '    11.219       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .72122       1.0000         .10000E-03   10000.    
    23 'norm      '    1.7714       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10555E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    .96392       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .96610       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=   5651.093     FROM MIGRAD    STATUS=CONVERGED    783 CALLS     4524 TOTAL
                     EDM=   .60E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          20.679        21.166       -.14080E-06   -.14007E-05
   2  Prefactor     .10000E-03    6.2170       -.56695E-07** at limit **
   3  norm          .10000E-03    2.4816        .37485E-06** at limit **
   4  Prefactor     .10000E-03    2.9037       -.14296E-07** at limit **
   5  Prefactor     .10000E-03    4.5447       -.25253E-07** at limit **
   6  Prefactor     .10000E-03    2.1200       -.36322E-06** at limit **
   7  norm          .10000E-03    3.6073       -.56795E-08** at limit **
   8  Prefactor     23.208        19.633       -.41670E-07    .34972E-05
   9  norm          .10000E-03    5.6211       -.10839E-06** at limit **
  10  Prefactor     .10000E-03    12.293        .21012E-06** at limit **
  11  norm          10.558        5.5172       -.25343E-07   -.19097E-04
  12  Prefactor     12.100        37.852        .13439E-05    .55739E-04
  13  norm          6.9023        7.4798        .19543E-07   -.70949E-07
  14  Prefactor     .10000E-03    9.8952       -.15778E-06** at limit **
  15  Prefactor     .10000E-03    2.7577       -.29032E-07** at limit **
  16  norm          .61461        1.1711       -.67187E-07   -.24948E-04
  17  norm          .10000E-03    1.0200       -.11360E-07** at limit **
  18  Prefactor     1.5607        4.9892        .26202E-05   -.34824E-03
  19  Prefactor     .10000E-03    41.771       -.26005E-07** at limit **
  20  Prefactor     5.5355        8.0675        .27084E-06   -.11629E-03
  21  Prefactor     11.230        21.553        .28603E-05    .14486E-03
  22  Prefactor     .71709        21.762       -.51824E-05    .70209E-04
  23  norm          1.7715        1.0676       -.14411E-09   -.21911E-03
  24  Prefactor     .10000E-03    5.4624       -.48109E-07** at limit **
  25  Prefactor     .10000E-03    15.553       -.25650E-06** at limit **
  26  Prefactor     .10001E-03    20.358        .24824E-05** at limit **
  27  norm          .10000E-03    8.5444        .57430E-07** at limit **
  28  Prefactor     .10000E-03    20.726       -.11338E-07** at limit **
  29  Normalizat    .96406        .17868        .16052E-05    .42784E-03
  30  Prefactor     .96595        .17612       -.10068E-05   -.98460E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 20.6786
  Prefactor  = 0.0001
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 23.208
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 10.558
  Prefactor  = 12.0998
  norm       = 6.90226
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.614609
  norm       = 0.0001
  Prefactor  = 1.56074
  Prefactor  = 0.0001
  Prefactor  = 5.53554
  Prefactor  = 11.2298
  Prefactor  = 0.71709
  norm       = 1.77147
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100005
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.964061
  Prefactor  = 0.965947
 **********
 **   18 **HESSE 
 **********

 FCN=   5651.093     FROM HESSE     STATUS=OK           588 CALLS     5112 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          20.679        21.220        .88073E-04   -1.4798    
   2  Prefactor     .10000E-03    6.2300        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    5.2371        .22450E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    2.9053        .12510E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    4.5526        .15650E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    14.499        .20589E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    3.6079        .13944E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     23.208        19.659        .83158E-04   -1.4744    
   9  norm          .10000E-03    5.8158        .34793E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    12.298        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          10.558        5.5159        .12331E-03   -1.5058    
  12  Prefactor     12.100        37.993        .11499E-03   -1.5012    
  13  norm          6.9023        7.4763        .76356E-03   -1.5182    
  14  Prefactor     .10000E-03    9.9666        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    2.7719        .12183E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .61461        1.1379        .10674E-03   -1.5551    
  17  norm          .10000E-03    1.0233        .74095E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     1.5607        5.4252        .14648E-02   -1.5458    
  19  Prefactor     .10000E-03    41.825        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     5.5355        8.0754        .85389E-03   -1.5237    
  21  Prefactor     11.230        25.177        .11961E-03   -1.5038    
  22  Prefactor     .71709        93.824        .44691E-02   -1.5539    
  23  norm          1.7715        1.0660        .15731E-03   -1.5442    
  24  Prefactor     .10000E-03    5.5160        .17138E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    15.560        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10001E-03    105.05        .58034E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10000E-03    8.5689        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    20.786        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    .96406        .20683        .22780E-03   -.94244    
  30  Prefactor     .96595        .20099        .23367E-03   -.93873    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.86627e-09
Minuit parameter uncertainties:
  1  21.2277
  2  2.57354e-06
  3  0.000119152
  4  1.91245e-06
  5  4.26162e-06
  6  8.83369e-05
  7  1.06594e-06
  8  19.6646
  9  2.37732e-06
  10  2.02512e-05
  11  5.51614
  12  38.0694
  13  7.47733
  14  9.31741e-05
  15  1.22062e-06
  16  1.13794
  17  1.22572e-06
  18  5.42686
  19  2.47394e-05
  20  8.07703
  21  25.201
  22  16.4301
  23  1.06599
  24  1.00435e-05
  25  1.05436e-05
  26  0.00151432
  27  9.10597e-06
  28  1.64931e-05
  29  0.207004
  30  0.201149
Done.

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

Extracting fit parameters...

4FGL J1453.5+3505
   Spectrum: PowerLaw
273    Prefactor:  1.000e-04  9.317e-05  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:  9.659e-01  2.011e-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.641e-01  2.070e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/374701/likelihoodResults_655862401_656121601_4FGL_J1453.5+3505_daily_bin1607.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5651.09384893
delta logL = -0.000478198217934

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5651.09337076
delta logL = -2.23189999815e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10151E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3801       1.0000          .0000       10.000    
     3 'Normalizat'    .96407       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96595       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=   5651.093     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      199 TOTAL
                     EDM=   .62E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    584.26        .90712E-02** at limit **
   2  Index         2.3980        6.0336        .50000       -.16316E-04
   3  Normalizat    .96406        .33514E-01    .45715E-01    .27895E-03
   4  Prefactor     .96595        .34541E-01    .45840E-01    .19051E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100007
  Index      = 2.39804
  Normalizat = 0.964056
  Prefactor  = 0.965952
 **********
 **   18 **HESSE 
 **********

 FCN=   5651.093     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      228 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    969.80        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3980        8.4625        .50000       -.54731    
   3  Normalizat    .96406        .46084E-01    .22780E-03   -.94244    
   4  Prefactor     .96595        .47552E-01    .23367E-03   -.93873    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.05996e-08
Minuit parameter uncertainties:
  1  0.0054098
  2  42.3627
  3  0.0460858
  4  0.0475537
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/374701': 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) = 5651.09337061
delta logL = 1.27615749079e-07

Extracting fit parameters...

4FGL J1453.5+3505
   Spectrum: PowerLaw
273    Prefactor:  1.000e-04  5.410e-03  1.000e-04  1.000e+04 ( 1.000e-13)
274        Index:  2.398e+00  4.236e+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:  9.660e-01  4.755e-02  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.641e-01  4.609e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
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/374701/cmap_HighResolution_655862401_656121601_4FGL_J1453.5+3505_daily_bin1607.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.28e-03', job_status='DONE', photon_flux_upper_limit='6.85e-08', time_completed='2021-12-08 01:50:39.244073', job_id='374701', GAL2='0.97', fit_tolerance='1e-08', EG2='0.96', EG='0.96', time_epoch_completed='1638957039.24', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.97', dlogl='1.28e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.36' WHERE bin_id='1607' AND source_name='4FGL J1453.5+3505' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Dec  8 01:50:39 PST 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0252>
Subject: Job 374701: <4FGL_J1453.5+3505_daily_bin1607> in cluster <slac> Done

Job <4FGL_J1453.5+3505_daily_bin1607> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Wed Dec  8 01:35:19 2021
Job was executed on host(s) <bullet0252>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Dec  8 01:36:09 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Dec  8 01:36:09 2021
Terminated at Wed Dec  8 01:50:40 2021
Results reported at Wed Dec  8 01:50:40 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1453.5+3505_daily_bin1607 223.392 35.0884 655862401 656121601 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 :                                   855.03 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             332.33 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   870 sec.
    Turnaround time :                            921 sec.

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

