/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 76 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 = 7484
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1153.4+4931_daily_bin55
RA = 178.35, Dec = 49.5169
tmin = 253584001, tmax = 253843201
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='147881', job_status='RUN', time_executed='2021-09-04 14:58:39.208403', time_epoch_executed='1630792719.21' WHERE source_name='4FGL J1153.4+4931' and cadence='daily' and bin_id='55'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/147881

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/147881/ft1_4FGL_J1153.4+4931_daily_bin55.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/147881/ft2_4FGL_J1153.4+4931_daily_bin55.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/147881/ft1_4FGL_J1153.4+4931_daily_bin55.fits outfile=/scratch/kocevski/147881/ft1_filteredMKT_4FGL_J1153.4+4931_daily_bin55.fits ra=178.35 dec=49.5169 rad=12.0 tmin=253584001.0 tmax=253843201.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 1.46
user 1.25
sys 0.17

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/147881/ft2_4FGL_J1153.4+4931_daily_bin55.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/147881/ft1_filteredMKT_4FGL_J1153.4+4931_daily_bin55.fits evtable="EVENTS" outfile="/scratch/kocevski/147881/ft1_filtered_4FGL_J1153.4+4931_daily_bin55.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.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/147881/ft1_filtered_4FGL_J1153.4+4931_daily_bin55.fits" evtable="EVENTS" scfile=/scratch/kocevski/147881/ft2_4FGL_J1153.4+4931_daily_bin55.fits sctable="SC_DATA" outfile=/scratch/kocevski/147881/ltcube_253584001_253843201_4FGL_J1153.4+4931_daily_bin55.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/147881/ft2_4FGL_J1153.4+4931_daily_bin55.fits
.....................!
real 12.57
user 12.18
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/147881/ft1_filtered_4FGL_J1153.4+4931_daily_bin55.fits evtable="EVENTS" scfile=/scratch/kocevski/147881/ft2_4FGL_J1153.4+4931_daily_bin55.fits sctable="SC_DATA" expcube=/scratch/kocevski/147881/ltcube_253584001_253843201_4FGL_J1153.4+4931_daily_bin55.fits outfile=/scratch/kocevski/147881/expmap_253584001_253843201_4FGL_J1153.4+4931_daily_bin55.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/147881/ltcube_253584001_253843201_4FGL_J1153.4+4931_daily_bin55.fits
.....................!
real 191.50
user 185.88
sys 5.20

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/147881/ft1_filtered_4FGL_J1153.4+4931_daily_bin55.fits scfile=/scratch/kocevski/147881/ft2_4FGL_J1153.4+4931_daily_bin55.fits outfile=/scratch/kocevski/147881/cmap_253584001_253843201_4FGL_J1153.4+4931_daily_bin55.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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/147881/ft1_filtered_4FGL_J1153.4+4931_daily_bin55.fits scfile=/scratch/kocevski/147881/ft2_4FGL_J1153.4+4931_daily_bin55.fits outfile=/scratch/kocevski/147881/cmap_HighResolution_253584001_253843201_4FGL_J1153.4+4931_daily_bin55.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/147881/ft1_filtered_4FGL_J1153.4+4931_daily_bin55.fits evtable="EVENTS" scfile=/scratch/kocevski/147881/ft2_4FGL_J1153.4+4931_daily_bin55.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/147881/Model_4FGL_J1153.4+4931_daily_bin55.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/147881/ft1_filtered_4FGL_J1153.4+4931_daily_bin55.fits.....................!
real 44.55
user 43.09
sys 1.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    29.850       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    4.8231       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .12459E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10027E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .26174E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    37.046       1.0000         .10000E-03   10000.    
    11 'norm      '    2.1274       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10027E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    1.2128       1.0000         .10000E-03   10000.    
    15 'norm      '    9.1877       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .56423       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    1.1743       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    16.414       1.0000         .10000E-03   10000.    
    21 'norm      '    2.7061       1.0000         .10000E-03   10000.    
    22 'norm      '    12.723       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    6.6715       1.0000         .10000E-03   10000.    
    26 'Prefactor '    21.047       1.0000         .10000E-03   10000.    
    27 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    .97345       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .92310       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=   4776.866     FROM MIGRAD    STATUS=CONVERGED    731 CALLS     3681 TOTAL
                     EDM=   .19E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    35.540       -.15268E-05** at limit **
   2  Prefactor     29.846        107.38       -.32703E-06    .51778E-06
   3  Prefactor     .10000E-03    45.385        .19251E-05** at limit **
   4  norm          4.8235        2.6410       -.90342E-08    .13028E-03
   5  Prefactor     .10000E-03    289.29       -.14554E-05** at limit **
   6  Prefactor     .10000E-03    18.995       -.14256E-05** at limit **
   7  Prefactor     .10000E-03    28.020        .12956E-05** at limit **
   8  norm          .10000E-03    14.405        .56536E-06** at limit **
   9  Prefactor     .10001E-03    4.7116       -.36296E-06** at limit **
  10  Prefactor     37.054        28.810       -.47619E-06   -.37454E-04
  11  norm          2.1274        2.2782        .57207E-08   -.79494E-05
  12  Prefactor     .10000E-03    22.479        .87580E-06** at limit **
  13  norm          .10000E-03    11.456        .25375E-06** at limit **
  14  norm          1.2127        .94545        .48197E-07   -.10875E-03
  15  norm          9.1869        8.4458        .26662E-08    .64374E-06
  16  Prefactor     .56392        3.6938        .14154E-05   -.25314E-03
  17  Prefactor     .10000E-03    21.809        .31335E-06** at limit **
  18  norm          1.1748        11.632        .41968E-05   -.69509E-04
  19  Prefactor     .10000E-03    6.5288       -.78738E-07** at limit **
  20  Prefactor     16.418        16.900       -.18572E-05   -.19524E-03
  21  norm          2.7060        2.4850        .23172E-07   -.88286E-04
  22  norm          12.724        9.7001       -.15011E-06    .26183E-04
  23  Prefactor     .10000E-03    34.987       -.13998E-05** at limit **
  24  Prefactor     .10000E-03    11.861       -.52113E-06** at limit **
  25  norm          6.6715        4.5722       -.93856E-07    .11074E-03
  26  Prefactor     21.046        23.953        .13780E-06    .20594E-04
  27  norm          .10000E-03    1.0048        .21867E-07** at limit **
  28  Normalizat    .97346        .17985       -.51829E-06   -.22128E-05
  29  Prefactor     .92319        .21552       -.15059E-06   -.18251E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Prefactor  = 29.8462
  Prefactor  = 0.000100001
  norm       = 4.82352
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.000100013
  Prefactor  = 37.0536
  norm       = 2.12742
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 1.21266
  norm       = 9.18688
  Prefactor  = 0.563919
  Prefactor  = 0.0001
  norm       = 1.17477
  Prefactor  = 0.0001
  Prefactor  = 16.4185
  norm       = 2.70605
  norm       = 12.7241
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 6.67149
  Prefactor  = 21.0457
  norm       = 0.0001
  Normalizat = 0.973459
  Prefactor  = 0.923189
 **********
 **   18 **HESSE 
 **********

 FCN=   4776.866     FROM HESSE     STATUS=OK           551 CALLS     4232 TOTAL
                     EDM=   .79E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    35.968        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     29.846        107.41        .73333E-04   -1.4615    
   3  Prefactor     .10000E-03    46.058        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          4.8235        2.6401        .79143E-04   -1.5269    
   5  Prefactor     .10000E-03    293.63        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    19.355        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    28.325        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    14.463        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10001E-03    23.762        .28003E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     37.054        28.495        .65847E-04   -1.4490    
  11  norm          2.1274        2.2788        .10486E-03   -1.5416    
  12  Prefactor     .10000E-03    22.665        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    11.495        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          1.2127        .93050        .56855E-04   -1.5488    
  15  norm          9.1869        8.4486        .13222E-03   -1.5102    
  16  Prefactor     .56392        3.7498        .24908E-03   -1.5558    
  17  Prefactor     .10000E-03    21.835        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          1.1748        11.639        .35073E-03   -1.5491    
  19  Prefactor     .10000E-03    6.5320        .17246E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     16.418        16.635        .98859E-04   -1.4897    
  21  norm          2.7060        2.4766        .99540E-04   -1.5379    
  22  norm          12.724        9.6773        .11230E-03   -1.4994    
  23  Prefactor     .10000E-03    35.409        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    12.099        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          6.6715        4.5419        .11813E-03   -1.5191    
  26  Prefactor     21.046        23.980        .87306E-04   -1.4790    
  27  norm          .10000E-03    1.0106        .67653E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .97346        .20666        .22252E-03   -.93925    
  29  Prefactor     .92319        .24893        .28231E-03   -.95335    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.93986e-10
Minuit parameter uncertainties:
  1  0.000319997
  2  108.113
  3  0.000454095
  4  2.64019
  5  0.000413977
  6  0.000190566
  7  0.00024218
  8  7.5635e-05
  9  0.00109247
  10  28.5054
  11  2.27892
  12  0.000137976
  13  3.15248e-05
  14  0.930511
  15  8.44967
  16  2.90834
  17  4.95243e-05
  18  7.39714
  19  7.46013e-06
  20  16.6396
  21  2.47668
  22  9.67853
  23  0.000265927
  24  2.87866e-05
  25  4.54217
  26  23.991
  27  8.22745e-07
  28  0.20683
  29  0.249239
Done.

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

Extracting fit parameters...

4FGL J1153.4+4931
   Spectrum: PowerLaw
362    Prefactor:  5.639e-01  2.908e+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:  9.232e-01  2.492e-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.735e-01  2.068e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/147881/likelihoodResults_253584001_253843201_4FGL_J1153.4+4931_daily_bin55.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) = 4776.79647171
delta logL = 0.069755407093

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4776.79602985
delta logL = 0.0701972682136

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .58425       1.0000         .10000E-03   10000.    
     2 'Index     '    3.0786       1.0000          .0000       10.000    
     3 'Normalizat'    .96356       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92827       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=   4776.796     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      203 TOTAL
                     EDM=   .41E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .58607        43.747        .11610E-01    .18608E-03
   2  Index         3.0747        6.4918        .21933       -.28896E-04
   3  Normalizat    .96405        .32646E-01    .45709E-01   -.10319E-03
   4  Prefactor     .92779        .40766E-01    .45364E-01   -.11756E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.586075
  Index      = 3.07475
  Normalizat = 0.964048
  Prefactor  = 0.927793
 **********
 **   18 **HESSE 
 **********

 FCN=   4776.796     FROM HESSE     STATUS=OK            33 CALLS      236 TOTAL
                     EDM=   .48E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .58607        2.3414        .12615E-03   -1.5555    
   2  Index         3.0747        2.0441        .13025E-01   -.39526    
   3  Normalizat    .96405        .20205        .22349E-03   -.94245    
   4  Prefactor     .92779        .24855        .28166E-03   -.95177    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.83173e-10
Minuit parameter uncertainties:
  1  2.3418
  2  2.1176
  3  0.202206
  4  0.248851
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/147881': 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) = 4776.79602477
delta logL = 0.0702023449485

Extracting fit parameters...

4FGL J1153.4+4931
   Spectrum: PowerLaw
362    Prefactor:  5.861e-01  2.342e+00  1.000e-04  1.000e+04 ( 1.000e-12)
363        Index:  3.075e+00  2.118e+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:  9.278e-01  2.489e-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.640e-01  2.022e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.04
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/147881/cmap_HighResolution_253584001_253843201_4FGL_J1153.4+4931_daily_bin55.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.27e-03', job_status='DONE', photon_flux_upper_limit='8.10e-08', time_completed='2021-09-04 15:11:15.381255', job_id='147881', GAL2='0.93', fit_tolerance='1e-08', EG2='0.96', EG='0.97', time_epoch_completed='1630793475.38', return_code2='0', ts='0.04', comment='SUCCESS', return_code='0', GAL='0.92', dlogl='7.02e-02', ts2='0.18', photon_index_error='0.00', photon_index='2.41' WHERE bin_id='55' AND source_name='4FGL J1153.4+4931' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 15:11:15 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0249>
Subject: Job 147881: <4FGL_J1153.4+4931_daily_bin55> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1153.4+4931_daily_bin55 178.35 49.5169 253584001 253843201 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 :                                   756.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             322.74 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   841 sec.
    Turnaround time :                            844 sec.

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

