aklog: Couldn't determine realm of user:aklog: unknown RPC error (-1765328189)  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 2 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 = 17186
number of fields = 29
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1539.6+2743_weekly_bin252
RA = 234.902, Dec = 27.7277
tmin = 391392001, tmax = 391996801
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='117217', job_status='RUN', time_executed='2021-07-23 13:26:28.204201', time_epoch_executed='1627071988.2' WHERE source_name='4FGL J1539.6+2743' and cadence='weekly' and bin_id='252'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/117217

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/117217/ft1_4FGL_J1539.6+2743_weekly_bin252.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/117217/ft2_4FGL_J1539.6+2743_weekly_bin252.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/117217/ft1_4FGL_J1539.6+2743_weekly_bin252.fits outfile=/scratch/kocevski/117217/ft1_filteredMKT_4FGL_J1539.6+2743_weekly_bin252.fits ra=234.902 dec=27.7277 rad=12.0 tmin=391392001.0 tmax=391996801.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 8.22
user 7.82
sys 0.33

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/117217/ft2_4FGL_J1539.6+2743_weekly_bin252.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/117217/ft2_4FGL_J1539.6+2743_weekly_bin252.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/117217/ft1_filteredMKT_4FGL_J1539.6+2743_weekly_bin252.fits evtable="EVENTS" outfile="/scratch/kocevski/117217/ft1_filtered_4FGL_J1539.6+2743_weekly_bin252.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.55
user 0.38
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/117217/ft1_filtered_4FGL_J1539.6+2743_weekly_bin252.fits" evtable="EVENTS" scfile=/scratch/kocevski/117217/ft2_4FGL_J1539.6+2743_weekly_bin252.fits sctable="SC_DATA" outfile=/scratch/kocevski/117217/ltcube_391392001_391996801_4FGL_J1539.6+2743_weekly_bin252.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/117217/ft2_4FGL_J1539.6+2743_weekly_bin252.fits
.....................!
real 30.98
user 30.04
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/117217/ft1_filtered_4FGL_J1539.6+2743_weekly_bin252.fits evtable="EVENTS" scfile=/scratch/kocevski/117217/ft2_4FGL_J1539.6+2743_weekly_bin252.fits sctable="SC_DATA" expcube=/scratch/kocevski/117217/ltcube_391392001_391996801_4FGL_J1539.6+2743_weekly_bin252.fits outfile=/scratch/kocevski/117217/expmap_391392001_391996801_4FGL_J1539.6+2743_weekly_bin252.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/117217/ltcube_391392001_391996801_4FGL_J1539.6+2743_weekly_bin252.fits
.....................!
real 192.36
user 186.43
sys 5.35

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

Setting source of interest to:
4FGL J1539.6+2743 @ 234.902 27.7277

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/117217/ft1_filtered_4FGL_J1539.6+2743_weekly_bin252.fits scfile=/scratch/kocevski/117217/ft2_4FGL_J1539.6+2743_weekly_bin252.fits outfile=/scratch/kocevski/117217/cmap_391392001_391996801_4FGL_J1539.6+2743_weekly_bin252.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=234.902 yref=27.7277 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.59
user 0.42
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/117217/ft1_filtered_4FGL_J1539.6+2743_weekly_bin252.fits scfile=/scratch/kocevski/117217/ft2_4FGL_J1539.6+2743_weekly_bin252.fits outfile=/scratch/kocevski/117217/cmap_HighResolution_391392001_391996801_4FGL_J1539.6+2743_weekly_bin252.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=234.902 yref=27.7277 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.60
user 0.42
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/117217/ft1_filtered_4FGL_J1539.6+2743_weekly_bin252.fits evtable="EVENTS" scfile=/scratch/kocevski/117217/ft2_4FGL_J1539.6+2743_weekly_bin252.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/117217/Model_4FGL_J1539.6+2743_weekly_bin252.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/117217/ft1_filtered_4FGL_J1539.6+2743_weekly_bin252.fits.....................!
real 97.83
user 96.36
sys 1.17

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/117217/ft1_filtered_4FGL_J1539.6+2743_weekly_bin252.fits', '/scratch/kocevski/117217/ft2_4FGL_J1539.6+2743_weekly_bin252.fits', expMap='/scratch/kocevski/117217/expmap_391392001_391996801_4FGL_J1539.6+2743_weekly_bin252.fits', expCube='/scratch/kocevski/117217/ltcube_391392001_391996801_4FGL_J1539.6+2743_weekly_bin252.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/117217/Model_4FGL_J1539.6+2743_weekly_bin252.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1539.6+2743'

4FGL J1539.6+2743
   Spectrum: PowerLaw
263    Prefactor:  1.011e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
264        Index:  2.330e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
265        Scale:  9.412e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/117217/ft1_filtered_4FGL_J1539.6+2743_weekly_bin252.fits
Spacecraft file(s): /scratch/kocevski/117217/ft2_4FGL_J1539.6+2743_weekly_bin252.fits
Exposure map: /scratch/kocevski/117217/expmap_391392001_391996801_4FGL_J1539.6+2743_weekly_bin252.fits
Exposure cube: /scratch/kocevski/117217/ltcube_391392001_391996801_4FGL_J1539.6+2743_weekly_bin252.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/117217/Model_4FGL_J1539.6+2743_weekly_bin252.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) = 14627.4136906

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.0068       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    5.0859       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    8.3902       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .12140       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.3146       1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.8608       1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.4468       1.0000         .10000E-03   10000.    
    16 'Normalizat'    1.1560       1.0000         .10000E-01   10.000    
    17 'Prefactor '    .82527       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5680E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   14626.34     FROM MIGRAD    STATUS=CONVERGED    344 CALLS     1403 TOTAL
                     EDM=   .28E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.0069        4.4294         .0000        .12807E-01
   2  Prefactor     .10000E-03    23.787         .0000    ** at limit **
   3  Prefactor     .10000E-03    17.344         .0000    ** at limit **
   4  Prefactor     .10000E-03    3.4912         .0000    ** at limit **
   5  norm          5.0858        .97289         .0000       -.16685E-02
   6  Prefactor     .10000E-03    2.5916         .0000    ** at limit **
   7  Prefactor     .10000E-03    6.2548         .0000    ** at limit **
   8  Prefactor     .10000E-03    6.0932         .0000    ** at limit **
   9  norm          8.3899        8.2391         .0000        .18866E-03
  10  Prefactor     .12151        .49535         .0000        .17248E-02
  11  Prefactor     .10000E-03    40.655         .0000    ** at limit **
  12  Prefactor     .10000E-03    7.2964         .0000    ** at limit **
  13  Prefactor     3.3147        5.4845         .0000        .13925E-01
  14  Prefactor     2.8607        1.7165         .0000        .49536E-03
  15  Prefactor     2.4468        6.1829         .0000        .14205E-01
  16  Normalizat    1.1560        .12002         .0000       -.14835E-03
  17  Prefactor     .82527        .82316E-01     .0000       -.53122E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.00687
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.08582
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 8.38987
  Prefactor  = 0.121511
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.31474
  Prefactor  = 2.86073
  Prefactor  = 2.4468
  Normalizat = 1.156
  Prefactor  = 0.825269
 **********
 **   18 **HESSE 
 **********

 FCN=   14626.34     FROM HESSE     STATUS=OK           225 CALLS     1628 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.0069        4.4240        .10074E-02   -1.5308    
   2  Prefactor     .10000E-03    23.885        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    17.413        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    3.5425        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          5.0858        .97685        .49517E-04   -1.5257    
   6  Prefactor     .10000E-03    2.6140        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    6.2622        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    6.1051        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          8.3899        8.2317        .13840E-03   -1.5129    
  10  Prefactor     .12151        2.9581        .16200E-02   -1.5638    
  11  Prefactor     .10000E-03    41.513        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    7.3077        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     3.3147        5.4763        .11118E-02   -1.5344    
  14  Prefactor     2.8607        1.7147        .11871E-03   -1.5370    
  15  Prefactor     2.4468        6.1730        .13076E-02   -1.5395    
  16  Normalizat    1.1560        .14227        .25160E-03   -.87974    
  17  Prefactor     .82527        .97898E-01    .20367E-03   -.98804    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.19392e-09
Minuit parameter uncertainties:
  1  4.42432
  2  3.65045e-05
  3  7.02519e-05
  4  3.11117e-06
  5  0.976849
  6  1.03516e-07
  7  1.89693e-06
  8  5.55945e-06
  9  8.23286
  10  1.19864
  11  7.74252e-05
  12  2.70433e-05
  13  5.47712
  14  1.71469
  15  6.17461
  16  0.142321
  17  0.0979189
Done.

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

Extracting fit parameters...

4FGL J1539.6+2743
   Spectrum: PowerLaw
263    Prefactor:  1.215e-01  1.199e+00  1.000e-04  1.000e+04 ( 1.000e-12)
264        Index:  2.330e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
265        Scale:  9.412e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
565    Prefactor:  8.253e-01  9.792e-02  0.000e+00  1.000e+01 ( 1.000e+00)
566        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
567        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
564   Normalization:  1.156e+00  1.423e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.01
Ra Dec: 234.902 27.728
Photon Flux Upper Limit: 4.50e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.46e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/117217/likelihoodResults_391392001_391996801_4FGL_J1539.6+2743_weekly_bin252.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) = 14626.3427038
delta logL = 7.58518581279e-10

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 14626.3427038
delta logL = 1.75350578502e-09

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   14626.34     FROM MIGRAD    STATUS=CONVERGED     78 CALLS      247 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .12293        1.2486        .49639E-01    .15519E-02
   2  Index         2.2904        1.4722        .50000       -.16027E-04
   3  Normalizat    1.1561        .48588E-02    .56893E-01    .74999E-04
   4  Prefactor     .82522        .33992E-02    .44045E-01   -.77948E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.122925
  Index      = 2.29037
  Normalizat = 1.15611
  Prefactor  = 0.825219
 **********
 **   18 **HESSE 
 **********

 FCN=   14626.34     FROM HESSE     STATUS=OK            35 CALLS      282 TOTAL
                     EDM=   .19E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .12293        5.1033        .16509E-02   -1.5638    
   2  Index         2.2904        7.1748        .26441E-01   -.57273    
   3  Normalizat    1.1561        .14188        .25159E-03   -.87970    
   4  Prefactor     .82522        .97785E-01    .20368E-03   -.98805    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.91732e-07
Minuit parameter uncertainties:
  1  1.58358
  2  12.199
  3  0.141929
  4  0.097806
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/117217': 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) = 14626.3426976
delta logL = 6.2174804043e-06

Extracting fit parameters...

4FGL J1539.6+2743
   Spectrum: PowerLaw
263    Prefactor:  1.229e-01  1.584e+00  1.000e-04  1.000e+04 ( 1.000e-12)
264        Index:  2.290e+00  1.220e+01  0.000e+00  1.000e+01 (-1.000e+00)
265        Scale:  9.412e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
565    Prefactor:  8.252e-01  9.781e-02  0.000e+00  1.000e+01 ( 1.000e+00)
566        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
567        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
564   Normalization:  1.156e+00  1.419e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.01
Ra Dec: 234.902 27.728

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/117217/cmap_HighResolution_391392001_391996801_4FGL_J1539.6+2743_weekly_bin252.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.46e-03', job_status='DONE', photon_flux_upper_limit='4.50e-08', time_completed='2021-07-23 13:41:22.582294', job_id='117217', GAL2='0.83', fit_tolerance='1e-08', EG2='1.16', EG='1.16', time_epoch_completed='1627072882.58', return_code2='0', ts='0.01', comment='SUCCESS', return_code='0', GAL='0.83', dlogl='6.22e-06', ts2='0.01', photon_index_error='0.00', photon_index='2.33' WHERE bin_id='252' AND source_name='4FGL J1539.6+2743' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Fri Jul 23 13:41:22 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0181>
Subject: Job 117217: <4FGL_J1539.6+2743_weekly_bin252> in cluster <slac> Done

Job <4FGL_J1539.6+2743_weekly_bin252> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Fri Jul 23 13:25:49 2021
Job was executed on host(s) <bullet0181>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Jul 23 13:26:17 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Jul 23 13:26:17 2021
Terminated at Fri Jul 23 13:41:23 2021
Results reported at Fri Jul 23 13:41:23 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1539.6+2743_weekly_bin252 234.902 27.7277 391392001 391996801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1539.6+2743 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   880.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             331.39 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   905 sec.
    Turnaround time :                            934 sec.

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

