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 43 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_J1535.8-4730_weekly_bin730
RA = 233.959, Dec = -47.5085
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='659401', job_status='RUN', time_executed='2022-08-02 02:09:29.145825', time_epoch_executed='1659431369.15' WHERE source_name='4FGL J1535.8-4730' and cadence='weekly' and bin_id='730'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/659401

Creating custom pfile directory:
/scratch/kocevski/659401/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/659401/ft1_4FGL_J1535.8-4730_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/659401/ft2_4FGL_J1535.8-4730_weekly_bin730.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/659401/ft1_4FGL_J1535.8-4730_weekly_bin730.fits outfile=/scratch/kocevski/659401/ft1_filteredMKT_4FGL_J1535.8-4730_weekly_bin730.fits ra=233.959 dec=-47.5085 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.31
user 6.02
sys 0.25

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/659401/ft2_4FGL_J1535.8-4730_weekly_bin730.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/659401/ft2_4FGL_J1535.8-4730_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/659401/ft1_filteredMKT_4FGL_J1535.8-4730_weekly_bin730.fits evtable="EVENTS" outfile="/scratch/kocevski/659401/ft1_filtered_4FGL_J1535.8-4730_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: 12803

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/659401/ft1_filtered_4FGL_J1535.8-4730_weekly_bin730.fits" evtable="EVENTS" scfile=/scratch/kocevski/659401/ft2_4FGL_J1535.8-4730_weekly_bin730.fits sctable="SC_DATA" outfile=/scratch/kocevski/659401/ltcube_680486401_681091201_4FGL_J1535.8-4730_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/659401/ft2_4FGL_J1535.8-4730_weekly_bin730.fits
.....................!
real 33.74
user 33.13
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/659401/ft1_filtered_4FGL_J1535.8-4730_weekly_bin730.fits evtable="EVENTS" scfile=/scratch/kocevski/659401/ft2_4FGL_J1535.8-4730_weekly_bin730.fits sctable="SC_DATA" expcube=/scratch/kocevski/659401/ltcube_680486401_681091201_4FGL_J1535.8-4730_weekly_bin730.fits outfile=/scratch/kocevski/659401/expmap_680486401_681091201_4FGL_J1535.8-4730_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/659401/ltcube_680486401_681091201_4FGL_J1535.8-4730_weekly_bin730.fits
.....................!
real 194.27
user 187.19
sys 6.22

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 FGES J1553.8-5325 in ROI with RadialDisk spatial model.
Extended source HESS J1614-518 in ROI with RadialDisk spatial model.
Extended source HESS J1616-508 in ROI with RadialDisk spatial model.
Extended source MSH 15-52 in ROI with RadialDisk spatial model.
Extended source HESS J1534-571 in ROI with RadialDisk spatial model.
Extended source MSH 15-56 PWN in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/MSH15-56_PWN.fits is the correct path to the extended template.
Extended source MSH 15-56 SNR in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/MSH15-56_SNRmask.fits is the correct path to the extended template.
Extended source FGES J1631.6-4756 in ROI with RadialDisk spatial model.
Extended source FGES J1633.0-4746 in ROI with RadialDisk spatial model.
Extended source G337.0-0.1 in ROI with RadialDisk spatial model.
Extended source FHES J1642.1-5428 in ROI with RadialDisk spatial model.
Extended source FGES J1652.2-4633 in ROI with RadialDisk spatial model.
Extended source HESS J1420-607 in ROI with RadialDisk spatial model.
Extended source RCW 86 in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/RCW86.fits is the correct path to the extended template.
Extended source FHES J1501.0-6310 in ROI with RadialGaussian spatial model.
Extended source HESS J1507-622 in ROI with RadialDisk spatial model.
Extended source FGES J1655.5-4737 in ROI with RadialDisk spatial model.
Extended source HESS J1356-645 in ROI with RadialDisk spatial model.
Extended source FGES J1409.1-6121 in ROI with RadialDisk spatial model.
Extended source RX J1713.7-3946 in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/RXJ1713_2016_250GeV.fits is the correct path to the extended template.
Added 441 point sources and 20 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 J1535.8-4730 @ 233.959 -47.5085

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/659401/ft1_filtered_4FGL_J1535.8-4730_weekly_bin730.fits scfile=/scratch/kocevski/659401/ft2_4FGL_J1535.8-4730_weekly_bin730.fits outfile=/scratch/kocevski/659401/cmap_680486401_681091201_4FGL_J1535.8-4730_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=233.959 yref=-47.5085 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.46
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/659401/ft1_filtered_4FGL_J1535.8-4730_weekly_bin730.fits scfile=/scratch/kocevski/659401/ft2_4FGL_J1535.8-4730_weekly_bin730.fits outfile=/scratch/kocevski/659401/cmap_HighResolution_680486401_681091201_4FGL_J1535.8-4730_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=233.959 yref=-47.5085 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.65
user 0.48
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/659401/ft1_filtered_4FGL_J1535.8-4730_weekly_bin730.fits evtable="EVENTS" scfile=/scratch/kocevski/659401/ft2_4FGL_J1535.8-4730_weekly_bin730.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/659401/Model_4FGL_J1535.8-4730_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 FGES J1409.1-6121
adding source FGES J1553.8-5325
adding source FGES J1631.6-4756
adding source FGES J1633.0-4746
adding source FGES J1652.2-4633
adding source FGES J1655.5-4737
adding source FHES J1501.0-6310
adding source FHES J1642.1-5428
adding source G337.0-0.1
adding source GAL_V02
adding source HESS J1356-645
adding source HESS J1420-607
adding source HESS J1507-622
adding source HESS J1534-571
adding source HESS J1614-518
adding source HESS J1616-508
adding source MSH 15-52
adding source MSH 15-56 PWN
adding source MSH 15-56 SNR
adding source RCW 86
adding source RX J1713.7-3946
Working on...
/scratch/kocevski/659401/ft1_filtered_4FGL_J1535.8-4730_weekly_bin730.fits.....................!
real 7796.70
user 7762.13
sys 4.74

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/659401/ft1_filtered_4FGL_J1535.8-4730_weekly_bin730.fits', '/scratch/kocevski/659401/ft2_4FGL_J1535.8-4730_weekly_bin730.fits', expMap='/scratch/kocevski/659401/expmap_680486401_681091201_4FGL_J1535.8-4730_weekly_bin730.fits', expCube='/scratch/kocevski/659401/ltcube_680486401_681091201_4FGL_J1535.8-4730_weekly_bin730.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/659401/Model_4FGL_J1535.8-4730_weekly_bin730.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1535.8-4730'

4FGL J1535.8-4730
   Spectrum: PowerLaw
638    Prefactor:  3.672e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
639        Index:  2.693e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
640        Scale:  1.101e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/659401/ft1_filtered_4FGL_J1535.8-4730_weekly_bin730.fits
Spacecraft file(s): /scratch/kocevski/659401/ft2_4FGL_J1535.8-4730_weekly_bin730.fits
Exposure map: /scratch/kocevski/659401/expmap_680486401_681091201_4FGL_J1535.8-4730_weekly_bin730.fits
Exposure cube: /scratch/kocevski/659401/ltcube_680486401_681091201_4FGL_J1535.8-4730_weekly_bin730.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/659401/Model_4FGL_J1535.8-4730_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) = 109600.702795

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    252.89       1.0000         .10000E-03   10000.    
     2 'Prefactor '    3.5005       1.0000         .10000E-03   10000.    
     3 'norm      '    14.456       1.0000         .10000E-03   10000.    
     4 'norm      '    1.8601       1.0000         .10000E-03   10000.    
     5 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    2.2697       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .55097       1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.3540       1.0000         .10000E-03   10000.    
     9 'norm      '    2.9735       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10221E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    11.375       1.0000         .10000E-03   10000.    
    12 'norm      '    .10119E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10295E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    5.6922       1.0000         .10000E-03   10000.    
    16 'Normalizat'    2.3231       1.0000         .10000E-01   10.000    
    17 'Prefactor '    .95973       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .1640E+06   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   109600.7     FROM MIGRAD    STATUS=CONVERGED    332 CALLS     1660 TOTAL
                     EDM=   .20E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     252.76        96.606        .91720E-05   -.54280E-04
   2  Prefactor     3.4938        10.696        .36952E-05   -.67786E-04
   3  norm          14.453        8.5577        .18943E-06   -.98279E-04
   4  norm          1.8610        9.7279        .12311E-04    .19275E-04
   5  norm          .10000E-03    5.2974        .79314E-07** at limit **
   6  norm          2.2699        2.3534        .28882E-06   -.38222E-04
   7  Prefactor     .55733        1.1772        .72117E-07   -.58219E-03
   8  Prefactor     4.3496        16.171        .15424E-05    .29471E-05
   9  norm          2.9738        2.9425        .41034E-05    .59145E-04
  10  Prefactor     .10000E-03    7.3155        .60395E-06** at limit **
  11  norm          11.376        4.8635        .67935E-07    .23903E-04
  12  norm          .10000E-03    17.097        .46169E-06** at limit **
  13  Prefactor     .10000E-03    29.576        .71892E-06** at limit **
  14  Prefactor     .10000E-03    1.1798        .21787E-06** at limit **
  15  Prefactor     5.6929        4.3452        .15939E-06    .34460E-04
  16  Normalizat    2.3235        .23869       -.27630E-05    .59166E-04
  17  Prefactor     .95971        .13670E-01   -.15621E-06   -.25589E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 252.758
  Prefactor  = 3.49376
  norm       = 14.4525
  norm       = 1.86101
  norm       = 0.0001
  norm       = 2.26993
  Prefactor  = 0.557327
  Prefactor  = 4.34955
  norm       = 2.97377
  Prefactor  = 0.0001
  norm       = 11.3759
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.69294
  Normalizat = 2.3235
  Prefactor  = 0.95971
 **********
 **   18 **HESSE 
 **********

 FCN=   109600.7     FROM HESSE     STATUS=OK           229 CALLS     1889 TOTAL
                     EDM=   .57E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     252.76        96.640        .12739E-03   -1.2515    
   2  Prefactor     3.4938        10.725        .10805E-02   -1.5334    
   3  norm          14.453        8.5439        .10535E-03   -1.4947    
   4  norm          1.8610        9.7608        .15277E-02   -1.5435    
   5  norm          .10000E-03    5.3004        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          2.2699        2.3386        .27260E-03   -1.5407    
   7  Prefactor     .55733        4.2061        .50332E-02   -1.5559    
   8  Prefactor     4.3496        16.146        .19304E-03   -1.5291    
   9  norm          2.9738        2.9445        .11773E-02   -1.5363    
  10  Prefactor     .10000E-03    7.5405        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          11.376        4.8651        .11878E-03   -1.5033    
  12  norm          .10000E-03    17.364        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    30.096        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    1.1997        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     5.6929        4.3423        .16836E-03   -1.5231    
  16  Normalizat    2.3235        .24089        .12995E-02   -.56668    
  17  Prefactor     .95971        .14000E-01    .11582E-03   -.94085    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.71062e-07
Minuit parameter uncertainties:
  1  96.7011
  2  10.7312
  3  8.54457
  4  8.526
  5  6.05648e-06
  6  2.33866
  7  3.06217
  8  16.1626
  9  2.94461
  10  5.53063e-05
  11  4.86523
  12  7.22518e-05
  13  0.000173354
  14  1.00602e-05
  15  4.34256
  16  0.241021
  17  0.0140001
Done.

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

Extracting fit parameters...

4FGL J1535.8-4730
   Spectrum: PowerLaw
638    Prefactor:  4.350e+00  1.616e+01  1.000e-04  1.000e+04 ( 1.000e-13)
639        Index:  2.693e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
640        Scale:  1.101e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
1600    Prefactor:  9.597e-01  1.400e-02  0.000e+00  1.000e+01 ( 1.000e+00)
1601        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
1602        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
1567   Normalization:  2.324e+00  2.410e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.08
Ra Dec: 233.959 -47.508
Photon Flux Upper Limit: 1.41e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.11e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/659401/likelihoodResults_680486401_681091201_4FGL_J1535.8-4730_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): 0
logL (Free Index) = 109600.634959
delta logL = 0.0616992276773

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 109600.600689
delta logL = 0.095969101254

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.3429       1.0000         .10000E-03   10000.    
     2 'Index     '    3.4785       1.0000          .0000       10.000    
     3 'Normalizat'    2.3066       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95990       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .1640E+06   .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=   109600.6     FROM MIGRAD    STATUS=FAILED       108 CALLS      292 TOTAL
                     EDM=   .29E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.3296        438.19        .13392E-02    .12145E-02
   2  Index         3.4807        5.6191        .54280E-02   -.92491E-05
   3  Normalizat    2.3063        .20730        .13027E-02   -.17454E-04
   4  Prefactor     .95992        .12807E-01    .11580E-03   -.11467E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   109600.6     FROM SIMPLEX   STATUS=UNCHANGED     95 CALLS      387 TOTAL
                     EDM=   .84E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.3296        438.19        .34703E-03    .12145E-02
   2  Index         3.4807        5.6191        .24544E-02   -.92491E-05
   3  Normalizat    2.3063        .20730        .12667E-03   -.17454E-04
   4  Prefactor     .95992        .12807E-01    .13071E-04   -.11467E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   109600.6     FROM MIGRAD    STATUS=CONVERGED     34 CALLS      421 TOTAL
                     EDM=   .83E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.3296        12.261        .26785E-03   -.88964E-04
   2  Index         3.4807        2.1186        .21712E-03   -.15080E-04
   3  Normalizat    2.3063        .22205        .52109E-04   -.18152E-04
   4  Prefactor     .95992        .13568E-01    .46321E-05   -.11781E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.32956
  Index      = 3.48068
  Normalizat = 2.30634
  Prefactor  = 0.959919
 **********
 **   18 **HESSE 
 **********

 FCN=   109600.6     FROM HESSE     STATUS=OK            23 CALLS      444 TOTAL
                     EDM=   .70E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.3296        10.275        .10714E-04   -1.5403    
   2  Index         3.4807        1.9562        .86848E-05   -.30875    
   3  Normalizat    2.3063        .22213        .10422E-04   -.57076    
   4  Prefactor     .95992        .13567E-01    .92641E-06   -.94078    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.99729e-12
Minuit parameter uncertainties:
  1  9.7876
  2  2.01583
  3  0.222235
  4  0.0135674
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/659401': 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) = 109600.600687
delta logL = 0.095971137911

Extracting fit parameters...

4FGL J1535.8-4730
   Spectrum: PowerLaw
638    Prefactor:  2.330e+00  9.788e+00  1.000e-04  1.000e+04 ( 1.000e-13)
639        Index:  3.481e+00  2.016e+00  0.000e+00  1.000e+01 (-1.000e+00)
640        Scale:  1.101e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
1600    Prefactor:  9.599e-01  1.357e-02  0.000e+00  1.000e+01 ( 1.000e+00)
1601        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
1602        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
1567   Normalization:  2.306e+00  2.222e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.08
Ra Dec: 233.959 -47.508

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/659401/cmap_HighResolution_680486401_681091201_4FGL_J1535.8-4730_weekly_bin730.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.11e-02', job_status='DONE', photon_flux_upper_limit='1.41e-07', time_completed='2022-08-02 08:13:35.804951', job_id='659401', GAL2='0.96', fit_tolerance='1e-08', EG2='2.31', EG='2.32', time_epoch_completed='1659453215.81', return_code2='0', ts='0.08', comment='SUCCESS', return_code='0', GAL='0.96', dlogl='9.60e-02', ts2='0.29', photon_index_error='0.00', photon_index='2.69' WHERE bin_id='730' AND source_name='4FGL J1535.8-4730' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Aug  2 08:13:35 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0058>
Subject: Job 659369: <4FGL_J1535.8-4730_weekly_bin730> in cluster <slac> Done

Job <4FGL_J1535.8-4730_weekly_bin730> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Tue Aug  2 00:06:39 2022
Job was executed on host(s) <bullet0058>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug  2 02:07:42 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:07:42 2022
Terminated at Tue Aug  2 08:12:32 2022
Results reported at Tue Aug  2 08:12:32 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1535.8-4730_weekly_bin730 233.959 -47.5085 680486401 681091201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1535.8-4730 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   21759.00 sec.
    Max Memory :                                 864 MB
    Average Memory :                             773.39 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   21889 sec.
    Turnaround time :                            29153 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0043>
Subject: Job 659401: <4FGL_J1535.8-4730_weekly_bin730> in cluster <slac> Done

Job <4FGL_J1535.8-4730_weekly_bin730> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Tue Aug  2 00:06:40 2022
Job was executed on host(s) <bullet0043>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug  2 02:08:38 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:08:38 2022
Terminated at Tue Aug  2 08:13:38 2022
Results reported at Tue Aug  2 08:13:38 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1535.8-4730_weekly_bin730 233.959 -47.5085 680486401 681091201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1535.8-4730 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   21788.00 sec.
    Max Memory :                                 1298 MB
    Average Memory :                             771.53 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   21899 sec.
    Turnaround time :                            29218 sec.

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

