/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 158 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

number of points = 7474
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1152.3-0839_daily_bin438
RA = 178.081, Dec = -8.6663
tmin = 352857601, tmax = 353116801
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='117643', job_status='RUN', time_executed='2021-09-04 13:35:08.464163', time_epoch_executed='1630787708.46' WHERE source_name='4FGL J1152.3-0839' and cadence='daily' and bin_id='438'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/117643

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/117643/ft1_4FGL_J1152.3-0839_daily_bin438.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/117643/ft2_4FGL_J1152.3-0839_daily_bin438.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/117643/ft1_4FGL_J1152.3-0839_daily_bin438.fits outfile=/scratch/kocevski/117643/ft1_filteredMKT_4FGL_J1152.3-0839_daily_bin438.fits ra=178.081 dec=-8.6663 rad=12.0 tmin=352857601.0 tmax=353116801.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.42
user 3.18
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/117643/ft2_4FGL_J1152.3-0839_daily_bin438.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/117643/ft1_filteredMKT_4FGL_J1152.3-0839_daily_bin438.fits evtable="EVENTS" outfile="/scratch/kocevski/117643/ft1_filtered_4FGL_J1152.3-0839_daily_bin438.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.48
user 0.32
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/117643/ft1_filtered_4FGL_J1152.3-0839_daily_bin438.fits" evtable="EVENTS" scfile=/scratch/kocevski/117643/ft2_4FGL_J1152.3-0839_daily_bin438.fits sctable="SC_DATA" outfile=/scratch/kocevski/117643/ltcube_352857601_353116801_4FGL_J1152.3-0839_daily_bin438.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/117643/ft2_4FGL_J1152.3-0839_daily_bin438.fits
.....................!
real 11.79
user 11.36
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/117643/ft1_filtered_4FGL_J1152.3-0839_daily_bin438.fits evtable="EVENTS" scfile=/scratch/kocevski/117643/ft2_4FGL_J1152.3-0839_daily_bin438.fits sctable="SC_DATA" expcube=/scratch/kocevski/117643/ltcube_352857601_353116801_4FGL_J1152.3-0839_daily_bin438.fits outfile=/scratch/kocevski/117643/expmap_352857601_353116801_4FGL_J1152.3-0839_daily_bin438.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/117643/ltcube_352857601_353116801_4FGL_J1152.3-0839_daily_bin438.fits
.....................!
real 190.37
user 185.41
sys 4.58

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/117643/ft1_filtered_4FGL_J1152.3-0839_daily_bin438.fits scfile=/scratch/kocevski/117643/ft2_4FGL_J1152.3-0839_daily_bin438.fits outfile=/scratch/kocevski/117643/cmap_352857601_353116801_4FGL_J1152.3-0839_daily_bin438.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.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/117643/ft1_filtered_4FGL_J1152.3-0839_daily_bin438.fits scfile=/scratch/kocevski/117643/ft2_4FGL_J1152.3-0839_daily_bin438.fits outfile=/scratch/kocevski/117643/cmap_HighResolution_352857601_353116801_4FGL_J1152.3-0839_daily_bin438.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.53
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/117643/ft1_filtered_4FGL_J1152.3-0839_daily_bin438.fits evtable="EVENTS" scfile=/scratch/kocevski/117643/ft2_4FGL_J1152.3-0839_daily_bin438.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/117643/Model_4FGL_J1152.3-0839_daily_bin438.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/117643/ft1_filtered_4FGL_J1152.3-0839_daily_bin438.fits.....................!
real 31.12
user 29.76
sys 1.12

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.3737       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    18.982       1.0000         .10000E-03   10000.    
     4 'Prefactor '    59.371       1.0000         .10000E-03   10000.    
     5 'norm      '    .10023E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    4.0245       1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.2137       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    9.3493       1.0000         .10000E-03   10000.    
    11 'Prefactor '    35.443       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.1306       1.0000         .10000E-03   10000.    
    15 'Prefactor '    7.6460       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    16.823       1.0000         .10000E-03   10000.    
    18 'Prefactor '    7.0784       1.0000         .10000E-03   10000.    
    19 'Prefactor '    5.2796       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    9.5661       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    1.5987       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    5.0442       1.0000         .10000E-03   10000.    
    26 'Prefactor '    5.9917       1.0000         .10000E-03   10000.    
    27 'Normalizat'    .57929       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.1890       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=   2708.468     FROM MIGRAD    STATUS=CONVERGED    664 CALLS     3434 TOTAL
                     EDM=   .42E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.3714        32.683        .46924E-05   -.46614E-04
   2  Prefactor     .10000E-03    10.214       -.19346E-06** at limit **
   3  Prefactor     18.983        11.786       -.80649E-06   -.57948E-04
   4  Prefactor     59.365        80.772       -.33918E-06    .11964E-05
   5  norm          .10000E-03    9.6369        .38203E-06** at limit **
   6  norm          4.0246        2.7326        .90430E-07    .61926E-04
   7  Prefactor     2.2130        11.465        .84100E-05   -.17640E-03
   8  Prefactor     .10000E-03    12.910       -.23775E-06** at limit **
   9  norm          .10000E-03    21.916       -.38549E-06** at limit **
  10  Prefactor     9.3492        6.2585        .24130E-06    .39031E-05
  11  Prefactor     35.458        67.928       -.84146E-05   -.37031E-06
  12  Prefactor     .10000E-03    16.205        .83151E-06** at limit **
  13  norm          .10000E-03    3.1203        .14849E-07** at limit **
  14  Prefactor     4.1306        5.5313        .42269E-06    .73982E-05
  15  Prefactor     7.6441        20.553        .37662E-07   -.25352E-04
  16  Prefactor     .10000E-03    13.218       -.20467E-06** at limit **
  17  Prefactor     16.860        99.507       -.11972E-04   -.55123E-04
  18  Prefactor     7.0784        7.7482        .51399E-08   -.23674E-05
  19  Prefactor     5.2770        40.517        .69843E-05    .12350E-03
  20  Prefactor     .10000E-03    50.403        .20089E-05** at limit **
  21  Prefactor     9.5647        34.775       -.59374E-07   -.17286E-04
  22  Prefactor     .10000E-03    7.2011       -.85930E-07** at limit **
  23  norm          1.5988        2.4306       -.33718E-07   -.73433E-04
  24  Prefactor     .10000E-03    3.3478       -.36553E-07** at limit **
  25  Prefactor     5.0440        3.0852       -.28165E-07    .30609E-04
  26  Prefactor     5.9901        20.353        .37070E-06   -.60439E-05
  27  Normalizat    .57900        .37730       -.35260E-05   -.19049E-04
  28  Prefactor     1.1892        .23489        .90808E-06   -.12069E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.37138
  Prefactor  = 0.0001
  Prefactor  = 18.9832
  Prefactor  = 59.3646
  norm       = 0.0001
  norm       = 4.02457
  Prefactor  = 2.21301
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 9.3492
  Prefactor  = 35.4576
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 4.13062
  Prefactor  = 7.6441
  Prefactor  = 0.0001
  Prefactor  = 16.8596
  Prefactor  = 7.07843
  Prefactor  = 5.27697
  Prefactor  = 0.000100003
  Prefactor  = 9.56468
  Prefactor  = 0.0001
  norm       = 1.59882
  Prefactor  = 0.0001
  Prefactor  = 5.04404
  Prefactor  = 5.99005
  Normalizat = 0.578995
  Prefactor  = 1.18919
 **********
 **   18 **HESSE 
 **********

 FCN=   2708.468     FROM HESSE     STATUS=OK           523 CALLS     3957 TOTAL
                     EDM=   .78E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.3714        32.058        .13296E-02   -1.5400    
   2  Prefactor     .10000E-03    10.214        .16228E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     18.983        11.792        .91928E-04   -1.4836    
   4  Prefactor     59.365        80.674        .52069E-04   -1.4165    
   5  norm          .10000E-03    9.6419        .15767E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          4.0246        2.7327        .34115E-03   -1.5307    
   7  Prefactor     2.2130        11.729        .13175E-02   -1.5410    
   8  Prefactor     .10000E-03    13.121        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    21.872        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     9.3492        6.2513        .99658E-04   -1.5096    
  11  Prefactor     35.458        68.320        .67314E-04   -1.4516    
  12  Prefactor     .10000E-03    16.137        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    3.1215        .89769E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     4.1306        5.5026        .12864E-03   -1.5301    
  15  Prefactor     7.6441        20.495        .14503E-03   -1.5155    
  16  Prefactor     .10000E-03    13.218        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     16.860        101.86        .97650E-04   -1.4887    
  18  Prefactor     7.0784        7.7488        .14779E-03   -1.5176    
  19  Prefactor     5.2770        41.160        .17492E-03   -1.5248    
  20  Prefactor     .10000E-03    50.648        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     9.5647        34.707        .12957E-03   -1.5089    
  22  Prefactor     .10000E-03    7.2075        .13638E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          1.5988        2.4012        .97028E-04   -1.5455    
  24  Prefactor     .10000E-03    3.3593        .92974E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     5.0440        3.0862        .34713E-03   -1.5259    
  26  Prefactor     5.9901        20.318        .16404E-03   -1.5218    
  27  Normalizat    .57900        .41045        .38208E-03   -1.0888    
  28  Prefactor     1.1892        .25995        .19264E-03   -.86665    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.82746e-10
Minuit parameter uncertainties:
  1  17.4491
  2  2.64801e-05
  3  11.7933
  4  80.8234
  5  7.32735e-06
  6  2.73279
  7  10.1923
  8  1.10344e-05
  9  0.000102841
  10  6.25175
  11  68.4714
  12  5.56525e-05
  13  2.26482e-06
  14  5.50325
  15  20.5141
  16  3.75024e-06
  17  83.0921
  18  7.74987
  19  29.5034
  20  0.000723781
  21  34.7802
  22  1.05011e-05
  23  2.40133
  24  2.09666e-06
  25  3.08632
  26  20.3416
  27  0.412633
  28  0.260229
Done.

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

Extracting fit parameters...

4FGL J1152.3-0839
   Spectrum: PowerLaw
285    Prefactor:  4.131e+00  5.503e+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.189e+00  2.602e-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:  5.790e-01  4.126e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/117643/likelihoodResults_352857601_353116801_4FGL_J1152.3-0839_daily_bin438.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) = 2708.21342717
delta logL = 0.254180273198

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2708.19599638
delta logL = 0.271611057319

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.5132       1.0000         .10000E-03   10000.    
     2 'Index     '    3.4329       1.0000          .0000       10.000    
     3 'Normalizat'    .51901       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2160       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=   2708.196     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      240 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.5155        35.025        .86901E-02    .22663E-03
   2  Index         3.4323        3.9769        .14342        .72306E-04
   3  Normalizat    .51902        .92853E-01    .90803E-01    .11806E-04
   4  Prefactor     1.2161        .62416E-01    .34262E-01   -.21017E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.51551
  Index      = 3.43232
  Normalizat = 0.519017
  Prefactor  = 1.21611
 **********
 **   18 **HESSE 
 **********

 FCN=   2708.196     FROM HESSE     STATUS=OK            33 CALLS      273 TOTAL
                     EDM=   .28E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.5155        7.0622        .61077E-04   -1.5462    
   2  Index         3.4323        2.5497        .51123E-02   -.31891    
   3  Normalizat    .51902        .37881        .40228E-03   -1.1154    
   4  Prefactor     1.2161        .26126        .19074E-03   -.85837    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.75742e-10
Minuit parameter uncertainties:
  1  6.54406
  2  2.69161
  3  0.380713
  4  0.261534
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/117643': 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) = 2708.19599585
delta logL = 0.271611586079

Extracting fit parameters...

4FGL J1152.3-0839
   Spectrum: PowerLaw
285    Prefactor:  1.516e+00  6.544e+00  1.000e-04  1.000e+04 ( 1.000e-12)
286        Index:  3.432e+00  2.692e+00  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.216e+00  2.615e-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:  5.190e-01  3.807e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.49
Ra Dec: 178.081 -8.666
Photon Index (Free Index): 3.43 +/- 2.69
Photon Flux (Free Index): 9.30e-08 +/- 1.02e-07
Energy Flux (Free Index): 1.58e-05 +/- 1.69e-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/117643/cmap_HighResolution_352857601_353116801_4FGL_J1152.3-0839_daily_bin438.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.60e-02', comment='SUCCESS', energy_flux2='1.58e-05', dlogl='2.72e-01', photon_flux2='9.30e-08', job_status='DONE', time_completed='2021-09-04 13:43:59.979880', photon_index_error2='2.69', photon_index2='3.43', ts='0.90', fit_tolerance='1e-08', GAL='1.19', photon_index_error='0.00', photon_flux_upper_limit='2.07e-07', energy_flux_error2='1.69e-05', EG='0.58', time_epoch_completed='1630788239.98', return_code='0', job_id='117643', GAL2='1.22', EG2='0.52', return_code2='0', photon_flux_error2='1.02e-07', ts2='1.49', photon_index='2.41' WHERE bin_id='438' AND source_name='4FGL J1152.3-0839' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 13:44:00 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0080>
Subject: Job 117643: <4FGL_J1152.3-0839_daily_bin438> in cluster <slac> Done

Job <4FGL_J1152.3-0839_daily_bin438> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Sat Sep  4 13:32:17 2021
Job was executed on host(s) <bullet0080>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 13:32:19 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:32:19 2021
Terminated at Sat Sep  4 13:44:00 2021
Results reported at Sat Sep  4 13:44:00 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1152.3-0839_daily_bin438 178.081 -8.6663 352857601 353116801 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 :                                   531.02 sec.
    Max Memory :                                 1132 MB
    Average Memory :                             293.70 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   701 sec.
    Turnaround time :                            703 sec.

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

