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


Performing analysis on: 4FGL_J1152.3-0839_daily_bin626
RA = 178.081, Dec = -8.6663
tmin = 401587201, tmax = 401846401
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='118833', job_status='RUN', time_executed='2021-09-04 13:39:37.325582', time_epoch_executed='1630787977.33' WHERE source_name='4FGL J1152.3-0839' and cadence='daily' and bin_id='626'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/118833

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/118833/ft1_4FGL_J1152.3-0839_daily_bin626.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/118833/ft2_4FGL_J1152.3-0839_daily_bin626.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/118833/ft1_4FGL_J1152.3-0839_daily_bin626.fits outfile=/scratch/kocevski/118833/ft1_filteredMKT_4FGL_J1152.3-0839_daily_bin626.fits ra=178.081 dec=-8.6663 rad=12.0 tmin=401587201.0 tmax=401846401.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.35
user 3.97
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/118833/ft2_4FGL_J1152.3-0839_daily_bin626.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/118833/ft1_filteredMKT_4FGL_J1152.3-0839_daily_bin626.fits evtable="EVENTS" outfile="/scratch/kocevski/118833/ft1_filtered_4FGL_J1152.3-0839_daily_bin626.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.66
user 0.34
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/118833/ft1_filtered_4FGL_J1152.3-0839_daily_bin626.fits" evtable="EVENTS" scfile=/scratch/kocevski/118833/ft2_4FGL_J1152.3-0839_daily_bin626.fits sctable="SC_DATA" outfile=/scratch/kocevski/118833/ltcube_401587201_401846401_4FGL_J1152.3-0839_daily_bin626.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/118833/ft2_4FGL_J1152.3-0839_daily_bin626.fits
.....................!
real 12.33
user 11.90
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/118833/ft1_filtered_4FGL_J1152.3-0839_daily_bin626.fits evtable="EVENTS" scfile=/scratch/kocevski/118833/ft2_4FGL_J1152.3-0839_daily_bin626.fits sctable="SC_DATA" expcube=/scratch/kocevski/118833/ltcube_401587201_401846401_4FGL_J1152.3-0839_daily_bin626.fits outfile=/scratch/kocevski/118833/expmap_401587201_401846401_4FGL_J1152.3-0839_daily_bin626.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/118833/ltcube_401587201_401846401_4FGL_J1152.3-0839_daily_bin626.fits
.....................!
real 191.12
user 185.51
sys 5.15

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/118833/ft1_filtered_4FGL_J1152.3-0839_daily_bin626.fits scfile=/scratch/kocevski/118833/ft2_4FGL_J1152.3-0839_daily_bin626.fits outfile=/scratch/kocevski/118833/cmap_401587201_401846401_4FGL_J1152.3-0839_daily_bin626.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/118833/ft1_filtered_4FGL_J1152.3-0839_daily_bin626.fits scfile=/scratch/kocevski/118833/ft2_4FGL_J1152.3-0839_daily_bin626.fits outfile=/scratch/kocevski/118833/cmap_HighResolution_401587201_401846401_4FGL_J1152.3-0839_daily_bin626.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.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/118833/ft1_filtered_4FGL_J1152.3-0839_daily_bin626.fits evtable="EVENTS" scfile=/scratch/kocevski/118833/ft2_4FGL_J1152.3-0839_daily_bin626.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/118833/Model_4FGL_J1152.3-0839_daily_bin626.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/118833/ft1_filtered_4FGL_J1152.3-0839_daily_bin626.fits.....................!
real 55.11
user 53.80
sys 1.15

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    27.368       1.0000         .10000E-03   10000.    
     2 'Prefactor '    21.921       1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.1078       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10029E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    2.5566       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .19193E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.6598       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .32424E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    9.7507       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    8.6159       1.0000         .10000E-03   10000.    
    17 'Prefactor '    44.641       1.0000         .10000E-03   10000.    
    18 'Prefactor '    14.633       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    135.66       1.0000         .10000E-03   10000.    
    22 'Prefactor '    18.313       1.0000         .10000E-03   10000.    
    23 'norm      '    .10135E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    8.1836       1.0000         .10000E-03   10000.    
    26 'Prefactor '    25.283       1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.2376       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.0068       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=   5790.590     FROM MIGRAD    STATUS=CONVERGED    680 CALLS     3534 TOTAL
                     EDM=   .15E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     27.370        32.331        .25153E-06   -.10832E-05
   2  Prefactor     21.924        25.794       -.99650E-06   -.17617E-04
   3  Prefactor     3.1093        5.3533        .28328E-05    .83086E-04
   4  Prefactor     .10000E-03    44.615       -.82455E-06** at limit **
   5  norm          .10000E-03    8.4245        .63202E-06** at limit **
   6  norm          2.5566        1.9263       -.80175E-08    .78554E-05
   7  Prefactor     .10000E-03    1.7072        .41955E-07** at limit **
   8  Prefactor     .10000E-03    30.785       -.36747E-06** at limit **
   9  norm          .10000E-03    7.5675       -.71718E-07** at limit **
  10  Prefactor     3.6603        2.6881        .61143E-07    .52667E-04
  11  Prefactor     .10000E-03    13.161       -.14510E-05** at limit **
  12  Prefactor     .10000E-03    33.704       -.59121E-06** at limit **
  13  norm          .10001E-03    6.2282       -.67653E-06** at limit **
  14  Prefactor     9.7462        5.5698        .33250E-07    .24672E-03
  15  Prefactor     .10000E-03    7.5297       -.20333E-06** at limit **
  16  Prefactor     8.6634        35.496       -.10532E-04   -.12885E-04
  17  Prefactor     44.634        44.557        .86777E-06    .18442E-04
  18  Prefactor     14.633        11.637        .56919E-06    .49126E-04
  19  Prefactor     .10000E-03    5.7730       -.44412E-07** at limit **
  20  Prefactor     .10000E-03    14.418        .87591E-06** at limit **
  21  Prefactor     135.67        44.149        .15664E-06    .86748E-04
  22  Prefactor     18.313        18.789       -.13179E-06    .16643E-03
  23  norm          .10002E-03    2.1267       -.57914E-06** at limit **
  24  Prefactor     .10000E-03    3.9761       -.43327E-07** at limit **
  25  Prefactor     8.1832        3.2452       -.37731E-08    .17649E-04
  26  Prefactor     25.288        21.353       -.17785E-06    .53868E-05
  27  Normalizat    1.2373        .27925       -.11442E-05    .11075E-03
  28  Prefactor     1.0069        .17621        .91438E-06    .10285E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 27.3701
  Prefactor  = 21.9243
  Prefactor  = 3.10934
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 2.55656
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 3.66032
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100013
  Prefactor  = 9.74619
  Prefactor  = 0.0001
  Prefactor  = 8.66343
  Prefactor  = 44.6344
  Prefactor  = 14.6333
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 135.667
  Prefactor  = 18.3126
  norm       = 0.000100024
  Prefactor  = 0.0001
  Prefactor  = 8.18323
  Prefactor  = 25.2878
  Normalizat = 1.23735
  Prefactor  = 1.00685
 **********
 **   18 **HESSE 
 **********

 FCN=   5790.590     FROM HESSE     STATUS=OK           523 CALLS     4057 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     27.370        32.315        .76578E-04   -1.4661    
   2  Prefactor     21.924        25.747        .85549E-04   -1.4771    
   3  Prefactor     3.1093        5.3661        .10850E-02   -1.5355    
   4  Prefactor     .10000E-03    44.633        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    8.5002        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          2.5566        1.9277        .88931E-04   -1.5388    
   7  Prefactor     .10000E-03    1.7191        .97082E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    32.125        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    7.5692        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     3.6603        2.6998        .10265E-03   -1.5325    
  11  Prefactor     .10000E-03    13.187        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    33.814        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10001E-03    39.336        .35046E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     9.7462        5.3715        .12251E-03   -1.5083    
  15  Prefactor     .10000E-03    7.5425        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     8.6634        35.551        .13656E-03   -1.5119    
  17  Prefactor     44.634        44.546        .60005E-04   -1.4371    
  18  Prefactor     14.633        11.638        .10471E-03   -1.4943    
  19  Prefactor     .10000E-03    5.7821        .17855E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    14.415        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     135.67        44.191        .34578E-04   -1.3373    
  22  Prefactor     18.313        17.367        .93593E-04   -1.4852    
  23  norm          .10002E-03    14.133        .19256E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    3.9978        .14808E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     8.1832        3.2473        .83206E-04   -1.5136    
  26  Prefactor     25.288        21.361        .79667E-04   -1.4702    
  27  Normalizat    1.2373        .32878        .33613E-03   -.85456    
  28  Prefactor     1.0069        .20754        .24334E-03   -.92501    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.02424e-09
Minuit parameter uncertainties:
  1  32.3355
  2  25.7599
  3  5.36689
  4  1.91953e-05
  5  6.3246e-06
  6  1.92772
  7  1.15334e-06
  8  0.000113447
  9  1.22686e-06
  10  2.69989
  11  5.00533e-06
  12  2.942e-05
  13  0.00144013
  14  5.37172
  15  5.05694e-06
  16  35.1354
  17  44.5789
  18  11.6398
  19  3.28945e-06
  20  1.60244e-06
  21  44.2022
  22  17.3716
  23  0.00116759
  24  2.40381e-06
  25  3.24742
  26  21.3677
  27  0.329333
  28  0.2077
Done.

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

Extracting fit parameters...

4FGL J1152.3-0839
   Spectrum: PowerLaw
285    Prefactor:  9.746e+00  5.372e+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.007e+00  2.077e-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.237e+00  3.293e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.59
Ra Dec: 178.081 -8.666
Photon Index (Fixed Index): 2.41 +/- 0.00
Photon Flux (Fixed Index): 1.17e-07 +/- 6.46e-08
Energy Flux (Fixed Index): 3.78e-05 +/- 2.08e-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) = 5790.12644658
delta logL = 0.463773685598

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5790.1256962
delta logL = 0.464524064493

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    13.143       1.0000         .10000E-03   10000.    
     2 'Index     '    2.0336       1.0000          .0000       10.000    
     3 'Normalizat'    1.2731       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98647       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=   5790.126     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      265 TOTAL
                     EDM=   .47E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     13.125        182.35        .27622E-02    .23204E-03
   2  Index         2.0325        5.9609        .14405        .11246E-03
   3  Normalizat    1.2736        .38966        .74991E-01    .27942E-04
   4  Prefactor     .98631        .28261        .46098E-01    .61200E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 13.1252
  Index      = 2.03247
  Normalizat = 1.27356
  Prefactor  = 0.986312
 **********
 **   18 **HESSE 
 **********

 FCN=   5790.126     FROM HESSE     STATUS=OK            33 CALLS      298 TOTAL
                     EDM=   .69E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     13.125        7.0788        .11049E-03   -1.4983    
   2  Index         2.0325        .36150        .58223E-02   -.63541    
   3  Normalizat    1.2736        .30845        .33188E-03   -.84359    
   4  Prefactor     .98631        .20477        .24536E-03   -.93187    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.88511e-11
Minuit parameter uncertainties:
  1  7.07926
  2  0.361984
  3  0.308899
  4  0.20493
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/118833': 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) = 5790.12568477
delta logL = 0.464535499168

Extracting fit parameters...

4FGL J1152.3-0839
   Spectrum: PowerLaw
285    Prefactor:  1.313e+01  7.079e+00  1.000e-04  1.000e+04 ( 1.000e-12)
286        Index:  2.032e+00  3.620e-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:  9.863e-01  2.049e-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.274e+00  3.089e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.49
Ra Dec: 178.081 -8.666
Photon Index (Free Index): 2.03 +/- 0.36
Photon Flux (Free Index): 9.62e-08 +/- 5.70e-08
Energy Flux (Free Index): 6.15e-05 +/- 4.76e-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/118833/cmap_HighResolution_401587201_401846401_4FGL_J1152.3-0839_daily_bin626.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.17e-07', energy_flux2='6.15e-05', photon_flux_error='6.46e-08', dlogl='4.65e-01', energy_flux='3.78e-05', photon_flux2='9.62e-08', job_status='DONE', time_completed='2021-09-04 13:51:22.159942', photon_index_error2='0.36', photon_index2='2.03', ts='5.59', fit_tolerance='1e-08', GAL='1.01', photon_index_error='0.00', energy_flux_error2='4.76e-05', EG='1.24', time_epoch_completed='1630788682.16', return_code='0', job_id='118833', GAL2='0.99', EG2='1.27', return_code2='0', energy_flux_error='2.08e-05', photon_flux_error2='5.70e-08', ts2='6.49', photon_index='2.41' WHERE bin_id='626' AND source_name='4FGL J1152.3-0839' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 13:51:22 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0237>
Subject: Job 118833: <4FGL_J1152.3-0839_daily_bin626> in cluster <slac> Done

Job <4FGL_J1152.3-0839_daily_bin626> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sat Sep  4 13:36:18 2021
Job was executed on host(s) <bullet0237>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 13:36:20 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:36:20 2021
Terminated at Sat Sep  4 13:51:22 2021
Results reported at Sat Sep  4 13:51:22 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1152.3-0839_daily_bin626 178.081 -8.6663 401587201 401846401 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 :                                   704.09 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             291.78 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   902 sec.
    Turnaround time :                            904 sec.

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

