/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 184 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 = 7396
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1152.3-0839_daily_bin323
RA = 178.081, Dec = -8.6663
tmin = 323049601, tmax = 323308801
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='117456', job_status='RUN', time_executed='2021-09-04 13:35:14.692248', time_epoch_executed='1630787714.69' WHERE source_name='4FGL J1152.3-0839' and cadence='daily' and bin_id='323'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/117456

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/117456/ft1_4FGL_J1152.3-0839_daily_bin323.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/117456/ft2_4FGL_J1152.3-0839_daily_bin323.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/117456/ft1_4FGL_J1152.3-0839_daily_bin323.fits outfile=/scratch/kocevski/117456/ft1_filteredMKT_4FGL_J1152.3-0839_daily_bin323.fits ra=178.081 dec=-8.6663 rad=12.0 tmin=323049601.0 tmax=323308801.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.29
user 3.07
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/117456/ft1_filtered_4FGL_J1152.3-0839_daily_bin323.fits" evtable="EVENTS" scfile=/scratch/kocevski/117456/ft2_4FGL_J1152.3-0839_daily_bin323.fits sctable="SC_DATA" outfile=/scratch/kocevski/117456/ltcube_323049601_323308801_4FGL_J1152.3-0839_daily_bin323.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/117456/ft2_4FGL_J1152.3-0839_daily_bin323.fits
.....................!
real 12.99
user 12.67
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/117456/ft1_filtered_4FGL_J1152.3-0839_daily_bin323.fits evtable="EVENTS" scfile=/scratch/kocevski/117456/ft2_4FGL_J1152.3-0839_daily_bin323.fits sctable="SC_DATA" expcube=/scratch/kocevski/117456/ltcube_323049601_323308801_4FGL_J1152.3-0839_daily_bin323.fits outfile=/scratch/kocevski/117456/expmap_323049601_323308801_4FGL_J1152.3-0839_daily_bin323.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/117456/ltcube_323049601_323308801_4FGL_J1152.3-0839_daily_bin323.fits
.....................!
real 189.51
user 185.32
sys 3.87

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/117456/ft1_filtered_4FGL_J1152.3-0839_daily_bin323.fits scfile=/scratch/kocevski/117456/ft2_4FGL_J1152.3-0839_daily_bin323.fits outfile=/scratch/kocevski/117456/cmap_323049601_323308801_4FGL_J1152.3-0839_daily_bin323.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.38
sys 0.13

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/117456/ft1_filtered_4FGL_J1152.3-0839_daily_bin323.fits evtable="EVENTS" scfile=/scratch/kocevski/117456/ft2_4FGL_J1152.3-0839_daily_bin323.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/117456/Model_4FGL_J1152.3-0839_daily_bin323.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/117456/ft1_filtered_4FGL_J1152.3-0839_daily_bin323.fits.....................!
real 49.13
user 47.86
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    13.874       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10968E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10402E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10047E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    4.1839       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    11.782       1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.9980       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    8.9776       1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.2507       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .14870E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .11399E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    46.450       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10161E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    8.1776       1.0000         .10000E-03   10000.    
    25 'Prefactor '    8.8601       1.0000         .10000E-03   10000.    
    26 'Prefactor '    26.755       1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.2952       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .89144       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=   5372.960     FROM MIGRAD    STATUS=CONVERGED    672 CALLS     3409 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     13.867        22.529       -.34951E-05    .67060E-04
   2  Prefactor     .10000E-03    7.7629        .27809E-05** at limit **
   3  Prefactor     .10000E-03    1.6238       -.67192E-08** at limit **
   4  Prefactor     .10001E-03    66.257       -.25494E-04** at limit **
   5  norm          .10000E-03    6.2288       -.67472E-06** at limit **
   6  norm          4.1838        2.6190       -.10073E-06   -.14676E-03
   7  Prefactor     .10000E-03    2.2856        .17794E-07** at limit **
   8  Prefactor     .10000E-03    11.537       -.13274E-06** at limit **
   9  norm          11.786        16.209       -.29548E-06    .22183E-05
  10  Prefactor     2.9981        2.0277       -.60539E-07    .56086E-04
  11  Prefactor     .10000E-03    5.6934        .61626E-06** at limit **
  12  Prefactor     .10000E-03    18.902        .18806E-05** at limit **
  13  norm          .10000E-03    3.2338        .79699E-08** at limit **
  14  Prefactor     8.9805        5.1659        .43241E-06    .23529E-03
  15  Prefactor     4.2369        42.177       -.19635E-04    .65473E-04
  16  Prefactor     .10000E-03    8.2082       -.23440E-05** at limit **
  17  Prefactor     .10000E-03    55.744        .11174E-04** at limit **
  18  Prefactor     .10000E-03    3.7173       -.39118E-07** at limit **
  19  Prefactor     .10000E-03    30.289       -.73780E-05** at limit **
  20  Prefactor     46.454        41.671        .43066E-05   -.93681E-04
  21  Prefactor     .10001E-03    53.061        .17538E-04** at limit **
  22  Prefactor     .10000E-03    5.7206       -.43814E-06** at limit **
  23  norm          .10000E-03    .96573       -.30746E-07** at limit **
  24  Prefactor     8.1768        6.9848       -.14982E-05   -.21551E-02
  25  Prefactor     8.8598        3.3800        .11813E-06    .28216E-04
  26  Prefactor     26.756        17.621       -.98514E-07    .22947E-04
  27  Normalizat    1.2950        .24322        .24867E-05   -.23253E-04
  28  Prefactor     .89166        .15558        .76019E-07    .11051E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 13.8669
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100012
  norm       = 0.0001
  norm       = 4.18381
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 11.7863
  Prefactor  = 2.99807
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 8.98053
  Prefactor  = 4.23695
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 46.4544
  Prefactor  = 0.000100011
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 8.17678
  Prefactor  = 8.85981
  Prefactor  = 26.7556
  Normalizat = 1.29497
  Prefactor  = 0.891664
 **********
 **   18 **HESSE 
 **********

 FCN=   5372.960     FROM HESSE     STATUS=OK           513 CALLS     3922 TOTAL
                     EDM=   .38E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     13.867        22.658        .10753E-03   -1.4963    
   2  Prefactor     .10000E-03    7.7717        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    1.6294        .91195E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10001E-03    64.860        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    6.2720        .17858E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          4.1838        2.6169        .90498E-04   -1.5299    
   7  Prefactor     .10000E-03    2.3044        .10803E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    11.676        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          11.786        16.186        .11671E-03   -1.5021    
  10  Prefactor     2.9981        2.0318        .83298E-04   -1.5362    
  11  Prefactor     .10000E-03    5.6938        .17081E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    18.909        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    3.2434        .12869E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     8.9805        5.1407        .11449E-03   -1.5109    
  15  Prefactor     4.2369        41.683        .19543E-03   -1.5296    
  16  Prefactor     .10000E-03    8.2051        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    55.418        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    3.7270        .13802E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    30.842        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     46.454        41.539        .58831E-04   -1.4344    
  21  Prefactor     .10001E-03    52.797        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    5.7362        .17122E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    .97113        .70336E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     8.1768        7.3778        .70099E-03   -1.5136    
  25  Prefactor     8.8598        3.3917        .78794E-04   -1.5113    
  26  Prefactor     26.756        17.627        .77449E-04   -1.4673    
  27  Normalizat    1.2950        .28438        .29289E-03   -.83717    
  28  Prefactor     .89166        .18167        .22977E-03   -.96433    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.81276e-09
Minuit parameter uncertainties:
  1  22.6723
  2  2.5934e-05
  3  8.37142e-07
  4  0.00177879
  5  2.07589e-05
  6  2.61698
  7  2.09993e-06
  8  1.10003e-05
  9  16.1922
  10  2.03188
  11  1.28432e-05
  12  4.78599e-05
  13  1.10752e-06
  14  5.14099
  15  26.6027
  16  4.9034e-05
  17  0.000942938
  18  6.71179e-06
  19  0.000149774
  20  41.565
  21  0.00150065
  22  5.54704e-06
  23  2.84485e-06
  24  7.37864
  25  3.39174
  26  17.63
  27  0.284724
  28  0.181796
Done.

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

Extracting fit parameters...

4FGL J1152.3-0839
   Spectrum: PowerLaw
285    Prefactor:  8.981e+00  5.141e+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:  8.917e-01  1.818e-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.295e+00  2.847e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 8.58
Ra Dec: 178.081 -8.666
Photon Index (Fixed Index): 2.41 +/- 0.00
Photon Flux (Fixed Index): 1.08e-07 +/- 6.18e-08
Energy Flux (Fixed Index): 3.49e-05 +/- 1.99e-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) = 5372.81215963
delta logL = 0.147518548618

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5372.81200185
delta logL = 0.147676323962

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.067       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1579       1.0000          .0000       10.000    
     3 'Normalizat'    1.3181       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88315       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=   5372.812     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      263 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.055        148.67        .31572E-02    .77897E-04
   2  Index         2.1567        5.9576        .17479        .43346E-04
   3  Normalizat    1.3184        .24406        .65720E-01    .10906E-04
   4  Prefactor     .88314        .10977        .44790E-01    .13103E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.0549
  Index      = 2.15669
  Normalizat = 1.31835
  Prefactor  = 0.88314
 **********
 **   18 **HESSE 
 **********

 FCN=   5372.812     FROM HESSE     STATUS=OK            33 CALLS      296 TOTAL
                     EDM=   .42E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.055        5.8068        .12629E-03   -1.5074    
   2  Index         2.1567        .46312        .65312E-02   -.60488    
   3  Normalizat    1.3184        .27269        .29072E-03   -.83020    
   4  Prefactor     .88314        .18014        .23076E-03   -.96733    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.16779e-12
Minuit parameter uncertainties:
  1  5.8071
  2  0.464104
  3  0.272992
  4  0.180257
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/117456': 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) = 5372.81199478
delta logL = 0.147683396952

Extracting fit parameters...

4FGL J1152.3-0839
   Spectrum: PowerLaw
285    Prefactor:  1.005e+01  5.807e+00  1.000e-04  1.000e+04 ( 1.000e-12)
286        Index:  2.157e+00  4.641e-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:  8.831e-01  1.803e-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.318e+00  2.730e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.85
Ra Dec: 178.081 -8.666
Photon Index (Free Index): 2.16 +/- 0.46
Photon Flux (Free Index): 8.57e-08 +/- 6.38e-08
Energy Flux (Free Index): 4.18e-05 +/- 3.00e-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/117456/cmap_HighResolution_323049601_323308801_4FGL_J1152.3-0839_daily_bin323.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.08e-07', energy_flux2='4.18e-05', photon_flux_error='6.18e-08', dlogl='1.48e-01', energy_flux='3.49e-05', photon_flux2='8.57e-08', job_status='DONE', time_completed='2021-09-04 13:46:16.701474', photon_index_error2='0.46', photon_index2='2.16', ts='8.58', fit_tolerance='1e-08', GAL='0.89', photon_index_error='0.00', energy_flux_error2='3.00e-05', EG='1.29', time_epoch_completed='1630788376.7', return_code='0', job_id='117456', GAL2='0.88', EG2='1.32', return_code2='0', energy_flux_error='1.99e-05', photon_flux_error2='6.38e-08', ts2='8.85', photon_index='2.41' WHERE bin_id='323' AND source_name='4FGL J1152.3-0839' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 13:46:16 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0076>
Subject: Job 117456: <4FGL_J1152.3-0839_daily_bin323> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1152.3-0839_daily_bin323 178.081 -8.6663 323049601 323308801 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 :                                   661.31 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             297.81 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   853 sec.
    Turnaround time :                            855 sec.

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

