/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 170 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 = 7474
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1153.4+4931_daily_bin396
RA = 178.35, Dec = 49.5169
tmin = 341971201, tmax = 342230401
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='150877', job_status='RUN', time_executed='2021-09-04 15:09:20.548152', time_epoch_executed='1630793360.55' WHERE source_name='4FGL J1153.4+4931' and cadence='daily' and bin_id='396'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/150877

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/150877/ft1_4FGL_J1153.4+4931_daily_bin396.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/150877/ft2_4FGL_J1153.4+4931_daily_bin396.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/150877/ft1_4FGL_J1153.4+4931_daily_bin396.fits outfile=/scratch/kocevski/150877/ft1_filteredMKT_4FGL_J1153.4+4931_daily_bin396.fits ra=178.35 dec=49.5169 rad=12.0 tmin=341971201.0 tmax=342230401.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.44
user 3.22
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/150877/ft1_filtered_4FGL_J1153.4+4931_daily_bin396.fits evtable="EVENTS" scfile=/scratch/kocevski/150877/ft2_4FGL_J1153.4+4931_daily_bin396.fits sctable="SC_DATA" expcube=/scratch/kocevski/150877/ltcube_341971201_342230401_4FGL_J1153.4+4931_daily_bin396.fits outfile=/scratch/kocevski/150877/expmap_341971201_342230401_4FGL_J1153.4+4931_daily_bin396.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/150877/ltcube_341971201_342230401_4FGL_J1153.4+4931_daily_bin396.fits
.....................!
real 191.97
user 186.51
sys 5.07

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/150877/ft1_filtered_4FGL_J1153.4+4931_daily_bin396.fits scfile=/scratch/kocevski/150877/ft2_4FGL_J1153.4+4931_daily_bin396.fits outfile=/scratch/kocevski/150877/cmap_341971201_342230401_4FGL_J1153.4+4931_daily_bin396.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/150877/ft1_filtered_4FGL_J1153.4+4931_daily_bin396.fits scfile=/scratch/kocevski/150877/ft2_4FGL_J1153.4+4931_daily_bin396.fits outfile=/scratch/kocevski/150877/cmap_HighResolution_341971201_342230401_4FGL_J1153.4+4931_daily_bin396.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.57
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    91.949       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10170E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    104.30       1.0000         .10000E-03   10000.    
     4 'norm      '    .83463       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10060E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10055E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    11.576       1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.7174       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .11322E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .11493E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    19.364       1.0000         .10000E-03   10000.    
    14 'norm      '    5.6979       1.0000         .10000E-03   10000.    
    15 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    10.754       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .14111E-02   1.0000         .10000E-03   10000.    
    18 'norm      '    .17898E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    3.2212       1.0000         .10000E-03   10000.    
    22 'norm      '    .10032E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10822E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    6.8847       1.0000         .10000E-03   10000.    
    26 'Prefactor '    46.805       1.0000         .10000E-03   10000.    
    27 'norm      '    3.8755       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .65174       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.2237       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=   5973.304     FROM MIGRAD    STATUS=CONVERGED    726 CALLS     3782 TOTAL
                     EDM=   .88E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     91.776        104.36       -.12569E-05   -.19903E-03
   2  Prefactor     .10000E-03    33.000       -.82933E-07** at limit **
   3  Prefactor     104.33        124.45        .21543E-05    .27574E-04
   4  norm          .83491        1.6700       -.48334E-06   -.11813E-02
   5  Prefactor     .10000E-03    18.171       -.35511E-06** at limit **
   6  Prefactor     .10000E-03    7.6676       -.35861E-06** at limit **
   7  Prefactor     11.723        208.40        .48927E-05    .65646E-04
   8  norm          .10000E-03    24.590        .59458E-06** at limit **
   9  Prefactor     4.7202        8.0397        .90677E-05   -.11141E-03
  10  Prefactor     .10001E-03    64.997       -.35029E-05** at limit **
  11  norm          .10000E-03    2.1506        .63894E-06** at limit **
  12  Prefactor     .10000E-03    13.707        .95986E-08** at limit **
  13  norm          19.362        16.027        .30172E-07    .10491E-03
  14  norm          5.6975        1.3740       -.45935E-07   -.33453E-03
  15  norm          .10000E-03    4.5003        .20975E-07** at limit **
  16  Prefactor     10.755        4.1555        .95803E-07   -.10861E-03
  17  Prefactor     .10000E-03    140.74       -.18088E-05** at limit **
  18  norm          .10000E-03    3.2451       -.16559E-05** at limit **
  19  Prefactor     .10000E-03    7.8879        .18433E-07** at limit **
  20  Prefactor     .10000E-03    3.9134       -.30976E-07** at limit **
  21  norm          3.2217        2.1460       -.41986E-07    .23075E-04
  22  norm          .10000E-03    4.0038        .12423E-06** at limit **
  23  Prefactor     .10000E-03    28.803        .24197E-06** at limit **
  24  Prefactor     .10000E-03    4.3811        .66821E-07** at limit **
  25  norm          6.8849        3.2874        .44140E-07    .17290E-04
  26  Prefactor     46.813        21.962        .37193E-06    .50755E-05
  27  norm          3.8757        2.0785        .81516E-07   -.98078E-05
  28  Normalizat    .65125        .16653       -.20802E-05    .14444E-03
  29  Prefactor     1.2243        .19934       -.78190E-06    .61157E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 91.776
  Prefactor  = 0.0001
  Prefactor  = 104.332
  norm       = 0.834906
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.7226
  norm       = 0.0001
  Prefactor  = 4.72025
  Prefactor  = 0.000100007
  norm       = 0.000100001
  Prefactor  = 0.0001
  norm       = 19.3621
  norm       = 5.69746
  norm       = 0.0001
  Prefactor  = 10.7546
  Prefactor  = 0.000100001
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.22174
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 6.88487
  Prefactor  = 46.813
  norm       = 3.87566
  Normalizat = 0.651254
  Prefactor  = 1.22426
 **********
 **   18 **HESSE 
 **********

 FCN=   5973.304     FROM HESSE     STATUS=OK           549 CALLS     4331 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     91.776        105.03        .20954E-03   -1.3789    
   2  Prefactor     .10000E-03    33.001        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     104.33        124.46        .19687E-03   -1.3662    
   4  norm          .83491        1.4040        .13841E-02   -1.5525    
   5  Prefactor     .10000E-03    18.181        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    7.6777        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     11.723        205.94        .11774E-03   -1.5023    
   8  norm          .10000E-03    24.607        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     4.7202        8.1373        .92633E-03   -1.5273    
  10  Prefactor     .10001E-03    66.957        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    5.8184        .21888E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    13.716        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          19.362        15.991        .91017E-04   -1.4828    
  14  norm          5.6975        1.3672        .42514E-04   -1.5231    
  15  norm          .10000E-03    4.5131        .16012E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     10.755        4.1572        .92653E-04   -1.5052    
  17  Prefactor     .10000E-03    142.75        .20518E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    6.7202        .26585E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    7.8981        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    3.9337        .14923E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          3.2217        2.1449        .87256E-04   -1.5349    
  22  norm          .10000E-03    4.0767        .15098E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    29.292        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    4.4384        .15769E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          6.8849        3.2828        .93969E-04   -1.5183    
  26  Prefactor     46.813        21.970        .58608E-04   -1.4338    
  27  norm          3.8757        2.0787        .79021E-04   -1.5314    
  28  Normalizat    .65125        .19750        .26381E-03   -1.0585    
  29  Prefactor     1.2243        .23759        .25678E-03   -.85588    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.73711e-09
Minuit parameter uncertainties:
  1  105.245
  2  7.84747e-07
  3  124.775
  4  1.40406
  5  6.41036e-05
  6  4.05707e-05
  7  98.6676
  8  5.97458e-05
  9  8.13916
  10  0.00140333
  11  0.00014595
  12  1.89818e-05
  13  15.9942
  14  1.36724
  15  6.48e-06
  16  4.15726
  17  0.000892798
  18  0.000167805
  19  1.24869e-05
  20  6.39969e-06
  21  2.145
  22  1.51047e-05
  23  3.64845e-05
  24  8.73726e-06
  25  3.28284
  26  21.9738
  27  2.07877
  28  0.197713
  29  0.237795
Done.

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

Extracting fit parameters...

4FGL J1153.4+4931
   Spectrum: PowerLaw
362    Prefactor:  1.075e+01  4.157e+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.224e+00  2.378e-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:  6.513e-01  1.977e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 13.18
Ra Dec: 178.350 49.517
Photon Index (Fixed Index): 2.41 +/- 0.00
Photon Flux (Fixed Index): 1.05e-07 +/- 4.07e-08
Energy Flux (Fixed Index): 3.40e-05 +/- 1.31e-05

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) = 5973.16366225
delta logL = 0.14062936312

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5973.15449755
delta logL = 0.1497940611

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.9396       1.0000         .10000E-03   10000.    
     2 'Index     '    2.6152       1.0000          .0000       10.000    
     3 'Normalizat'    .63680       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2372       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=   5973.154     FROM MIGRAD    STATUS=CONVERGED     84 CALLS      273 TOTAL
                     EDM=   .61E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.9398        5.1413        .82396E-04   -.43711E-03
   2  Index         2.6152        .40203        .40999E-02   -.11943E-03
   3  Normalizat    .63680        .18262        .26653E-03    .40479E-04
   4  Prefactor     1.2372        .23525        .25563E-03    .67910E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.93975
  Index      = 2.61521
  Normalizat = 0.636802
  Prefactor  = 1.23719
 **********
 **   18 **HESSE 
 **********

 FCN=   5973.154     FROM HESSE     STATUS=OK            25 CALLS      298 TOTAL
                     EDM=   .79E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.9398        4.9282        .32959E-05   -1.5110    
   2  Index         2.6152        .38521        .16400E-03   -.49719    
   3  Normalizat    .63680        .18268        .10661E-04   -1.0644    
   4  Prefactor     1.2372        .23532        .10225E-04   -.85194    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.86101e-11
Minuit parameter uncertainties:
  1  4.92842
  2  0.385702
  3  0.182849
  4  0.235517
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/150877': 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) = 5973.15449754
delta logL = 0.149794065495

Extracting fit parameters...

4FGL J1153.4+4931
   Spectrum: PowerLaw
362    Prefactor:  8.940e+00  4.928e+00  1.000e-04  1.000e+04 ( 1.000e-12)
363        Index:  2.615e+00  3.857e-01  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.237e+00  2.355e-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:  6.368e-01  1.828e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 13.33
Ra Dec: 178.350 49.517
Photon Index (Free Index): 2.62 +/- 0.39
Photon Flux (Free Index): 1.16e-07 +/- 4.68e-08
Energy Flux (Free Index): 3.00e-05 +/- 1.28e-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/150877/cmap_HighResolution_341971201_342230401_4FGL_J1153.4+4931_daily_bin396.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.05e-07', energy_flux2='3.00e-05', photon_flux_error='4.07e-08', dlogl='1.50e-01', energy_flux='3.40e-05', photon_flux2='1.16e-07', job_status='DONE', time_completed='2021-09-04 15:22:47.328888', photon_index_error2='0.39', photon_index2='2.62', ts='13.18', fit_tolerance='1e-08', GAL='1.22', photon_index_error='0.00', energy_flux_error2='1.28e-05', EG='0.65', time_epoch_completed='1630794167.33', return_code='0', job_id='150877', GAL2='1.24', EG2='0.64', return_code2='0', energy_flux_error='1.31e-05', photon_flux_error2='4.68e-08', ts2='13.33', photon_index='2.41' WHERE bin_id='396' AND source_name='4FGL J1153.4+4931' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 15:22:47 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0280>
Subject: Job 150877: <4FGL_J1153.4+4931_daily_bin396> in cluster <slac> Done

Job <4FGL_J1153.4+4931_daily_bin396> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sat Sep  4 15:06:19 2021
Job was executed on host(s) <bullet0280>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 15:06:20 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:06:20 2021
Terminated at Sat Sep  4 15:22:47 2021
Results reported at Sat Sep  4 15:22:47 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1153.4+4931_daily_bin396 178.35 49.5169 341971201 342230401 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 :                                   803.16 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             266.79 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   987 sec.
    Turnaround time :                            988 sec.

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

