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


Performing analysis on: 4FGL_J1152.3-0839_daily_bin1104
RA = 178.081, Dec = -8.6663
tmin = 525484801, tmax = 525744001
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='122166', job_status='RUN', time_executed='2021-09-04 13:46:37.591287', time_epoch_executed='1630788397.59' WHERE source_name='4FGL J1152.3-0839' and cadence='daily' and bin_id='1104'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/122166

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/122166/ft1_4FGL_J1152.3-0839_daily_bin1104.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/122166/ft2_4FGL_J1152.3-0839_daily_bin1104.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/122166/ft1_4FGL_J1152.3-0839_daily_bin1104.fits outfile=/scratch/kocevski/122166/ft1_filteredMKT_4FGL_J1152.3-0839_daily_bin1104.fits ra=178.081 dec=-8.6663 rad=12.0 tmin=525484801.0 tmax=525744001.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.77
user 3.45
sys 0.18

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/122166/ft2_4FGL_J1152.3-0839_daily_bin1104.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/122166/ft2_4FGL_J1152.3-0839_daily_bin1104.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/122166/ft1_filteredMKT_4FGL_J1152.3-0839_daily_bin1104.fits evtable="EVENTS" outfile="/scratch/kocevski/122166/ft1_filtered_4FGL_J1152.3-0839_daily_bin1104.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/122166/ft1_filtered_4FGL_J1152.3-0839_daily_bin1104.fits" evtable="EVENTS" scfile=/scratch/kocevski/122166/ft2_4FGL_J1152.3-0839_daily_bin1104.fits sctable="SC_DATA" outfile=/scratch/kocevski/122166/ltcube_525484801_525744001_4FGL_J1152.3-0839_daily_bin1104.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/122166/ft2_4FGL_J1152.3-0839_daily_bin1104.fits
.....................!
real 11.92
user 11.56
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/122166/ft1_filtered_4FGL_J1152.3-0839_daily_bin1104.fits evtable="EVENTS" scfile=/scratch/kocevski/122166/ft2_4FGL_J1152.3-0839_daily_bin1104.fits sctable="SC_DATA" expcube=/scratch/kocevski/122166/ltcube_525484801_525744001_4FGL_J1152.3-0839_daily_bin1104.fits outfile=/scratch/kocevski/122166/expmap_525484801_525744001_4FGL_J1152.3-0839_daily_bin1104.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/122166/ltcube_525484801_525744001_4FGL_J1152.3-0839_daily_bin1104.fits
.....................!
real 191.31
user 186.11
sys 4.88

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

Setting source of interest to:
4FGL J1152.3-0839 @ 178.081 -8.6663

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/122166/ft1_filtered_4FGL_J1152.3-0839_daily_bin1104.fits scfile=/scratch/kocevski/122166/ft2_4FGL_J1152.3-0839_daily_bin1104.fits outfile=/scratch/kocevski/122166/cmap_525484801_525744001_4FGL_J1152.3-0839_daily_bin1104.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.081 yref=-8.6663 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

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/122166/ft1_filtered_4FGL_J1152.3-0839_daily_bin1104.fits scfile=/scratch/kocevski/122166/ft2_4FGL_J1152.3-0839_daily_bin1104.fits outfile=/scratch/kocevski/122166/cmap_HighResolution_525484801_525744001_4FGL_J1152.3-0839_daily_bin1104.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.081 yref=-8.6663 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.36
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/122166/ft1_filtered_4FGL_J1152.3-0839_daily_bin1104.fits evtable="EVENTS" scfile=/scratch/kocevski/122166/ft2_4FGL_J1152.3-0839_daily_bin1104.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/122166/Model_4FGL_J1152.3-0839_daily_bin1104.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/122166/ft1_filtered_4FGL_J1152.3-0839_daily_bin1104.fits.....................!
real 49.96
user 48.66
sys 1.19

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/122166/ft1_filtered_4FGL_J1152.3-0839_daily_bin1104.fits', '/scratch/kocevski/122166/ft2_4FGL_J1152.3-0839_daily_bin1104.fits', expMap='/scratch/kocevski/122166/expmap_525484801_525744001_4FGL_J1152.3-0839_daily_bin1104.fits', expCube='/scratch/kocevski/122166/ltcube_525484801_525744001_4FGL_J1152.3-0839_daily_bin1104.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/122166/Model_4FGL_J1152.3-0839_daily_bin1104.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1152.3-0839'

4FGL J1152.3-0839
   Spectrum: PowerLaw
285    Prefactor:  1.838e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
286        Index:  2.412e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
287        Scale:  8.403e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/122166/ft1_filtered_4FGL_J1152.3-0839_daily_bin1104.fits
Spacecraft file(s): /scratch/kocevski/122166/ft2_4FGL_J1152.3-0839_daily_bin1104.fits
Exposure map: /scratch/kocevski/122166/expmap_525484801_525744001_4FGL_J1152.3-0839_daily_bin1104.fits
Exposure cube: /scratch/kocevski/122166/ltcube_525484801_525744001_4FGL_J1152.3-0839_daily_bin1104.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/122166/Model_4FGL_J1152.3-0839_daily_bin1104.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) = 5421.64360207

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    5.1765       1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.7112       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10998E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    22.219       1.0000         .10000E-03   10000.    
     6 'norm      '    .10312E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.5814       1.0000         .10000E-03   10000.    
     9 'norm      '    .10026E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.3345       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    12.130       1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.8748       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    30.516       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .34495E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    9.0204       1.0000         .10000E-03   10000.    
    21 'Prefactor '    6.4779       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    1.0675       1.0000         .10000E-03   10000.    
    24 'Prefactor '    1.7248       1.0000         .10000E-03   10000.    
    25 'Prefactor '    4.6007       1.0000         .10000E-03   10000.    
    26 'Prefactor '    47.859       1.0000         .10000E-03   10000.    
    27 'Normalizat'    .92885       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.1456       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6100E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5421.627     FROM MIGRAD    STATUS=CONVERGED    675 CALLS     3499 TOTAL
                     EDM=   .19E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    9.1202        .34573E-07** at limit **
   2  Prefactor     5.1750        13.092        .35625E-06    .38617E-05
   3  Prefactor     1.7113        4.5904        .10884E-05    .75646E-05
   4  Prefactor     .10000E-03    38.119       -.10003E-06** at limit **
   5  norm          22.218        13.745       -.30338E-06    .90966E-05
   6  norm          .10000E-03    1.7303       -.76353E-07** at limit **
   7  Prefactor     .10000E-03    2.6346       -.26956E-07** at limit **
   8  Prefactor     1.5821        11.297        .12909E-06    .51132E-05
   9  norm          .10000E-03    7.4141       -.24778E-07** at limit **
  10  Prefactor     4.3344        2.5125        .98452E-09    .25506E-05
  11  Prefactor     .10000E-03    11.416       -.81124E-07** at limit **
  12  Prefactor     .10000E-03    18.661        .28826E-08** at limit **
  13  norm          12.130        8.3733        .16123E-06    .16066E-05
  14  Prefactor     5.8740        4.5557        .32382E-06   -.41864E-05
  15  Prefactor     .10000E-03    8.6367       -.14545E-07** at limit **
  16  Prefactor     30.512        29.765       -.24914E-07    .10096E-04
  17  Prefactor     .10000E-03    151.39       -.65164E-05** at limit **
  18  Prefactor     .10000E-03    10.930        .39572E-07** at limit **
  19  Prefactor     .10000E-03    9.3973       -.11884E-05** at limit **
  20  Prefactor     9.0422        48.072        .91637E-05   -.10515E-04
  21  Prefactor     6.4770        21.149        .13885E-06   -.24955E-05
  22  Prefactor     .10000E-03    13.461        .63506E-07** at limit **
  23  norm          1.0671        2.3772        .21715E-06   -.46699E-05
  24  Prefactor     1.7246        7.7438        .27200E-05    .14689E-06
  25  Prefactor     4.6008        2.7990       -.16708E-06   -.32841E-05
  26  Prefactor     47.848        27.605       -.19313E-06    .23588E-04
  27  Normalizat    .92890        .25600       -.51673E-06    .49322E-04
  28  Prefactor     1.1456        .17093        .18869E-06    .96436E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 5.17497
  Prefactor  = 1.71133
  Prefactor  = 0.0001
  norm       = 22.2181
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.58205
  norm       = 0.0001
  Prefactor  = 4.33438
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 12.13
  Prefactor  = 5.87398
  Prefactor  = 0.0001
  Prefactor  = 30.5117
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.04223
  Prefactor  = 6.47698
  Prefactor  = 0.0001
  norm       = 1.06705
  Prefactor  = 1.72456
  Prefactor  = 4.60081
  Prefactor  = 47.848
  Normalizat = 0.928896
  Prefactor  = 1.14561
 **********
 **   18 **HESSE 
 **********

 FCN=   5421.627     FROM HESSE     STATUS=OK           525 CALLS     4024 TOTAL
                     EDM=   .42E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    9.1562        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     5.1750        13.049        .88345E-03   -1.5253    
   3  Prefactor     1.7113        4.5620        .11858E-02   -1.5446    
   4  Prefactor     .10000E-03    38.135        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          22.218        13.663        .84975E-04   -1.4765    
   6  norm          .10000E-03    3.5143        .18627E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    2.6616        .11653E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     1.5821        11.177        .33771E-03   -1.5456    
   9  norm          .10000E-03    7.4157        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     4.3344        2.5150        .85973E-04   -1.5292    
  11  Prefactor     .10000E-03    11.455        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    18.675        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          12.130        8.3628        .11502E-03   -1.5011    
  14  Prefactor     5.8740        4.5446        .12770E-03   -1.5223    
  15  Prefactor     .10000E-03    8.6501        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     30.512        29.758        .72530E-04   -1.4603    
  17  Prefactor     .10000E-03    160.42        .42660E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    11.113        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    9.4860        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     9.0422        48.542        .13345E-03   -1.5106    
  21  Prefactor     6.4770        21.080        .15769E-03   -1.5199    
  22  Prefactor     .10000E-03    13.564        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          1.0671        2.3075        .16201E-03   -1.5501    
  24  Prefactor     1.7246        7.7194        .15989E-02   -1.5445    
  25  Prefactor     4.6008        2.7978        .89539E-04   -1.5279    
  26  Prefactor     47.848        27.526        .57962E-04   -1.4323    
  27  Normalizat    .92890        .29003        .34697E-03   -.95452    
  28  Prefactor     1.1456        .19401        .21383E-03   -.88022    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.15267e-11
Minuit parameter uncertainties:
  1  6.43326e-07
  2  13.0566
  3  4.5629
  4  2.38062e-05
  5  13.6652
  6  6.87686e-06
  7  6.58028e-07
  8  8.41193
  9  2.13469e-06
  10  2.51504
  11  8.33917e-06
  12  3.3449e-06
  13  8.36356
  14  4.54483
  15  5.53984e-06
  16  29.7729
  17  0.00111111
  18  1.16907e-05
  19  3.39527e-05
  20  41.9539
  21  21.1039
  22  1.47191e-05
  23  2.30772
  24  7.29865
  25  2.79791
  26  27.5333
  27  0.290524
  28  0.194131
Done.

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

Extracting fit parameters...

4FGL J1152.3-0839
   Spectrum: PowerLaw
285    Prefactor:  5.874e+00  4.545e+00  1.000e-04  1.000e+04 ( 1.000e-12)
286        Index:  2.412e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
287        Scale:  8.403e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
607    Prefactor:  1.146e+00  1.941e-01  0.000e+00  1.000e+01 ( 1.000e+00)
608        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
609        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
606   Normalization:  9.289e-01  2.905e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.54
Ra Dec: 178.081 -8.666
Photon Index (Fixed Index): 2.41 +/- 0.00
Photon Flux (Fixed Index): 7.07e-08 +/- 5.47e-08
Energy Flux (Fixed Index): 2.28e-05 +/- 1.76e-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) = 5421.51597337
delta logL = 0.110578006189

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5421.51111909
delta logL = 0.11543229081

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.5096       1.0000         .10000E-03   10000.    
     2 'Index     '    2.0586       1.0000          .0000       10.000    
     3 'Normalizat'    .95325       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1360       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6100E+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=   5421.511     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      261 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.5094        5.2661        .14659E-03    .12935E-02
   2  Index         2.0578        .71672        .99267E-02    .19411E-03
   3  Normalizat    .95326        .28388        .34307E-03   -.77444E-04
   4  Prefactor     1.1361        .19119        .21465E-03   -.14018E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.50942
  Index      = 2.05783
  Normalizat = 0.953264
  Prefactor  = 1.1361
 **********
 **   18 **HESSE 
 **********

 FCN=   5421.511     FROM HESSE     STATUS=OK            23 CALLS      284 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.5094        5.2753        .29317E-04   -1.5198    
   2  Index         2.0578        .71758        .39707E-03   -.62912    
   3  Normalizat    .95326        .28400        .13723E-04   -.94613    
   4  Prefactor     1.1361        .19130        .42929E-04   -.88321    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.11726e-09
Minuit parameter uncertainties:
  1  5.27569
  2  0.721398
  3  0.284452
  4  0.191412
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/122166': 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) = 5421.51111808
delta logL = 0.115433301296

Extracting fit parameters...

4FGL J1152.3-0839
   Spectrum: PowerLaw
285    Prefactor:  6.509e+00  5.276e+00  1.000e-04  1.000e+04 ( 1.000e-12)
286        Index:  2.058e+00  7.214e-01  0.000e+00  1.000e+01 (-1.000e+00)
287        Scale:  8.403e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
607    Prefactor:  1.136e+00  1.914e-01  0.000e+00  1.000e+01 ( 1.000e+00)
608        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
609        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
606   Normalization:  9.533e-01  2.845e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.78
Ra Dec: 178.081 -8.666
Photon Index (Free Index): 2.06 +/- 0.72
Photon Flux (Free Index): 4.91e-08 +/- 5.97e-08
Energy Flux (Free Index): 2.96e-05 +/- 3.24e-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/122166/cmap_HighResolution_525484801_525744001_4FGL_J1152.3-0839_daily_bin1104.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.07e-08', energy_flux2='2.96e-05', photon_flux_error='5.47e-08', dlogl='1.15e-01', energy_flux='2.28e-05', photon_flux2='4.91e-08', job_status='DONE', time_completed='2021-09-04 13:57:44.513380', photon_index_error2='0.72', photon_index2='2.06', ts='4.54', fit_tolerance='1e-08', GAL='1.15', photon_index_error='0.00', energy_flux_error2='3.24e-05', EG='0.93', time_epoch_completed='1630789064.51', return_code='0', job_id='122166', GAL2='1.14', EG2='0.95', return_code2='0', energy_flux_error='1.76e-05', photon_flux_error2='5.97e-08', ts2='4.78', photon_index='2.41' WHERE bin_id='1104' AND source_name='4FGL J1152.3-0839' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 13:57:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0094>
Subject: Job 122166: <4FGL_J1152.3-0839_daily_bin1104> in cluster <slac> Done

Job <4FGL_J1152.3-0839_daily_bin1104> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sat Sep  4 13:46:21 2021
Job was executed on host(s) <bullet0094>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 13:46:23 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep  4 13:46:23 2021
Terminated at Sat Sep  4 13:57:45 2021
Results reported at Sat Sep  4 13:57:45 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1152.3-0839_daily_bin1104 178.081 -8.6663 525484801 525744001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1152.3-0839 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   662.14 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             300.38 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   682 sec.
    Turnaround time :                            684 sec.

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

