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


Performing analysis on: 4FGL_J1154.0+4037_monthly_bin169
RA = 178.514, Dec = 40.632
tmin = 675043201, tmax = 677635201
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='166052', job_status='RUN', time_executed='2022-06-23 02:12:19.116292', time_epoch_executed='1655975539.12' WHERE source_name='4FGL J1154.0+4037' and cadence='monthly' and bin_id='169'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/166052

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

Retrieving the FT1 file...

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

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

Retrieving 456 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/166052/ft1_4FGL_J1154.0+4037_monthly_bin169.fits


Retrieving the FT1 file...

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

Retrieving 456 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/166052/ft2_4FGL_J1154.0+4037_monthly_bin169.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/166052/ft1_4FGL_J1154.0+4037_monthly_bin169.fits outfile=/scratch/kocevski/166052/ft1_filteredMKT_4FGL_J1154.0+4037_monthly_bin169.fits ra=178.514 dec=40.632 rad=12.0 tmin=675043201.0 tmax=677635201.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 27.66
user 26.90
sys 0.67

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/166052/ft2_4FGL_J1154.0+4037_monthly_bin169.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/166052/ft2_4FGL_J1154.0+4037_monthly_bin169.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/166052/ft1_filteredMKT_4FGL_J1154.0+4037_monthly_bin169.fits evtable="EVENTS" outfile="/scratch/kocevski/166052/ft1_filtered_4FGL_J1154.0+4037_monthly_bin169.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.85
user 0.67
sys 0.17

Number of photons that the gtmktime cut: 9376

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/166052/ft1_filtered_4FGL_J1154.0+4037_monthly_bin169.fits" evtable="EVENTS" scfile=/scratch/kocevski/166052/ft2_4FGL_J1154.0+4037_monthly_bin169.fits sctable="SC_DATA" outfile=/scratch/kocevski/166052/ltcube_675043201_677635201_4FGL_J1154.0+4037_monthly_bin169.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/166052/ft2_4FGL_J1154.0+4037_monthly_bin169.fits
.....................!
real 132.92
user 132.24
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/166052/ft1_filtered_4FGL_J1154.0+4037_monthly_bin169.fits evtable="EVENTS" scfile=/scratch/kocevski/166052/ft2_4FGL_J1154.0+4037_monthly_bin169.fits sctable="SC_DATA" expcube=/scratch/kocevski/166052/ltcube_675043201_677635201_4FGL_J1154.0+4037_monthly_bin169.fits outfile=/scratch/kocevski/166052/expmap_675043201_677635201_4FGL_J1154.0+4037_monthly_bin169.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/166052/ltcube_675043201_677635201_4FGL_J1154.0+4037_monthly_bin169.fits
.....................!
real 192.57
user 187.59
sys 4.55

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

Setting source of interest to:
4FGL J1154.0+4037 @ 178.514 40.632

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/166052/ft1_filtered_4FGL_J1154.0+4037_monthly_bin169.fits scfile=/scratch/kocevski/166052/ft2_4FGL_J1154.0+4037_monthly_bin169.fits outfile=/scratch/kocevski/166052/cmap_675043201_677635201_4FGL_J1154.0+4037_monthly_bin169.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.514 yref=40.632 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.79
user 0.62
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/166052/ft1_filtered_4FGL_J1154.0+4037_monthly_bin169.fits scfile=/scratch/kocevski/166052/ft2_4FGL_J1154.0+4037_monthly_bin169.fits outfile=/scratch/kocevski/166052/cmap_HighResolution_675043201_677635201_4FGL_J1154.0+4037_monthly_bin169.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.514 yref=40.632 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.80
user 0.61
sys 0.18

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/166052/ft1_filtered_4FGL_J1154.0+4037_monthly_bin169.fits evtable="EVENTS" scfile=/scratch/kocevski/166052/ft2_4FGL_J1154.0+4037_monthly_bin169.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/166052/Model_4FGL_J1154.0+4037_monthly_bin169.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/166052/ft1_filtered_4FGL_J1154.0+4037_monthly_bin169.fits.....................!
real 666.67
user 664.05
sys 1.36

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/166052/ft1_filtered_4FGL_J1154.0+4037_monthly_bin169.fits', '/scratch/kocevski/166052/ft2_4FGL_J1154.0+4037_monthly_bin169.fits', expMap='/scratch/kocevski/166052/expmap_675043201_677635201_4FGL_J1154.0+4037_monthly_bin169.fits', expCube='/scratch/kocevski/166052/ltcube_675043201_677635201_4FGL_J1154.0+4037_monthly_bin169.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/166052/Model_4FGL_J1154.0+4037_monthly_bin169.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1154.0+4037'

4FGL J1154.0+4037
   Spectrum: PowerLaw
347    Prefactor:  8.147e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
348        Index:  2.115e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
349        Scale:  2.078e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/166052/ft1_filtered_4FGL_J1154.0+4037_monthly_bin169.fits
Spacecraft file(s): /scratch/kocevski/166052/ft2_4FGL_J1154.0+4037_monthly_bin169.fits
Exposure map: /scratch/kocevski/166052/expmap_675043201_677635201_4FGL_J1154.0+4037_monthly_bin169.fits
Exposure cube: /scratch/kocevski/166052/ltcube_675043201_677635201_4FGL_J1154.0+4037_monthly_bin169.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/166052/Model_4FGL_J1154.0+4037_monthly_bin169.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 98659.2054764

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    1.3666       1.0000         .10000E-03   10000.    
     3 'Prefactor '    11.209       1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.4037       1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.0850       1.0000         .10000E-03   10000.    
     6 'norm      '    .21515E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.2837       1.0000         .10000E-03   10000.    
     9 'Prefactor '    5.1285       1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.1670       1.0000         .10000E-03   10000.    
    11 'norm      '    2.1429       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10126E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .24454E-02   1.0000         .10000E-03   10000.    
    14 'Prefactor '    7.3294       1.0000         .10000E-03   10000.    
    15 'norm      '    1.8705       1.0000         .10000E-03   10000.    
    16 'norm      '    4.9982       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .63149       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .22817E-02   1.0000         .10000E-03   10000.    
    20 'Prefactor '    13.779       1.0000         .10000E-03   10000.    
    21 'norm      '    27.099       1.0000         .10000E-03   10000.    
    22 'Prefactor '    9.9497       1.0000         .10000E-03   10000.    
    23 'norm      '    4.1704       1.0000         .10000E-03   10000.    
    24 'Prefactor '    1.7913       1.0000         .10000E-03   10000.    
    25 'Prefactor '    1.6301       1.0000         .10000E-03   10000.    
    26 'norm      '    .61049       1.0000         .10000E-03   10000.    
    27 'Prefactor '    5.3988       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .12303E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.0106       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.0810       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6800E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   98658.84     FROM MIGRAD    STATUS=CONVERGED    778 CALLS     3477 TOTAL
                     EDM=   .85E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 10.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.3065        .17270E-06** at limit **
   2  norm          1.3666        .92162E-01   -.64757E-08   -.16963E-02
   3  Prefactor     11.204        3.6848        .11418E-06    .35044E-03
   4  Prefactor     1.4043        1.7270        .20422E-06    .39687E-03
   5  Prefactor     3.0901        14.562       -.31858E-05   -.14791E-03
   6  norm          .10000E-03    2.0715       -.60115E-05** at limit **
   7  norm          .10000E-03    6.3498       -.47840E-06** at limit **
   8  Prefactor     4.2839        .74414        .16466E-08    .64102E-04
   9  Prefactor     5.1288        6.9722        .14968E-07    .15383E-04
  10  Prefactor     2.1689        2.6624        .35599E-06    .47523E-03
  11  norm          2.1430        .58152        .24148E-07    .64819E-03
  12  Prefactor     .10000E-03    .47253       -.18952E-06** at limit **
  13  Prefactor     .10053E-03    .36893        .19370E-05** at limit **
  14  Prefactor     7.3292        8.0078       -.19076E-07   -.26505E-04
  15  norm          1.8702        .28773       -.36441E-07   -.25031E-02
  16  norm          4.9976        1.7422       -.14715E-06   -.71915E-03
  17  Prefactor     .10000E-03    4.1857       -.27482E-06** at limit **
  18  Prefactor     .63150        .56063        .72946E-07    .25608E-03
  19  Prefactor     .10000E-03    12.035       -.15584E-04** at limit **
  20  Prefactor     13.779        4.6560       -.14865E-07    .26165E-03
  21  norm          27.099        .87644        .13350E-07    .41114E-02
  22  Prefactor     9.9455        7.4703        .10055E-06    .33007E-03
  23  norm          4.1704        .77019        .26713E-08    .28857E-03
  24  Prefactor     1.7914        1.2473        .12884E-06    .58322E-03
  25  Prefactor     1.6302        .54546        .77812E-09    .13467E-03
  26  norm          .61051        .96850        .77750E-06    .13679E-02
  27  Prefactor     5.3989        3.7681        .95433E-06    .12023E-02
  28  Prefactor     .10000E-03    .85437       -.37457E-06** at limit **
  29  Normalizat    1.0107        .45612E-01   -.23757E-07    .17894E-02
  30  Prefactor     1.0810        .54391E-01   -.61623E-07    .12690E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 1.36662
  Prefactor  = 11.2042
  Prefactor  = 1.40426
  Prefactor  = 3.09015
  norm       = 0.0001
  norm       = 0.000100002
  Prefactor  = 4.28392
  Prefactor  = 5.12879
  Prefactor  = 2.16886
  norm       = 2.14299
  Prefactor  = 0.0001
  Prefactor  = 0.000100525
  Prefactor  = 7.32923
  norm       = 1.87023
  norm       = 4.9976
  Prefactor  = 0.0001
  Prefactor  = 0.631502
  Prefactor  = 0.0001
  Prefactor  = 13.7791
  norm       = 27.0992
  Prefactor  = 9.94548
  norm       = 4.17042
  Prefactor  = 1.79144
  Prefactor  = 1.63015
  norm       = 0.610509
  Prefactor  = 5.39887
  Prefactor  = 0.0001
  Normalizat = 1.01065
  Prefactor  = 1.08101
 **********
 **   18 **HESSE 
 **********

 FCN=   98658.84     FROM HESSE     STATUS=OK           634 CALLS     4111 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.3129        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.3666        .92604E-01    .23476E-04   -1.5474    
   3  Prefactor     11.204        3.8077        .59832E-03   -1.5038    
   4  Prefactor     1.4043        1.7120        .36604E-03   -1.5471    
   5  Prefactor     3.0901        14.728        .23091E-03   -1.5356    
   6  norm          .10000E-03    .64634        .81729E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    6.4540        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     4.2839        .74139        .99920E-04   -1.5294    
   9  Prefactor     5.1288        6.9469        .17753E-03   -1.5255    
  10  Prefactor     2.1689        2.6313        .27977E-03   -1.5413    
  11  norm          2.1430        .57595        .11554E-03   -1.5415    
  12  Prefactor     .10000E-03    1.8006        .41233E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10053E-03    .39969        .43827E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     7.3292        7.9852        .14815E-03   -1.5166    
  15  norm          1.8702        .28662        .59526E-04   -1.5434    
  16  norm          4.9976        1.7489        .89938E-03   -1.5261    
  17  Prefactor     .10000E-03    4.2559        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .63150        .54819        .20492E-03   -1.5549    
  19  Prefactor     .10000E-03    2.1402        .15467       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     13.779        4.5776        .10790E-03   -1.4965    
  21  norm          27.099        .87616        .50983E-04   -1.4666    
  22  Prefactor     9.9455        7.4643        .12703E-03   -1.5077    
  23  norm          4.1704        .77131        .11237E-03   -1.5300    
  24  Prefactor     1.7914        1.2525        .28488E-03   -1.5440    
  25  Prefactor     1.6302        .54737        .12755E-03   -1.5453    
  26  norm          .61051        1.0779        .41495E-03   -1.5552    
  27  Prefactor     5.3989        4.0650        .86474E-03   -1.5243    
  28  Prefactor     .10000E-03    2.6139        .56485E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    1.0107        .54081E-01    .25706E-03   -.92674    
  30  Prefactor     1.0810        .64167E-01    .30477E-03   -.90076    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.54414e-09
Minuit parameter uncertainties:
  1  1.10426e-05
  2  0.0926036
  3  3.8078
  4  1.71204
  5  13.4977
  6  2.19218e-05
  7  0.000234842
  8  0.741396
  9  6.94796
  10  2.63147
  11  0.575948
  12  2.4621e-05
  13  0.000916371
  14  7.98639
  15  0.286619
  16  1.74888
  17  2.15053e-05
  18  0.548197
  19  2.21682e-05
  20  4.57774
  21  0.87616
  22  7.46495
  23  0.771315
  24  1.25254
  25  0.547372
  26  1.07795
  27  4.06524
  28  4.23038e-05
  29  0.0540835
  30  0.0641715
Done.

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

Extracting fit parameters...

4FGL J1154.0+4037
   Spectrum: PowerLaw
347    Prefactor:  1.000e-04  2.217e-05  1.000e-04  1.000e+04 ( 1.000e-14)
348        Index:  2.115e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
349        Scale:  2.078e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
677    Prefactor:  1.081e+00  6.417e-02  0.000e+00  1.000e+01 ( 1.000e+00)
678        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
679        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
676   Normalization:  1.011e+00  5.408e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 178.514 40.632
Photon Flux Upper Limit: 9.58e-09 ph cm-2 s-1
Energy Flux Upper Limit: 7.25e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/166052/likelihoodResults_675043201_677635201_4FGL_J1154.0+4037_monthly_bin169.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) = 98658.8405134
delta logL = -0.000242699679802

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 98658.8402703
delta logL = 4.5433989726e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10493E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0296       1.0000          .0000       10.000    
     3 'Normalizat'    1.0106       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0810       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6800E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   98658.84     FROM MIGRAD    STATUS=CONVERGED     78 CALLS      275 TOTAL
                     EDM=   .51E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    .13765E-01    .17165    ** at limit **
   2  Index         1.9471        5.6285        .50000        .15325E-04
   3  Normalizat    1.0107        .86641E-04    .45601E-01   -.16275E-03
   4  Prefactor     1.0810        .10635E-03    .68889E-01   -.14389E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00010001
  Index      = 1.94709
  Normalizat = 1.01065
  Prefactor  = 1.08101
 **********
 **   18 **HESSE 
 **********

 FCN=   98658.84     FROM HESSE     STATUS=NOT POSDEF    43 CALLS      318 TOTAL
                     EDM=   .50E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    .13633E-01    .17260       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9471        5.6328        .50000       -.65680    
   3  Normalizat    1.0107        .86372E-04    .25706E-03   -.92674    
   4  Prefactor     1.0810        .10593E-03    .30477E-03   -.90076    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.03596e-10
Minuit parameter uncertainties:
  1  2.31533e-05
  2  5.71085
  3  8.63719e-05
  4  0.000105935
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/166052': 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) = 98658.8402697
delta logL = 1.07233063318e-06

Extracting fit parameters...

4FGL J1154.0+4037
   Spectrum: PowerLaw
347    Prefactor:  1.000e-04  2.315e-05  1.000e-04  1.000e+04 ( 1.000e-14)
348        Index:  1.947e+00  5.711e+00  0.000e+00  1.000e+01 (-1.000e+00)
349        Scale:  2.078e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
677    Prefactor:  1.081e+00  1.059e-04  0.000e+00  1.000e+01 ( 1.000e+00)
678        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
679        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
676   Normalization:  1.011e+00  8.637e-05  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 178.514 40.632

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  2.220e+00 [aplpy.core]
Saving /scratch/kocevski/166052/cmap_HighResolution_675043201_677635201_4FGL_J1154.0+4037_monthly_bin169.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.25e-04', job_status='DONE', photon_flux_upper_limit='9.58e-09', time_completed='2022-06-23 05:17:08.822240', job_id='166052', GAL2='1.08', fit_tolerance='1e-08', EG2='1.01', EG='1.01', time_epoch_completed='1655986628.82', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.08', dlogl='1.07e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.11' WHERE bin_id='169' AND source_name='4FGL J1154.0+4037' AND cadence='monthly';

Database successfully updated.


Analysis Complete.


Thu Jun 23 05:17:08 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0163>
Subject: Job 166052: <4FGL_J1154.0+4037_monthly_bin169> in cluster <slac> Done

Job <4FGL_J1154.0+4037_monthly_bin169> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Thu Jun 23 01:35:32 2022
Job was executed on host(s) <bullet0163>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Jun 23 02:11:07 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Jun 23 02:11:07 2022
Terminated at Thu Jun 23 05:17:10 2022
Results reported at Thu Jun 23 05:17:10 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1154.0+4037_monthly_bin169 178.514 40.632 675043201 677635201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1154.0+4037 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   11051.00 sec.
    Max Memory :                                 633 MB
    Average Memory :                             457.35 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   11162 sec.
    Turnaround time :                            13298 sec.

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

