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


Performing analysis on: 4FGL_J1153.4+4931_weekly_bin759
RA = 178.35, Dec = 49.5169
tmin = 698025601, tmax = 698630401
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='588595', job_status='RUN', time_executed='2023-02-21 03:25:45.743267', time_epoch_executed='1676978745.74' WHERE source_name='4FGL J1153.4+4931' and cadence='weekly' and bin_id='759'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/588595

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/588595/ft1_4FGL_J1153.4+4931_weekly_bin759.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/588595/ft2_4FGL_J1153.4+4931_weekly_bin759.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/588595/ft1_4FGL_J1153.4+4931_weekly_bin759.fits outfile=/scratch/kocevski/588595/ft1_filteredMKT_4FGL_J1153.4+4931_weekly_bin759.fits ra=178.35 dec=49.5169 rad=12.0 tmin=698025601.0 tmax=698630401.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 8.62
user 8.21
sys 0.30

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/588595/ft2_4FGL_J1153.4+4931_weekly_bin759.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/588595/ft2_4FGL_J1153.4+4931_weekly_bin759.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/588595/ft1_filteredMKT_4FGL_J1153.4+4931_weekly_bin759.fits evtable="EVENTS" outfile="/scratch/kocevski/588595/ft1_filtered_4FGL_J1153.4+4931_weekly_bin759.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.60
user 0.37
sys 0.15

Number of photons that the gtmktime cut: 538

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/588595/ft1_filtered_4FGL_J1153.4+4931_weekly_bin759.fits" evtable="EVENTS" scfile=/scratch/kocevski/588595/ft2_4FGL_J1153.4+4931_weekly_bin759.fits sctable="SC_DATA" outfile=/scratch/kocevski/588595/ltcube_698025601_698630401_4FGL_J1153.4+4931_weekly_bin759.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/588595/ft2_4FGL_J1153.4+4931_weekly_bin759.fits
.....................!
real 27.41
user 27.01
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/588595/ft1_filtered_4FGL_J1153.4+4931_weekly_bin759.fits evtable="EVENTS" scfile=/scratch/kocevski/588595/ft2_4FGL_J1153.4+4931_weekly_bin759.fits sctable="SC_DATA" expcube=/scratch/kocevski/588595/ltcube_698025601_698630401_4FGL_J1153.4+4931_weekly_bin759.fits outfile=/scratch/kocevski/588595/expmap_698025601_698630401_4FGL_J1153.4+4931_weekly_bin759.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/588595/ltcube_698025601_698630401_4FGL_J1153.4+4931_weekly_bin759.fits
.....................!
real 190.66
user 185.61
sys 4.70

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 220 point sources and 0 extended sources

Setting source of interest to:
4FGL J1153.4+4931 @ 178.35 49.5169

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/588595/ft1_filtered_4FGL_J1153.4+4931_weekly_bin759.fits scfile=/scratch/kocevski/588595/ft2_4FGL_J1153.4+4931_weekly_bin759.fits outfile=/scratch/kocevski/588595/cmap_698025601_698630401_4FGL_J1153.4+4931_weekly_bin759.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.35 yref=49.5169 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.58
user 0.40
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/588595/ft1_filtered_4FGL_J1153.4+4931_weekly_bin759.fits scfile=/scratch/kocevski/588595/ft2_4FGL_J1153.4+4931_weekly_bin759.fits outfile=/scratch/kocevski/588595/cmap_HighResolution_698025601_698630401_4FGL_J1153.4+4931_weekly_bin759.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.35 yref=49.5169 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.61
user 0.41
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/588595/ft1_filtered_4FGL_J1153.4+4931_weekly_bin759.fits evtable="EVENTS" scfile=/scratch/kocevski/588595/ft2_4FGL_J1153.4+4931_weekly_bin759.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/588595/Model_4FGL_J1153.4+4931_weekly_bin759.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/588595/ft1_filtered_4FGL_J1153.4+4931_weekly_bin759.fits.....................!
real 50.50
user 48.95
sys 1.18

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/588595/ft1_filtered_4FGL_J1153.4+4931_weekly_bin759.fits', '/scratch/kocevski/588595/ft2_4FGL_J1153.4+4931_weekly_bin759.fits', expMap='/scratch/kocevski/588595/expmap_698025601_698630401_4FGL_J1153.4+4931_weekly_bin759.fits', expCube='/scratch/kocevski/588595/ltcube_698025601_698630401_4FGL_J1153.4+4931_weekly_bin759.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/588595/Model_4FGL_J1153.4+4931_weekly_bin759.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1153.4+4931'

4FGL J1153.4+4931
   Spectrum: PowerLaw
362    Prefactor:  3.122e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
363        Index:  2.412e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
364        Scale:  7.717e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/588595/ft1_filtered_4FGL_J1153.4+4931_weekly_bin759.fits
Spacecraft file(s): /scratch/kocevski/588595/ft2_4FGL_J1153.4+4931_weekly_bin759.fits
Exposure map: /scratch/kocevski/588595/expmap_698025601_698630401_4FGL_J1153.4+4931_weekly_bin759.fits
Exposure cube: /scratch/kocevski/588595/ltcube_698025601_698630401_4FGL_J1153.4+4931_weekly_bin759.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/588595/Model_4FGL_J1153.4+4931_weekly_bin759.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) = 5842.78081838

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .58448E-01   1.0000          .0000       .10000E+07
     2 'Prefactor '    .39317E-02   1.0000          .0000       .10000E+07
     3 'norm      '    3.0350       1.0000          .0000       .10000E+07
     4 'Prefactor '    .33975E-03   1.0000          .0000       .10000E+07
     5 'Prefactor '    15.143       1.0000          .0000       .10000E+07
     6 'Prefactor '    .98483E-02   1.0000          .0000       .10000E+07
     7 'norm      '    .11987E-01   1.0000          .0000       .10000E+07
     8 'Prefactor '    .16293E-04   1.0000          .0000       .10000E+07
     9 'Prefactor '    12.397       1.0000          .0000       .10000E+07
    10 'norm      '    8.6087       1.0000          .0000       .10000E+07
    11 'Prefactor '    58.461       1.0000          .0000       .10000E+07
    12 'norm      '    .29141E-02   1.0000          .0000       .10000E+07
    13 'norm      '    .30790       1.0000          .0000       .10000E+07
    14 'norm      '    .25750E-04   1.0000          .0000       .10000E+07
    15 'Prefactor '    .75926E-05   1.0000          .0000       .10000E+07
    16 'Prefactor '    .32293E-02   1.0000          .0000       .10000E+07
    17 'norm      '    .80411E-05   1.0000          .0000       .10000E+07
    18 'Prefactor '    3.3495       1.0000          .0000       .10000E+07
    19 'Prefactor '    .94699E-01   1.0000          .0000       .10000E+07
    20 'norm      '    .40966E-05   1.0000          .0000       .10000E+07
    21 'norm      '    5.5544       1.0000          .0000       .10000E+07
    22 'Prefactor '    2.4170       1.0000          .0000       .10000E+07
    23 'Prefactor '    .90469E-03   1.0000          .0000       .10000E+07
    24 'norm      '    8.1816       1.0000          .0000       .10000E+07
    25 'Prefactor '    12.912       1.0000          .0000       .10000E+07
    26 'norm      '    4.7628       1.0000          .0000       .10000E+07
    27 'Normalizat'    .90816       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .96660       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7050E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5842.766     FROM MIGRAD    STATUS=CONVERGED    181 CALLS     2543 TOTAL
                     EDM=   .54E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .16653E-09    42.421        .21225E-06** at limit **
   2  Prefactor     .38564E-05    11.705       -.96589E-07** at limit **
   3  norm          3.0363        1.8666        .17742E-08    .74227E-04
   4  Prefactor     .18989E-05    14.242        .31160E-07** at limit **
   5  Prefactor     15.092        2.2220       -.32509E-07   -.86198E-02
   6  Prefactor     .29882E-06    11.344       -.76696E-09** at limit **
   7  norm          .33862E-08    12.740       -.80115E-07** at limit **
   8  Prefactor     .55511E-10    1.9168        .24263E-07** at limit **
   9  Prefactor     12.359        4.3712        .50724E-07   -.13876E-01
  10  norm          8.6104        4.5182        .28452E-08   -.81287E-03
  11  Prefactor     58.084        36.666        .19868E-07    .56851E-01
  12  norm          .24203E-07    5.4943        .64026E-07** at limit **
  13  norm          .30881        .66996       -.86288E-08   -.76578E-03
  14  norm          .16653E-09    2.5904        .26230E-07** at limit **
  15  Prefactor     .10220E-06    5.4328       -.20664E-07** at limit **
  16  Prefactor     .10325E-06    18.296        .19045E-06** at limit **
  17  norm          .31086E-08    4.8827       -.19987E-08** at limit **
  18  Prefactor     3.2746        5.0797       -.18372E-06   -.26899E-03
  19  Prefactor     .99533E-01    99.523        .21077E-05** at limit **
  20  norm           .0000        1.0160        .13547E-07** at limit **
  21  norm          5.5354        6.5683        .44424E-07   -.52680E-04
  22  Prefactor     2.1733        2.4038       -.44706E-07    .33808E-02
  23  Prefactor     .44409E-09    4.1503        .17892E-07** at limit **
  24  norm          8.1861        3.7372       -.14564E-07   -.72492E-03
  25  Prefactor     12.918        7.2344       -.59038E-07   -.69910E-01
  26  norm          4.7628        2.2991       -.13606E-08   -.10019E-03
  27  Normalizat    .90896        .18165       -.37258E-06    .14966E-05
  28  Prefactor     .96616        .23016        .24814E-06    .58392E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.66533e-10
  Prefactor  = 3.85642e-06
  norm       = 3.03626
  Prefactor  = 1.89887e-06
  Prefactor  = 15.0925
  Prefactor  = 2.98817e-07
  norm       = 3.38618e-09
  Prefactor  = 5.55112e-11
  Prefactor  = 12.3593
  norm       = 8.6104
  Prefactor  = 58.0836
  norm       = 2.42029e-08
  norm       = 0.308811
  norm       = 1.66533e-10
  Prefactor  = 1.02196e-07
  Prefactor  = 1.03251e-07
  norm       = 3.10862e-09
  Prefactor  = 3.27457
  Prefactor  = 0.0995331
  norm       = 0
  norm       = 5.53536
  Prefactor  = 2.17328
  Prefactor  = 4.44089e-10
  norm       = 8.18614
  Prefactor  = 12.9184
  norm       = 4.76281
  Normalizat = 0.908965
  Prefactor  = 0.966163
 **********
 **   18 **HESSE 
 **********

 FCN=   5842.766     FROM HESSE     STATUS=OK           581 CALLS     3124 TOTAL
                     EDM=   .47E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .16653E-09    42.130        .15218E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .38564E-05    28.634        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          3.0363        1.8761        .58219E-03   -1.5673    
   4  Prefactor     .18989E-05    31.827        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     15.092        15.175        .25712E-03   -1.5630    
   6  Prefactor     .29882E-06    31.081        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .33862E-08    12.855        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .55511E-10    1.9144        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     12.359        22.485        .28424E-03   -1.5638    
  10  norm          8.6104        4.5653        .34140E-03   -1.5649    
  11  Prefactor     58.084        43.276        .13080E-03   -1.5556    
  12  norm          .24203E-07    5.6353        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .30881        .76474        .20826E-02   -1.5697    
  14  norm          .16653E-09    2.5914        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10220E-06    5.9239        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10325E-06    20.836        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .31086E-08    4.8265        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     3.2746        24.520        .55274E-03   -1.5672    
  19  Prefactor     .99533E-01    4.1357        .93887E-02   -1.5702    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm           .0000        1.0028        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          5.5354        8.4437        .42605E-03   -1.5661    
  22  Prefactor     2.1733        68.222        .65814E-03   -1.5678    
  23  Prefactor     .44409E-09    4.1372        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          8.1861        3.7358        .35027E-03   -1.5651    
  25  Prefactor     12.918        14.326        .27851E-03   -1.5636    
  26  norm          4.7628        2.3013        .46079E-03   -1.5664    
  27  Normalizat    .90896        .15788        .45006E-01   -.96146    
  28  Prefactor     .96616        .19578        .45848E-01   -.93866    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.65288e-07
Minuit parameter uncertainties:
  1  0.000154756
  2  0.0210166
  3  1.87615
  4  0.0155482
  5  15.1749
  6  0.00609532
  7  0.000415616
  8  2.31628e-05
  9  22.4855
  10  4.56528
  11  43.2761
  12  0.000738798
  13  0.764743
  14  3.7965e-05
  15  0.00155598
  16  0.0029333
  17  0.000244213
  18  17.9213
  19  1.28318
  20  3.42598e-06
  21  8.44375
  22  24.3531
  23  8.69924e-05
  24  3.73585
  25  14.3258
  26  2.30133
  27  0.157961
  28  0.195921
Done.

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

Extracting fit parameters...

4FGL J1153.4+4931
   Spectrum: PowerLaw
362    Prefactor:  1.022e-07  1.556e-03  0.000e+00  1.000e+06 ( 1.000e-12)
363        Index:  2.412e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
364        Scale:  7.717e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
702    Prefactor:  9.662e-01  1.959e-01  0.000e+00  1.000e+01 ( 1.000e+00)
703        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
704        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
701   Normalization:  9.090e-01  1.580e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 178.350 49.517
Photon Flux Upper Limit: 7.45e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.76e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/588595/likelihoodResults_698025601_698630401_4FGL_J1153.4+4931_weekly_bin759.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) = 5842.76684019
delta logL = -0.00111049211773

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5842.01391205
delta logL = 0.751817650774

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .42717E-03   1.0000          .0000       .10000E+07
     2 'Index     '    7.6629       1.0000          .0000       10.000    
     3 'Normalizat'    .85155       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0147       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7050E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5842.014     FROM MIGRAD    STATUS=CONVERGED    207 CALLS      501 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .40908E-03    .42987E-03    .42118E-04** at limit **
   2  Index         7.6870        .40729        .19339       -.78382E-04
   3  Normalizat    .85151        .15582        .44279E-01   -.10030E-03
   4  Prefactor     1.0149        .19800        .42716E-01   -.55635E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000409075
  Index      = 7.68698
  Normalizat = 0.851512
  Prefactor  = 1.01492
 **********
 **   18 **HESSE 
 **********

 FCN=   5842.014     FROM HESSE     STATUS=OK            35 CALLS      536 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .40908E-03    .80208E-03    .15518E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         7.6870        .99470        .71019E-02   -35.125    
   3  Normalizat    .85151        .18495        .22479E-03   -.98185    
   4  Prefactor     1.0149        .23386        .26564E-03   -.92234    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.18e-09
Minuit parameter uncertainties:
  1  0.000802079
  2  1.00417
  3  0.185086
  4  0.234092
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/588595': 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) = 5842.01389598
delta logL = 0.751833724469

Extracting fit parameters...

4FGL J1153.4+4931
   Spectrum: PowerLaw
362    Prefactor:  4.091e-04  8.021e-04  0.000e+00  1.000e+06 ( 1.000e-12)
363        Index:  7.687e+00  1.004e+00  0.000e+00  1.000e+01 (-1.000e+00)
364        Scale:  7.717e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
702    Prefactor:  1.015e+00  2.341e-01  0.000e+00  1.000e+01 ( 1.000e+00)
703        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
704        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
701   Normalization:  8.515e-01  1.851e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.58
Ra Dec: 178.350 49.517
Photon Index (Free Index): 7.69 +/- 1.00
Photon Flux (Free Index): 4.13e-08 +/- 4.05e-08
Energy Flux (Free Index): 4.83e-06 +/- 4.74e-06

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/588595/cmap_HighResolution_698025601_698630401_4FGL_J1153.4+4931_weekly_bin759.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.76e-03', comment='SUCCESS', energy_flux2='4.83e-06', dlogl='7.52e-01', photon_flux2='4.13e-08', job_status='DONE', time_completed='2023-02-21 03:39:14.634566', photon_index_error2='1.00', photon_index2='7.69', ts='-0.00', fit_tolerance='1e-08', GAL='0.97', photon_index_error='0.00', photon_flux_upper_limit='7.45e-08', energy_flux_error2='4.74e-06', EG='0.91', time_epoch_completed='1676979554.63', return_code='0', job_id='588595', GAL2='1.01', EG2='0.85', return_code2='0', photon_flux_error2='4.05e-08', ts2='1.58', photon_index='2.41' WHERE bin_id='759' AND source_name='4FGL J1153.4+4931' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Feb 21 03:39:14 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0035>
Subject: Job 588595: <4FGL_J1153.4+4931_weekly_bin759> in cluster <slac> Done

Job <4FGL_J1153.4+4931_weekly_bin759> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Feb 21 03:25:27 2023
Job was executed on host(s) <bullet0035>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Feb 21 03:25:28 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Feb 21 03:25:28 2023
Terminated at Tue Feb 21 03:39:15 2023
Results reported at Tue Feb 21 03:39:15 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1153.4+4931_weekly_bin759 178.35 49.5169 698025601 698630401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1153.4+4931 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   808.00 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             298.27 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   826 sec.
    Turnaround time :                            828 sec.

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

