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


Performing analysis on: 4FGL_J1153.0+8056_daily_bin1202
RA = 178.266, Dec = 80.9357
tmin = 550886401, tmax = 551145601
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='134420', job_status='RUN', time_executed='2021-09-04 14:19:37.652028', time_epoch_executed='1630790377.65' WHERE source_name='4FGL J1153.0+8056' and cadence='daily' and bin_id='1202'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/134420

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/134420/ft1_4FGL_J1153.0+8056_daily_bin1202.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/134420/ft2_4FGL_J1153.0+8056_daily_bin1202.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/134420/ft1_4FGL_J1153.0+8056_daily_bin1202.fits outfile=/scratch/kocevski/134420/ft1_filteredMKT_4FGL_J1153.0+8056_daily_bin1202.fits ra=178.266 dec=80.9357 rad=12.0 tmin=550886401.0 tmax=551145601.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.76
user 3.53
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/134420/ft2_4FGL_J1153.0+8056_daily_bin1202.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/134420/ft2_4FGL_J1153.0+8056_daily_bin1202.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/134420/ft1_filteredMKT_4FGL_J1153.0+8056_daily_bin1202.fits evtable="EVENTS" outfile="/scratch/kocevski/134420/ft1_filtered_4FGL_J1153.0+8056_daily_bin1202.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/134420/ft1_filtered_4FGL_J1153.0+8056_daily_bin1202.fits" evtable="EVENTS" scfile=/scratch/kocevski/134420/ft2_4FGL_J1153.0+8056_daily_bin1202.fits sctable="SC_DATA" outfile=/scratch/kocevski/134420/ltcube_550886401_551145601_4FGL_J1153.0+8056_daily_bin1202.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/134420/ft2_4FGL_J1153.0+8056_daily_bin1202.fits
.....................!
real 11.70
user 11.32
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/134420/ft1_filtered_4FGL_J1153.0+8056_daily_bin1202.fits evtable="EVENTS" scfile=/scratch/kocevski/134420/ft2_4FGL_J1153.0+8056_daily_bin1202.fits sctable="SC_DATA" expcube=/scratch/kocevski/134420/ltcube_550886401_551145601_4FGL_J1153.0+8056_daily_bin1202.fits outfile=/scratch/kocevski/134420/expmap_550886401_551145601_4FGL_J1153.0+8056_daily_bin1202.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/134420/ltcube_550886401_551145601_4FGL_J1153.0+8056_daily_bin1202.fits
.....................!
real 190.42
user 185.11
sys 4.92

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

Setting source of interest to:
4FGL J1153.0+8056 @ 178.266 80.9357

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/134420/ft1_filtered_4FGL_J1153.0+8056_daily_bin1202.fits scfile=/scratch/kocevski/134420/ft2_4FGL_J1153.0+8056_daily_bin1202.fits outfile=/scratch/kocevski/134420/cmap_550886401_551145601_4FGL_J1153.0+8056_daily_bin1202.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.266 yref=80.9357 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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/134420/ft1_filtered_4FGL_J1153.0+8056_daily_bin1202.fits scfile=/scratch/kocevski/134420/ft2_4FGL_J1153.0+8056_daily_bin1202.fits outfile=/scratch/kocevski/134420/cmap_HighResolution_550886401_551145601_4FGL_J1153.0+8056_daily_bin1202.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.266 yref=80.9357 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.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/134420/ft1_filtered_4FGL_J1153.0+8056_daily_bin1202.fits evtable="EVENTS" scfile=/scratch/kocevski/134420/ft2_4FGL_J1153.0+8056_daily_bin1202.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/134420/Model_4FGL_J1153.0+8056_daily_bin1202.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/134420/ft1_filtered_4FGL_J1153.0+8056_daily_bin1202.fits......................!
real 37.80
user 36.54
sys 1.11

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/134420/ft1_filtered_4FGL_J1153.0+8056_daily_bin1202.fits', '/scratch/kocevski/134420/ft2_4FGL_J1153.0+8056_daily_bin1202.fits', expMap='/scratch/kocevski/134420/expmap_550886401_551145601_4FGL_J1153.0+8056_daily_bin1202.fits', expCube='/scratch/kocevski/134420/ltcube_550886401_551145601_4FGL_J1153.0+8056_daily_bin1202.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/134420/Model_4FGL_J1153.0+8056_daily_bin1202.xml', optimizer='MINUIT')

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

4FGL J1153.0+8056
   Spectrum: PowerLaw
372    Prefactor:  3.014e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
373        Index:  2.870e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
374        Scale:  4.561e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/134420/ft1_filtered_4FGL_J1153.0+8056_daily_bin1202.fits
Spacecraft file(s): /scratch/kocevski/134420/ft2_4FGL_J1153.0+8056_daily_bin1202.fits
Exposure map: /scratch/kocevski/134420/expmap_550886401_551145601_4FGL_J1153.0+8056_daily_bin1202.fits
Exposure cube: /scratch/kocevski/134420/ltcube_550886401_551145601_4FGL_J1153.0+8056_daily_bin1202.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/134420/Model_4FGL_J1153.0+8056_daily_bin1202.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) = 2293.84126257

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    36.116       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10139E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    11.531       1.0000         .10000E-03   10000.    
     6 'Prefactor '    24.407       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10255E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    3.3133       1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.7450       1.0000         .10000E-03   10000.    
    11 'norm      '    .14013E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10032E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10087E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10160E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    19.893       1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    7.0208       1.0000         .10000E-03   10000.    
    22 'Prefactor '    2.4028       1.0000         .10000E-03   10000.    
    23 'Prefactor '    33.022       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    71.683       1.0000         .10000E-03   10000.    
    26 'Prefactor '    47.001       1.0000         .10000E-03   10000.    
    27 'Prefactor '    20.059       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .69803       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .92396       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7150E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   2293.819     FROM MIGRAD    STATUS=CONVERGED    721 CALLS     3687 TOTAL
                     EDM=   .37E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    28.359       -.43396E-05** at limit **
   2  norm          36.125        35.816        .18599E-05    .14159E-03
   3  Prefactor     .10000E-03    233.55       -.16247E-03** at limit **
   4  Prefactor     .10000E-03    4.6677        .10494E-06** at limit **
   5  Prefactor     11.528        25.355       -.16375E-05    .60470E-04
   6  Prefactor     24.408        22.363       -.81429E-06    .57205E-04
   7  Prefactor     .10000E-03    92.727       -.19424E-04** at limit **
   8  Prefactor     .10000E-03    159.73        .43811E-04** at limit **
   9  norm          3.3131        4.1292       -.18595E-06    .59344E-04
  10  Prefactor     5.7197        11.749       -.57577E-06   -.45392E-04
  11  norm          .10000E-03    1.9222       -.57445E-06** at limit **
  12  norm          .10000E-03    5.1085       -.41508E-06** at limit **
  13  Prefactor     .10000E-03    4.6436       -.41708E-09** at limit **
  14  Prefactor     .10000E-03    31.292        .61215E-05** at limit **
  15  Prefactor     .10000E-03    6.7746        .84916E-07** at limit **
  16  Prefactor     .10000E-03    6.0270       -.32621E-07** at limit **
  17  Prefactor     .10000E-03    151.30        .57331E-04** at limit **
  18  norm          19.891        12.375       -.62863E-06   -.45735E-05
  19  norm          .10000E-03    1.5937       -.18081E-07** at limit **
  20  Prefactor     .10000E-03    89.518       -.36065E-04** at limit **
  21  Prefactor     7.0237        20.444       -.11535E-06   -.41008E-05
  22  Prefactor     2.4008        25.928       -.60156E-05   -.11607E-03
  23  Prefactor     33.019        40.558       -.13860E-05    .44423E-04
  24  Prefactor     .10000E-03    114.82        .55986E-04** at limit **
  25  Prefactor     71.662        73.508       -.17073E-04    .43972E-05
  26  Prefactor     46.986        101.81       -.18468E-04    .69852E-05
  27  Prefactor     20.026        108.60       -.60184E-04    .61494E-05
  28  Normalizat    .69823        .26714        .65167E-05    .23921E-03
  29  Prefactor     .92377        .16754        .20622E-05    .24161E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 36.1248
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.5278
  Prefactor  = 24.4075
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.31309
  Prefactor  = 5.71973
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 19.8909
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.02371
  Prefactor  = 2.40081
  Prefactor  = 33.0192
  Prefactor  = 0.0001
  Prefactor  = 71.6623
  Prefactor  = 46.9858
  Prefactor  = 20.0262
  Normalizat = 0.698229
  Prefactor  = 0.923773
 **********
 **   18 **HESSE 
 **********

 FCN=   2293.819     FROM HESSE     STATUS=OK           541 CALLS     4228 TOTAL
                     EDM=   .80E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    28.396        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          36.125        35.836        .66687E-04   -1.4505    
   3  Prefactor     .10000E-03    235.13        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    4.6690        .10106E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     11.528        25.221        .11797E-03   -1.5029    
   6  Prefactor     24.408        22.367        .81082E-04   -1.4719    
   7  Prefactor     .10000E-03    92.770        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    159.72        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          3.3131        4.1241        .10539E-03   -1.5344    
  10  Prefactor     5.7197        10.376        .16757E-03   -1.5230    
  11  norm          .10000E-03    3.3398        .11091E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    5.1734        .10514E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    4.6454        .10080E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    31.996        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    6.8046        .12172E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    6.0364        .11483E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    151.22        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          19.891        12.402        .89801E-04   -1.4816    
  19  norm          .10000E-03    1.5945        .59048E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    89.593        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     7.0237        20.434        .15140E-03   -1.5178    
  22  Prefactor     2.4008        26.226        .26415E-03   -1.5398    
  23  Prefactor     33.019        40.528        .69731E-04   -1.4558    
  24  Prefactor     .10000E-03    114.84        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     71.662        73.543        .23708E-03   -1.4013    
  26  Prefactor     46.986        102.01        .58486E-04   -1.4336    
  27  Prefactor     20.026        109.68        .89428E-04   -1.4813    
  28  Normalizat    .69823        .29588        .28638E-03   -1.0396    
  29  Prefactor     .92377        .18607        .17552E-03   -.95315    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.03825e-10
Minuit parameter uncertainties:
  1  2.89027e-06
  2  35.8575
  3  0.00060388
  4  2.78408e-06
  5  25.2441
  6  22.375
  7  6.3554e-05
  8  0.00017837
  9  4.12445
  10  10.3797
  11  5.80809e-05
  12  3.73034e-05
  13  5.14371e-06
  14  0.000360504
  15  2.87993e-05
  16  1.00951e-05
  17  0.000420609
  18  12.4035
  19  1.72646e-06
  20  1.42441e-05
  21  20.4545
  22  15.8785
  23  40.5617
  24  4.89725e-05
  25  73.6364
  26  102.391
  27  94.0017
  28  0.296557
  29  0.186199
Done.

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

Extracting fit parameters...

4FGL J1153.0+8056
   Spectrum: PowerLaw
372    Prefactor:  1.000e-04  1.010e-05  1.000e-04  1.000e+04 ( 1.000e-12)
373        Index:  2.870e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
374        Scale:  4.561e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
712    Prefactor:  9.238e-01  1.862e-01  0.000e+00  1.000e+01 ( 1.000e+00)
713        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
714        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
711   Normalization:  6.982e-01  2.966e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 178.266 80.936
Photon Flux Upper Limit: 1.17e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.27e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/134420/likelihoodResults_550886401_551145601_4FGL_J1153.0+8056_daily_bin1202.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) = 2293.81953104
delta logL = -0.000785359308338

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2293.81874579
delta logL = -1.15972852655e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10101E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.8579       1.0000          .0000       10.000    
     3 'Normalizat'    .69813       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92384       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7150E+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=   2293.819     FROM MIGRAD    STATUS=CONVERGED     99 CALLS      252 TOTAL
                     EDM=   .12E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    69.523        .11548E-01** at limit **
   2  Index         2.3154        7.2095        .50000        .53205E-08
   3  Normalizat    .69823        .22053E-01    .28637E-03   -.11314E-04
   4  Prefactor     .92377        .15493E-01    .17552E-03   -.13667E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.31542
  Normalizat = 0.698226
  Prefactor  = 0.923774
 **********
 **   18 **HESSE 
 **********

 FCN=   2293.819     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      281 TOTAL
                     EDM=   .98E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    566.86        .12358E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3154        8.8420        .50000       -.56678    
   3  Normalizat    .69823        .69605E-01    .11455E-04   -1.0396    
   4  Prefactor     .92377        .48901E-01    .35104E-04   -.95315    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 9.77406e-11
Minuit parameter uncertainties:
  1  0.000168248
  2  1713.65
  3  0.069614
  4  0.0489034
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/134420': 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) = 2293.81874455
delta logL = 1.12651787276e-06

Extracting fit parameters...

4FGL J1153.0+8056
   Spectrum: PowerLaw
372    Prefactor:  1.000e-04  1.682e-04  1.000e-04  1.000e+04 ( 1.000e-12)
373        Index:  2.315e+00  1.714e+03  0.000e+00  1.000e+01 (-1.000e+00)
374        Scale:  4.561e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
712    Prefactor:  9.238e-01  4.890e-02  0.000e+00  1.000e+01 ( 1.000e+00)
713        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
714        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
711   Normalization:  6.982e-01  6.961e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 178.266 80.936

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/134420/cmap_HighResolution_550886401_551145601_4FGL_J1153.0+8056_daily_bin1202.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.27e-03', job_status='DONE', photon_flux_upper_limit='1.17e-07', time_completed='2021-09-04 14:29:03.728450', job_id='134420', GAL2='0.92', fit_tolerance='1e-08', EG2='0.70', EG='0.70', time_epoch_completed='1630790943.73', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.92', dlogl='1.13e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.87' WHERE bin_id='1202' AND source_name='4FGL J1153.0+8056' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 14:29:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0052>
Subject: Job 134420: <4FGL_J1153.0+8056_daily_bin1202> in cluster <slac> Done

Job <4FGL_J1153.0+8056_daily_bin1202> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Sat Sep  4 14:16:34 2021
Job was executed on host(s) <bullet0052>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 14:16:36 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep  4 14:16:36 2021
Terminated at Sat Sep  4 14:29:04 2021
Results reported at Sat Sep  4 14:29:04 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1153.0+8056_daily_bin1202 178.266 80.9357 550886401 551145601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1153.0+8056 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   564.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             295.92 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   747 sec.
    Turnaround time :                            750 sec.

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

