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 59 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 = 7326
number of fields = 31
RA_SUN column already exists. File will not be modified.DDone.


Performing analysis on: 4FGL_J1535.9+3743_daily_bin1667
RA = 233.983, Dec = 37.7249
tmin = 671414401, tmax = 671673601
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='478156', job_status='RUN', time_executed='2022-04-15 03:30:44.115656', time_epoch_executed='1650018644.12' WHERE source_name='4FGL J1535.9+3743' and cadence='daily' and bin_id='1667'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/478156

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/478156/ft1_4FGL_J1535.9+3743_daily_bin1667.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/478156/ft2_4FGL_J1535.9+3743_daily_bin1667.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/478156/ft1_4FGL_J1535.9+3743_daily_bin1667.fits outfile=/scratch/kocevski/478156/ft1_filteredMKT_4FGL_J1535.9+3743_daily_bin1667.fits ra=233.983 dec=37.7249 rad=12.0 tmin=671414401.0 tmax=671673601.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 3.54
user 3.30
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/478156/ft2_4FGL_J1535.9+3743_daily_bin1667.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/478156/ft2_4FGL_J1535.9+3743_daily_bin1667.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/478156/ft1_filteredMKT_4FGL_J1535.9+3743_daily_bin1667.fits evtable="EVENTS" outfile="/scratch/kocevski/478156/ft1_filtered_4FGL_J1535.9+3743_daily_bin1667.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.51
user 0.33
sys 0.16

Number of photons that the gtmktime cut: 605

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/478156/ft1_filtered_4FGL_J1535.9+3743_daily_bin1667.fits" evtable="EVENTS" scfile=/scratch/kocevski/478156/ft2_4FGL_J1535.9+3743_daily_bin1667.fits sctable="SC_DATA" outfile=/scratch/kocevski/478156/ltcube_671414401_671673601_4FGL_J1535.9+3743_daily_bin1667.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/478156/ft2_4FGL_J1535.9+3743_daily_bin1667.fits
.....................!
real 12.47
user 12.07
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/478156/ft1_filtered_4FGL_J1535.9+3743_daily_bin1667.fits evtable="EVENTS" scfile=/scratch/kocevski/478156/ft2_4FGL_J1535.9+3743_daily_bin1667.fits sctable="SC_DATA" expcube=/scratch/kocevski/478156/ltcube_671414401_671673601_4FGL_J1535.9+3743_daily_bin1667.fits outfile=/scratch/kocevski/478156/expmap_671414401_671673601_4FGL_J1535.9+3743_daily_bin1667.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/478156/ltcube_671414401_671673601_4FGL_J1535.9+3743_daily_bin1667.fits
.....................!
real 190.79
user 185.19
sys 5.25

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

Setting source of interest to:
4FGL J1535.9+3743 @ 233.983 37.7249

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/478156/ft1_filtered_4FGL_J1535.9+3743_daily_bin1667.fits scfile=/scratch/kocevski/478156/ft2_4FGL_J1535.9+3743_daily_bin1667.fits outfile=/scratch/kocevski/478156/cmap_671414401_671673601_4FGL_J1535.9+3743_daily_bin1667.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.983 yref=37.7249 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.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/478156/ft1_filtered_4FGL_J1535.9+3743_daily_bin1667.fits scfile=/scratch/kocevski/478156/ft2_4FGL_J1535.9+3743_daily_bin1667.fits outfile=/scratch/kocevski/478156/cmap_HighResolution_671414401_671673601_4FGL_J1535.9+3743_daily_bin1667.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.983 yref=37.7249 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.57
user 0.36
sys 0.18

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/478156/ft1_filtered_4FGL_J1535.9+3743_daily_bin1667.fits evtable="EVENTS" scfile=/scratch/kocevski/478156/ft2_4FGL_J1535.9+3743_daily_bin1667.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/478156/Model_4FGL_J1535.9+3743_daily_bin1667.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/478156/ft1_filtered_4FGL_J1535.9+3743_daily_bin1667.fits.....................!
real 50.33
user 48.99
sys 1.24

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/478156/ft1_filtered_4FGL_J1535.9+3743_daily_bin1667.fits', '/scratch/kocevski/478156/ft2_4FGL_J1535.9+3743_daily_bin1667.fits', expMap='/scratch/kocevski/478156/expmap_671414401_671673601_4FGL_J1535.9+3743_daily_bin1667.fits', expCube='/scratch/kocevski/478156/ltcube_671414401_671673601_4FGL_J1535.9+3743_daily_bin1667.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/478156/Model_4FGL_J1535.9+3743_daily_bin1667.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1535.9+3743'

4FGL J1535.9+3743
   Spectrum: LogParabola
303         norm:  5.210e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
304        alpha:  2.450e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
305         beta:  1.985e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
306           Eb:  1.271e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/478156/ft1_filtered_4FGL_J1535.9+3743_daily_bin1667.fits
Spacecraft file(s): /scratch/kocevski/478156/ft2_4FGL_J1535.9+3743_daily_bin1667.fits
Exposure map: /scratch/kocevski/478156/expmap_671414401_671673601_4FGL_J1535.9+3743_daily_bin1667.fits
Exposure cube: /scratch/kocevski/478156/ltcube_671414401_671673601_4FGL_J1535.9+3743_daily_bin1667.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/478156/Model_4FGL_J1535.9+3743_daily_bin1667.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) = 6637.33706225

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.8530       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10162E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    3.8035       1.0000         .10000E-03   10000.    
     4 'Prefactor '    23.184       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10051E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10063E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .99325       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .99173       1.0000         .10000E-03   10000.    
    14 'norm      '    .21899       1.0000         .10000E-03   10000.    
    15 'Prefactor '    5.3833       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    16.081       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .19439E-01   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    2.0473       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .37625E-01   1.0000         .10000E-03   10000.    
    25 'norm      '    .32662       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    .52749       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.5560       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6250E+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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   6637.295     FROM MIGRAD    STATUS=FAILED      1327 CALLS     4816 TOTAL
                     EDM=   .30E-06    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.8505        7.1921        .15326E-03    .50144E-04
   2  Prefactor     .10000E-03    29.658        .15109    ** at limit **
   3  norm          3.8029        6.2863        .20697E-03    .78823E-04
   4  Prefactor     23.174        14.977        .83190E-04   -.87325E-04
   5  Prefactor     .10000E-03    2.4410        .12409E-02** at limit **
   6  Prefactor     .10000E-03    2.2976        .12051E-02** at limit **
   7  norm          .10000E-03    .44441        .10439E-03** at limit **
   8  norm          .10000E-03    1.8593        .21403E-03** at limit **
   9  Prefactor     .10000E-03    3.6982        .15234E-02** at limit **
  10  Prefactor     .10000E-03    14.922        .18142E-02** at limit **
  11  Prefactor     .10000E-03    8.8073        .18142E-02** at limit **
  12  Prefactor     .98827        87.195        .51209E-02    .13234E-02
  13  Prefactor     .98389        50.853        .35716E-02   -.33089E-03
  14  norm          .21733        2.0883        .13196E-02    .65809E-02
  15  Prefactor     5.3939        9.5109        .17320E-03    .11867E-03
  16  Prefactor     .10000E-03    13.892        .18142E-02** at limit **
  17  Prefactor     .10000E-03    8.6817        .18142E-02** at limit **
  18  norm          16.077        13.148        .99878E-04   -.49742E-04
  19  Prefactor     .21668E-01    5.2785        .28998E-01    .58216E-03
  20  Prefactor     .10000E-03    7.7080        .18142E-02** at limit **
  21  Prefactor     2.0463        3.0760        .16712E-03    .53333E-04
  22  Prefactor     .10000E-03    2.2430        .11908E-02** at limit **
  23  Prefactor     .10000E-03    7.6796        .18142E-02** at limit **
  24  Prefactor     .13274E-01    6.9301        .31019E-01    .78670E-02
  25  norm          .32672        .15066        .20573E-04   -.25585E-03
  26  Prefactor     .10000E-03    12.889        .18142E-02** at limit **
  27  Normalizat    .52778        .21718        .32516E-03   -.18059E-03
  28  Prefactor     1.5559        .20568        .20334E-03   -.37910E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6637.295     FROM SIMPLEX   STATUS=UNCHANGED   1419 CALLS     6235 TOTAL
                     EDM=   .20E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.8505        7.1921        .92153E-06   -1.5184    
   2  Prefactor     .10000E-03    29.658        .16995E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          3.8029        6.2863        .88893E-06   -1.5318    
   4  Prefactor     23.174        14.977        .86686E-06   -1.4745    
   5  Prefactor     .10000E-03    2.4410        .13345E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    2.2976        .26705E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    .44441        .18367E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    1.8593        .52763E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    3.6982        .10850E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    14.922        .31641E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    8.8073        .25484E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .98827        87.195        .95972E-06   -1.5509    
  13  Prefactor     .98389        50.853        .96797E-06   -1.5510    
  14  norm          .21733        2.0883        .93619E-06   -1.5615    
  15  Prefactor     5.3939        9.5109        .91387E-06   -1.5243    
  16  Prefactor     .10000E-03    13.892        .42867E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    8.6817        .11621E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          16.077        13.148        .88837E-06   -1.4906    
  19  Prefactor     .21668E-01    5.2785        .93327E-06   -1.5679    
  20  Prefactor     .10000E-03    7.7080        .99969E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     2.0463        3.0760        .91939E-06   -1.5422    
  22  Prefactor     .10000E-03    2.2430        .19419E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    7.6796        .29636E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .13274E-01    6.9301        .93404E-06   -1.5685    
  25  norm          .32672        .15066        .92966E-06   -1.5594    
  26  Prefactor     .10000E-03    12.889        .29735E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    .52778        .21718        .66262E-06   -1.1114    
  28  Prefactor     1.5559        .20568        .45302E-06   -.75987    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6637.295     FROM MIGRAD    STATUS=CONVERGED    532 CALLS     6767 TOTAL
                     EDM=   .34E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.8505        7.1853        .61305E-05   -.48216E-05
   2  Prefactor     .10000E-03    29.595        .15135    ** at limit **
   3  norm          3.8029        6.2861        .82788E-05    .35704E-05
   4  Prefactor     23.174        14.957        .33276E-05   -.61497E-05
   5  Prefactor     .10000E-03    2.4412        .24818E-03** at limit **
   6  Prefactor     .10000E-03    2.2976        .24103E-03** at limit **
   7  norm          .10000E-03    .44441        .20877E-04** at limit **
   8  norm          .10000E-03    1.8593        .42807E-04** at limit **
   9  Prefactor     .10000E-03    3.6984        .30467E-03** at limit **
  10  Prefactor     .10000E-03    14.922        .36285E-03** at limit **
  11  Prefactor     .10000E-03    8.8105        .36285E-03** at limit **
  12  Prefactor     .98796        69.650        .10242E-02   -.51761E-04
  13  Prefactor     .98444        39.750        .14287E-03    .90717E-05
  14  norm          .21733        1.9833        .26392E-03    .26449E-04
  15  Prefactor     5.3939        9.2903        .69281E-05    .91893E-05
  16  Prefactor     .10000E-03    13.892        .36285E-03** at limit **
  17  Prefactor     .10000E-03    8.6820        .36285E-03** at limit **
  18  norm          16.077        13.137        .39951E-05   -.85370E-05
  19  Prefactor     .21666E-01    2.9773        .40275E-01    .37213E-03
  20  Prefactor     .10000E-03    7.7084        .36285E-03** at limit **
  21  Prefactor     2.0463        3.0717        .66848E-05   -.27891E-04
  22  Prefactor     .10000E-03    2.2431        .23817E-03** at limit **
  23  Prefactor     .10000E-03    7.6801        .36285E-03** at limit **
  24  Prefactor     .13285E-01    1.2867        .87802E-01   -.25579E-03
  25  norm          .32672        .15012        .82293E-06   -.11216E-02
  26  Prefactor     .10000E-03    12.891        .36285E-03** at limit **
  27  Normalizat    .52778        .21258        .13006E-04   -.13636E-03
  28  Prefactor     1.5559        .20456        .40667E-04   -.16158E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 6.85052
  Prefactor  = 0.000100002
  norm       = 3.80287
  Prefactor  = 23.174
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.98796
  Prefactor  = 0.984439
  norm       = 0.217334
  Prefactor  = 5.39391
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 16.0766
  Prefactor  = 0.0216664
  Prefactor  = 0.0001
  Prefactor  = 2.04631
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0132847
  norm       = 0.326718
  Prefactor  = 0.0001
  Normalizat = 0.52778
  Prefactor  = 1.55587
 **********
 **   18 **HESSE 
 **********

 FCN=   6637.295     FROM HESSE     STATUS=OK           523 CALLS     7290 TOTAL
                     EDM=   .23E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.8505        7.1907        .12261E-05   -1.5184    
   2  Prefactor     .10000E-03    29.610        .15132       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          3.8029        6.2889        .16558E-05   -1.5318    
   4  Prefactor     23.174        14.965        .66552E-06   -1.4745    
   5  Prefactor     .10000E-03    2.4412        .49636E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    2.2976        .48206E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    .44441        .41754E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    1.8593        .85614E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    3.6984        .60935E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    14.922        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    8.8106        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .98796        67.691        .40967E-04   -1.5509    
  13  Prefactor     .98444        38.863        .57146E-05   -1.5510    
  14  norm          .21733        1.9619        .10557E-04   -1.5615    
  15  Prefactor     5.3939        9.2480        .13856E-05   -1.5243    
  16  Prefactor     .10000E-03    13.892        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    8.6821        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          16.077        13.155        .79902E-06   -1.4906    
  19  Prefactor     .21666E-01    3.8387        .34741E-01   -1.5679    
  20  Prefactor     .10000E-03    7.7084        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     2.0463        3.0740        .13370E-05   -1.5422    
  22  Prefactor     .10000E-03    2.2431        .47633E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    7.6801        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .13285E-01    7.5324        .29599E-01   -1.5685    
  25  norm          .32672        .15067        .37178E-06   -1.5594    
  26  Prefactor     .10000E-03    12.891        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    .52778        .21555        .26012E-05   -1.1114    
  28  Prefactor     1.5559        .20513        .81334E-05   -.75987    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.26114e-07
Minuit parameter uncertainties:
  1  7.19158
  2  0.000422313
  3  6.28996
  4  14.9671
  5  2.81893e-07
  6  1.13346e-07
  7  5.52619e-08
  8  5.28037e-07
  9  4.06042e-06
  10  1.79977e-06
  11  1.84644e-06
  12  16.3741
  13  12.3787
  14  1.30573
  15  9.25045
  16  2.3052e-07
  17  1.36108e-06
  18  13.1572
  19  0.57549
  20  2.4592e-06
  21  3.07428
  22  2.62514e-08
  23  2.64377e-06
  24  0.630356
  25  0.150674
  26  8.85022e-07
  27  0.215892
  28  0.205242
Done.

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

Extracting fit parameters...

4FGL J1535.9+3743
   Spectrum: LogParabola
303         norm:  1.608e+01  1.316e+01  1.000e-04  1.000e+04 ( 1.000e-13)
304        alpha:  2.450e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
305         beta:  1.985e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
306           Eb:  1.271e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
622    Prefactor:  1.556e+00  2.052e-01  0.000e+00  1.000e+01 ( 1.000e+00)
623        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
624        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
621   Normalization:  5.278e-01  2.159e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.57
Ra Dec: 233.983 37.725
Photon Index (Fixed Index): 2.45 +/- 0.00
Photon Flux (Fixed Index): 2.78e-08 +/- 2.27e-08
Energy Flux (Fixed Index): 1.08e-05 +/- 8.86e-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) = 6637.10133289
delta logL = 0.193762567844

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6637.08717654
delta logL = 0.207918923139

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    18.753       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.7995       1.0000          .0000       5.0000    
     3 'Normalizat'    .54375       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.5499       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6250E+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=   6637.087     FROM MIGRAD    STATUS=CONVERGED     84 CALLS      251 TOTAL
                     EDM=   .61E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          18.754        17.392        .92488E-04   -.11341E-02
   2  alpha         1.7994        .99035        .25802E-01   -.12789E-03
   3  Normalizat    .54373        .19480        .32055E-03    .18929E-03
   4  Prefactor     1.5500        .19958        .20368E-03    .29730E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 18.7541
  alpha      = 1.79936
  Normalizat = 0.543732
  Prefactor  = 1.54996
 **********
 **   18 **HESSE 
 **********

 FCN=   6637.087     FROM HESSE     STATUS=OK            23 CALLS      274 TOTAL
                     EDM=   .64E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          18.754        17.522        .18498E-04   -1.4842    
   2  alpha         1.7994        .99714        .10321E-02   -.28406    
   3  Normalizat    .54373        .19488        .12822E-04   -1.1043    
   4  Prefactor     1.5500        .19972        .40735E-04   -.76150    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.35589e-09
Minuit parameter uncertainties:
  1  17.527
  2  1.02832
  3  0.195129
  4  0.199824
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/478156': 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) = 6637.08717652
delta logL = 0.207918936437

Extracting fit parameters...

4FGL J1535.9+3743
   Spectrum: LogParabola
303         norm:  1.875e+01  1.753e+01  1.000e-04  1.000e+04 ( 1.000e-13)
304        alpha:  1.799e+00  1.028e+00  0.000e+00  5.000e+00 ( 1.000e+00)
305         beta:  1.985e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
306           Eb:  1.271e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
622    Prefactor:  1.550e+00  1.998e-01  0.000e+00  1.000e+01 ( 1.000e+00)
623        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
624        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
621   Normalization:  5.437e-01  1.951e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.98
Ra Dec: 233.983 37.725
Photon Index (Free Index): 1.80 +/- 1.03
Photon Flux (Free Index): 1.34e-08 +/- 2.11e-08
Energy Flux (Free Index): 1.22e-05 +/- 1.22e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/478156/cmap_HighResolution_671414401_671673601_4FGL_J1535.9+3743_daily_bin1667.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.78e-08', energy_flux2='1.22e-05', photon_flux_error='2.27e-08', dlogl='2.08e-01', energy_flux='1.08e-05', photon_flux2='1.34e-08', job_status='DONE', time_completed='2022-04-15 03:48:13.209610', photon_index_error2='1.03', photon_index2='1.80', ts='5.57', fit_tolerance='1e-08', GAL='1.56', photon_index_error='0.00', energy_flux_error2='1.22e-05', EG='0.53', time_epoch_completed='1650019693.21', return_code='0', job_id='478156', GAL2='1.55', EG2='0.54', return_code2='0', energy_flux_error='8.86e-06', photon_flux_error2='2.11e-08', ts2='5.98', photon_index='2.45' WHERE bin_id='1667' AND source_name='4FGL J1535.9+3743' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Apr 15 03:48:13 PDT 2022

------------------------------------------------------------
Sender: LSF System <lsf@bullet0171>
Subject: Job 478157: <4FGL_J1535.9+3743_daily_bin1667> in cluster <slac> Done

Job <4FGL_J1535.9+3743_daily_bin1667> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Fri Apr 15 00:07:36 2022
Job was executed on host(s) <bullet0171>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Apr 15 03:29:35 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Apr 15 03:29:35 2022
Terminated at Fri Apr 15 03:47:15 2022
Results reported at Fri Apr 15 03:47:15 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1535.9+3743_daily_bin1667 233.983 37.7249 671414401 671673601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1535.9+3743 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   1051.19 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             298.09 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   1060 sec.
    Turnaround time :                            13179 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0232>
Subject: Job 478156: <4FGL_J1535.9+3743_daily_bin1667> in cluster <slac> Done

Job <4FGL_J1535.9+3743_daily_bin1667> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Fri Apr 15 00:07:36 2022
Job was executed on host(s) <bullet0232>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Apr 15 03:29:35 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Apr 15 03:29:35 2022
Terminated at Fri Apr 15 03:48:13 2022
Results reported at Fri Apr 15 03:48:13 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1535.9+3743_daily_bin1667 233.983 37.7249 671414401 671673601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1535.9+3743 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   1050.33 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             328.85 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   1118 sec.
    Turnaround time :                            13237 sec.

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

