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


Performing analysis on: 4FGL_J1848.5+6537_weekly_bin730
RA = 282.133, Dec = 65.6313
tmin = 680486401, tmax = 681091201
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='659788', job_status='RUN', time_executed='2022-08-02 02:51:40.632324', time_epoch_executed='1659433900.63' WHERE source_name='4FGL J1848.5+6537' and cadence='weekly' and bin_id='730'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/659788

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/659788/ft1_4FGL_J1848.5+6537_weekly_bin730.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/659788/ft2_4FGL_J1848.5+6537_weekly_bin730.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/659788/ft1_4FGL_J1848.5+6537_weekly_bin730.fits outfile=/scratch/kocevski/659788/ft1_filteredMKT_4FGL_J1848.5+6537_weekly_bin730.fits ra=282.133 dec=65.6313 rad=12.0 tmin=680486401.0 tmax=681091201.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 6.45
user 6.05
sys 0.29

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/659788/ft2_4FGL_J1848.5+6537_weekly_bin730.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/659788/ft1_filteredMKT_4FGL_J1848.5+6537_weekly_bin730.fits evtable="EVENTS" outfile="/scratch/kocevski/659788/ft1_filtered_4FGL_J1848.5+6537_weekly_bin730.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.57
user 0.38
sys 0.18

Number of photons that the gtmktime cut: 5649

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/659788/ft1_filtered_4FGL_J1848.5+6537_weekly_bin730.fits" evtable="EVENTS" scfile=/scratch/kocevski/659788/ft2_4FGL_J1848.5+6537_weekly_bin730.fits sctable="SC_DATA" outfile=/scratch/kocevski/659788/ltcube_680486401_681091201_4FGL_J1848.5+6537_weekly_bin730.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/659788/ft2_4FGL_J1848.5+6537_weekly_bin730.fits
.....................!
real 34.64
user 34.15
sys 0.38

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/659788/ft1_filtered_4FGL_J1848.5+6537_weekly_bin730.fits evtable="EVENTS" scfile=/scratch/kocevski/659788/ft2_4FGL_J1848.5+6537_weekly_bin730.fits sctable="SC_DATA" expcube=/scratch/kocevski/659788/ltcube_680486401_681091201_4FGL_J1848.5+6537_weekly_bin730.fits outfile=/scratch/kocevski/659788/expmap_680486401_681091201_4FGL_J1848.5+6537_weekly_bin730.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/659788/ltcube_680486401_681091201_4FGL_J1848.5+6537_weekly_bin730.fits
.....................!
real 193.57
user 186.65
sys 5.65

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/659788/ft1_filtered_4FGL_J1848.5+6537_weekly_bin730.fits scfile=/scratch/kocevski/659788/ft2_4FGL_J1848.5+6537_weekly_bin730.fits outfile=/scratch/kocevski/659788/cmap_680486401_681091201_4FGL_J1848.5+6537_weekly_bin730.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.62
user 0.44
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/659788/ft1_filtered_4FGL_J1848.5+6537_weekly_bin730.fits scfile=/scratch/kocevski/659788/ft2_4FGL_J1848.5+6537_weekly_bin730.fits outfile=/scratch/kocevski/659788/cmap_HighResolution_680486401_681091201_4FGL_J1848.5+6537_weekly_bin730.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.61
user 0.43
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/659788/ft1_filtered_4FGL_J1848.5+6537_weekly_bin730.fits evtable="EVENTS" scfile=/scratch/kocevski/659788/ft2_4FGL_J1848.5+6537_weekly_bin730.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/659788/Model_4FGL_J1848.5+6537_weekly_bin730.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/659788/ft1_filtered_4FGL_J1848.5+6537_weekly_bin730.fits.....................!
real 585.89
user 583.28
sys 1.32

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/659788/ft1_filtered_4FGL_J1848.5+6537_weekly_bin730.fits', '/scratch/kocevski/659788/ft2_4FGL_J1848.5+6537_weekly_bin730.fits', expMap='/scratch/kocevski/659788/expmap_680486401_681091201_4FGL_J1848.5+6537_weekly_bin730.fits', expCube='/scratch/kocevski/659788/ltcube_680486401_681091201_4FGL_J1848.5+6537_weekly_bin730.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/659788/Model_4FGL_J1848.5+6537_weekly_bin730.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/659788/ft1_filtered_4FGL_J1848.5+6537_weekly_bin730.fits
Spacecraft file(s): /scratch/kocevski/659788/ft2_4FGL_J1848.5+6537_weekly_bin730.fits
Exposure map: /scratch/kocevski/659788/expmap_680486401_681091201_4FGL_J1848.5+6537_weekly_bin730.fits
Exposure cube: /scratch/kocevski/659788/ltcube_680486401_681091201_4FGL_J1848.5+6537_weekly_bin730.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/659788/Model_4FGL_J1848.5+6537_weekly_bin730.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) = 57437.043242

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    6.6029       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .14532       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    13.154       1.0000         .10000E-03   10000.    
     7 'Prefactor '    28.032       1.0000         .10000E-03   10000.    
     8 'norm      '    4.4626       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .42623E-02   1.0000         .10000E-03   10000.    
    10 'norm      '    2.5793       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.2979       1.0000         .10000E-03   10000.    
    14 'norm      '    5.1049       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.3969       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    2.1672       1.0000         .10000E-03   10000.    
    21 'norm      '    2.0036       1.0000         .10000E-03   10000.    
    22 'norm      '    .10197E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    9.2861       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .20871E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    2.2717       1.0000         .10000E-03   10000.    
    26 'norm      '    2.0949       1.0000         .10000E-03   10000.    
    27 'norm      '    10.030       1.0000         .10000E-03   10000.    
    28 'norm      '    .94939       1.0000         .10000E-03   10000.    
    29 'Prefactor '    13.340       1.0000         .10000E-03   10000.    
    30 'norm      '    1.6846       1.0000         .10000E-03   10000.    
    31 'norm      '    .12302       1.0000         .10000E-03   10000.    
    32 'Normalizat'    1.1453       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .96134       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.

 FCN=   57436.96     FROM MIGRAD    STATUS=CONVERGED    911 CALLS     4053 TOTAL
                     EDM=   .84E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    .58654E-01     .0000    ** at limit **
   2  Prefactor     6.6021        3.3903         .0000        .39084E-02
   3  Prefactor     .14845        1.1974         .0000        .35241E-02
   4  Prefactor     .10000E-03    .82031         .0000    ** at limit **
   5  Prefactor     .10000E-03    1.9635         .0000    ** at limit **
   6  Prefactor     13.156        15.315         .0000       -.10772E-03
   7  Prefactor     28.034        24.773         .0000       -.14420E-02
   8  norm          4.4625        1.0736         .0000        .29822E-03
   9  Prefactor     .10011E-03    1.1550         .0000    ** at limit **
  10  norm          2.5790        1.5307         .0000        .36643E-02
  11  Prefactor     .10000E-03    8.8336         .0000    ** at limit **
  12  Prefactor     .10001E-03    12.630         .0000    ** at limit **
  13  Prefactor     4.2985        2.4891         .0000        .55635E-01
  14  norm          5.1049        2.5358         .0000       -.41330E-02
  15  Prefactor     .10001E-03    9.2997         .0000    ** at limit **
  16  Prefactor     2.3985        5.0885         .0000        .99735E-03
  17  Prefactor     .10000E-03    4.0980         .0000    ** at limit **
  18  Prefactor     .10001E-03    35.901         .0000    ** at limit **
  19  Prefactor     .10000E-03    6.9866         .0000    ** at limit **
  20  norm          2.1673        1.0202         .0000        .16451E-03
  21  norm          2.0036        .71955         .0000       -.26088E-03
  22  norm          .10000E-03    .50777         .0000    ** at limit **
  23  norm          9.2865        4.1644         .0000       -.67965E-02
  24  Prefactor     .10001E-03    1.7026         .0000    ** at limit **
  25  Prefactor     2.2713        2.1461         .0000        .13333    
  26  norm          2.0948        .57719         .0000        .64157E-03
  27  norm          10.030        14.474         .0000        .74989E-04
  28  norm          .95026        4.0300         .0000        .88246E-01
  29  Prefactor     13.337        8.0551         .0000        .27979E-02
  30  norm          1.6848        1.1528         .0000        .33826E-02
  31  norm          .12292        .77144         .0000        .34496E-02
  32  Normalizat    1.1454        .83410E-01     .0000        .23969E-03
  33  Prefactor     .96133        .36210E-01     .0000        .19344E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 6.6021
  Prefactor  = 0.148445
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.1558
  Prefactor  = 28.034
  norm       = 4.46247
  Prefactor  = 0.000100107
  norm       = 2.57901
  Prefactor  = 0.0001
  Prefactor  = 0.00010001
  Prefactor  = 4.29854
  norm       = 5.10489
  Prefactor  = 0.000100006
  Prefactor  = 2.39848
  Prefactor  = 0.0001
  Prefactor  = 0.000100007
  Prefactor  = 0.0001
  norm       = 2.16731
  norm       = 2.00361
  norm       = 0.0001
  norm       = 9.28649
  Prefactor  = 0.000100009
  Prefactor  = 2.27135
  norm       = 2.09482
  norm       = 10.0301
  norm       = 0.950256
  Prefactor  = 13.3374
  norm       = 1.68475
  norm       = 0.122916
  Normalizat = 1.14538
  Prefactor  = 0.961329
 **********
 **   18 **HESSE 
 **********

 FCN=   57436.96     FROM HESSE     STATUS=OK           733 CALLS     4786 TOTAL
                     EDM=   .37E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    .11160        .10987E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     6.6021        3.3739        .15617E-03   -1.5194    
   3  Prefactor     .14845        1.2141        .93216E-01   -1.5631    
   4  Prefactor     .10000E-03    .83317        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    2.0038        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     13.156        15.298        .11044E-03   -1.4982    
   7  Prefactor     28.034        24.785        .75668E-04   -1.4649    
   8  norm          4.4625        1.0720        .11606E-03   -1.5285    
   9  Prefactor     .10011E-03    1.6705        .75562E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          2.5790        1.5166        .21110E-03   -1.5387    
  11  Prefactor     .10000E-03    9.1984        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10001E-03    12.638        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     4.2985        2.4790        .97163E-03   -1.5293    
  14  norm          5.1049        2.5348        .17795E-03   -1.5256    
  15  Prefactor     .10001E-03    9.6795        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     2.3985        5.0772        .26450E-03   -1.5398    
  17  Prefactor     .10000E-03    4.1802        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10001E-03    36.206        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    6.9889        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          2.1673        1.0193        .27975E-04   -1.5414    
  21  norm          2.0036        .72047        .11867E-03   -1.5425    
  22  norm          .10000E-03    1.3860        .32440E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          9.2865        4.0659        .13152E-03   -1.5098    
  24  Prefactor     .10001E-03    16.139        .58928E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     2.2713        2.1314        .13623E-02   -1.5407    
  26  norm          2.0948        .57275        .89599E-04   -1.5418    
  27  norm          10.030        14.495        .12652E-03   -1.5074    
  28  norm          .95026        3.9727        .25971E-02   -1.5513    
  29  Prefactor     13.337        7.9930        .54834E-03   -1.4977    
  30  norm          1.6848        1.1463        .20201E-03   -1.5448    
  31  norm          .12292        .88993        .81146E-01   -1.5638    
  32  Normalizat    1.1454        .93861E-01    .36150E-03   -.88308    
  33  Prefactor     .96133        .41182E-01    .18107E-03   -.94030    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.7087e-08
Minuit parameter uncertainties:
  1  9.15175e-09
  2  3.37398
  3  0.848795
  4  5.95213e-07
  5  1.5354e-06
  6  15.3021
  7  24.7942
  8  1.07202
  9  0.000846895
  10  1.51664
  11  1.81831e-05
  12  0.000707859
  13  2.47905
  14  2.53485
  15  0.000467228
  16  5.07809
  17  1.4526e-05
  18  0.00101037
  19  0.000103618
  20  1.01935
  21  0.720472
  22  1.4611e-06
  23  4.06602
  24  0.000765723
  25  2.13143
  26  0.572752
  27  14.5005
  28  3.88617
  29  7.99363
  30  1.14634
  31  0.661215
  32  0.0938745
  33  0.041183
Done.

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

Extracting fit parameters...

4FGL J1848.5+6537
   Spectrum: PowerLaw
351    Prefactor:  1.000e-04  1.036e-04  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:  9.613e-01  4.118e-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.145e+00  9.387e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 282.133 65.631
Photon Flux Upper Limit: 7.63e-09 ph cm-2 s-1
Energy Flux Upper Limit: 5.60e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/659788/likelihoodResults_680486401_681091201_4FGL_J1848.5+6537_weekly_bin730.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) = 57436.9587425
delta logL = -0.000681999219523

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 57436.9580608
delta logL = -3.09744791593e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10752E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.7220       1.0000          .0000       10.000    
     3 'Normalizat'    1.1454       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96133       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   57436.96     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      245 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10039E-03    27.163        .18142E-02** at limit **
   2  Index         1.6864        5.9354        .50000        .25306E-04
   3  Normalizat    1.1454        .41803E-02    .36150E-03   -.28178E-04
   4  Prefactor     .96133        .19499E-02    .18107E-03   -.65900E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100393
  Index      = 1.68644
  Normalizat = 1.14538
  Prefactor  = 0.961329
 **********
 **   18 **HESSE 
 **********

 FCN=   57436.96     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      274 TOTAL
                     EDM=   .60E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10039E-03    131.16        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.6864        7.6901        .50000       -.72443    
   3  Normalizat    1.1454        .93383E-02    .14460E-04   -.88308    
   4  Prefactor     .96133        .43558E-02    .36214E-04   -.94030    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.00959e-09
Minuit parameter uncertainties:
  1  0.0143955
  2  151.806
  3  0.00933836
  4  0.00435581
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/659788': 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) = 57436.9580601
delta logL = 4.36564732809e-07

Extracting fit parameters...

4FGL J1848.5+6537
   Spectrum: PowerLaw
351    Prefactor:  1.004e-04  1.440e-02  1.000e-04  1.000e+04 ( 1.000e-15)
352        Index:  1.686e+00  1.518e+02  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:  9.613e-01  4.356e-03  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.145e+00  9.338e-03  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 282.133 65.631

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/659788/cmap_HighResolution_680486401_681091201_4FGL_J1848.5+6537_weekly_bin730.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.60e-04', job_status='DONE', photon_flux_upper_limit='7.63e-09', time_completed='2022-08-02 04:40:30.993274', job_id='659788', GAL2='0.96', fit_tolerance='1e-08', EG2='1.15', EG='1.15', time_epoch_completed='1659440430.99', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.96', dlogl='4.37e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.75' WHERE bin_id='730' AND source_name='4FGL J1848.5+6537' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Aug  2 04:40:31 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0266>
Subject: Job 659788: <4FGL_J1848.5+6537_weekly_bin730> in cluster <slac> Done

Job <4FGL_J1848.5+6537_weekly_bin730> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Tue Aug  2 00:07:01 2022
Job was executed on host(s) <bullet0266>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug  2 02:50:00 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Aug  2 02:50:00 2022
Terminated at Tue Aug  2 04:40:32 2022
Results reported at Tue Aug  2 04:40:32 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1848.5+6537_weekly_bin730 282.133 65.6313 680486401 681091201 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 :                                   6518.00 sec.
    Max Memory :                                 1262 MB
    Average Memory :                             400.35 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   6631 sec.
    Turnaround time :                            16411 sec.

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

