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


Performing analysis on: 4FGL_J1152.3-0839_daily_bin731
RA = 178.081, Dec = -8.6663
tmin = 428803201, tmax = 429062401
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='118988', job_status='RUN', time_executed='2021-09-04 13:39:06.353101', time_epoch_executed='1630787946.35' WHERE source_name='4FGL J1152.3-0839' and cadence='daily' and bin_id='731'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/118988

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/118988/ft1_4FGL_J1152.3-0839_daily_bin731.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/118988/ft2_4FGL_J1152.3-0839_daily_bin731.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/118988/ft1_4FGL_J1152.3-0839_daily_bin731.fits outfile=/scratch/kocevski/118988/ft1_filteredMKT_4FGL_J1152.3-0839_daily_bin731.fits ra=178.081 dec=-8.6663 rad=12.0 tmin=428803201.0 tmax=429062401.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 6.61
user 6.25
sys 0.28

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/118988/ft1_filtered_4FGL_J1152.3-0839_daily_bin731.fits" evtable="EVENTS" scfile=/scratch/kocevski/118988/ft2_4FGL_J1152.3-0839_daily_bin731.fits sctable="SC_DATA" outfile=/scratch/kocevski/118988/ltcube_428803201_429062401_4FGL_J1152.3-0839_daily_bin731.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/118988/ft2_4FGL_J1152.3-0839_daily_bin731.fits
.....................!
real 11.96
user 11.46
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/118988/ft1_filtered_4FGL_J1152.3-0839_daily_bin731.fits evtable="EVENTS" scfile=/scratch/kocevski/118988/ft2_4FGL_J1152.3-0839_daily_bin731.fits sctable="SC_DATA" expcube=/scratch/kocevski/118988/ltcube_428803201_429062401_4FGL_J1152.3-0839_daily_bin731.fits outfile=/scratch/kocevski/118988/expmap_428803201_429062401_4FGL_J1152.3-0839_daily_bin731.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/118988/ltcube_428803201_429062401_4FGL_J1152.3-0839_daily_bin731.fits
.....................!
real 191.14
user 185.30
sys 4.51

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/118988/ft1_filtered_4FGL_J1152.3-0839_daily_bin731.fits scfile=/scratch/kocevski/118988/ft2_4FGL_J1152.3-0839_daily_bin731.fits outfile=/scratch/kocevski/118988/cmap_428803201_429062401_4FGL_J1152.3-0839_daily_bin731.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/118988/ft1_filtered_4FGL_J1152.3-0839_daily_bin731.fits scfile=/scratch/kocevski/118988/ft2_4FGL_J1152.3-0839_daily_bin731.fits outfile=/scratch/kocevski/118988/cmap_HighResolution_428803201_429062401_4FGL_J1152.3-0839_daily_bin731.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.75
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/118988/ft1_filtered_4FGL_J1152.3-0839_daily_bin731.fits evtable="EVENTS" scfile=/scratch/kocevski/118988/ft2_4FGL_J1152.3-0839_daily_bin731.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/118988/Model_4FGL_J1152.3-0839_daily_bin731.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/118988/ft1_filtered_4FGL_J1152.3-0839_daily_bin731.fits.....................!
real 42.26
user 40.68
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.9441       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .22560       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10073E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    2.1388       1.0000         .10000E-03   10000.    
     7 'Prefactor '    5.3621       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .13030E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    21.905       1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.6918       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10121E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10119E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    1.7805       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10367E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10145E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .11413E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10270E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    4.1063       1.0000         .10000E-03   10000.    
    21 'Prefactor '    29.322       1.0000         .10000E-03   10000.    
    22 'Prefactor '    13.468       1.0000         .10000E-03   10000.    
    23 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    5.4578       1.0000         .10000E-03   10000.    
    25 'Prefactor '    3.6946       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .12660E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.2742       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .86504       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=   3975.476     FROM MIGRAD    STATUS=CONVERGED    134 CALLS     2920 TOTAL
                     EDM=   .25E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.9733        23.794       -.80663E-06    .16460E-03
   2  Prefactor     .74394E-01    808.18        .19572E-04    .25754E-03
   3  Prefactor     .10000E-03    3.0464        .11960E-06** at limit **
   4  Prefactor     .10068E-03    19.196       -.19190E-05** at limit **
   5  norm          .10000E-03    4.8308       -.27455E-06** at limit **
   6  norm          2.1392        2.6183       -.33377E-06   -.74127E-04
   7  Prefactor     5.3635        1.1889       -.17852E-07   -.63574E-03
   8  Prefactor     .10001E-03    11.507       -.19714E-05** at limit **
   9  norm          21.901        1.2820        .60343E-07   -.40124E-03
  10  Prefactor     1.6920        2.6309        .40808E-07    .95887E-05
  11  Prefactor     .10000E-03    23.290       -.58328E-06** at limit **
  12  Prefactor     .10000E-03    24.524        .21795E-05** at limit **
  13  norm          1.7798        5.0738        .17176E-05    .12670E-03
  14  Prefactor     .10000E-03    4.9516        .66006E-06** at limit **
  15  Prefactor     .10000E-03    14.511       -.67508E-06** at limit **
  16  Prefactor     .10079E-03    11.942       -.19688E-05** at limit **
  17  Prefactor     .10016E-03    9.9572       -.19897E-05** at limit **
  18  Prefactor     .10000E-03    8.2874       -.15946E-06** at limit **
  19  Prefactor     .10000E-03    11.011        .61349E-07** at limit **
  20  Prefactor     4.0379        12.815        .22316E-05   -.20304E-02
  21  Prefactor     29.289        7.5827        .45434E-06   -.35146E-02
  22  Prefactor     13.474        1.5262        .10442E-07    .84506E-03
  23  norm          .10000E-03    1.2047        .38799E-07** at limit **
  24  Prefactor     5.4557        6.6531        .30226E-06    .10415E-02
  25  Prefactor     3.6942        2.3730       -.30468E-07   -.89046E-04
  26  Prefactor     .10013E-03    24.979       -.27958E-06** at limit **
  27  Normalizat    1.2739        .30348       -.14982E-06    .10049E-04
  28  Prefactor     .86524        .19791        .52613E-07    .18186E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.97334
  Prefactor  = 0.0743938
  Prefactor  = 0.0001
  Prefactor  = 0.000100682
  norm       = 0.0001
  norm       = 2.13922
  Prefactor  = 5.36355
  Prefactor  = 0.000100005
  norm       = 21.9006
  Prefactor  = 1.69201
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.77978
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100794
  Prefactor  = 0.00010016
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.03791
  Prefactor  = 29.2888
  Prefactor  = 13.4737
  norm       = 0.0001
  Prefactor  = 5.45575
  Prefactor  = 3.69416
  Prefactor  = 0.000100132
  Normalizat = 1.27391
  Prefactor  = 0.865236
 **********
 **   18 **HESSE 
 **********

 FCN=   3975.476     FROM HESSE     STATUS=OK           583 CALLS     3503 TOTAL
                     EDM=   .21E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.9733        25.041        .33505E-02   -1.5109    
   2  Prefactor     .74394E-01    18.036        .10094       -1.5653    
   3  Prefactor     .10000E-03    3.0146        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10068E-03    39.642        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    4.8337        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          2.1392        2.6356        .70460E-02   -1.5415    
   7  Prefactor     5.3635        8.3561        .43388E-02   -1.5245    
   8  Prefactor     .10001E-03    39.829        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          21.901        34.892        .21395E-02   -1.4772    
  10  Prefactor     1.6920        2.6562        .80902E-02   -1.5448    
  11  Prefactor     .10000E-03    52.348        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    24.636        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.7798        5.1645        .78411E-02   -1.5441    
  14  Prefactor     .10000E-03    2.6498        .39109E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    14.515        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10079E-03    43.213        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10016E-03    41.938        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    8.2284        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    11.009        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     4.0379        73.739        .49735E-02   -1.5306    
  21  Prefactor     29.289        31.737        .18497E-02   -1.4625    
  22  Prefactor     13.474        15.334        .27287E-02   -1.4974    
  23  norm          .10000E-03    1.2023        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     5.4557        6.6698        .42999E-02   -1.5241    
  25  Prefactor     3.6942        2.3704        .52529E-02   -1.5324    
  26  Prefactor     .10013E-03    52.721        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    1.2739        .26960        .65868E-01   -.84349    
  28  Prefactor     .86524        .17110        .44558E-01   -.97367    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.08796e-07
Minuit parameter uncertainties:
  1  25.07
  2  2.31585
  3  1.41136e-06
  4  0.0104068
  5  4.94423e-06
  6  2.63577
  7  8.35792
  8  0.000906286
  9  34.9248
  10  2.65638
  11  0.000127762
  12  0.00011927
  13  5.16583
  14  8.41783e-06
  15  8.73942e-06
  16  0.0117219
  17  0.00518185
  18  2.21618e-06
  19  2.40834e-06
  20  34.56
  21  31.7555
  22  15.3384
  23  2.53538e-07
  24  6.67074
  25  2.37045
  26  0.00527303
  27  0.269897
  28  0.171202
Done.

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

Extracting fit parameters...

4FGL J1152.3-0839
   Spectrum: PowerLaw
285    Prefactor:  1.000e-04  8.418e-06  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.652e-01  1.712e-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  2.699e-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: 1.17e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.05e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/118988/likelihoodResults_428803201_429062401_4FGL_J1152.3-0839_daily_bin731.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) = 3975.47679049
delta logL = -0.000964959117482

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3975.47582576
delta logL = -2.3054144549e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10185E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3993       1.0000          .0000       10.000    
     3 'Normalizat'    1.2738       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86532       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=   3975.476     FROM MIGRAD    STATUS=FAILED        97 CALLS      265 TOTAL
                     EDM=   .13E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10079E-03    66.945        .19924E-02** at limit **
   2  Index         2.3371        8.7481        .50000        .13390E-04
   3  Normalizat    1.2739        .25791E-01    .29138E-03   -.26200E-04
   4  Prefactor     .86524        .16654E-01    .22212E-03   -.59704E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   3975.476     FROM SIMPLEX   STATUS=PROGRESS     127 CALLS      392 TOTAL
                     EDM=   .46E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10022E-03    66.945        .25434E-03** at limit **
   2  Index         2.3362        8.7481        .28913E-03    .13390E-04
   3  Normalizat    1.2739        .25791E-01    .56926E-05   -.26200E-04
   4  Prefactor     .86523        .16654E-01    .31979E-05   -.59704E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   3975.476     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      442 TOTAL
                     EDM=   .32E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    371.70        .39848E-03** at limit **
   2  Index         2.2284        8.2526        .50000        .12358E-06
   3  Normalizat    1.2739        .65157E-01    .11655E-04   -.11998E-04
   4  Prefactor     .86524        .42069E-01    .88849E-05   -.12795E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.22845
  Normalizat = 1.27391
  Prefactor  = 0.865236
 **********
 **   18 **HESSE 
 **********

 FCN=   3975.476     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      471 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1146.4        .79695E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2284        8.1312        .50000       -.58753    
   3  Normalizat    1.2739        .20782        .23310E-05   -.84349    
   4  Prefactor     .86524        .13398        .17770E-05   -.97367    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.02898e-09
Minuit parameter uncertainties:
  1  0.000109837
  2  1432.47
  3  0.207959
  4  0.134033
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/118988': 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) = 3975.47582504
delta logL = 4.85971213493e-07

Extracting fit parameters...

4FGL J1152.3-0839
   Spectrum: PowerLaw
285    Prefactor:  1.000e-04  1.098e-04  1.000e-04  1.000e+04 ( 1.000e-12)
286        Index:  2.228e+00  1.432e+03  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.652e-01  1.340e-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  2.080e-01  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/118988/cmap_HighResolution_428803201_429062401_4FGL_J1152.3-0839_daily_bin731.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.05e-03', job_status='DONE', photon_flux_upper_limit='1.17e-07', time_completed='2021-09-04 13:49:32.877233', job_id='118988', GAL2='0.87', fit_tolerance='1e-08', EG2='1.27', EG='1.27', time_epoch_completed='1630788572.88', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.87', dlogl='4.86e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.41' WHERE bin_id='731' AND source_name='4FGL J1152.3-0839' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 13:49:32 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0236>
Subject: Job 118988: <4FGL_J1152.3-0839_daily_bin731> in cluster <slac> Done

Job <4FGL_J1152.3-0839_daily_bin731> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sat Sep  4 13:36:30 2021
Job was executed on host(s) <bullet0236>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 13:36:31 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:31 2021
Terminated at Sat Sep  4 13:49:33 2021
Results reported at Sat Sep  4 13:49:33 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1152.3-0839_daily_bin731 178.081 -8.6663 428803201 429062401 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 :                                   624.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             275.72 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   782 sec.
    Turnaround time :                            783 sec.

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

