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


Performing analysis on: 4FGL_J1152.3-0839_daily_bin1330
RA = 178.081, Dec = -8.6663
tmin = 584064001, tmax = 584323201
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='124164', job_status='RUN', time_executed='2021-09-04 13:52:00.421233', time_epoch_executed='1630788720.42' WHERE source_name='4FGL J1152.3-0839' and cadence='daily' and bin_id='1330'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/124164

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/124164/ft1_4FGL_J1152.3-0839_daily_bin1330.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/124164/ft2_4FGL_J1152.3-0839_daily_bin1330.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/124164/ft1_4FGL_J1152.3-0839_daily_bin1330.fits outfile=/scratch/kocevski/124164/ft1_filteredMKT_4FGL_J1152.3-0839_daily_bin1330.fits ra=178.081 dec=-8.6663 rad=12.0 tmin=584064001.0 tmax=584323201.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.51
user 4.26
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/124164/ft1_filtered_4FGL_J1152.3-0839_daily_bin1330.fits" evtable="EVENTS" scfile=/scratch/kocevski/124164/ft2_4FGL_J1152.3-0839_daily_bin1330.fits sctable="SC_DATA" outfile=/scratch/kocevski/124164/ltcube_584064001_584323201_4FGL_J1152.3-0839_daily_bin1330.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/124164/ft2_4FGL_J1152.3-0839_daily_bin1330.fits
.....................!
real 11.96
user 11.58
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/124164/ft1_filtered_4FGL_J1152.3-0839_daily_bin1330.fits evtable="EVENTS" scfile=/scratch/kocevski/124164/ft2_4FGL_J1152.3-0839_daily_bin1330.fits sctable="SC_DATA" expcube=/scratch/kocevski/124164/ltcube_584064001_584323201_4FGL_J1152.3-0839_daily_bin1330.fits outfile=/scratch/kocevski/124164/expmap_584064001_584323201_4FGL_J1152.3-0839_daily_bin1330.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/124164/ltcube_584064001_584323201_4FGL_J1152.3-0839_daily_bin1330.fits
.....................!
real 192.65
user 187.22
sys 4.95

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Added 190 point sources and 0 extended sources

Setting source of interest to:
4FGL J1152.3-0839 @ 178.081 -8.6663

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/124164/ft1_filtered_4FGL_J1152.3-0839_daily_bin1330.fits scfile=/scratch/kocevski/124164/ft2_4FGL_J1152.3-0839_daily_bin1330.fits outfile=/scratch/kocevski/124164/cmap_584064001_584323201_4FGL_J1152.3-0839_daily_bin1330.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.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/124164/ft1_filtered_4FGL_J1152.3-0839_daily_bin1330.fits scfile=/scratch/kocevski/124164/ft2_4FGL_J1152.3-0839_daily_bin1330.fits outfile=/scratch/kocevski/124164/cmap_HighResolution_584064001_584323201_4FGL_J1152.3-0839_daily_bin1330.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.56
user 0.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/124164/ft1_filtered_4FGL_J1152.3-0839_daily_bin1330.fits evtable="EVENTS" scfile=/scratch/kocevski/124164/ft2_4FGL_J1152.3-0839_daily_bin1330.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/124164/Model_4FGL_J1152.3-0839_daily_bin1330.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/124164/ft1_filtered_4FGL_J1152.3-0839_daily_bin1330.fits.....................!
real 51.95
user 49.28
sys 1.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .20967E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    15.855       1.0000         .10000E-03   10000.    
     6 'norm      '    .10116E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10105E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    6.5703       1.0000         .10000E-03   10000.    
     9 'norm      '    .10022E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.2357       1.0000         .10000E-03   10000.    
    11 'Prefactor '    11.282       1.0000         .10000E-03   10000.    
    12 'Prefactor '    10.572       1.0000         .10000E-03   10000.    
    13 'norm      '    1.6531       1.0000         .10000E-03   10000.    
    14 'Prefactor '    13.499       1.0000         .10000E-03   10000.    
    15 'Prefactor '    18.526       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10362E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    5.9320       1.0000         .10000E-03   10000.    
    19 'Prefactor '    25.674       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10053E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10486E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    1.6333       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    6.5089       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10107E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.3798       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .98941       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=   5305.556     FROM MIGRAD    STATUS=CONVERGED    700 CALLS     3469 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    16.552        .10637E-04** at limit **
   2  Prefactor     .10000E-03    5.0518       -.58132E-06** at limit **
   3  Prefactor     .10000E-03    3.2131        .71573E-08** at limit **
   4  Prefactor     .10000E-03    47.916       -.41754E-05** at limit **
   5  norm          15.856        12.026       -.93310E-06   -.91153E-04
   6  norm          .10000E-03    1.6357       -.20570E-06** at limit **
   7  Prefactor     .10000E-03    3.7979       -.73710E-06** at limit **
   8  Prefactor     6.5785        18.563        .10540E-04    .15455E-05
   9  norm          .10000E-03    19.137       -.63492E-05** at limit **
  10  Prefactor     2.2354        2.3622       -.18784E-06   -.43608E-03
  11  Prefactor     11.255        26.929        .34765E-04    .18443E-04
  12  Prefactor     10.424        53.768       -.35877E-04   -.16849E-04
  13  norm          1.6495        12.966       -.55243E-05   -.52377E-03
  14  Prefactor     13.498        6.0417       -.10729E-06    .10956E-03
  15  Prefactor     18.540        17.701       -.25479E-05    .17379E-05
  16  Prefactor     .10000E-03    14.310       -.25710E-05** at limit **
  17  Prefactor     .10000E-03    22.254        .10404E-04** at limit **
  18  Prefactor     5.9347        8.3225        .42820E-06   -.10379E-03
  19  Prefactor     25.657        20.678        .96936E-05   -.27360E-04
  20  Prefactor     .10000E-03    19.308       -.59166E-05** at limit **
  21  Prefactor     .10000E-03    7.8723       -.49554E-07** at limit **
  22  Prefactor     .10000E-03    5.0628        .52968E-06** at limit **
  23  norm          1.6333        1.7843        .19410E-07   -.16284E-04
  24  Prefactor     .10000E-03    2.6829        .66666E-07** at limit **
  25  Prefactor     6.5112        2.9028        .67114E-07    .64908E-04
  26  Prefactor     .10000E-03    18.632       -.49377E-05** at limit **
  27  Normalizat    1.3803        .28455       -.69045E-05    .17590E-03
  28  Prefactor     .98913        .17792        .12077E-05   -.18105E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 15.8557
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 6.57852
  norm       = 0.000100001
  Prefactor  = 2.23536
  Prefactor  = 11.2549
  Prefactor  = 10.4241
  norm       = 1.64947
  Prefactor  = 13.4982
  Prefactor  = 18.54
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.93468
  Prefactor  = 25.6566
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.63333
  Prefactor  = 0.0001
  Prefactor  = 6.51123
  Prefactor  = 0.0001
  Normalizat = 1.38029
  Prefactor  = 0.989128
 **********
 **   18 **HESSE 
 **********

 FCN=   5305.556     FROM HESSE     STATUS=OK           517 CALLS     3986 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    16.625        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    5.0573        .15987E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    3.2355        .12732E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    47.936        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          15.856        12.013        .10059E-03   -1.4911    
   6  norm          .10000E-03    3.0396        .17835E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    3.8458        .13847E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     6.5785        18.325        .15656E-03   -1.5195    
   9  norm          .10000E-03    19.230        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     2.2354        2.3572        .11079E-03   -1.5409    
  11  Prefactor     11.255        26.896        .11927E-03   -1.5037    
  12  Prefactor     10.424        53.680        .12323E-03   -1.5062    
  13  norm          1.6495        12.792        .32831E-03   -1.5451    
  14  Prefactor     13.498        5.9461        .10468E-03   -1.4973    
  15  Prefactor     18.540        17.700        .93054E-04   -1.4847    
  16  Prefactor     .10000E-03    14.330        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    22.239        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     5.9347        8.3216        .16487E-03   -1.5221    
  19  Prefactor     25.657        20.732        .79059E-04   -1.4694    
  20  Prefactor     .10000E-03    19.318        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    7.8755        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    5.0732        .16003E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          1.6333        1.7835        .98910E-04   -1.5452    
  24  Prefactor     .10000E-03    2.6906        .11649E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     6.5112        2.9047        .80567E-04   -1.5198    
  26  Prefactor     .10000E-03    18.745        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    1.3803        .33997        .31412E-03   -.81200    
  28  Prefactor     .98913        .21243        .23911E-03   -.93093    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.75516e-09
Minuit parameter uncertainties:
  1  3.28331e-06
  2  1.12445e-06
  3  6.66337e-06
  4  2.6363e-06
  5  12.0153
  6  7.69799e-06
  7  0.000117004
  8  18.3403
  9  0.000244539
  10  2.35733
  11  26.9251
  12  47.3775
  13  9.18944
  14  5.94635
  15  17.7053
  16  1.90625e-06
  17  6.42303e-05
  18  8.32317
  19  20.7378
  20  5.71266e-05
  21  1.11806e-05
  22  3.07833e-06
  23  1.78352
  24  5.39112e-06
  25  2.90478
  26  8.3467e-05
  27  0.340524
  28  0.212611
Done.

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

Extracting fit parameters...

4FGL J1152.3-0839
   Spectrum: PowerLaw
285    Prefactor:  1.350e+01  5.946e+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:  9.891e-01  2.126e-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.380e+00  3.405e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 19.86
Ra Dec: 178.081 -8.666
Photon Index (Fixed Index): 2.41 +/- 0.00
Photon Flux (Fixed Index): 1.62e-07 +/- 7.15e-08
Energy Flux (Fixed Index): 5.24e-05 +/- 2.31e-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) = 5304.35809534
delta logL = 1.1979281401

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5304.29592659
delta logL = 1.26009689453

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    16.049       1.0000         .10000E-03   10000.    
     2 'Index     '    1.8762       1.0000          .0000       10.000    
     3 'Normalizat'    1.4362       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96934       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=   5304.296     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      211 TOTAL
                     EDM=   .24E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     16.059        7.6525        .24994E-02    .11653E-03
   2  Index         1.8767        .32264        .13170       -.17576E-03
   3  Normalizat    1.4362        .26836        .69915E-01   -.62741E-04
   4  Prefactor     .96941        .17653        .45883E-01   -.28396E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 16.0585
  Index      = 1.87667
  Normalizat = 1.43625
  Prefactor  = 0.96941
 **********
 **   18 **HESSE 
 **********

 FCN=   5304.296     FROM HESSE     STATUS=OK            31 CALLS      242 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     16.059        7.2572        .99976E-04   -1.4906    
   2  Index         1.8767        .32782        .54237E-02   -.67470    
   3  Normalizat    1.4362        .31922        .30932E-03   -.79586    
   4  Prefactor     .96941        .21005        .24140E-03   -.93756    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.98127e-10
Minuit parameter uncertainties:
  1  7.25765
  2  0.328204
  3  0.319665
  4  0.210222
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/124164': 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) = 5304.29592392
delta logL = 1.26009956281

Extracting fit parameters...

4FGL J1152.3-0839
   Spectrum: PowerLaw
285    Prefactor:  1.606e+01  7.258e+00  1.000e-04  1.000e+04 ( 1.000e-12)
286        Index:  1.877e+00  3.282e-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.694e-01  2.102e-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.436e+00  3.197e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 22.42
Ra Dec: 178.081 -8.666
Photon Index (Free Index): 1.88 +/- 0.33
Photon Flux (Free Index): 9.93e-08 +/- 6.00e-08
Energy Flux (Free Index): 9.51e-05 +/- 6.46e-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/124164/cmap_HighResolution_584064001_584323201_4FGL_J1152.3-0839_daily_bin1330.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.62e-07', energy_flux2='9.51e-05', photon_flux_error='7.15e-08', dlogl='1.26e+00', energy_flux='5.24e-05', photon_flux2='9.93e-08', job_status='DONE', time_completed='2021-09-04 14:03:10.188678', photon_index_error2='0.33', photon_index2='1.88', ts='19.86', fit_tolerance='1e-08', GAL='0.99', photon_index_error='0.00', energy_flux_error2='6.46e-05', EG='1.38', time_epoch_completed='1630789390.19', return_code='0', job_id='124164', GAL2='0.97', EG2='1.44', return_code2='0', energy_flux_error='2.31e-05', photon_flux_error2='6.00e-08', ts2='22.42', photon_index='2.41' WHERE bin_id='1330' AND source_name='4FGL J1152.3-0839' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 14:03:10 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0238>
Subject: Job 124164: <4FGL_J1152.3-0839_daily_bin1330> in cluster <slac> Done

Job <4FGL_J1152.3-0839_daily_bin1330> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Sat Sep  4 13:51:37 2021
Job was executed on host(s) <bullet0238>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 13:51:38 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:51:38 2021
Terminated at Sat Sep  4 14:03:10 2021
Results reported at Sat Sep  4 14:03:10 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1152.3-0839_daily_bin1330 178.081 -8.6663 584064001 584323201 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 :                                   664.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             333.78 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   692 sec.
    Turnaround time :                            693 sec.

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

