/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 8 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 = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1153.4+4931_daily_bin226
RA = 178.35, Dec = 49.5169
tmin = 297907201, tmax = 298166401
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='149388', job_status='RUN', time_executed='2021-09-04 15:01:35.155169', time_epoch_executed='1630792895.16' WHERE source_name='4FGL J1153.4+4931' and cadence='daily' and bin_id='226'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/149388

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/149388/ft1_4FGL_J1153.4+4931_daily_bin226.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/149388/ft2_4FGL_J1153.4+4931_daily_bin226.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/149388/ft1_4FGL_J1153.4+4931_daily_bin226.fits outfile=/scratch/kocevski/149388/ft1_filteredMKT_4FGL_J1153.4+4931_daily_bin226.fits ra=178.35 dec=49.5169 rad=12.0 tmin=297907201.0 tmax=298166401.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.51
user 3.28
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/149388/ft1_filtered_4FGL_J1153.4+4931_daily_bin226.fits" evtable="EVENTS" scfile=/scratch/kocevski/149388/ft2_4FGL_J1153.4+4931_daily_bin226.fits sctable="SC_DATA" outfile=/scratch/kocevski/149388/ltcube_297907201_298166401_4FGL_J1153.4+4931_daily_bin226.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/149388/ft2_4FGL_J1153.4+4931_daily_bin226.fits
.....................!
real 11.60
user 11.23
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/149388/ft1_filtered_4FGL_J1153.4+4931_daily_bin226.fits evtable="EVENTS" scfile=/scratch/kocevski/149388/ft2_4FGL_J1153.4+4931_daily_bin226.fits sctable="SC_DATA" expcube=/scratch/kocevski/149388/ltcube_297907201_298166401_4FGL_J1153.4+4931_daily_bin226.fits outfile=/scratch/kocevski/149388/expmap_297907201_298166401_4FGL_J1153.4+4931_daily_bin226.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/149388/ltcube_297907201_298166401_4FGL_J1153.4+4931_daily_bin226.fits
.....................!
real 192.20
user 186.62
sys 5.26

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/149388/ft1_filtered_4FGL_J1153.4+4931_daily_bin226.fits scfile=/scratch/kocevski/149388/ft2_4FGL_J1153.4+4931_daily_bin226.fits outfile=/scratch/kocevski/149388/cmap_297907201_298166401_4FGL_J1153.4+4931_daily_bin226.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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/149388/ft1_filtered_4FGL_J1153.4+4931_daily_bin226.fits scfile=/scratch/kocevski/149388/ft2_4FGL_J1153.4+4931_daily_bin226.fits outfile=/scratch/kocevski/149388/cmap_HighResolution_297907201_298166401_4FGL_J1153.4+4931_daily_bin226.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.53
user 0.36
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    25.219       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10159E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    40.222       1.0000         .10000E-03   10000.    
     4 'norm      '    3.4041       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    8.6874       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .11036E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10188E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10990E-01   1.0000         .10000E-03   10000.    
    11 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    25.849       1.0000         .10000E-03   10000.    
    13 'norm      '    18.349       1.0000         .10000E-03   10000.    
    14 'norm      '    2.1759       1.0000         .10000E-03   10000.    
    15 'norm      '    2.9827       1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.5713       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    1.5469       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .13171E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    6.8393       1.0000         .10000E-03   10000.    
    22 'norm      '    .10080E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    9.4175       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10300E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    6.0116       1.0000         .10000E-03   10000.    
    26 'Prefactor '    1.1415       1.0000         .10000E-03   10000.    
    27 'norm      '    3.9784       1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.0882       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .93268       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=   6778.574     FROM MIGRAD    STATUS=CONVERGED    762 CALLS     3706 TOTAL
                     EDM=   .22E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  8.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     25.395        66.783       -.12734E-05    .29419E-04
   2  Prefactor     .10000E-03    102.38       -.56529E-06** at limit **
   3  Prefactor     40.171        55.675       -.12054E-05    .52880E-04
   4  norm          3.4047        2.0366       -.19239E-07    .27838E-04
   5  Prefactor     .10000E-03    20.608        .72227E-06** at limit **
   6  Prefactor     8.6804        15.883        .16687E-05    .80681E-05
   7  Prefactor     .10000E-03    26.973       -.35243E-06** at limit **
   8  norm          .10000E-03    16.360        .92219E-06** at limit **
   9  Prefactor     .10000E-03    1.9017       -.16324E-06** at limit **
  10  Prefactor     .10131E-03    19.309       -.15474E-05** at limit **
  11  norm          .10000E-03    .97091       -.89348E-07** at limit **
  12  Prefactor     25.861        43.744        .11526E-05    .99028E-05
  13  norm          18.361        14.807       -.63152E-06    .19756E-03
  14  norm          2.1759        1.1769        .25881E-07    .41914E-03
  15  norm          2.9818        7.3035       -.16210E-06    .89413E-04
  16  Prefactor     3.5781        3.7801        .21419E-06    .25409E-04
  17  Prefactor     .10000E-03    17.405       -.12507E-05** at limit **
  18  norm          1.5442        4.2767        .96164E-06    .22846E-03
  19  Prefactor     .10000E-03    10.059       -.22868E-07** at limit **
  20  Prefactor     .10000E-03    4.2107       -.65644E-07** at limit **
  21  norm          6.8396        3.0934        .10167E-06    .18670E-03
  22  norm          .10000E-03    3.3809       -.62400E-08** at limit **
  23  Prefactor     9.4230        21.553       -.24711E-05    .60608E-05
  24  Prefactor     .10000E-03    3.8651        .47657E-06** at limit **
  25  norm          6.0094        3.2374        .91684E-07    .19734E-03
  26  Prefactor     1.1423        109.49        .39372E-04    .14219E-04
  27  norm          3.9790        2.4388       -.52641E-07    .32020E-04
  28  Normalizat    1.0881        .17310       -.46938E-06    .38717E-03
  29  Prefactor     .93283        .20206       -.73932E-06    .16456E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 25.395
  Prefactor  = 0.0001
  Prefactor  = 40.1709
  norm       = 3.4047
  Prefactor  = 0.0001
  Prefactor  = 8.68043
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000101305
  norm       = 0.0001
  Prefactor  = 25.8606
  norm       = 18.3613
  norm       = 2.17587
  norm       = 2.9818
  Prefactor  = 3.57808
  Prefactor  = 0.0001
  norm       = 1.54418
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 6.83957
  norm       = 0.0001
  Prefactor  = 9.42302
  Prefactor  = 0.0001
  norm       = 6.0094
  Prefactor  = 1.14227
  norm       = 3.979
  Normalizat = 1.08808
  Prefactor  = 0.932827
 **********
 **   18 **HESSE 
 **********

 FCN=   6778.574     FROM HESSE     STATUS=OK           561 CALLS     4267 TOTAL
                     EDM=   .41E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     25.395        66.848        .79769E-04   -1.4700    
   2  Prefactor     .10000E-03    102.50        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     40.171        55.689        .63203E-04   -1.4440    
   4  norm          3.4047        2.0359        .87468E-04   -1.5339    
   5  Prefactor     .10000E-03    20.622        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     8.6804        15.917        .13600E-03   -1.5119    
   7  Prefactor     .10000E-03    26.979        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    16.361        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    1.9076        .11088E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10131E-03    22.511        .10347       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    .97489        .79206E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     25.861        43.741        .78791E-04   -1.4690    
  13  norm          18.361        14.789        .93500E-04   -1.4851    
  14  norm          2.1759        1.1759        .27912E-04   -1.5413    
  15  norm          2.9818        7.2911        .23507E-03   -1.5363    
  16  Prefactor     3.5781        3.7734        .15374E-03   -1.5330    
  17  Prefactor     .10000E-03    17.401        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          1.5442        4.2594        .26699E-03   -1.5459    
  19  Prefactor     .10000E-03    10.069        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    4.2267        .16480E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          6.8396        3.1064        .89926E-04   -1.5185    
  22  norm          .10000E-03    3.4088        .14753E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     9.4230        21.602        .13059E-03   -1.5094    
  24  Prefactor     .10000E-03    14.217        .30487E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          6.0094        3.1572        .10299E-03   -1.5218    
  26  Prefactor     1.1423        110.65        .21748E-02   -1.5494    
  27  norm          3.9790        2.4367        .96876E-04   -1.5309    
  28  Normalizat    1.0881        .20629        .22828E-03   -.90136    
  29  Prefactor     .93283        .23853        .30271E-03   -.95003    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.10088e-10
Minuit parameter uncertainties:
  1  67.0461
  2  1.87336e-05
  3  55.761
  4  2.03593
  5  0.000100976
  6  15.9249
  7  5.35292e-05
  8  0.000113109
  9  1.40407e-05
  10  0.0108461
  11  5.46199e-06
  12  43.795
  13  14.7915
  14  1.17589
  15  7.29325
  16  3.77363
  17  0.000181545
  18  4.26026
  19  8.31065e-06
  20  9.72258e-06
  21  3.10652
  22  2.84437e-06
  23  21.6201
  24  0.000100053
  25  3.15725
  26  22.5266
  27  2.43676
  28  0.206447
  29  0.238802
Done.

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

Extracting fit parameters...

4FGL J1153.4+4931
   Spectrum: PowerLaw
362    Prefactor:  3.578e+00  3.774e+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.328e-01  2.388e-01  0.000e+00  1.000e+01 ( 1.000e+00)
703        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
704        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
701   Normalization:  1.088e+00  2.064e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.15
Ra Dec: 178.350 49.517
Photon Index (Fixed Index): 2.41 +/- 0.00
Photon Flux (Fixed Index): 3.50e-08 +/- 3.69e-08
Energy Flux (Fixed Index): 1.13e-05 +/- 1.19e-05

TS (Fixed Index): 1.15
Ra Dec: 178.350 49.517
Photon Flux Upper Limit: 1.10e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.53e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/149388/likelihoodResults_297907201_298166401_4FGL_J1153.4+4931_daily_bin226.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) = 6778.13772166
delta logL = 0.436269215268

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6778.12980775
delta logL = 0.444183118234

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.9047       1.0000         .10000E-03   10000.    
     2 'Index     '    3.1888       1.0000          .0000       10.000    
     3 'Normalizat'    1.0541       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96158       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=   6778.130     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      274 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.9050        3.9494        .84985E-04    .34634E-03
   2  Index         3.1891        1.2445        .66905E-02    .72782E-04
   3  Normalizat    1.0541        .19557        .23140E-03    .20322E-03
   4  Prefactor     .96173        .23911        .29853E-03    .16802E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.90502
  Index      = 3.18906
  Normalizat = 1.05412
  Prefactor  = 0.961726
 **********
 **   18 **HESSE 
 **********

 FCN=   6778.130     FROM HESSE     STATUS=OK            25 CALLS      299 TOTAL
                     EDM=   .60E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.9050        2.9535        .33994E-05   -1.5432    
   2  Index         3.1891        .93458        .26762E-03   -.37061    
   3  Normalizat    1.0541        .19536        .46279E-04   -.91239    
   4  Prefactor     .96173        .23825        .11941E-04   -.94016    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.04264e-11
Minuit parameter uncertainties:
  1  2.95377
  2  0.940958
  3  0.19549
  4  0.238514
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/149388': 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) = 6778.12980554
delta logL = 0.444185326

Extracting fit parameters...

4FGL J1153.4+4931
   Spectrum: PowerLaw
362    Prefactor:  1.905e+00  2.954e+00  1.000e-04  1.000e+04 ( 1.000e-12)
363        Index:  3.189e+00  9.410e-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:  9.617e-01  2.385e-01  0.000e+00  1.000e+01 ( 1.000e+00)
703        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
704        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
701   Normalization:  1.054e+00  1.955e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.07
Ra Dec: 178.350 49.517
Photon Index (Free Index): 3.19 +/- 0.94
Photon Flux (Free Index): 5.90e-08 +/- 4.80e-08
Energy Flux (Free Index): 1.08e-05 +/- 8.91e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/149388/cmap_HighResolution_297907201_298166401_4FGL_J1153.4+4931_daily_bin226.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.53e-03', comment='SUCCESS', photon_flux='3.50e-08', energy_flux2='1.08e-05', photon_flux_error='3.69e-08', dlogl='4.44e-01', energy_flux='1.13e-05', photon_flux2='5.90e-08', job_status='DONE', time_completed='2021-09-04 15:17:49.377339', photon_index_error2='0.94', photon_index2='3.19', ts='1.15', fit_tolerance='1e-08', GAL='0.93', photon_index_error='0.00', photon_flux_upper_limit='1.10e-07', energy_flux_error2='8.91e-06', EG='1.09', time_epoch_completed='1630793869.38', return_code='0', job_id='149388', GAL2='0.96', EG2='1.05', return_code2='0', energy_flux_error='1.19e-05', photon_flux_error2='4.80e-08', ts2='2.07', photon_index='2.41' WHERE bin_id='226' AND source_name='4FGL J1153.4+4931' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 15:17:49 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0263>
Subject: Job 149388: <4FGL_J1153.4+4931_daily_bin226> in cluster <slac> Done

Job <4FGL_J1153.4+4931_daily_bin226> was submitted from host <rhel6-64l> by user <kocevski> in cluster <slac> at Sat Sep  4 15:01:12 2021
Job was executed on host(s) <bullet0263>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 15:01: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 15:01:14 2021
Terminated at Sat Sep  4 15:17:50 2021
Results reported at Sat Sep  4 15:17:50 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1153.4+4931_daily_bin226 178.35 49.5169 297907201 298166401 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 :                                   970.35 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             342.03 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   995 sec.
    Turnaround time :                            998 sec.

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

