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


Performing analysis on: 4FGL_J1152.3-0839_daily_bin164
RA = 178.081, Dec = -8.6663
tmin = 281836801, tmax = 282096001
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='117237', job_status='RUN', time_executed='2021-09-04 13:34:04.495393', time_epoch_executed='1630787644.5' WHERE source_name='4FGL J1152.3-0839' and cadence='daily' and bin_id='164'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/117237

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/117237/ft1_4FGL_J1152.3-0839_daily_bin164.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/117237/ft2_4FGL_J1152.3-0839_daily_bin164.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/117237/ft1_4FGL_J1152.3-0839_daily_bin164.fits outfile=/scratch/kocevski/117237/ft1_filteredMKT_4FGL_J1152.3-0839_daily_bin164.fits ra=178.081 dec=-8.6663 rad=12.0 tmin=281836801.0 tmax=282096001.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.99
user 3.76
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/117237/ft1_filtered_4FGL_J1152.3-0839_daily_bin164.fits" evtable="EVENTS" scfile=/scratch/kocevski/117237/ft2_4FGL_J1152.3-0839_daily_bin164.fits sctable="SC_DATA" outfile=/scratch/kocevski/117237/ltcube_281836801_282096001_4FGL_J1152.3-0839_daily_bin164.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/117237/ft2_4FGL_J1152.3-0839_daily_bin164.fits
.....................!
real 12.20
user 11.87
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/117237/ft1_filtered_4FGL_J1152.3-0839_daily_bin164.fits evtable="EVENTS" scfile=/scratch/kocevski/117237/ft2_4FGL_J1152.3-0839_daily_bin164.fits sctable="SC_DATA" expcube=/scratch/kocevski/117237/ltcube_281836801_282096001_4FGL_J1152.3-0839_daily_bin164.fits outfile=/scratch/kocevski/117237/expmap_281836801_282096001_4FGL_J1152.3-0839_daily_bin164.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/117237/ltcube_281836801_282096001_4FGL_J1152.3-0839_daily_bin164.fits
.....................!
real 190.75
user 186.01
sys 4.37

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/117237/ft1_filtered_4FGL_J1152.3-0839_daily_bin164.fits scfile=/scratch/kocevski/117237/ft2_4FGL_J1152.3-0839_daily_bin164.fits outfile=/scratch/kocevski/117237/cmap_281836801_282096001_4FGL_J1152.3-0839_daily_bin164.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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/117237/ft1_filtered_4FGL_J1152.3-0839_daily_bin164.fits scfile=/scratch/kocevski/117237/ft2_4FGL_J1152.3-0839_daily_bin164.fits outfile=/scratch/kocevski/117237/cmap_HighResolution_281836801_282096001_4FGL_J1152.3-0839_daily_bin164.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.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.5243       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.1428       1.0000         .10000E-03   10000.    
     4 'Prefactor '    114.74       1.0000         .10000E-03   10000.    
     5 'norm      '    2.7372       1.0000         .10000E-03   10000.    
     6 'norm      '    4.7290       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.1369       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    11.045       1.0000         .10000E-03   10000.    
    14 'Prefactor '    13.202       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10305E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    16.899       1.0000         .10000E-03   10000.    
    23 'norm      '    .10174E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    3.7320       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .11742E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    8.5993       1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.8026       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .75108       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=   5380.129     FROM MIGRAD    STATUS=CONVERGED    662 CALLS     3424 TOTAL
                     EDM=   .34E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.5238        9.4240       -.24649E-06   -.11205E-03
   2  Prefactor     .10000E-03    4.6053        .86241E-07** at limit **
   3  Prefactor     3.1434        5.9212       -.71928E-06   -.46903E-03
   4  Prefactor     114.74        110.27       -.33700E-05    .29159E-04
   5  norm          2.7372        7.2003       -.44385E-06   -.26885E-03
   6  norm          4.7288        2.5917       -.37185E-07    .97175E-04
   7  Prefactor     .10000E-03    1.2857        .11297E-07** at limit **
   8  Prefactor     .10000E-03    16.145       -.40758E-05** at limit **
   9  norm          .10000E-03    7.5229       -.34343E-05** at limit **
  10  Prefactor     4.1363        2.9389       -.77489E-07   -.37342E-04
  11  Prefactor     .10000E-03    14.971       -.32460E-05** at limit **
  12  Prefactor     .10000E-03    20.374        .22285E-05** at limit **
  13  norm          11.045        7.5658       -.47556E-07    .10072E-04
  14  Prefactor     13.198        6.1948       -.11127E-06   -.86750E-05
  15  Prefactor     .10000E-03    33.433       -.20923E-05** at limit **
  16  Prefactor     .10000E-03    6.8203        .26350E-05** at limit **
  17  Prefactor     .10000E-03    12.995        .39430E-06** at limit **
  18  Prefactor     .10000E-03    2.7356        .35268E-07** at limit **
  19  Prefactor     .10000E-03    9.9897        .11290E-05** at limit **
  20  Prefactor     .10000E-03    11.817        .24579E-05** at limit **
  21  Prefactor     .10000E-03    21.119        .42456E-05** at limit **
  22  Prefactor     16.890        16.335       -.20463E-05    .24518E-04
  23  norm          .10000E-03    1.2225        .66702E-07** at limit **
  24  Prefactor     3.7391        8.1632       -.19575E-06   -.25926E-03
  25  Prefactor     .10000E-03    2.3259        .15952E-07** at limit **
  26  Prefactor     8.5964        21.399       -.43349E-05    .28455E-04
  27  Normalizat    1.8030        .27861        .13372E-05    .17538E-04
  28  Prefactor     .75079        .17445        .31839E-06    .59506E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.52379
  Prefactor  = 0.0001
  Prefactor  = 3.14342
  Prefactor  = 114.737
  norm       = 2.73719
  norm       = 4.72875
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 4.13629
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 11.0446
  Prefactor  = 13.1978
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 16.8899
  norm       = 0.0001
  Prefactor  = 3.73908
  Prefactor  = 0.0001
  Prefactor  = 8.59642
  Normalizat = 1.803
  Prefactor  = 0.750793
 **********
 **   18 **HESSE 
 **********

 FCN=   5380.129     FROM HESSE     STATUS=OK           515 CALLS     3939 TOTAL
                     EDM=   .65E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.5238        9.4151        .21534E-03   -1.5333    
   2  Prefactor     .10000E-03    4.6096        .15372E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     3.1434        5.9879        .22866E-03   -1.5353    
   4  Prefactor     114.74        110.07        .37559E-04   -1.3562    
   5  norm          2.7372        7.1820        .24610E-03   -1.5377    
   6  norm          4.7288        2.5917        .84631E-04   -1.5273    
   7  Prefactor     .10000E-03    1.2872        .81212E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    16.305        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    7.4480        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     4.1363        2.9525        .10189E-03   -1.5301    
  11  Prefactor     .10000E-03    14.936        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    20.350        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          11.045        7.5645        .12055E-03   -1.5043    
  14  Prefactor     13.198        6.2041        .11024E-03   -1.4981    
  15  Prefactor     .10000E-03    33.656        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    6.7759        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    12.995        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    2.7395        .11848E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    10.103        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    11.778        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    21.142        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     16.890        16.452        .97430E-04   -1.4886    
  23  norm          .10000E-03    1.2263        .79060E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     3.7391        7.4143        .20902E-03   -1.5321    
  25  Prefactor     .10000E-03    5.2495        .19527E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     8.5964        21.298        .13670E-03   -1.5121    
  27  Normalizat    1.8030        .32736        .28769E-03   -.69585    
  28  Prefactor     .75079        .20318        .26912E-03   -1.0157    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.54876e-10
Minuit parameter uncertainties:
  1  9.41907
  2  1.46962e-06
  3  5.98905
  4  110.268
  5  7.18431
  6  2.59181
  7  5.39378e-07
  8  0.000108433
  9  6.113e-05
  10  2.95261
  11  7.84676e-05
  12  7.09379e-05
  13  7.56514
  14  6.2044
  15  5.58607e-05
  16  4.56765e-05
  17  1.04433e-05
  18  1.19606e-06
  19  3.68909e-05
  20  5.59557e-05
  21  0.000113957
  22  16.4564
  23  6.91611e-06
  24  7.41611
  25  8.92793e-05
  26  21.3164
  27  0.32776
  28  0.203382
Done.

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

Extracting fit parameters...

4FGL J1152.3-0839
   Spectrum: PowerLaw
285    Prefactor:  1.320e+01  6.204e+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:  7.508e-01  2.034e-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.803e+00  3.278e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 8.70
Ra Dec: 178.081 -8.666
Photon Index (Fixed Index): 2.41 +/- 0.00
Photon Flux (Fixed Index): 1.59e-07 +/- 7.46e-08
Energy Flux (Fixed Index): 5.12e-05 +/- 2.41e-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) = 5380.12902369
delta logL = 5.40266937605e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5380.12898668
delta logL = 9.10337657842e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    13.139       1.0000         .10000E-03   10000.    
     2 'Index     '    2.4193       1.0000          .0000       10.000    
     3 'Normalizat'    1.8021       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .75112       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=   5380.129     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      226 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     13.135        108.44        .27626E-02    .96275E-04
   2  Index         2.4188        3.4370        .13371        .81816E-04
   3  Normalizat    1.8021        .17248        .65060E-01   -.21652E-06
   4  Prefactor     .75123        .89976E-01    .43078E-01    .15254E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 13.1347
  Index      = 2.41875
  Normalizat = 1.80209
  Prefactor  = 0.751226
 **********
 **   18 **HESSE 
 **********

 FCN=   5380.129     FROM HESSE     STATUS=OK            33 CALLS      259 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     13.135        7.8502        .11050E-03   -1.4983    
   2  Index         2.4188        .48498        .51171E-02   -.54247    
   3  Normalizat    1.8021        .31984        .28774E-03   -.69609    
   4  Prefactor     .75123        .20217        .26905E-03   -1.0155    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.38712e-09
Minuit parameter uncertainties:
  1  7.85082
  2  0.486026
  3  0.320217
  4  0.202369
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/117237': 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) = 5380.12898447
delta logL = 9.32448401727e-05

Extracting fit parameters...

4FGL J1152.3-0839
   Spectrum: PowerLaw
285    Prefactor:  1.313e+01  7.851e+00  1.000e-04  1.000e+04 ( 1.000e-12)
286        Index:  2.419e+00  4.860e-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:  7.512e-01  2.024e-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.802e+00  3.202e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.74
Ra Dec: 178.081 -8.666
Photon Index (Free Index): 2.42 +/- 0.49
Photon Flux (Free Index): 1.60e-07 +/- 8.74e-08
Energy Flux (Free Index): 5.10e-05 +/- 2.83e-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/117237/cmap_HighResolution_281836801_282096001_4FGL_J1152.3-0839_daily_bin164.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.59e-07', energy_flux2='5.10e-05', photon_flux_error='7.46e-08', dlogl='9.32e-05', energy_flux='5.12e-05', photon_flux2='1.60e-07', job_status='DONE', time_completed='2021-09-04 13:45:04.916559', photon_index_error2='0.49', photon_index2='2.42', ts='8.70', fit_tolerance='1e-08', GAL='0.75', photon_index_error='0.00', energy_flux_error2='2.83e-05', EG='1.80', time_epoch_completed='1630788304.92', return_code='0', job_id='117237', GAL2='0.75', EG2='1.80', return_code2='0', energy_flux_error='2.41e-05', photon_flux_error2='8.74e-08', ts2='8.74', photon_index='2.41' WHERE bin_id='164' AND source_name='4FGL J1152.3-0839' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 13:45:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0037>
Subject: Job 117237: <4FGL_J1152.3-0839_daily_bin164> in cluster <slac> Done

Job <4FGL_J1152.3-0839_daily_bin164> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Sat Sep  4 13:31:42 2021
Job was executed on host(s) <bullet0037>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 13:31:43 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:31:43 2021
Terminated at Sat Sep  4 13:45:05 2021
Results reported at Sat Sep  4 13:45:05 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1152.3-0839_daily_bin164 178.081 -8.6663 281836801 282096001 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 :                                   660.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             294.12 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   802 sec.
    Turnaround time :                            803 sec.

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

