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


Performing analysis on: 4FGL_J1153.4+4931_daily_bin625
RA = 178.35, Dec = 49.5169
tmin = 401328001, tmax = 401587201
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='152668', job_status='RUN', time_executed='2021-09-04 15:13:43.017259', time_epoch_executed='1630793623.02' WHERE source_name='4FGL J1153.4+4931' and cadence='daily' and bin_id='625'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/152668

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/152668/ft1_4FGL_J1153.4+4931_daily_bin625.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/152668/ft2_4FGL_J1153.4+4931_daily_bin625.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/152668/ft1_4FGL_J1153.4+4931_daily_bin625.fits outfile=/scratch/kocevski/152668/ft1_filteredMKT_4FGL_J1153.4+4931_daily_bin625.fits ra=178.35 dec=49.5169 rad=12.0 tmin=401328001.0 tmax=401587201.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 3.43
user 3.19
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/152668/ft1_filtered_4FGL_J1153.4+4931_daily_bin625.fits" evtable="EVENTS" scfile=/scratch/kocevski/152668/ft2_4FGL_J1153.4+4931_daily_bin625.fits sctable="SC_DATA" outfile=/scratch/kocevski/152668/ltcube_401328001_401587201_4FGL_J1153.4+4931_daily_bin625.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/152668/ft2_4FGL_J1153.4+4931_daily_bin625.fits
.....................!
real 11.72
user 11.41
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/152668/ft1_filtered_4FGL_J1153.4+4931_daily_bin625.fits evtable="EVENTS" scfile=/scratch/kocevski/152668/ft2_4FGL_J1153.4+4931_daily_bin625.fits sctable="SC_DATA" expcube=/scratch/kocevski/152668/ltcube_401328001_401587201_4FGL_J1153.4+4931_daily_bin625.fits outfile=/scratch/kocevski/152668/expmap_401328001_401587201_4FGL_J1153.4+4931_daily_bin625.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/152668/ltcube_401328001_401587201_4FGL_J1153.4+4931_daily_bin625.fits
.....................!
real 191.15
user 185.40
sys 5.38

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/152668/ft1_filtered_4FGL_J1153.4+4931_daily_bin625.fits scfile=/scratch/kocevski/152668/ft2_4FGL_J1153.4+4931_daily_bin625.fits outfile=/scratch/kocevski/152668/cmap_401328001_401587201_4FGL_J1153.4+4931_daily_bin625.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.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/152668/ft1_filtered_4FGL_J1153.4+4931_daily_bin625.fits scfile=/scratch/kocevski/152668/ft2_4FGL_J1153.4+4931_daily_bin625.fits outfile=/scratch/kocevski/152668/cmap_HighResolution_401328001_401587201_4FGL_J1153.4+4931_daily_bin625.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.37
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/152668/ft1_filtered_4FGL_J1153.4+4931_daily_bin625.fits', '/scratch/kocevski/152668/ft2_4FGL_J1153.4+4931_daily_bin625.fits', expMap='/scratch/kocevski/152668/expmap_401328001_401587201_4FGL_J1153.4+4931_daily_bin625.fits', expCube='/scratch/kocevski/152668/ltcube_401328001_401587201_4FGL_J1153.4+4931_daily_bin625.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/152668/Model_4FGL_J1153.4+4931_daily_bin625.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/152668/ft1_filtered_4FGL_J1153.4+4931_daily_bin625.fits
Spacecraft file(s): /scratch/kocevski/152668/ft2_4FGL_J1153.4+4931_daily_bin625.fits
Exposure map: /scratch/kocevski/152668/expmap_401328001_401587201_4FGL_J1153.4+4931_daily_bin625.fits
Exposure cube: /scratch/kocevski/152668/ltcube_401328001_401587201_4FGL_J1153.4+4931_daily_bin625.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/152668/Model_4FGL_J1153.4+4931_daily_bin625.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) = 5067.06331617

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    23.194       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    9.8446       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    67.765       1.0000         .10000E-03   10000.    
     8 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .14949       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    3.7063       1.0000         .10000E-03   10000.    
    12 'Prefactor '    30.848       1.0000         .10000E-03   10000.    
    13 'norm      '    .10165E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    1.2761       1.0000         .10000E-03   10000.    
    15 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    1.5923       1.0000         .10000E-03   10000.    
    19 'Prefactor '    27.911       1.0000         .10000E-03   10000.    
    20 'Prefactor '    7.0261       1.0000         .10000E-03   10000.    
    21 'norm      '    .17795E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    7.8474       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    38.375       1.0000         .10000E-03   10000.    
    27 'norm      '    7.1360       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .99035       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .80252       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7050E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5067.041     FROM MIGRAD    STATUS=CONVERGED     95 CALLS     3087 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  8.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10598E-03    39.213       -.29247E-04** at limit **
   2  Prefactor     23.197        1.1509        .62127E-06   -.15422E-02
   3  Prefactor     .10371E-03    18.223        .26057E-04** at limit **
   4  norm          .10000E-03    .89691        .72356E-06** at limit **
   5  Prefactor     9.8418        1.1404       -.90405E-06    .86065E-03
   6  Prefactor     .10000E-03    11.436       -.38465E-05** at limit **
   7  Prefactor     67.765        1.0003       -.15461E-07    .36033E-04
   8  norm          .10000E-03    7.1301       -.14208E-04** at limit **
   9  Prefactor     .12934        1.6651        .77049E-06   -.17550E-03
  10  Prefactor     .10103E-03    24.518        .77876E-05** at limit **
  11  norm          3.7058        3.8283        .10266E-05    .62317E-03
  12  Prefactor     30.850        1.0057        .44527E-07   -.12826E-03
  13  norm          .10060E-03    24.187       -.48891E-05** at limit **
  14  norm          1.2760        .95771        .47772E-06    .50660E-03
  15  norm          .10000E-03    4.2639        .14551E-06** at limit **
  16  Prefactor     .10000E-03    1.0102        .11708E-06** at limit **
  17  Prefactor     .10001E-03    10.892        .26521E-04** at limit **
  18  norm          1.5927        3.1604        .15200E-04    .55312E-02
  19  Prefactor     27.909        1.1368       -.53089E-06    .80289E-03
  20  Prefactor     7.0262        1.2598        .18534E-05    .35881E-02
  21  norm          .10000E-03    6.4555       -.36623E-06** at limit **
  22  norm          7.8461        1.1803       -.14021E-05   -.16383E-02
  23  Prefactor     .10000E-03    7.8516       -.17513E-04** at limit **
  24  Prefactor     .10000E-03    2.5543       -.10447E-06** at limit **
  25  norm          .10000E-03    1.3144       -.10342E-05** at limit **
  26  Prefactor     38.374        1.1305       -.44024E-06    .10335E-02
  27  norm          7.1356        2.8162       -.19472E-06   -.12748E-04
  28  Normalizat    .99048        .18208       -.15281E-05    .45486E-04
  29  Prefactor     .80240        .22857       -.14030E-05   -.15166E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000105977
  Prefactor  = 23.1969
  Prefactor  = 0.000103707
  norm       = 0.0001
  Prefactor  = 9.84184
  Prefactor  = 0.000100004
  Prefactor  = 67.7654
  norm       = 0.000100003
  Prefactor  = 0.129336
  Prefactor  = 0.00010103
  norm       = 3.70579
  Prefactor  = 30.8496
  norm       = 0.000100598
  norm       = 1.27603
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100007
  norm       = 1.5927
  Prefactor  = 27.9092
  Prefactor  = 7.02615
  norm       = 0.0001
  norm       = 7.84612
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 38.3738
  norm       = 7.13564
  Normalizat = 0.99048
  Prefactor  = 0.802401
 **********
 **   18 **HESSE 
 **********

 FCN=   5067.041     FROM HESSE     STATUS=OK           625 CALLS     3712 TOTAL
                     EDM=   .44E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10598E-03    75.955        .90712E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     23.197        108.78        .20793E-02   -1.4744    
   3  Prefactor     .10371E-03    46.281        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    .88809        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     9.8418        102.58        .31929E-02   -1.5080    
   6  Prefactor     .10000E-03    11.574        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     67.765        95.012        .12189E-02   -1.4060    
   8  norm          .10000E-03    16.930        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .12934        4.1054        .78518E-01   -1.5636    
  10  Prefactor     .10103E-03    31.425        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          3.7058        3.9157        .52442E-02   -1.5323    
  12  Prefactor     30.850        37.967        .18035E-02   -1.4597    
  13  norm          .10060E-03    61.380        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          1.2760        1.0238        .98334E-02   -1.5482    
  15  norm          .10000E-03    4.2533        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    1.0071        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10001E-03    14.818        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          1.5927        5.8628        .84054E-02   -1.5456    
  19  Prefactor     27.909        23.282        .18958E-02   -1.4651    
  20  Prefactor     7.0262        7.8957        .37836E-02   -1.5178    
  21  norm          .10000E-03    1.0362        .41087E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          7.8461        6.6092        .35785E-02   -1.5148    
  23  Prefactor     .10000E-03    17.051        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    2.5417        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    1.3027        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     38.374        24.277        .16175E-02   -1.4468    
  27  norm          7.1356        2.8230        .37541E-02   -1.5174    
  28  Normalizat    .99048        .16700        .46046E-01   -.93350    
  29  Prefactor     .80240        .19826        .65391E-01   -.99640    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.41366e-07
Minuit parameter uncertainties:
  1  0.0426684
  2  100.767
  3  0.0262164
  4  3.39584e-07
  5  63.6876
  6  0.000414902
  7  95.226
  8  0.000445314
  9  1.4569
  10  0.0113827
  11  3.91596
  12  37.9972
  13  0.0121317
  14  1.02378
  15  1.32127e-05
  16  4.11136e-06
  17  0.000646392
  18  5.86491
  19  23.2898
  20  7.89689
  21  2.68918e-05
  22  6.60981
  23  0.000125211
  24  4.07152e-06
  25  3.90322e-06
  26  24.2836
  27  2.8231
  28  0.167087
  29  0.198439
Done.

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

Extracting fit parameters...

4FGL J1153.4+4931
   Spectrum: PowerLaw
362    Prefactor:  1.000e-04  4.111e-06  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:  8.024e-01  1.984e-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.905e-01  1.671e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 178.350 49.517
Photon Flux Upper Limit: 4.96e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.84e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/152668/likelihoodResults_401328001_401587201_4FGL_J1153.4+4931_daily_bin625.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) = 5067.0456138
delta logL = -0.00463368011879

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5067.0409811
delta logL = -9.80488948699e-07

Fit tolerance = 1e-08

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

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

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5067.041     FROM MIGRAD    STATUS=CONVERGED    103 CALLS      251 TOTAL
                     EDM=   .62E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    12.321        .70726E-02** at limit **
   2  Index         1.8766        8.1494        .50000       -.15070E-06
   3  Normalizat    .99048        .12543E-01    .21046E-03    .30798E-03
   4  Prefactor     .80240        .15742E-01    .28927E-03    .24175E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.87664
  Normalizat = 0.99048
  Prefactor  = 0.802403
 **********
 **   18 **HESSE 
 **********

 FCN=   5067.041     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      280 TOTAL
                     EDM=   .51E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    101.51        .78953E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.8766        8.5286        .50000       -.67471    
   3  Normalizat    .99048        .39362E-01    .42092E-04   -.93350    
   4  Prefactor     .80240        .49398E-01    .11571E-04   -.99640    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.13117e-10
Minuit parameter uncertainties:
  1  4.06307e-06
  2  528.346
  3  0.0393627
  4  0.0494008
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/152668': 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) = 5067.04096927
delta logL = 1.08471786007e-05

Extracting fit parameters...

4FGL J1153.4+4931
   Spectrum: PowerLaw
362    Prefactor:  1.000e-04  4.063e-06  1.000e-04  1.000e+04 ( 1.000e-12)
363        Index:  1.877e+00  5.283e+02  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:  8.024e-01  4.940e-02  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.905e-01  3.936e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 178.350 49.517

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/152668/cmap_HighResolution_401328001_401587201_4FGL_J1153.4+4931_daily_bin625.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.84e-03', job_status='DONE', photon_flux_upper_limit='4.96e-08', time_completed='2021-09-04 15:26:21.649806', job_id='152668', GAL2='0.80', fit_tolerance='1e-08', EG2='0.99', EG='0.99', time_epoch_completed='1630794381.65', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.80', dlogl='1.08e-05', ts2='-0.00', photon_index_error='0.00', photon_index='2.41' WHERE bin_id='625' AND source_name='4FGL J1153.4+4931' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 15:26:21 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0207>
Subject: Job 152668: <4FGL_J1153.4+4931_daily_bin625> in cluster <slac> Done

Job <4FGL_J1153.4+4931_daily_bin625> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sat Sep  4 15:11:13 2021
Job was executed on host(s) <bullet0207>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 15:11:16 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:11:16 2021
Terminated at Sat Sep  4 15:26:22 2021
Results reported at Sat Sep  4 15:26:22 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1153.4+4931_daily_bin625 178.35 49.5169 401328001 401587201 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 :                                   759.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             297.43 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   905 sec.
    Turnaround time :                            909 sec.

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

