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


Performing analysis on: 4FGL_J1153.4+4931_daily_bin905
RA = 178.35, Dec = 49.5169
tmin = 473904001, tmax = 474163201
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='154223', job_status='RUN', time_executed='2021-09-04 15:20:09.967984', time_epoch_executed='1630794009.97' WHERE source_name='4FGL J1153.4+4931' and cadence='daily' and bin_id='905'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/154223

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/154223/ft1_4FGL_J1153.4+4931_daily_bin905.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/154223/ft2_4FGL_J1153.4+4931_daily_bin905.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/154223/ft1_4FGL_J1153.4+4931_daily_bin905.fits outfile=/scratch/kocevski/154223/ft1_filteredMKT_4FGL_J1153.4+4931_daily_bin905.fits ra=178.35 dec=49.5169 rad=12.0 tmin=473904001.0 tmax=474163201.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.10
user 4.82
sys 0.23

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/154223/ft2_4FGL_J1153.4+4931_daily_bin905.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/154223/ft2_4FGL_J1153.4+4931_daily_bin905.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/154223/ft1_filteredMKT_4FGL_J1153.4+4931_daily_bin905.fits evtable="EVENTS" outfile="/scratch/kocevski/154223/ft1_filtered_4FGL_J1153.4+4931_daily_bin905.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.52
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/154223/ft1_filtered_4FGL_J1153.4+4931_daily_bin905.fits" evtable="EVENTS" scfile=/scratch/kocevski/154223/ft2_4FGL_J1153.4+4931_daily_bin905.fits sctable="SC_DATA" outfile=/scratch/kocevski/154223/ltcube_473904001_474163201_4FGL_J1153.4+4931_daily_bin905.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/154223/ft2_4FGL_J1153.4+4931_daily_bin905.fits
.....................!
real 12.38
user 11.97
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/154223/ft1_filtered_4FGL_J1153.4+4931_daily_bin905.fits evtable="EVENTS" scfile=/scratch/kocevski/154223/ft2_4FGL_J1153.4+4931_daily_bin905.fits sctable="SC_DATA" expcube=/scratch/kocevski/154223/ltcube_473904001_474163201_4FGL_J1153.4+4931_daily_bin905.fits outfile=/scratch/kocevski/154223/expmap_473904001_474163201_4FGL_J1153.4+4931_daily_bin905.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/154223/ltcube_473904001_474163201_4FGL_J1153.4+4931_daily_bin905.fits
.....................!
real 191.75
user 185.96
sys 4.45

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

Setting source of interest to:
4FGL J1153.4+4931 @ 178.35 49.5169

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/154223/ft1_filtered_4FGL_J1153.4+4931_daily_bin905.fits scfile=/scratch/kocevski/154223/ft2_4FGL_J1153.4+4931_daily_bin905.fits outfile=/scratch/kocevski/154223/cmap_473904001_474163201_4FGL_J1153.4+4931_daily_bin905.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=178.35 yref=49.5169 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/154223/ft1_filtered_4FGL_J1153.4+4931_daily_bin905.fits scfile=/scratch/kocevski/154223/ft2_4FGL_J1153.4+4931_daily_bin905.fits outfile=/scratch/kocevski/154223/cmap_HighResolution_473904001_474163201_4FGL_J1153.4+4931_daily_bin905.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=178.35 yref=49.5169 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.36
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/154223/ft1_filtered_4FGL_J1153.4+4931_daily_bin905.fits evtable="EVENTS" scfile=/scratch/kocevski/154223/ft2_4FGL_J1153.4+4931_daily_bin905.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/154223/Model_4FGL_J1153.4+4931_daily_bin905.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/154223/ft1_filtered_4FGL_J1153.4+4931_daily_bin905.fits.....................!
real 39.87
user 38.46
sys 1.21

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/154223/ft1_filtered_4FGL_J1153.4+4931_daily_bin905.fits', '/scratch/kocevski/154223/ft2_4FGL_J1153.4+4931_daily_bin905.fits', expMap='/scratch/kocevski/154223/expmap_473904001_474163201_4FGL_J1153.4+4931_daily_bin905.fits', expCube='/scratch/kocevski/154223/ltcube_473904001_474163201_4FGL_J1153.4+4931_daily_bin905.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/154223/Model_4FGL_J1153.4+4931_daily_bin905.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1153.4+4931'

4FGL J1153.4+4931
   Spectrum: PowerLaw
362    Prefactor:  3.122e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
363        Index:  2.412e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
364        Scale:  7.717e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/154223/ft1_filtered_4FGL_J1153.4+4931_daily_bin905.fits
Spacecraft file(s): /scratch/kocevski/154223/ft2_4FGL_J1153.4+4931_daily_bin905.fits
Exposure map: /scratch/kocevski/154223/expmap_473904001_474163201_4FGL_J1153.4+4931_daily_bin905.fits
Exposure cube: /scratch/kocevski/154223/ltcube_473904001_474163201_4FGL_J1153.4+4931_daily_bin905.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/154223/Model_4FGL_J1153.4+4931_daily_bin905.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) = 3896.8057723

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10178E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    49.699       1.0000         .10000E-03   10000.    
     4 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    24.604       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .25971E-01   1.0000         .10000E-03   10000.    
     7 'Prefactor '    45.365       1.0000         .10000E-03   10000.    
     8 'norm      '    93.766       1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.7137       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .54301       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10143E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10146E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .11231E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    5.0114       1.0000         .10000E-03   10000.    
    17 'Prefactor '    145.48       1.0000         .10000E-03   10000.    
    18 'norm      '    .10064E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    7.8513       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10950E-02   1.0000         .10000E-03   10000.    
    21 'norm      '    .10026E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    4.0094       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    6.5888       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .10045E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.0278       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.0482       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7050E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   3896.748     FROM MIGRAD    STATUS=CONVERGED    780 CALLS     3821 TOTAL
                     EDM=   .23E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    35.166       -.11771E-07** at limit **
   2  Prefactor     .10000E-03    56.179        .23125E-07** at limit **
   3  Prefactor     49.758        97.943        .45839E-06    .81391E-05
   4  norm          .10000E-03    1.5066        .61046E-09** at limit **
   5  Prefactor     24.602        41.718        .26825E-06   -.24098E-05
   6  Prefactor     .11842E-03    38.183        .25789E-05** at limit **
   7  Prefactor     45.403        72.180       -.76470E-08   -.11580E-04
   8  norm          93.860        65.484       -.33971E-06   -.70389E-04
   9  Prefactor     3.7153        4.9339        .13242E-06   -.72799E-04
  10  Prefactor     .10000E-03    10.200       -.21463E-07** at limit **
  11  norm          .54572        4.5240        .21885E-05    .37435E-04
  12  Prefactor     .10000E-03    250.10        .46126E-05** at limit **
  13  norm          .10000E-03    9.2955        .15982E-08** at limit **
  14  norm          .10000E-03    .74761        .94631E-06** at limit **
  15  norm          .10000E-03    16.693        .24204E-05** at limit **
  16  Prefactor     5.0099        5.9502        .18092E-06   -.49700E-05
  17  Prefactor     145.79        93.527       -.99791E-06   -.59794E-04
  18  norm          .10000E-03    5.2798       -.52544E-07** at limit **
  19  Prefactor     7.8507        28.750       -.75981E-07   -.81403E-05
  20  Prefactor     .10008E-03    9.2099       -.42255E-06** at limit **
  21  norm          .10000E-03    1.1015       -.85417E-07** at limit **
  22  norm          4.0077        8.6961        .37002E-06   -.61101E-04
  23  Prefactor     .10000E-03    11.597       -.65711E-06** at limit **
  24  Prefactor     .10000E-03    5.1383       -.48203E-07** at limit **
  25  norm          6.5878        4.9349        .51205E-07    .10739E-04
  26  Prefactor     .10000E-03    9.1100       -.10241E-06** at limit **
  27  norm          .10000E-03    2.0633       -.96737E-07** at limit **
  28  Normalizat    1.0278        .20713       -.15174E-05   -.18396E-03
  29  Prefactor     1.0485        .25077        .12103E-05   -.17442E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 49.7579
  norm       = 0.0001
  Prefactor  = 24.602
  Prefactor  = 0.000118423
  Prefactor  = 45.403
  norm       = 93.8602
  Prefactor  = 3.71525
  Prefactor  = 0.0001
  norm       = 0.545721
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 5.00992
  Prefactor  = 145.79
  norm       = 0.0001
  Prefactor  = 7.85069
  Prefactor  = 0.000100082
  norm       = 0.0001
  norm       = 4.00774
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 6.58776
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 1.02781
  Prefactor  = 1.0485
 **********
 **   18 **HESSE 
 **********

 FCN=   3896.748     FROM HESSE     STATUS=OK           551 CALLS     4372 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    35.181        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    56.183        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     49.758        97.984        .56884E-04   -1.4296    
   4  norm          .10000E-03    1.5401        .14905E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     24.602        41.713        .80757E-04   -1.4716    
   6  Prefactor     .11842E-03    43.271        .95145E-01   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     45.403        72.176        .59527E-04   -1.4359    
   8  norm          93.860        65.367        .20752E-03   -1.3767    
   9  Prefactor     3.7153        4.9244        .15426E-03   -1.5322    
  10  Prefactor     .10000E-03    10.204        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .54572        4.4315        .25390E-03   -1.5560    
  12  Prefactor     .10000E-03    250.80        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    9.2967        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    .75169        .10400E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    16.827        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     5.0099        5.9089        .13663E-03   -1.5260    
  17  Prefactor     145.79        93.964        .16704E-03   -1.3287    
  18  norm          .10000E-03    5.3329        .13977E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     7.8507        28.559        .14310E-03   -1.5148    
  20  Prefactor     .10008E-03    102.58        .36044E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    1.1114        .63932E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          4.0077        8.6856        .20141E-03   -1.5308    
  23  Prefactor     .10000E-03    11.609        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    5.1597        .13807E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          6.5878        4.9343        .11650E-03   -1.5195    
  26  Prefactor     .10000E-03    9.1152        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10000E-03    2.1498        .17501E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    1.0278        .24065        .22579E-03   -.92105    
  29  Prefactor     1.0485        .29138        .27983E-03   -.91130    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.22225e-09
Minuit parameter uncertainties:
  1  1.3464e-06
  2  5.40548e-06
  3  98.3035
  4  4.50745e-06
  5  41.7627
  6  0.0565094
  7  72.3149
  8  65.4172
  9  4.92494
  10  2.22811e-06
  11  3.11025
  12  0.000293324
  13  2.28232e-06
  14  4.14525e-06
  15  9.43119e-05
  16  5.90955
  17  94.061
  18  7.36599e-06
  19  28.6084
  20  0.00579652
  21  2.33456e-07
  22  8.68832
  23  1.97542e-05
  24  1.15273e-06
  25  4.93461
  26  1.30089e-06
  27  4.98717e-07
  28  0.240903
  29  0.291823
Done.

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

Extracting fit parameters...

4FGL J1153.4+4931
   Spectrum: PowerLaw
362    Prefactor:  5.010e+00  5.910e+00  1.000e-04  1.000e+04 ( 1.000e-12)
363        Index:  2.412e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
364        Scale:  7.717e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
702    Prefactor:  1.048e+00  2.918e-01  0.000e+00  1.000e+01 ( 1.000e+00)
703        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
704        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
701   Normalization:  1.028e+00  2.409e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.29
Ra Dec: 178.350 49.517
Photon Index (Fixed Index): 2.41 +/- 0.00
Photon Flux (Fixed Index): 4.91e-08 +/- 5.78e-08
Energy Flux (Fixed Index): 1.58e-05 +/- 1.87e-05

TS (Fixed Index): 1.29
Ra Dec: 178.350 49.517
Photon Flux Upper Limit: 1.60e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.24e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/154223/likelihoodResults_473904001_474163201_4FGL_J1153.4+4931_daily_bin905.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) = 3896.1339458
delta logL = 0.614436548546

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3896.09204981
delta logL = 0.656332540221

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.4874       1.0000         .10000E-03   10000.    
     2 'Index     '    3.6504       1.0000          .0000       10.000    
     3 'Normalizat'    .96521       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1026       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7050E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   3896.092     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      244 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.4822        19.570        .87910E-02    .22142E-03
   2  Index         3.6526        3.4052        .12167        .74067E-04
   3  Normalizat    .96543        .61956E-01    .45730E-01   -.13502E-03
   4  Prefactor     1.1021        .76254E-01    .61884E-01   -.12054E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.48224
  Index      = 3.65265
  Normalizat = 0.965434
  Prefactor  = 1.10207
 **********
 **   18 **HESSE 
 **********

 FCN=   3896.092     FROM HESSE     STATUS=OK            29 CALLS      273 TOTAL
                     EDM=   .36E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.4822        6.6324        .52221E-04   -1.5464    
   2  Index         3.6526        2.4849        .46304E-02   -.27284    
   3  Normalizat    .96543        .24434        .23192E-03   -.94198    
   4  Prefactor     1.1021        .30054        .27370E-03   -.89401    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.63199e-08
Minuit parameter uncertainties:
  1  6.27176
  2  2.61095
  3  0.244621
  4  0.301003
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/154223': 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) = 3896.09204503
delta logL = 0.656337316796

Extracting fit parameters...

4FGL J1153.4+4931
   Spectrum: PowerLaw
362    Prefactor:  1.482e+00  6.272e+00  1.000e-04  1.000e+04 ( 1.000e-12)
363        Index:  3.653e+00  2.611e+00  0.000e+00  1.000e+01 (-1.000e+00)
364        Scale:  7.717e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
702    Prefactor:  1.102e+00  3.010e-01  0.000e+00  1.000e+01 ( 1.000e+00)
703        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
704        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
701   Normalization:  9.654e-01  2.446e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.70
Ra Dec: 178.350 49.517
Photon Index (Free Index): 3.65 +/- 2.61
Photon Flux (Free Index): 9.77e-08 +/- 7.35e-08
Energy Flux (Free Index): 1.57e-05 +/- 1.31e-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/154223/cmap_HighResolution_473904001_474163201_4FGL_J1153.4+4931_daily_bin905.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.24e-02', comment='SUCCESS', photon_flux='4.91e-08', energy_flux2='1.57e-05', photon_flux_error='5.78e-08', dlogl='6.56e-01', energy_flux='1.58e-05', photon_flux2='9.77e-08', job_status='DONE', time_completed='2021-09-04 15:32:08.172980', photon_index_error2='2.61', photon_index2='3.65', ts='1.29', fit_tolerance='1e-08', GAL='1.05', photon_index_error='0.00', photon_flux_upper_limit='1.60e-07', energy_flux_error2='1.31e-05', EG='1.03', time_epoch_completed='1630794728.17', return_code='0', job_id='154223', GAL2='1.10', EG2='0.97', return_code2='0', energy_flux_error='1.87e-05', photon_flux_error2='7.35e-08', ts2='2.70', photon_index='2.41' WHERE bin_id='905' AND source_name='4FGL J1153.4+4931' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 15:32:08 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0251>
Subject: Job 154223: <4FGL_J1153.4+4931_daily_bin905> in cluster <slac> Done

Job <4FGL_J1153.4+4931_daily_bin905> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sat Sep  4 15:16:18 2021
Job was executed on host(s) <bullet0251>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 15:16:19 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep  4 15:16:19 2021
Terminated at Sat Sep  4 15:32:08 2021
Results reported at Sat Sep  4 15:32:08 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1153.4+4931_daily_bin905 178.35 49.5169 473904001 474163201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1153.4+4931 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   716.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             274.72 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   949 sec.
    Turnaround time :                            950 sec.

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

