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


Performing analysis on: 4FGL_J1152.3-0839_daily_bin1014
RA = 178.081, Dec = -8.6663
tmin = 502156801, tmax = 502416001
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='120878', job_status='RUN', time_executed='2021-09-04 13:46:00.215843', time_epoch_executed='1630788360.22' WHERE source_name='4FGL J1152.3-0839' and cadence='daily' and bin_id='1014'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/120878

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/120878/ft1_4FGL_J1152.3-0839_daily_bin1014.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/120878/ft2_4FGL_J1152.3-0839_daily_bin1014.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/120878/ft1_4FGL_J1152.3-0839_daily_bin1014.fits outfile=/scratch/kocevski/120878/ft1_filteredMKT_4FGL_J1152.3-0839_daily_bin1014.fits ra=178.081 dec=-8.6663 rad=12.0 tmin=502156801.0 tmax=502416001.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 4.85
user 3.82
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/120878/ft2_4FGL_J1152.3-0839_daily_bin1014.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/120878/ft1_filteredMKT_4FGL_J1152.3-0839_daily_bin1014.fits evtable="EVENTS" outfile="/scratch/kocevski/120878/ft1_filtered_4FGL_J1152.3-0839_daily_bin1014.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.51
user 0.33
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/120878/ft1_filtered_4FGL_J1152.3-0839_daily_bin1014.fits" evtable="EVENTS" scfile=/scratch/kocevski/120878/ft2_4FGL_J1152.3-0839_daily_bin1014.fits sctable="SC_DATA" outfile=/scratch/kocevski/120878/ltcube_502156801_502416001_4FGL_J1152.3-0839_daily_bin1014.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/120878/ft2_4FGL_J1152.3-0839_daily_bin1014.fits
.....................!
real 12.48
user 12.06
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/120878/ft1_filtered_4FGL_J1152.3-0839_daily_bin1014.fits evtable="EVENTS" scfile=/scratch/kocevski/120878/ft2_4FGL_J1152.3-0839_daily_bin1014.fits sctable="SC_DATA" expcube=/scratch/kocevski/120878/ltcube_502156801_502416001_4FGL_J1152.3-0839_daily_bin1014.fits outfile=/scratch/kocevski/120878/expmap_502156801_502416001_4FGL_J1152.3-0839_daily_bin1014.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/120878/ltcube_502156801_502416001_4FGL_J1152.3-0839_daily_bin1014.fits
.....................!
real 191.08
user 185.56
sys 5.18

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/120878/ft1_filtered_4FGL_J1152.3-0839_daily_bin1014.fits scfile=/scratch/kocevski/120878/ft2_4FGL_J1152.3-0839_daily_bin1014.fits outfile=/scratch/kocevski/120878/cmap_502156801_502416001_4FGL_J1152.3-0839_daily_bin1014.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.54
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/120878/ft1_filtered_4FGL_J1152.3-0839_daily_bin1014.fits scfile=/scratch/kocevski/120878/ft2_4FGL_J1152.3-0839_daily_bin1014.fits outfile=/scratch/kocevski/120878/cmap_HighResolution_502156801_502416001_4FGL_J1152.3-0839_daily_bin1014.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.59
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/120878/ft1_filtered_4FGL_J1152.3-0839_daily_bin1014.fits evtable="EVENTS" scfile=/scratch/kocevski/120878/ft2_4FGL_J1152.3-0839_daily_bin1014.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/120878/Model_4FGL_J1152.3-0839_daily_bin1014.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/120878/ft1_filtered_4FGL_J1152.3-0839_daily_bin1014.fits.....................!
real 56.67
user 54.52
sys 1.29

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    2.7163       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .39062E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10087E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .43426       1.0000         .10000E-03   10000.    
    11 'Prefactor '    5.2415       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    1.3987       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .18958       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10049E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.4429       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .11374E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    3.8274       1.0000         .10000E-03   10000.    
    23 'norm      '    3.3068       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10321E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    10.136       1.0000         .10000E-03   10000.    
    26 'Prefactor '    7.3818       1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.3922       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .86147       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6100E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6104.842     FROM MIGRAD    STATUS=CONVERGED    160 CALLS     2462 TOTAL
                     EDM=   .27E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    15.923        .20040E-05** at limit **
   2  Prefactor     .10000E-03    6.6797       -.12111E-06** at limit **
   3  Prefactor     .10000E-03    1.5744       -.12708E-07** at limit **
   4  Prefactor     .10000E-03    28.936       -.23603E-05** at limit **
   5  norm          .10000E-03    5.3792       -.31068E-06** at limit **
   6  norm          2.7158        2.0592        .10124E-07   -.77722E-05
   7  Prefactor     .10000E-03    4.7563       -.66189E-06** at limit **
   8  Prefactor     .10002E-03    .83597        .30764E-06** at limit **
   9  norm          .10002E-03    78.512        .66188E-05** at limit **
  10  Prefactor     .43362        2.0629        .58559E-08    .11747E-05
  11  Prefactor     5.2626        3.8586       -.43738E-06    .11906E-02
  12  Prefactor     .10000E-03    12.424       -.15799E-06** at limit **
  13  norm          1.3995        3.9380        .35567E-06    .26312E-05
  14  Prefactor     .10000E-03    1.6551        .11646E-06** at limit **
  15  Prefactor     .10000E-03    1101.1       -.38903E-04** at limit **
  16  Prefactor     .10000E-03    23.815       -.87233E-06** at limit **
  17  Prefactor     .10000E-03    10.429       -.11037E-05** at limit **
  18  Prefactor     .10000E-03    5.0824        .21551E-06** at limit **
  19  Prefactor     1.4420        1.0847       -.16899E-07   -.21459E-04
  20  Prefactor     .10000E-03    55.309        .43494E-05** at limit **
  21  Prefactor     .10000E-03    8.3699        .39813E-06** at limit **
  22  Prefactor     3.8174        1.1906       -.20371E-07   -.15776E-03
  23  norm          3.3072        2.0950        .10634E-07    .69798E-05
  24  Prefactor     .10000E-03    5.1899        .53264E-06** at limit **
  25  Prefactor     10.136        2.9100       -.12559E-06   -.49675E-05
  26  Prefactor     7.3649        1.3343        .17223E-07   -.10800E-03
  27  Normalizat    1.3924        .25639        .14125E-05    .99257E-05
  28  Prefactor     .86162        .17276       -.22899E-06    .16222E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 2.71582
  Prefactor  = 0.0001
  Prefactor  = 0.000100021
  norm       = 0.000100024
  Prefactor  = 0.433619
  Prefactor  = 5.26264
  Prefactor  = 0.0001
  norm       = 1.39946
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.44195
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 3.81737
  norm       = 3.30725
  Prefactor  = 0.0001
  Prefactor  = 10.1361
  Prefactor  = 7.36493
  Normalizat = 1.39239
  Prefactor  = 0.861624
 **********
 **   18 **HESSE 
 **********

 FCN=   6104.842     FROM HESSE     STATUS=OK           585 CALLS     3047 TOTAL
                     EDM=   .73E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    16.090        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    6.6373        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    1.5636        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    29.008        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    5.2949        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          2.7158        2.0750        .61779E-02   -1.5378    
   7  Prefactor     .10000E-03    4.6231        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10002E-03    5.2739        .60309E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10002E-03    79.489        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .43362        2.0517        .10999E-01   -1.5576    
  11  Prefactor     5.2626        29.407        .43893E-02   -1.5249    
  12  Prefactor     .10000E-03    12.431        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.3995        3.9983        .91744E-02   -1.5471    
  14  Prefactor     .10000E-03    1.6360        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    12.082        .99300E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    23.599        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    10.433        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    5.0472        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     1.4420        13.962        .89755E-02   -1.5468    
  20  Prefactor     .10000E-03    54.791        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    8.3552        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     3.8174        10.304        .51575E-02   -1.5317    
  23  norm          3.3072        2.2953        .55657E-02   -1.5344    
  24  Prefactor     .10000E-03    2.7080        .48333E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     10.136        2.9456        .31465E-02   -1.5071    
  26  Prefactor     7.3649        15.301        .36905E-02   -1.5165    
  27  Normalizat    1.3924        .22093        .61249E-01   -.80849    
  28  Prefactor     .86162        .14503        .44512E-01   -.97495    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.34468e-07
Minuit parameter uncertainties:
  1  0.000142913
  2  5.62084e-07
  3  4.53048e-08
  4  6.74515e-05
  5  2.44557e-06
  6  2.07504
  7  2.19974e-06
  8  0.000673295
  9  0.00273911
  10  1.88632
  11  24.8991
  12  2.12562e-05
  13  3.99906
  14  7.03995e-09
  15  6.81686e-05
  16  1.12223e-05
  17  1.03142e-05
  18  1.76684e-07
  19  8.9762
  20  0.00063971
  21  5.92687e-06
  22  10.3084
  23  2.29536
  24  7.24428e-07
  25  2.94564
  26  15.3086
  27  0.221081
  28  0.145096
Done.

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

Extracting fit parameters...

4FGL J1152.3-0839
   Spectrum: PowerLaw
285    Prefactor:  1.000e-04  7.040e-09  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:  8.616e-01  1.451e-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:  1.392e+00  2.211e-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: 7.48e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.78e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/120878/likelihoodResults_502156801_502416001_4FGL_J1152.3-0839_daily_bin1014.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) = 6104.84478816
delta logL = -0.00286406873511

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6104.8419241
delta logL = -1.15023794933e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10053E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3979       1.0000          .0000       10.000    
     3 'Normalizat'    1.3924       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86165       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   6104.842     FROM MIGRAD    STATUS=FAILED        87 CALLS      238 TOTAL
                     EDM=   .22E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10085E-03    35.201        .98255E-03** at limit **
   2  Index         2.3483        8.7847        .50000        .59028E-04
   3  Normalizat    1.3924        .25319E-01    .27089E-03    .25643E-04
   4  Prefactor     .86162        .17144E-01    .22543E-03    .31671E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6104.842     FROM SIMPLEX   STATUS=UNCHANGED    129 CALLS      367 TOTAL
                     EDM=   .11E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10085E-03    35.201        .22516E-03** at limit **
   2  Index         2.3483        8.7847        .52702E-03    .59028E-04
   3  Normalizat    1.3924        .25319E-01    .58645E-05    .25643E-04
   4  Prefactor     .86162        .17144E-01    .35981E-05    .31671E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6104.842     FROM MIGRAD    STATUS=CONVERGED     46 CALLS      413 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    27.708        .19651E-02** at limit **
   2  Index         2.1260        7.0137        .50000       -.68824E-06
   3  Normalizat    1.3924        .21763E-01    .10836E-04   -.28349E-03
   4  Prefactor     .86162        .14736E-01    .90172E-05   -.33007E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.12598
  Normalizat = 1.39239
  Prefactor  = 0.861624
 **********
 **   18 **HESSE 
 **********

 FCN=   6104.842     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      442 TOTAL
                     EDM=   .73E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    124.39        .39302E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1260        7.8004        .50000       -.61237    
   3  Normalizat    1.3924        .49447E-01    .21671E-05   -.80849    
   4  Prefactor     .86162        .33473E-01    .18034E-05   -.97495    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.32242e-09
Minuit parameter uncertainties:
  1  1.48982e-05
  2  483.574
  3  0.0494488
  4  0.0334734
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/120878': 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) = 6104.8419216
delta logL = 2.49224285653e-06

Extracting fit parameters...

4FGL J1152.3-0839
   Spectrum: PowerLaw
285    Prefactor:  1.000e-04  1.490e-05  1.000e-04  1.000e+04 ( 1.000e-12)
286        Index:  2.126e+00  4.836e+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:  8.616e-01  3.347e-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:  1.392e+00  4.945e-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/120878/cmap_HighResolution_502156801_502416001_4FGL_J1152.3-0839_daily_bin1014.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.78e-03', job_status='DONE', photon_flux_upper_limit='7.48e-08', time_completed='2021-09-04 13:58:35.779288', job_id='120878', GAL2='0.86', fit_tolerance='1e-08', EG2='1.39', EG='1.39', time_epoch_completed='1630789115.78', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.86', dlogl='2.49e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.41' WHERE bin_id='1014' AND source_name='4FGL J1152.3-0839' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 13:58:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0030>
Subject: Job 120878: <4FGL_J1152.3-0839_daily_bin1014> in cluster <slac> Done

Job <4FGL_J1152.3-0839_daily_bin1014> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Sep  4 13:42:06 2021
Job was executed on host(s) <bullet0030>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 13:42:08 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:42:08 2021
Terminated at Sat Sep  4 13:58:36 2021
Results reported at Sat Sep  4 13:58:36 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1152.3-0839_daily_bin1014 178.081 -8.6663 502156801 502416001 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 :                                   749.21 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             294.03 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   988 sec.
    Turnaround time :                            990 sec.

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

