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


Performing analysis on: 4FGL_J1848.5+6537_monthly_bin168
RA = 282.133, Dec = 65.6313
tmin = 672451201, tmax = 675043201
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='645640', job_status='RUN', time_executed='2022-05-24 03:53:21.824154', time_epoch_executed='1653389601.82' WHERE source_name='4FGL J1848.5+6537' and cadence='monthly' and bin_id='168'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/645640

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

Retrieving the FT1 file...

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

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

Retrieving 455 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/645640/ft1_4FGL_J1848.5+6537_monthly_bin168.fits


Retrieving the FT1 file...

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

Retrieving 455 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/645640/ft2_4FGL_J1848.5+6537_monthly_bin168.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/645640/ft1_4FGL_J1848.5+6537_monthly_bin168.fits outfile=/scratch/kocevski/645640/ft1_filteredMKT_4FGL_J1848.5+6537_monthly_bin168.fits ra=282.133 dec=65.6313 rad=12.0 tmin=672451201.0 tmax=675043201.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 29.07
user 28.07
sys 0.89

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/645640/ft2_4FGL_J1848.5+6537_monthly_bin168.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/645640/ft2_4FGL_J1848.5+6537_monthly_bin168.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/645640/ft1_filteredMKT_4FGL_J1848.5+6537_monthly_bin168.fits evtable="EVENTS" outfile="/scratch/kocevski/645640/ft1_filtered_4FGL_J1848.5+6537_monthly_bin168.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.86
user 0.66
sys 0.19

Number of photons that the gtmktime cut: 17906

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/645640/ft1_filtered_4FGL_J1848.5+6537_monthly_bin168.fits" evtable="EVENTS" scfile=/scratch/kocevski/645640/ft2_4FGL_J1848.5+6537_monthly_bin168.fits sctable="SC_DATA" outfile=/scratch/kocevski/645640/ltcube_672451201_675043201_4FGL_J1848.5+6537_monthly_bin168.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/645640/ft2_4FGL_J1848.5+6537_monthly_bin168.fits
.....................!
real 125.62
user 124.82
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/645640/ft1_filtered_4FGL_J1848.5+6537_monthly_bin168.fits evtable="EVENTS" scfile=/scratch/kocevski/645640/ft2_4FGL_J1848.5+6537_monthly_bin168.fits sctable="SC_DATA" expcube=/scratch/kocevski/645640/ltcube_672451201_675043201_4FGL_J1848.5+6537_monthly_bin168.fits outfile=/scratch/kocevski/645640/expmap_672451201_675043201_4FGL_J1848.5+6537_monthly_bin168.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/645640/ltcube_672451201_675043201_4FGL_J1848.5+6537_monthly_bin168.fits
.....................!
real 192.96
user 187.11
sys 5.42

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
Extended source HB 21 in ROI with RadialDisk spatial model.
Extended source FHES J2129.9+5833 in ROI with RadialGaussian spatial model.
Extended source FHES J2208.4+6443 in ROI with RadialGaussian spatial model.
Added 181 point sources and 3 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J1848.5+6537 @ 282.133 65.6313

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/645640/ft1_filtered_4FGL_J1848.5+6537_monthly_bin168.fits scfile=/scratch/kocevski/645640/ft2_4FGL_J1848.5+6537_monthly_bin168.fits outfile=/scratch/kocevski/645640/cmap_672451201_675043201_4FGL_J1848.5+6537_monthly_bin168.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=282.133 yref=65.6313 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.81
user 0.63
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/645640/ft1_filtered_4FGL_J1848.5+6537_monthly_bin168.fits scfile=/scratch/kocevski/645640/ft2_4FGL_J1848.5+6537_monthly_bin168.fits outfile=/scratch/kocevski/645640/cmap_HighResolution_672451201_675043201_4FGL_J1848.5+6537_monthly_bin168.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=282.133 yref=65.6313 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.82
user 0.65
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/645640/ft1_filtered_4FGL_J1848.5+6537_monthly_bin168.fits evtable="EVENTS" scfile=/scratch/kocevski/645640/ft2_4FGL_J1848.5+6537_monthly_bin168.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/645640/Model_4FGL_J1848.5+6537_monthly_bin168.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 FHES J2129.9+5833
adding source FHES J2208.4+6443
adding source GAL_V02
adding source HB 21
Working on...
/scratch/kocevski/645640/ft1_filtered_4FGL_J1848.5+6537_monthly_bin168.fits.....................!
real 1870.12
user 1864.75
sys 1.63

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/645640/ft1_filtered_4FGL_J1848.5+6537_monthly_bin168.fits', '/scratch/kocevski/645640/ft2_4FGL_J1848.5+6537_monthly_bin168.fits', expMap='/scratch/kocevski/645640/expmap_672451201_675043201_4FGL_J1848.5+6537_monthly_bin168.fits', expCube='/scratch/kocevski/645640/ltcube_672451201_675043201_4FGL_J1848.5+6537_monthly_bin168.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/645640/Model_4FGL_J1848.5+6537_monthly_bin168.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1848.5+6537'

4FGL J1848.5+6537
   Spectrum: PowerLaw
351    Prefactor:  3.482e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-15)
352        Index:  1.750e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
353        Scale:  6.537e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/645640/ft1_filtered_4FGL_J1848.5+6537_monthly_bin168.fits
Spacecraft file(s): /scratch/kocevski/645640/ft2_4FGL_J1848.5+6537_monthly_bin168.fits
Exposure map: /scratch/kocevski/645640/expmap_672451201_675043201_4FGL_J1848.5+6537_monthly_bin168.fits
Exposure cube: /scratch/kocevski/645640/ltcube_672451201_675043201_4FGL_J1848.5+6537_monthly_bin168.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/645640/Model_4FGL_J1848.5+6537_monthly_bin168.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) = 181723.670211

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .14021       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .36279       1.0000         .10000E-03   10000.    
     3 'Prefactor '    4.2661       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    3.4499       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .18768E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    3.4044       1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.5762       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10313E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.8984       1.0000         .10000E-03   10000.    
    14 'norm      '    9.9782       1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.1608       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .41445E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    3.7558       1.0000         .10000E-03   10000.    
    18 'Prefactor '    10.429       1.0000         .10000E-03   10000.    
    19 'Prefactor '    23.818       1.0000         .10000E-03   10000.    
    20 'norm      '    .17020       1.0000         .10000E-03   10000.    
    21 'norm      '    1.7641       1.0000         .10000E-03   10000.    
    22 'norm      '    1.0898       1.0000         .10000E-03   10000.    
    23 'norm      '    2.3838       1.0000         .10000E-03   10000.    
    24 'Prefactor '    3.5120       1.0000         .10000E-03   10000.    
    25 'Prefactor '    1.3521       1.0000         .10000E-03   10000.    
    26 'norm      '    3.4915       1.0000         .10000E-03   10000.    
    27 'norm      '    9.1762       1.0000         .10000E-03   10000.    
    28 'norm      '    .47345       1.0000         .10000E-03   10000.    
    29 'Prefactor '    36.939       1.0000         .10000E-03   10000.    
    30 'norm      '    .10446E-03   1.0000         .10000E-03   10000.    
    31 'norm      '    1.0176       1.0000         .10000E-03   10000.    
    32 'Normalizat'    1.1027       1.0000         .10000E-01   10.000    
    33 'Prefactor '    1.0073       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6110E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   181723.6     FROM MIGRAD    STATUS=CONVERGED     96 CALLS     3990 TOTAL
                     EDM=   .62E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .14019        .10497       -.53631E-07    .31818E-03
   2  Prefactor     .36315        .80101       -.17701E-05   -.26392E-02
   3  Prefactor     4.2665        2.2532        .14665E-05   -.16425E-02
   4  Prefactor     .10000E-03    .38297       -.14263E-07** at limit **
   5  Prefactor     .10000E-03    .61577       -.37379E-06** at limit **
   6  Prefactor     .10000E-03    3.4127       -.11087E-05** at limit **
   7  Prefactor     .10000E-03    11.716        .62790E-06** at limit **
   8  norm          3.4499        .58183       -.12053E-07    .31164E-03
   9  Prefactor     .10000E-03    3.6195        .22486E-05** at limit **
  10  norm          3.4041        .91410       -.72916E-08    .63090E-04
  11  Prefactor     1.5767        2.2849        .15994E-05   -.71584E-03
  12  Prefactor     .10000E-03    43.678       -.47001E-06** at limit **
  13  Prefactor     3.9006        1.4034       -.20622E-07    .70971E-04
  14  norm          9.9782        1.7715        .13169E-06    .27829E-02
  15  Prefactor     3.1609        1.0451        .56311E-07    .49176E-03
  16  Prefactor     .10000E-03    5.7110       -.50343E-05** at limit **
  17  Prefactor     3.7537        1.2341       -.27222E-06   -.10962E-02
  18  Prefactor     10.426        1.0153        .17266E-07   -.21329E-03
  19  Prefactor     23.817        1.0030        .13350E-07   -.35494E-03
  20  norm          .17026        .31862       -.51808E-08    .14405E-03
  21  norm          1.7641        .43412       -.19063E-07    .21984E-03
  22  norm          1.0898        .73121       -.32469E-07    .91297E-04
  23  norm          2.3839        1.7301        .18183E-06    .15894E-03
  24  Prefactor     3.5121        1.1376       -.64554E-07    .11614E-02
  25  Prefactor     1.3519        1.1227        .55826E-07    .61567E-04
  26  norm          3.4914        .39275       -.35933E-07    .62566E-03
  27  norm          9.1763        1.0023        .15706E-07   -.37512E-04
  28  norm          .47409        1.1236        .18186E-05    .13788E-04
  29  Prefactor     36.939        1.0166       -.53612E-07    .16014E-02
  30  norm          .10000E-03    1.3197        .12691E-06** at limit **
  31  norm          1.0177        .94349       -.16124E-07    .42218E-04
  32  Normalizat    1.1027        .49976E-01   -.62116E-06    .10817E-03
  33  Prefactor     1.0073        .22741E-01    .28093E-06    .82242E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.140186
  Prefactor  = 0.363146
  Prefactor  = 4.26648
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.44993
  Prefactor  = 0.0001
  norm       = 3.40411
  Prefactor  = 1.57674
  Prefactor  = 0.0001
  Prefactor  = 3.90056
  norm       = 9.97824
  Prefactor  = 3.16088
  Prefactor  = 0.000100002
  Prefactor  = 3.75371
  Prefactor  = 10.4262
  Prefactor  = 23.8168
  norm       = 0.170264
  norm       = 1.76408
  norm       = 1.08981
  norm       = 2.38387
  Prefactor  = 3.51207
  Prefactor  = 1.35194
  norm       = 3.49145
  norm       = 9.17628
  norm       = 0.474089
  Prefactor  = 36.9395
  norm       = 0.0001
  norm       = 1.01767
  Normalizat = 1.10269
  Prefactor  = 1.00725
 **********
 **   18 **HESSE 
 **********

 FCN=   181723.6     FROM HESSE     STATUS=OK           799 CALLS     4789 TOTAL
                     EDM=   .11E-03    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .14019        .99627E-01    .28648E-01   -1.5633    
   2  Prefactor     .36315        1.1069        .10697E-01   -1.5587    
   3  Prefactor     4.2665        2.6942        .48767E-02   -1.5295    
   4  Prefactor     .10000E-03    .36913        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    .59586        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    3.4324        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    11.645        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          3.4499        .58369        .54436E-02   -1.5336    
   9  Prefactor     .10000E-03    .37128        .90712E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          3.4041        .92123        .54816E-02   -1.5339    
  11  Prefactor     1.5767        2.3709        .84607E-02   -1.5457    
  12  Prefactor     .10000E-03    42.364        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     3.9006        1.4845        .51087E-02   -1.5313    
  14  norm          9.9782        1.8218        .31713E-02   -1.5076    
  15  Prefactor     3.1609        3.6297        .56994E-02   -1.5352    
  16  Prefactor     .10000E-03    .59203        .10624       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     3.7537        3.8651        .52082E-02   -1.5320    
  18  Prefactor     10.426        13.671        .31018E-02   -1.5062    
  19  Prefactor     23.817        12.688        .20519E-02   -1.4732    
  20  norm          .17026        .25780        .42479E-01   -1.5625    
  21  norm          1.7641        .43414        .78853E-02   -1.5442    
  22  norm          1.0898        .75658        .11462E-01   -1.5499    
  23  norm          2.3839        1.7560        .66325E-02   -1.5399    
  24  Prefactor     3.5121        3.4156        .53932E-02   -1.5333    
  25  Prefactor     1.3519        1.1364        .94041E-03   -1.5475    
  26  norm          3.4914        .41024        .54097E-02   -1.5334    
  27  norm          9.1763        4.7823        .33076E-02   -1.5102    
  28  norm          .47409        1.9709        .11162E-01   -1.5570    
  29  Prefactor     36.939        5.7352        .16485E-02   -1.4492    
  30  norm          .10000E-03    .11067        .43927E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  norm          1.0177        .95193        .12883E-01   -1.5506    
  32  Normalizat    1.1027        .47747E-01    .84253E-01   -.89666    
  33  Prefactor     1.0073        .20785E-01    .43760E-01   -.92488    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 0.000110252
Minuit parameter uncertainties:
  1  0.0996268
  2  1.107
  3  2.69431
  4  1.89212e-07
  5  1.26621e-06
  6  4.68388e-05
  7  7.26546e-06
  8  0.58369
  9  2.03035e-05
  10  0.92123
  11  2.37104
  12  8.34565e-05
  13  1.48454
  14  1.82182
  15  3.62995
  16  6.3008e-05
  17  3.86535
  18  13.6746
  19  12.6899
  20  0.257798
  21  0.434142
  22  0.756591
  23  1.75606
  24  3.41579
  25  1.13643
  26  0.410241
  27  4.78249
  28  1.93318
  29  5.73525
  30  5.75924e-07
  31  0.951939
  32  0.0477484
  33  0.0207856
Done.

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

Extracting fit parameters...

4FGL J1848.5+6537
   Spectrum: PowerLaw
351    Prefactor:  2.382e+01  1.269e+01  1.000e-04  1.000e+04 ( 1.000e-15)
352        Index:  1.750e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
353        Scale:  6.537e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
604    Prefactor:  1.007e+00  2.079e-02  0.000e+00  1.000e+01 ( 1.000e+00)
605        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
606        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
596   Normalization:  1.103e+00  4.775e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.87
Ra Dec: 282.133 65.631
Photon Index (Fixed Index): 1.75 +/- 0.00
Photon Flux (Fixed Index): 4.74e-09 +/- 2.53e-09
Energy Flux (Fixed Index): 6.62e-06 +/- 3.53e-06

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) = 181723.56109
delta logL = 0.0452558495163

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 181723.558881
delta logL = 0.0474648652307

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   181723.6     FROM MIGRAD    STATUS=FAILED       113 CALLS      331 TOTAL
                     EDM=   .67E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     20.476        48.006        .44267E-03   -.49309E-05
   2  Index         1.8795        1.2663        .27104E-01    .78278E-03
   3  Normalizat    1.1015        .49992E-01    .37323E-03   -.18520E-04
   4  Prefactor     1.0074        .22466E-01    .18181E-03   -.44022E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   181723.6     FROM SIMPLEX   STATUS=UNCHANGED     80 CALLS      411 TOTAL
                     EDM=   .18E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     20.476        48.006        .12231E-03   -1.4803    
   2  Index         1.8795        1.2663        .71769E-03   -.67397    
   3  Normalizat    1.1015        .49992E-01    .80006E-04   -.89704    
   4  Prefactor     1.0074        .22466E-01    .35718E-04   -.92484    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   181723.6     FROM MIGRAD    STATUS=CONVERGED     29 CALLS      440 TOTAL
                     EDM=   .13E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     20.476        15.855        .17707E-04   -.82182E-05
   2  Index         1.8795        .42911        .10842E-02    .30871E-04
   3  Normalizat    1.1015        .47599E-01    .14929E-04   -.19495E-04
   4  Prefactor     1.0074        .22326E-01    .72724E-05   -.50025E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 20.4764
  Index      = 1.87954
  Normalizat = 1.10149
  Prefactor  = 1.00739
 **********
 **   18 **HESSE 
 **********

 FCN=   181723.6     FROM HESSE     STATUS=OK            25 CALLS      465 TOTAL
                     EDM=   .40E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     20.476        15.702        .35414E-05   -1.4803    
   2  Index         1.8795        .42468        .21683E-03   -.67397    
   3  Normalizat    1.1015        .47640E-01    .29858E-05   -.89704    
   4  Prefactor     1.0074        .22346E-01    .14545E-05   -.92484    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.03495e-13
Minuit parameter uncertainties:
  1  15.7055
  2  0.425517
  3  0.0476414
  4  0.022346
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/645640': 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) = 181723.558875
delta logL = 0.0474704946391

Extracting fit parameters...

4FGL J1848.5+6537
   Spectrum: PowerLaw
351    Prefactor:  2.048e+01  1.571e+01  1.000e-04  1.000e+04 ( 1.000e-15)
352        Index:  1.880e+00  4.255e-01  0.000e+00  1.000e+01 (-1.000e+00)
353        Scale:  6.537e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
604    Prefactor:  1.007e+00  2.235e-02  0.000e+00  1.000e+01 ( 1.000e+00)
605        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
606        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
596   Normalization:  1.101e+00  4.764e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.97
Ra Dec: 282.133 65.631
Photon Index (Free Index): 1.88 +/- 0.43
Photon Flux (Free Index): 6.00e-09 +/- 5.40e-09
Energy Flux (Free Index): 5.70e-06 +/- 3.94e-06

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/645640/cmap_HighResolution_672451201_675043201_4FGL_J1848.5+6537_monthly_bin168.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.74e-09', energy_flux2='5.70e-06', photon_flux_error='2.53e-09', dlogl='4.75e-02', energy_flux='6.62e-06', photon_flux2='6.00e-09', job_status='DONE', time_completed='2022-05-24 08:31:40.620047', photon_index_error2='0.43', photon_index2='1.88', ts='7.87', fit_tolerance='1e-08', GAL='1.01', photon_index_error='0.00', energy_flux_error2='3.94e-06', EG='1.10', time_epoch_completed='1653406300.62', return_code='0', job_id='645640', GAL2='1.01', EG2='1.10', return_code2='0', energy_flux_error='3.53e-06', photon_flux_error2='5.40e-09', ts2='7.97', photon_index='1.75' WHERE bin_id='168' AND source_name='4FGL J1848.5+6537' AND cadence='monthly';

Database successfully updated.


Analysis Complete.


Tue May 24 08:31:40 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0231>
Subject: Job 645640: <4FGL_J1848.5+6537_monthly_bin168> in cluster <slac> Done

Job <4FGL_J1848.5+6537_monthly_bin168> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue May 24 03:50:26 2022
Job was executed on host(s) <bullet0231>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue May 24 03:51:38 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue May 24 03:51:38 2022
Terminated at Tue May 24 08:31:42 2022
Results reported at Tue May 24 08:31:42 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1848.5+6537_monthly_bin168 282.133 65.6313 672451201 675043201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1848.5+6537 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   16657.00 sec.
    Max Memory :                                 652 MB
    Average Memory :                             570.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   16804 sec.
    Turnaround time :                            16876 sec.

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

