/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 9 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 = 7493
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1535.9+3743_daily_bin253
RA = 233.983, Dec = 37.7249
tmin = 304905601, tmax = 305164801
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='607751', job_status='RUN', time_executed='2021-09-12 07:46:20.803003', time_epoch_executed='1631457980.8' WHERE source_name='4FGL J1535.9+3743' and cadence='daily' and bin_id='253'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/607751

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/607751/ft1_4FGL_J1535.9+3743_daily_bin253.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/607751/ft2_4FGL_J1535.9+3743_daily_bin253.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/607751/ft1_4FGL_J1535.9+3743_daily_bin253.fits outfile=/scratch/kocevski/607751/ft1_filteredMKT_4FGL_J1535.9+3743_daily_bin253.fits ra=233.983 dec=37.7249 rad=12.0 tmin=304905601.0 tmax=305164801.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 2.94
user 2.67
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/607751/ft2_4FGL_J1535.9+3743_daily_bin253.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/607751/ft1_filteredMKT_4FGL_J1535.9+3743_daily_bin253.fits evtable="EVENTS" outfile="/scratch/kocevski/607751/ft1_filtered_4FGL_J1535.9+3743_daily_bin253.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.45
user 0.29
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/607751/ft1_filtered_4FGL_J1535.9+3743_daily_bin253.fits" evtable="EVENTS" scfile=/scratch/kocevski/607751/ft2_4FGL_J1535.9+3743_daily_bin253.fits sctable="SC_DATA" outfile=/scratch/kocevski/607751/ltcube_304905601_305164801_4FGL_J1535.9+3743_daily_bin253.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/607751/ft2_4FGL_J1535.9+3743_daily_bin253.fits
.....................!
real 11.15
user 10.83
sys 0.28

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/607751/ft1_filtered_4FGL_J1535.9+3743_daily_bin253.fits evtable="EVENTS" scfile=/scratch/kocevski/607751/ft2_4FGL_J1535.9+3743_daily_bin253.fits sctable="SC_DATA" expcube=/scratch/kocevski/607751/ltcube_304905601_305164801_4FGL_J1535.9+3743_daily_bin253.fits outfile=/scratch/kocevski/607751/expmap_304905601_305164801_4FGL_J1535.9+3743_daily_bin253.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/607751/ltcube_304905601_305164801_4FGL_J1535.9+3743_daily_bin253.fits
.....................!
real 154.93
user 150.84
sys 3.50

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/607751/ft1_filtered_4FGL_J1535.9+3743_daily_bin253.fits scfile=/scratch/kocevski/607751/ft2_4FGL_J1535.9+3743_daily_bin253.fits outfile=/scratch/kocevski/607751/cmap_304905601_305164801_4FGL_J1535.9+3743_daily_bin253.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.47
user 0.33
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/607751/ft1_filtered_4FGL_J1535.9+3743_daily_bin253.fits scfile=/scratch/kocevski/607751/ft2_4FGL_J1535.9+3743_daily_bin253.fits outfile=/scratch/kocevski/607751/cmap_HighResolution_304905601_305164801_4FGL_J1535.9+3743_daily_bin253.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.50
user 0.35
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.7517       1.0000         .10000E-03   10000.    
     2 'Prefactor '    39.444       1.0000         .10000E-03   10000.    
     3 'norm      '    .26460E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .87463       1.0000         .10000E-03   10000.    
     8 'norm      '    .10066E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.9486       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    20.019       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    11.174       1.0000         .10000E-03   10000.    
    15 'Prefactor '    17.645       1.0000         .10000E-03   10000.    
    16 'Prefactor '    26.589       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .89257       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .17108       1.0000         .10000E-03   10000.    
    21 'Prefactor '    1.8037       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    10.801       1.0000         .10000E-03   10000.    
    24 'Prefactor '    4.0680       1.0000         .10000E-03   10000.    
    25 'norm      '    .58652       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    .88101       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.0086       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=   7402.116     FROM MIGRAD    STATUS=CONVERGED    684 CALLS     3508 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.7523        7.1270        .41869E-02    .23775E-03
   2  Prefactor     39.443        41.948        .15955E-02    .66147E-03
   3  norm          .10000E-03    4.2718        .67773E-01** at limit **
   4  Prefactor     .10000E-03    9.8158        .90712E-02** at limit **
   5  Prefactor     .10000E-03    3.1003        .90712E-02** at limit **
   6  Prefactor     .10000E-03    2.4063        .90712E-02** at limit **
   7  norm          .87475        1.5293        .12715E-01    .54076E-03
   8  norm          .10000E-03    1.6252        .90712E-02** at limit **
   9  Prefactor     2.9504        6.3385        .59128E-02    .61831E-03
  10  Prefactor     .10000E-03    27.720        .90712E-02** at limit **
  11  Prefactor     .10000E-03    10.415        .90712E-02** at limit **
  12  Prefactor     20.012        18.453        .22380E-02   -.17898E-02
  13  Prefactor     .10000E-03    9.9204        .90712E-02** at limit **
  14  norm          11.174        2.1382        .29962E-02    .67609E-03
  15  Prefactor     17.644        12.553        .23837E-02    .46086E-04
  16  Prefactor     26.588        31.822        .19423E-02    .39332E-03
  17  Prefactor     .10000E-03    6.9187        .90712E-02** at limit **
  18  norm          .10000E-03    2.8560        .90712E-02** at limit **
  19  Prefactor     .89329        1.6940        .29754E-01    .73809E-03
  20  Prefactor     .13359        8.3871        .98448E-01    .19913E-03
  21  Prefactor     1.8036        2.1895        .77804E-02    .35553E-03
  22  Prefactor     .10000E-03    3.3143        .90712E-02** at limit **
  23  Prefactor     10.805        13.770        .30477E-02    .10704E-02
  24  Prefactor     4.0681        3.5347        .49976E-02   -.13523E-02
  25  norm          .58651        .18453        .44885E-02    .13467E-02
  26  Prefactor     .10000E-03    8.0307        .90712E-02** at limit **
  27  Normalizat    .88097        .17283        .44658E-01   -.21455E-04
  28  Prefactor     1.0087        .15822        .43537E-01   -.15926E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 5.75228
  Prefactor  = 39.4428
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.87475
  norm       = 0.000100001
  Prefactor  = 2.95044
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 20.0125
  Prefactor  = 0.0001
  norm       = 11.1739
  Prefactor  = 17.6443
  Prefactor  = 26.5878
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.893293
  Prefactor  = 0.133587
  Prefactor  = 1.80357
  Prefactor  = 0.0001
  Prefactor  = 10.8046
  Prefactor  = 4.06806
  norm       = 0.586507
  Prefactor  = 0.000100001
  Normalizat = 0.880968
  Prefactor  = 1.00866
 **********
 **   18 **HESSE 
 **********

 FCN=   7402.116     FROM HESSE     STATUS=OK           527 CALLS     4035 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.7523        7.1080        .16748E-03   -1.5228    
   2  Prefactor     39.443        41.939        .63821E-04   -1.4451    
   3  norm          .10000E-03    14.914        .34586E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    9.8670        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    3.1073        .14767E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    2.4108        .13033E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .87475        1.4967        .13043E-03   -1.5521    
   8  norm          .10000E-03    1.6354        .10686E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     2.9504        6.2781        .23651E-03   -1.5364    
  10  Prefactor     .10000E-03    27.742        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    10.634        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     20.012        18.425        .89519E-04   -1.4813    
  13  Prefactor     .10000E-03    9.9962        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          11.174        2.1502        .46308E-04   -1.5039    
  15  Prefactor     17.644        12.598        .95348E-04   -1.4868    
  16  Prefactor     26.588        31.798        .77690E-04   -1.4676    
  17  Prefactor     .10000E-03    6.9583        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    2.8581        .14200E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .89329        1.4263        .14812E-02   -1.5519    
  20  Prefactor     .13359        9.2401        .89237E-01   -1.5635    
  21  Prefactor     1.8036        2.1734        .13521E-03   -1.5439    
  22  Prefactor     .10000E-03    3.3197        .15270E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     10.805        13.746        .12191E-03   -1.5050    
  24  Prefactor     4.0681        3.5284        .14209E-03   -1.5305    
  25  norm          .58651        .18421        .19850E-04   -1.5555    
  26  Prefactor     .10000E-03    8.0362        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    .88097        .20042        .26566E-03   -.97132    
  28  Prefactor     1.0087        .18453        .24210E-03   -.92442    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.28511e-08
Minuit parameter uncertainties:
  1  7.10902
  2  41.97
  3  8.77074e-05
  4  2.42937e-06
  5  2.60943e-05
  6  1.75575e-05
  7  1.49681
  8  8.24866e-05
  9  6.27951
  10  0.000109689
  11  0.000241833
  12  18.4304
  13  5.63146e-05
  14  2.1502
  15  12.5998
  16  31.8181
  17  1.48378e-05
  18  2.38086e-05
  19  1.42636
  20  2.22156
  21  2.17354
  22  3.48479e-05
  23  13.7498
  24  3.52861
  25  0.184207
  26  0.000156348
  27  0.200589
  28  0.184646
Done.

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

Extracting fit parameters...

4FGL J1535.9+3743
   Spectrum: LogParabola
303         norm:  1.000e-04  2.381e-05  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.009e+00  1.846e-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:  8.810e-01  2.006e-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: 2.73e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.06e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/607751/likelihoodResults_304905601_305164801_4FGL_J1535.9+3743_daily_bin253.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7402.11782197
delta logL = -0.00163921053536

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7402.1161824
delta logL = 3.5829089029e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4267       1.0000          .0000       5.0000    
     3 'Normalizat'    .88101       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0086       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=   7402.116     FROM MIGRAD    STATUS=CONVERGED     98 CALLS      238 TOTAL
                     EDM=   .79E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    185.28        .14520E-01** at limit **
   2  alpha         1.5082        4.1275        .16470        .79037E-07
   3  Normalizat    .88097        .26235E-01    .26566E-03    .12153E-04
   4  Prefactor     1.0087        .25553E-01    .24210E-03   -.21836E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100003
  alpha      = 1.5082
  Normalizat = 0.880967
  Prefactor  = 1.00866
 **********
 **   18 **HESSE 
 **********

 FCN=   7402.116     FROM HESSE     STATUS=OK            23 CALLS      261 TOTAL
                     EDM=   .60E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    4.7116        .18186E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.5082        3.6660        .65879E-02   -.40794    
   3  Normalizat    .88097        .18758        .10626E-04   -.97132    
   4  Prefactor     1.0087        .18273        .96838E-05   -.92442    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.0224e-10
Minuit parameter uncertainties:
  1  0.000218301
  2  271.726
  3  0.18772
  4  0.182839
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/607751': 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) = 7402.11617594
delta logL = 6.82405789121e-06

Extracting fit parameters...

4FGL J1535.9+3743
   Spectrum: LogParabola
303         norm:  1.000e-04  2.183e-04  1.000e-04  1.000e+04 ( 1.000e-13)
304        alpha:  1.508e+00  2.717e+02  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.009e+00  1.828e-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:  8.810e-01  1.877e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 233.983 37.725

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/607751/cmap_HighResolution_304905601_305164801_4FGL_J1535.9+3743_daily_bin253.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.06e-05', job_status='DONE', photon_flux_upper_limit='2.73e-08', time_completed='2021-09-12 07:59:14.394755', job_id='607751', GAL2='1.01', fit_tolerance='1e-08', EG2='0.88', EG='0.88', time_epoch_completed='1631458754.39', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.01', dlogl='6.82e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.45' WHERE bin_id='253' AND source_name='4FGL J1535.9+3743' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 12 07:59:14 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0023>
Subject: Job 607751: <4FGL_J1535.9+3743_daily_bin253> in cluster <slac> Done

Job <4FGL_J1535.9+3743_daily_bin253> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Sun Sep 12 07:45:22 2021
Job was executed on host(s) <bullet0023>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 12 07:46:01 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep 12 07:46:01 2021
Terminated at Sun Sep 12 07:59:15 2021
Results reported at Sun Sep 12 07:59:15 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1535.9+3743_daily_bin253 233.983 37.7249 304905601 305164801 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 :                                   768.00 sec.
    Max Memory :                                 1145 MB
    Average Memory :                             363.41 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   793 sec.
    Turnaround time :                            833 sec.

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

