/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 112 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 = 7443
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1535.9+3743_daily_bin1044
RA = 233.983, Dec = 37.7249
tmin = 509932801, tmax = 510192001
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='620431', job_status='RUN', time_executed='2021-09-12 08:27:45.391113', time_epoch_executed='1631460465.39' WHERE source_name='4FGL J1535.9+3743' and cadence='daily' and bin_id='1044'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/620431

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/620431/ft1_4FGL_J1535.9+3743_daily_bin1044.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/620431/ft2_4FGL_J1535.9+3743_daily_bin1044.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/620431/ft1_4FGL_J1535.9+3743_daily_bin1044.fits outfile=/scratch/kocevski/620431/ft1_filteredMKT_4FGL_J1535.9+3743_daily_bin1044.fits ra=233.983 dec=37.7249 rad=12.0 tmin=509932801.0 tmax=510192001.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.56
user 3.31
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/620431/ft1_filtered_4FGL_J1535.9+3743_daily_bin1044.fits" evtable="EVENTS" scfile=/scratch/kocevski/620431/ft2_4FGL_J1535.9+3743_daily_bin1044.fits sctable="SC_DATA" outfile=/scratch/kocevski/620431/ltcube_509932801_510192001_4FGL_J1535.9+3743_daily_bin1044.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/620431/ft2_4FGL_J1535.9+3743_daily_bin1044.fits
.....................!
real 14.15
user 13.69
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/620431/ft1_filtered_4FGL_J1535.9+3743_daily_bin1044.fits evtable="EVENTS" scfile=/scratch/kocevski/620431/ft2_4FGL_J1535.9+3743_daily_bin1044.fits sctable="SC_DATA" expcube=/scratch/kocevski/620431/ltcube_509932801_510192001_4FGL_J1535.9+3743_daily_bin1044.fits outfile=/scratch/kocevski/620431/expmap_509932801_510192001_4FGL_J1535.9+3743_daily_bin1044.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/620431/ltcube_509932801_510192001_4FGL_J1535.9+3743_daily_bin1044.fits
.....................!
real 190.90
user 185.70
sys 4.74

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/620431/ft1_filtered_4FGL_J1535.9+3743_daily_bin1044.fits scfile=/scratch/kocevski/620431/ft2_4FGL_J1535.9+3743_daily_bin1044.fits outfile=/scratch/kocevski/620431/cmap_509932801_510192001_4FGL_J1535.9+3743_daily_bin1044.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.58
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/620431/ft1_filtered_4FGL_J1535.9+3743_daily_bin1044.fits scfile=/scratch/kocevski/620431/ft2_4FGL_J1535.9+3743_daily_bin1044.fits outfile=/scratch/kocevski/620431/cmap_HighResolution_509932801_510192001_4FGL_J1535.9+3743_daily_bin1044.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.56
user 0.39
sys 0.17

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/620431/ft1_filtered_4FGL_J1535.9+3743_daily_bin1044.fits', '/scratch/kocevski/620431/ft2_4FGL_J1535.9+3743_daily_bin1044.fits', expMap='/scratch/kocevski/620431/expmap_509932801_510192001_4FGL_J1535.9+3743_daily_bin1044.fits', expCube='/scratch/kocevski/620431/ltcube_509932801_510192001_4FGL_J1535.9+3743_daily_bin1044.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/620431/Model_4FGL_J1535.9+3743_daily_bin1044.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/620431/ft1_filtered_4FGL_J1535.9+3743_daily_bin1044.fits
Spacecraft file(s): /scratch/kocevski/620431/ft2_4FGL_J1535.9+3743_daily_bin1044.fits
Exposure map: /scratch/kocevski/620431/expmap_509932801_510192001_4FGL_J1535.9+3743_daily_bin1044.fits
Exposure cube: /scratch/kocevski/620431/ltcube_509932801_510192001_4FGL_J1535.9+3743_daily_bin1044.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/620431/Model_4FGL_J1535.9+3743_daily_bin1044.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) = 6465.46054375

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    9.1790       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .25561E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    13.855       1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.8580       1.0000         .10000E-03   10000.    
     6 'Prefactor '    7.6776       1.0000         .10000E-03   10000.    
     7 'norm      '    2.0889       1.0000         .10000E-03   10000.    
     8 'norm      '    2.1267       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    14.115       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    7.8051       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .25175       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    7.8783       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    1.5460       1.0000         .10000E-03   10000.    
    25 'norm      '    .22851       1.0000         .10000E-03   10000.    
    26 'Prefactor '    8.3942       1.0000         .10000E-03   10000.    
    27 'Normalizat'    .71030       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.0072       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.

 FCN=   6465.401     FROM MIGRAD    STATUS=CONVERGED    692 CALLS     3002 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          9.1801        5.6428       -.50570E-10   -.17765E-03
   2  Prefactor     .10003E-03    32.725        .42590E-06** at limit **
   3  norm          .10000E-03    4.6910        .27145E-07** at limit **
   4  Prefactor     13.857        11.222       -.13212E-07   -.47866E-04
   5  Prefactor     3.8583        4.4084       -.54660E-08   -.81039E-04
   6  Prefactor     7.6783        6.9500       -.23952E-06   -.33119E-03
   7  norm          2.0889        1.1443        .70885E-08   -.11085E-02
   8  norm          2.1268        1.6889       -.20526E-06   -.94095E-03
   9  Prefactor     .10000E-03    4.2968        .59520E-07** at limit **
  10  Prefactor     .10000E-03    17.222       -.15852E-06** at limit **
  11  Prefactor     14.116        11.121       -.17163E-07    .42436E-04
  12  Prefactor     .10000E-03    3.5056        .33092E-07** at limit **
  13  Prefactor     .10000E-03    3.2925        .37738E-07** at limit **
  14  norm          7.8052        1.6042       -.64799E-08    .87018E-03
  15  Prefactor     .10000E-03    4.0669        .15856E-07** at limit **
  16  Prefactor     .10000E-03    10.560        .59390E-07** at limit **
  17  Prefactor     .10000E-03    11.669       -.27467E-07** at limit **
  18  norm          .30314        9.1935       -.11863E-06   -.17306E-05
  19  Prefactor     .10000E-03    1.1298       -.22817E-07** at limit **
  20  Prefactor     .10000E-03    4.9354       -.17302E-07** at limit **
  21  Prefactor     7.8786        3.6547       -.27568E-07    .80632E-03
  22  Prefactor     .10000E-03    4.3788       -.21406E-07** at limit **
  23  Prefactor     .10000E-03    11.529       -.85978E-07** at limit **
  24  Prefactor     1.5462        2.8788       -.59774E-07   -.15832E-03
  25  norm          .22851        .13223       -.33374E-08    .16703E-02
  26  Prefactor     8.3937        19.597        .16181E-06   -.32927E-03
  27  Normalizat    .71029        .16249        .13507E-06    .18257E-03
  28  Prefactor     1.0071        .15623       -.11681E-07    .29708E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 9.18006
  Prefactor  = 0.000100032
  norm       = 0.000100004
  Prefactor  = 13.8569
  Prefactor  = 3.85834
  Prefactor  = 7.67828
  norm       = 2.08886
  norm       = 2.12678
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 14.1162
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 7.80521
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.303138
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.87864
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 1.54623
  norm       = 0.22851
  Prefactor  = 8.39366
  Normalizat = 0.710295
  Prefactor  = 1.00715
 **********
 **   18 **HESSE 
 **********

 FCN=   6465.401     FROM HESSE     STATUS=OK           519 CALLS     3521 TOTAL
                     EDM=   .37E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          9.1801        5.6347        .13228E-03   -1.5102    
   2  Prefactor     .10003E-03    32.625        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    18.748        .33772E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     13.857        11.182        .10761E-03   -1.4963    
   5  Prefactor     3.8583        4.4015        .17302E-03   -1.5315    
   6  Prefactor     7.6783        8.0884        .72362E-03   -1.5154    
   7  norm          2.0889        1.1459        .60882E-04   -1.5419    
   8  norm          2.1268        2.5320        .67521E-03   -1.5416    
   9  Prefactor     .10000E-03    4.3586        .16262E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    17.202        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     14.116        11.133        .10661E-03   -1.4956    
  12  Prefactor     .10000E-03    3.5065        .14701E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    3.3049        .14244E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          7.8052        1.6044        .43937E-04   -1.5149    
  15  Prefactor     .10000E-03    4.0824        .15814E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    10.562        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    11.683        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .30314        108.92        .46537E-02   -1.5598    
  19  Prefactor     .10000E-03    1.1629        .16678E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    4.9374        .17446E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     7.8786        3.6603        .99797E-04   -1.5147    
  22  Prefactor     .10000E-03    4.3982        .16430E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    11.559        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     1.5462        2.8994        .17917E-03   -1.5459    
  25  norm          .22851        .13090        .20722E-04   -1.5612    
  26  Prefactor     8.3937        19.541        .13837E-03   -1.5128    
  27  Normalizat    .71029        .19052        .26170E-03   -1.0349    
  28  Prefactor     1.0071        .18331        .22057E-03   -.92492    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.72307e-08
Minuit parameter uncertainties:
  1  5.63505
  2  0.00205984
  3  0.000524736
  4  11.1836
  5  4.40184
  6  8.0895
  7  1.14594
  8  2.5321
  9  4.97473e-05
  10  0.000549746
  11  11.1341
  12  4.84288e-05
  13  4.35565e-05
  14  1.60437
  15  2.61365e-05
  16  0.000163083
  17  8.57064e-05
  18  11.5114
  19  1.93167e-05
  20  3.20584e-05
  21  3.6604
  22  3.53864e-05
  23  0.000241801
  24  2.89966
  25  0.130901
  26  19.5556
  27  0.190697
  28  0.183425
Done.

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

Extracting fit parameters...

4FGL J1535.9+3743
   Spectrum: LogParabola
303         norm:  3.031e-01  1.151e+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.007e+00  1.834e-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:  7.103e-01  1.907e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 233.983 37.725
Photon Flux Upper Limit: 5.90e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.30e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/620431/likelihoodResults_509932801_510192001_4FGL_J1535.9+3743_daily_bin1044.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) = 6464.51847897
delta logL = 0.882948518451

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6464.51740088
delta logL = 0.884026613825

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .19554       1.0000         .10000E-03   10000.    
     2 'alpha     '    5.0000       1.0000          .0000       5.0000    
     3 'Normalizat'    .62331       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0593       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.

 FCN=   6464.517     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      247 TOTAL
                     EDM=   .53E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .19548        5.3262        .61341E-02   -.11204E-03
   2  alpha         5.0000        4.8630        .46305    ** at limit **
   3  Normalizat    .62336        .79640E-01    .62905E-01   -.46830E-04
   4  Prefactor     1.0592        .74291E-01    .39395E-01   -.69287E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.195483
  alpha      = 5
  Normalizat = 0.623365
  Prefactor  = 1.0592
 **********
 **   18 **HESSE 
 **********

 FCN=   6464.517     FROM HESSE     STATUS=OK            35 CALLS      282 TOTAL
                     EDM=   .69E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .19548        .18238        .27847E-03   -1.5620    
   2  alpha         5.0000        .76309        .50000        1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .62336        .19676        .27831E-03   -1.0700    
   4  Prefactor     1.0592        .18809        .21568E-03   -.90781    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.87853e-11
Minuit parameter uncertainties:
  1  0.182384
  2  1.05056e-06
  3  0.196985
  4  0.188205
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/620431': 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) = 6464.51739999
delta logL = 0.884027496993

Extracting fit parameters...

4FGL J1535.9+3743
   Spectrum: LogParabola
303         norm:  1.955e-01  1.824e-01  1.000e-04  1.000e+04 ( 1.000e-13)
304        alpha:  5.000e+00  1.051e-06  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.059e+00  1.882e-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:  6.234e-01  1.970e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.94
Ra Dec: 233.983 37.725
Photon Index (Free Index): 5.00 +/- 0.00
Photon Flux (Free Index): 5.79e-08 +/- 5.38e-08
Energy Flux (Free Index): 8.32e-06 +/- 7.75e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/620431/cmap_HighResolution_509932801_510192001_4FGL_J1535.9+3743_daily_bin1044.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.30e-05', comment='SUCCESS', energy_flux2='8.32e-06', dlogl='8.84e-01', photon_flux2='5.79e-08', job_status='DONE', time_completed='2021-09-12 08:41:49.475683', photon_index_error2='0.00', photon_index2='5.00', ts='0.00', fit_tolerance='1e-08', GAL='1.01', photon_index_error='0.00', photon_flux_upper_limit='5.90e-08', energy_flux_error2='7.75e-06', EG='0.71', time_epoch_completed='1631461309.48', return_code='0', job_id='620431', GAL2='1.06', EG2='0.62', return_code2='0', photon_flux_error2='5.38e-08', ts2='1.94', photon_index='2.45' WHERE bin_id='1044' AND source_name='4FGL J1535.9+3743' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 12 08:41:49 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0266>
Subject: Job 620431: <4FGL_J1535.9+3743_daily_bin1044> in cluster <slac> Done

Job <4FGL_J1535.9+3743_daily_bin1044> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Sun Sep 12 08:25:19 2021
Job was executed on host(s) <bullet0266>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 12 08:25:43 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep 12 08:25:43 2021
Terminated at Sun Sep 12 08:41:50 2021
Results reported at Sun Sep 12 08:41:50 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1535.9+3743_daily_bin1044 233.983 37.7249 509932801 510192001 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 :                                   837.06 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             300.27 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   966 sec.
    Turnaround time :                            991 sec.

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

