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


Performing analysis on: 4FGL_J1152.3-0839_daily_bin1255
RA = 178.081, Dec = -8.6663
tmin = 564624001, tmax = 564883201
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='122464', job_status='RUN', time_executed='2021-09-04 13:47:13.156278', time_epoch_executed='1630788433.16' WHERE source_name='4FGL J1152.3-0839' and cadence='daily' and bin_id='1255'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/122464

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/122464/ft1_4FGL_J1152.3-0839_daily_bin1255.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/122464/ft2_4FGL_J1152.3-0839_daily_bin1255.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/122464/ft1_4FGL_J1152.3-0839_daily_bin1255.fits outfile=/scratch/kocevski/122464/ft1_filteredMKT_4FGL_J1152.3-0839_daily_bin1255.fits ra=178.081 dec=-8.6663 rad=12.0 tmin=564624001.0 tmax=564883201.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.64
user 3.37
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/122464/ft2_4FGL_J1152.3-0839_daily_bin1255.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/122464/ft1_filteredMKT_4FGL_J1152.3-0839_daily_bin1255.fits evtable="EVENTS" outfile="/scratch/kocevski/122464/ft1_filtered_4FGL_J1152.3-0839_daily_bin1255.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.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/122464/ft1_filtered_4FGL_J1152.3-0839_daily_bin1255.fits" evtable="EVENTS" scfile=/scratch/kocevski/122464/ft2_4FGL_J1152.3-0839_daily_bin1255.fits sctable="SC_DATA" outfile=/scratch/kocevski/122464/ltcube_564624001_564883201_4FGL_J1152.3-0839_daily_bin1255.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/122464/ft2_4FGL_J1152.3-0839_daily_bin1255.fits
.....................!
real 15.67
user 15.18
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/122464/ft1_filtered_4FGL_J1152.3-0839_daily_bin1255.fits evtable="EVENTS" scfile=/scratch/kocevski/122464/ft2_4FGL_J1152.3-0839_daily_bin1255.fits sctable="SC_DATA" expcube=/scratch/kocevski/122464/ltcube_564624001_564883201_4FGL_J1152.3-0839_daily_bin1255.fits outfile=/scratch/kocevski/122464/expmap_564624001_564883201_4FGL_J1152.3-0839_daily_bin1255.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/122464/ltcube_564624001_564883201_4FGL_J1152.3-0839_daily_bin1255.fits
.....................!
real 191.23
user 184.97
sys 4.95

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/122464/ft1_filtered_4FGL_J1152.3-0839_daily_bin1255.fits scfile=/scratch/kocevski/122464/ft2_4FGL_J1152.3-0839_daily_bin1255.fits outfile=/scratch/kocevski/122464/cmap_564624001_564883201_4FGL_J1152.3-0839_daily_bin1255.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.59
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/122464/ft1_filtered_4FGL_J1152.3-0839_daily_bin1255.fits scfile=/scratch/kocevski/122464/ft2_4FGL_J1152.3-0839_daily_bin1255.fits outfile=/scratch/kocevski/122464/cmap_HighResolution_564624001_564883201_4FGL_J1152.3-0839_daily_bin1255.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.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/122464/ft1_filtered_4FGL_J1152.3-0839_daily_bin1255.fits evtable="EVENTS" scfile=/scratch/kocevski/122464/ft2_4FGL_J1152.3-0839_daily_bin1255.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/122464/Model_4FGL_J1152.3-0839_daily_bin1255.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/122464/ft1_filtered_4FGL_J1152.3-0839_daily_bin1255.fits........................!
real 21.65
user 20.34
sys 1.14

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/122464/ft1_filtered_4FGL_J1152.3-0839_daily_bin1255.fits', '/scratch/kocevski/122464/ft2_4FGL_J1152.3-0839_daily_bin1255.fits', expMap='/scratch/kocevski/122464/expmap_564624001_564883201_4FGL_J1152.3-0839_daily_bin1255.fits', expCube='/scratch/kocevski/122464/ltcube_564624001_564883201_4FGL_J1152.3-0839_daily_bin1255.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/122464/Model_4FGL_J1152.3-0839_daily_bin1255.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/122464/ft1_filtered_4FGL_J1152.3-0839_daily_bin1255.fits
Spacecraft file(s): /scratch/kocevski/122464/ft2_4FGL_J1152.3-0839_daily_bin1255.fits
Exposure map: /scratch/kocevski/122464/expmap_564624001_564883201_4FGL_J1152.3-0839_daily_bin1255.fits
Exposure cube: /scratch/kocevski/122464/ltcube_564624001_564883201_4FGL_J1152.3-0839_daily_bin1255.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/122464/Model_4FGL_J1152.3-0839_daily_bin1255.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) = 1202.01166039

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10085E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    13.119       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .11204E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10057E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10106E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10145E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .11518E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10350E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .46115E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    30.103       1.0000         .10000E-03   10000.    
    16 'Prefactor '    4.2170       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .73757       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    5.3003       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10070E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    .30775       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.3095       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=   1202.006     FROM MIGRAD    STATUS=CONVERGED    674 CALLS     3454 TOTAL
                     EDM=   .34E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    50.271       -.60984E-06** at limit **
   2  Prefactor     13.124        46.059        .42464E-06   -.81908E-05
   3  Prefactor     .10000E-03    34.648        .15836E-05** at limit **
   4  Prefactor     .10000E-03    213.48        .16236E-05** at limit **
   5  norm          .10000E-03    38.336       -.69494E-06** at limit **
   6  norm          .10000E-03    250.04        .96819E-05** at limit **
   7  Prefactor     .10000E-03    17.883       -.28942E-06** at limit **
   8  Prefactor     .10000E-03    70.885        .19837E-05** at limit **
   9  norm          .10000E-03    56.489        .11290E-05** at limit **
  10  Prefactor     .10000E-03    4.1913        .62729E-07** at limit **
  11  Prefactor     .10000E-03    104.88       -.50255E-05** at limit **
  12  Prefactor     .10000E-03    171.38       -.57521E-05** at limit **
  13  norm          .10000E-03    55.652        .16211E-05** at limit **
  14  Prefactor     .10000E-03    37.568       -.55965E-05** at limit **
  15  Prefactor     30.046        66.993       -.68535E-05   -.10463E-04
  16  Prefactor     4.2586        83.222       -.18351E-06    .59996E-05
  17  Prefactor     .10000E-03    47.497       -.13101E-05** at limit **
  18  Prefactor     .10000E-03    8.4019       -.26554E-07** at limit **
  19  Prefactor     .10000E-03    15.359        .33753E-06** at limit **
  20  Prefactor     .10000E-03    37.629       -.17651E-06** at limit **
  21  Prefactor     .10000E-03    13.579       -.22377E-06** at limit **
  22  Prefactor     .10000E-03    12.932        .32572E-06** at limit **
  23  norm          .73794        2.4459       -.38197E-07    .67177E-04
  24  Prefactor     .10000E-03    59.031        .18004E-05** at limit **
  25  Prefactor     5.3006        8.4618        .47272E-06   -.79934E-04
  26  Prefactor     .10000E-03    40.531       -.15213E-05** at limit **
  27  Normalizat    .30754        .49882       -.14969E-05   -.28681E-06
  28  Prefactor     1.3095        .37891       -.24323E-05   -.19886E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 13.1242
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 30.0458
  Prefactor  = 4.25862
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.737935
  Prefactor  = 0.0001
  Prefactor  = 5.30061
  Prefactor  = 0.0001
  Normalizat = 0.307539
  Prefactor  = 1.30949
 **********
 **   18 **HESSE 
 **********

 FCN=   1202.006     FROM HESSE     STATUS=OK           509 CALLS     3963 TOTAL
                     EDM=   .68E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    50.262        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     13.124        46.156        .11059E-03   -1.4983    
   3  Prefactor     .10000E-03    35.919        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    213.49        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    38.472        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    249.89        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    17.965        .14309E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    70.881        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    56.582        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    4.2411        .69197E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    104.44        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    171.34        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    56.389        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    37.437        .23348E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     30.046        67.046        .73025E-04   -1.4611    
  16  Prefactor     4.2586        82.754        .19623E-03   -1.5295    
  17  Prefactor     .10000E-03    47.488        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    8.4517        .98094E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    15.377        .13277E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    37.629        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    13.580        .12478E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    12.972        .12162E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .73794        2.2608        .94100E-03   -1.5536    
  24  Prefactor     .10000E-03    59.708        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     5.3006        8.4518        .12200E-03   -1.5247    
  26  Prefactor     .10000E-03    40.544        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    .30754        .47906        .48327E-03   -1.2239    
  28  Prefactor     1.3095        .37509        .18126E-03   -.83025    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.7972e-11
Minuit parameter uncertainties:
  1  3.1253e-05
  2  46.2816
  3  0.000149874
  4  3.55369e-05
  5  9.20972e-05
  6  0.000404691
  7  7.46798e-05
  8  4.12081e-05
  9  4.87974e-05
  10  3.67622e-05
  11  0.000414884
  12  0.000199101
  13  0.000170783
  14  3.09671e-05
  15  67.2147
  16  37.6053
  17  3.70412e-05
  18  3.69525e-05
  19  2.10942e-05
  20  1.63663e-05
  21  2.39001e-05
  22  4.0323e-05
  23  2.26102
  24  2.71299e-06
  25  8.45372
  26  6.26364e-05
  27  0.485655
  28  0.375867
Done.

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

Extracting fit parameters...

4FGL J1152.3-0839
   Spectrum: PowerLaw
285    Prefactor:  1.000e-04  3.097e-05  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.309e+00  3.759e-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:  3.075e-01  4.857e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 178.081 -8.666
Photon Flux Upper Limit: 3.83e-07 ph cm-2 s-1
Energy Flux Upper Limit: 2.97e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/122464/likelihoodResults_564624001_564883201_4FGL_J1152.3-0839_daily_bin1255.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 1202.00614182
delta logL = -0.000127098405073

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 1202.00614175
delta logL = -0.000127029586565

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96266E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4123       1.0000          .0000       10.000    
     3 'Normalizat'    .30754       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3095       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.

 FCN=   1202.006     FROM MIGRAD    STATUS=CONVERGED     63 CALLS      226 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.4573        .63759E-01** at limit **
   2  Index         2.3870        5.2703        .50000        .45344E-05
   3  Normalizat    .30754        .48796E-02    .10907        .80707E-05
   4  Prefactor     1.3095        .36356E-02    .32446E-01   -.14560E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.387
  Normalizat = 0.307538
  Prefactor  = 1.30949
 **********
 **   18 **HESSE 
 **********

 FCN=   1202.006     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      261 TOTAL
                     EDM=   .68E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    167.06        .23570E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3870        6.1114        .50000       -.54990    
   3  Normalizat    .30754        .22705E-01    .48328E-03   -1.2239    
   4  Prefactor     1.3095        .16965E-01    .18126E-03   -.83025    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.81253e-08
Minuit parameter uncertainties:
  1  9.25434e-05
  2  246.508
  3  0.0227055
  4  0.0169647
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/122464': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 1202.00601469
delta logL = 3.07834397972e-08

Extracting fit parameters...

4FGL J1152.3-0839
   Spectrum: PowerLaw
285    Prefactor:  1.000e-04  9.254e-05  1.000e-04  1.000e+04 ( 1.000e-12)
286        Index:  2.387e+00  2.465e+02  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.309e+00  1.696e-02  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:  3.075e-01  2.271e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 178.081 -8.666

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/122464/cmap_HighResolution_564624001_564883201_4FGL_J1152.3-0839_daily_bin1255.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.97e-02', job_status='DONE', photon_flux_upper_limit='3.83e-07', time_completed='2021-09-04 13:54:09.387974', job_id='122464', GAL2='1.31', fit_tolerance='1e-08', EG2='0.31', EG='0.31', time_epoch_completed='1630788849.39', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.31', dlogl='3.08e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.41' WHERE bin_id='1255' AND source_name='4FGL J1152.3-0839' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 13:54:09 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0216>
Subject: Job 122464: <4FGL_J1152.3-0839_daily_bin1255> in cluster <slac> Done

Job <4FGL_J1152.3-0839_daily_bin1255> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sat Sep  4 13:46:41 2021
Job was executed on host(s) <bullet0216>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 13:46:43 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:43 2021
Terminated at Sat Sep  4 13:54:10 2021
Results reported at Sat Sep  4 13:54:10 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1152.3-0839_daily_bin1255 178.081 -8.6663 564624001 564883201 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 :                                   410.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             244.43 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   446 sec.
    Turnaround time :                            449 sec.

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

