aklog: Couldn't determine realm of user:aklog: No credentials cache found  while getting realm
/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 7 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 make4FGLDR3xml version 01r09.
The default diffuse model files and names are for P8R3, 4FGL DRs, and the default fermitools directory locations.

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 = 7499
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1152.3-0839_daily_bin1777
RA = 178.081, Dec = -8.6663
tmin = 699926401, tmax = 700185601
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='913350', job_status='RUN', time_executed='2023-03-11 00:35:35.592288', time_epoch_executed='1678523735.59' WHERE source_name='4FGL J1152.3-0839' and cadence='daily' and bin_id='1777'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/913350

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/913350/ft1_4FGL_J1152.3-0839_daily_bin1777.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/913350/ft2_4FGL_J1152.3-0839_daily_bin1777.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/913350/ft1_4FGL_J1152.3-0839_daily_bin1777.fits outfile=/scratch/kocevski/913350/ft1_filteredMKT_4FGL_J1152.3-0839_daily_bin1777.fits ra=178.081 dec=-8.6663 rad=12.0 tmin=699926401.0 tmax=700185601.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.66
user 3.43
sys 0.21

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

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

Number of photons that the gtmktime cut: 703

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/913350/ft1_filtered_4FGL_J1152.3-0839_daily_bin1777.fits" evtable="EVENTS" scfile=/scratch/kocevski/913350/ft2_4FGL_J1152.3-0839_daily_bin1777.fits sctable="SC_DATA" outfile=/scratch/kocevski/913350/ltcube_699926401_700185601_4FGL_J1152.3-0839_daily_bin1777.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/913350/ft2_4FGL_J1152.3-0839_daily_bin1777.fits
.....................!
real 12.29
user 11.93
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/913350/ft1_filtered_4FGL_J1152.3-0839_daily_bin1777.fits evtable="EVENTS" scfile=/scratch/kocevski/913350/ft2_4FGL_J1152.3-0839_daily_bin1777.fits sctable="SC_DATA" expcube=/scratch/kocevski/913350/ltcube_699926401_700185601_4FGL_J1152.3-0839_daily_bin1777.fits outfile=/scratch/kocevski/913350/expmap_699926401_700185601_4FGL_J1152.3-0839_daily_bin1777.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/913350/ltcube_699926401_700185601_4FGL_J1152.3-0839_daily_bin1777.fits
.....................!
real 190.25
user 185.52
sys 4.41

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/913350/ft1_filtered_4FGL_J1152.3-0839_daily_bin1777.fits scfile=/scratch/kocevski/913350/ft2_4FGL_J1152.3-0839_daily_bin1777.fits outfile=/scratch/kocevski/913350/cmap_699926401_700185601_4FGL_J1152.3-0839_daily_bin1777.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=178.081 yref=-8.6663 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.53
user 0.37
sys 0.15

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/913350/ft1_filtered_4FGL_J1152.3-0839_daily_bin1777.fits evtable="EVENTS" scfile=/scratch/kocevski/913350/ft2_4FGL_J1152.3-0839_daily_bin1777.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/913350/Model_4FGL_J1152.3-0839_daily_bin1777.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/913350/ft1_filtered_4FGL_J1152.3-0839_daily_bin1777.fits.....................!
real 67.76
user 65.80
sys 1.72

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/913350/ft1_filtered_4FGL_J1152.3-0839_daily_bin1777.fits', '/scratch/kocevski/913350/ft2_4FGL_J1152.3-0839_daily_bin1777.fits', expMap='/scratch/kocevski/913350/expmap_699926401_700185601_4FGL_J1152.3-0839_daily_bin1777.fits', expCube='/scratch/kocevski/913350/ltcube_699926401_700185601_4FGL_J1152.3-0839_daily_bin1777.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/913350/Model_4FGL_J1152.3-0839_daily_bin1777.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  0.000e+00  1.000e+06 ( 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/913350/ft1_filtered_4FGL_J1152.3-0839_daily_bin1777.fits
Spacecraft file(s): /scratch/kocevski/913350/ft2_4FGL_J1152.3-0839_daily_bin1777.fits
Exposure map: /scratch/kocevski/913350/expmap_699926401_700185601_4FGL_J1152.3-0839_daily_bin1777.fits
Exposure cube: /scratch/kocevski/913350/ltcube_699926401_700185601_4FGL_J1152.3-0839_daily_bin1777.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/913350/Model_4FGL_J1152.3-0839_daily_bin1777.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) = 7603.47377841

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .31804E-02   1.0000          .0000       .10000E+07
     2 'Prefactor '    .70802E-04   1.0000          .0000       .10000E+07
     3 'Prefactor '    .42500E-01   1.0000          .0000       .10000E+07
     4 'norm      '    .24569E-02   1.0000          .0000       .10000E+07
     5 'norm      '    2.9890       1.0000          .0000       .10000E+07
     6 'Prefactor '    .11145E-03   1.0000          .0000       .10000E+07
     7 'Prefactor '    59.731       1.0000          .0000       .10000E+07
     8 'norm      '    .29145E-02   1.0000          .0000       .10000E+07
     9 'Prefactor '    4.9143       1.0000          .0000       .10000E+07
    10 'Prefactor '    .81654E-05   1.0000          .0000       .10000E+07
    11 'Prefactor '    5.9181       1.0000          .0000       .10000E+07
    12 'norm      '    9.8016       1.0000          .0000       .10000E+07
    13 'Prefactor '    .57014E-04   1.0000          .0000       .10000E+07
    14 'Prefactor '    2.0408       1.0000          .0000       .10000E+07
    15 'Prefactor '    .11077E-02   1.0000          .0000       .10000E+07
    16 'Prefactor '    3.8998       1.0000          .0000       .10000E+07
    17 'Prefactor '    22.576       1.0000          .0000       .10000E+07
    18 'Prefactor '    42.502       1.0000          .0000       .10000E+07
    19 'Prefactor '    6.0554       1.0000          .0000       .10000E+07
    20 'norm      '    .88748E-05   1.0000          .0000       .10000E+07
    21 'Prefactor '    .25802E-06   1.0000          .0000       .10000E+07
    22 'Prefactor '    3.6989       1.0000         .10000E-03   10000.    
    23 'Prefactor '    24.875       1.0000          .0000       .10000E+07
    24 'Normalizat'    1.2427       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .98801       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=   7603.294     FROM MIGRAD    STATUS=CONVERGED    151 CALLS     2114 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .31247E-06    10.783       -.54577E-06** at limit **
   2  Prefactor      .0000        1.3137        .49514E-07** at limit **
   3  Prefactor     .98421E-07    25.880       -.11290E-05** at limit **
   4  norm          .43854E-08    3.7876        .30334E-06** at limit **
   5  norm          2.9926        1.8069       -.38084E-07   -.51929E-03
   6  Prefactor      .0000        1.3604        .53606E-07** at limit **
   7  Prefactor     59.683        1.9951       -.29271E-07   -.24401E-01
   8  norm          .39324E-06    8.7585        .83487E-06** at limit **
   9  Prefactor     4.9180        2.7345        .17957E-07    .13951E-03
  10  Prefactor     .12099E-05    13.363       -.67192E-06** at limit **
  11  Prefactor     5.9230        1.1017       -.27259E-07   -.42135E-03
  12  norm          9.8041        6.3843       -.97311E-07   -.62912E-02
  13  Prefactor      .0000        1.7204       -.13398E-06** at limit **
  14  Prefactor     2.0264        7.7738        .84498E-06   -.60977E-02
  15  Prefactor     .11102E-08    2.9587       -.64661E-07** at limit **
  16  Prefactor     3.9907        11.518        .27171E-06    .32574E-01
  17  Prefactor     22.956        5.7684       -.13187E-06    .79247E-01
  18  Prefactor     43.983        31.351       -.14579E-06   -.32242E-01
  19  Prefactor     5.7866        6.1955       -.11402E-06   -.39706E-02
  20  norm           .0000        1.5075        .19658E-07** at limit **
  21  Prefactor     .83901E-05    7.3802        .44286E-06** at limit **
  22  Prefactor     3.6995        1.7674        .58601E-07    .66970E-04
  23  Prefactor     24.836        1.6561        .65818E-08    .16404E-02
  24  Normalizat    1.2405        .26080       -.78634E-05   -.43704E-06
  25  Prefactor     .98864        .16761        .64927E-05    .33223E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.12472e-07
  Prefactor  = 0
  Prefactor  = 9.84213e-08
  norm       = 4.38538e-09
  norm       = 2.99255
  Prefactor  = 0
  Prefactor  = 59.6828
  norm       = 3.93241e-07
  Prefactor  = 4.918
  Prefactor  = 1.20992e-06
  Prefactor  = 5.923
  norm       = 9.80409
  Prefactor  = 0
  Prefactor  = 2.02637
  Prefactor  = 1.11022e-09
  Prefactor  = 3.99068
  Prefactor  = 22.9556
  Prefactor  = 43.9833
  Prefactor  = 5.78661
  norm       = 0
  Prefactor  = 8.39007e-06
  Prefactor  = 3.69945
  Prefactor  = 24.836
  Normalizat = 1.24051
  Prefactor  = 0.988642
 **********
 **   18 **HESSE 
 **********

 FCN=   7603.294     FROM HESSE     STATUS=OK           485 CALLS     2599 TOTAL
                     EDM=   .62E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .31247E-06    11.307        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor      .0000        1.3125        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .98421E-07    25.975        .15853E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .43854E-08    3.7844        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          2.9926        1.8219        .58693E-03   -1.5673    
   6  Prefactor      .0000        1.3589        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     59.683        14.405        .12940E-03   -1.5553    
   8  norm          .39324E-06    9.6223        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     4.9180        2.7372        .45348E-03   -1.5664    
  10  Prefactor     .12099E-05    15.361        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     5.9230        17.313        .41255E-03   -1.5659    
  12  norm          9.8041        6.4021        .31983E-03   -1.5645    
  13  Prefactor      .0000        1.7152        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     2.0264        7.8146        .72359E-03   -1.5679    
  15  Prefactor     .11102E-08    2.9587        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     3.9907        11.988        .51067E-03   -1.5668    
  17  Prefactor     22.956        25.965        .21052E-03   -1.5612    
  18  Prefactor     43.983        32.023        .15340E-03   -1.5575    
  19  Prefactor     5.7866        15.708        .40778E-03   -1.5660    
  20  norm           .0000        1.5038        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .83901E-05    2.9906        .54955E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     3.6995        1.7843        .52496E-02   -1.5323    
  23  Prefactor     24.836        17.165        .20055E-03   -1.5608    
  24  Normalizat    1.2405        .22790        .71830E-01   -.85360    
  25  Prefactor     .98864        .14227        .46117E-01   -.93109    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.16148e-07
Minuit parameter uncertainties:
  1  0.00375915
  2  2.04912e-06
  3  0.00319817
  4  0.000257159
  5  1.82195
  6  2.29704e-06
  7  14.405
  8  0.00389047
  9  2.7372
  10  0.00862216
  11  17.3134
  12  6.40209
  13  6.68562e-06
  14  7.81468
  15  0.000115959
  16  11.9883
  17  25.9647
  18  32.0227
  19  15.7081
  20  3.19615e-06
  21  0.0100183
  22  1.78435
  23  17.1646
  24  0.228087
  25  0.142326
Done.

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

Extracting fit parameters...

4FGL J1152.3-0839
   Spectrum: PowerLaw
285    Prefactor:  0.000e+00  6.686e-06  0.000e+00  1.000e+06 ( 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.886e-01  1.423e-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.241e+00  2.281e-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: 7.20e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.57e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/913350/likelihoodResults_699926401_700185601_4FGL_J1152.3-0839_daily_bin1777.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) = 7603.29568528
delta logL = -0.0021661076953

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7603.29352253
delta logL = -3.3546357372e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .13323E-07   1.0000          .0000       .10000E+07
     2 'Index     '    1.1363       1.0000          .0000       10.000    
     3 'Normalizat'    1.2399       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98895       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=   7603.294     FROM MIGRAD    STATUS=CONVERGED     68 CALLS      271 TOTAL
                     EDM=   .57E-13    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .55511E-10    .45148E-02    .42118E-03** at limit **
   2  Index         2.9557        6.4631        .36345        .18768E-09
   3  Normalizat    1.2405        .37512E-03    .71830E-01   -.48375E-04
   4  Prefactor     .98864        .24827E-03    .46129E-01   -.98739E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.55112e-11
  Index      = 2.95573
  Normalizat = 1.24051
  Prefactor  = 0.988642
 **********
 **   18 **HESSE 
 **********

 FCN=   7603.294     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      304 TOTAL
                     EDM=   .24E-12    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .55511E-10    .12137E-01    .83531E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.9557        5.5470        .50000       -.42120    
   3  Normalizat    1.2405        .61151E-03    .31785E-03   -.85360    
   4  Prefactor     .98864        .40512E-03    .23140E-03   -.93109    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.36703e-13
Minuit parameter uncertainties:
  1  1.30721e-06
  2  4700.86
  3  0.000611511
  4  0.000405119
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/913350': 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) = 7603.29351917
delta logL = -3.09228198603e-11

Extracting fit parameters...

4FGL J1152.3-0839
   Spectrum: PowerLaw
285    Prefactor:  5.551e-11  1.307e-06  0.000e+00  1.000e+06 ( 1.000e-12)
286        Index:  2.956e+00  4.701e+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:  9.886e-01  4.051e-04  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.241e+00  6.115e-04  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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/913350/cmap_HighResolution_699926401_700185601_4FGL_J1152.3-0839_daily_bin1777.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.57e-03', job_status='DONE', photon_flux_upper_limit='7.20e-08', time_completed='2023-03-11 00:47:41.050554', job_id='913350', GAL2='0.99', fit_tolerance='1e-08', EG2='1.24', EG='1.24', time_epoch_completed='1678524461.05', return_code2='102', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.99', dlogl='-3.09e-11', ts2='-0.00', photon_index_error='0.00', photon_index='2.41' WHERE bin_id='1777' AND source_name='4FGL J1152.3-0839' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Mar 11 00:47:41 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0022>
Subject: Job 913350: <4FGL_J1152.3-0839_daily_bin1777> in cluster <slac> Done

Job <4FGL_J1152.3-0839_daily_bin1777> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sat Mar 11 00:35:18 2023
Job was executed on host(s) <bullet0022>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Mar 11 00:35:20 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Mar 11 00:35:20 2023
Terminated at Sat Mar 11 00:47:41 2023
Results reported at Sat Mar 11 00:47:41 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1152.3-0839_daily_bin1777 178.081 -8.6663 699926401 700185601 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 :                                   727.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             334.20 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   741 sec.
    Turnaround time :                            743 sec.

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

