/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)


Waiting 2 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

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

number of points = 7478
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1535.9+3743_daily_bin287
RA = 233.983, Dec = 37.7249
tmin = 313718401, tmax = 313977601
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='609074', job_status='RUN', time_executed='2021-09-12 07:51:26.803838', time_epoch_executed='1631458286.8' WHERE source_name='4FGL J1535.9+3743' and cadence='daily' and bin_id='287'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/609074

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/609074/ft1_4FGL_J1535.9+3743_daily_bin287.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/609074/ft2_4FGL_J1535.9+3743_daily_bin287.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/609074/ft1_4FGL_J1535.9+3743_daily_bin287.fits outfile=/scratch/kocevski/609074/ft1_filteredMKT_4FGL_J1535.9+3743_daily_bin287.fits ra=233.983 dec=37.7249 rad=12.0 tmin=313718401.0 tmax=313977601.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.36
user 3.14
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/609074/ft1_filtered_4FGL_J1535.9+3743_daily_bin287.fits" evtable="EVENTS" scfile=/scratch/kocevski/609074/ft2_4FGL_J1535.9+3743_daily_bin287.fits sctable="SC_DATA" outfile=/scratch/kocevski/609074/ltcube_313718401_313977601_4FGL_J1535.9+3743_daily_bin287.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/609074/ft2_4FGL_J1535.9+3743_daily_bin287.fits
.....................!
real 14.68
user 14.23
sys 0.39

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/609074/ft1_filtered_4FGL_J1535.9+3743_daily_bin287.fits evtable="EVENTS" scfile=/scratch/kocevski/609074/ft2_4FGL_J1535.9+3743_daily_bin287.fits sctable="SC_DATA" expcube=/scratch/kocevski/609074/ltcube_313718401_313977601_4FGL_J1535.9+3743_daily_bin287.fits outfile=/scratch/kocevski/609074/expmap_313718401_313977601_4FGL_J1535.9+3743_daily_bin287.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/609074/ltcube_313718401_313977601_4FGL_J1535.9+3743_daily_bin287.fits
.....................!
real 192.67
user 185.46
sys 5.54

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/609074/ft1_filtered_4FGL_J1535.9+3743_daily_bin287.fits scfile=/scratch/kocevski/609074/ft2_4FGL_J1535.9+3743_daily_bin287.fits outfile=/scratch/kocevski/609074/cmap_313718401_313977601_4FGL_J1535.9+3743_daily_bin287.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.55
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/609074/ft1_filtered_4FGL_J1535.9+3743_daily_bin287.fits scfile=/scratch/kocevski/609074/ft2_4FGL_J1535.9+3743_daily_bin287.fits outfile=/scratch/kocevski/609074/cmap_HighResolution_313718401_313977601_4FGL_J1535.9+3743_daily_bin287.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.55
user 0.40
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    16.733       1.0000         .10000E-03   10000.    
     3 'norm      '    8.9720       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .16430E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10873E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    2.1758       1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.8947       1.0000         .10000E-03   10000.    
    10 'Prefactor '    31.312       1.0000         .10000E-03   10000.    
    11 'Prefactor '    5.2044       1.0000         .10000E-03   10000.    
    12 'Prefactor '    6.5882       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .12182E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    7.5097       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    18.574       1.0000         .10000E-03   10000.    
    17 'Prefactor '    27.922       1.0000         .10000E-03   10000.    
    18 'norm      '    .10498E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    2.5604       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .13160       1.0000         .10000E-03   10000.    
    26 'Prefactor '    2.1780       1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.0587       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .83245       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=   6408.999     FROM MIGRAD    STATUS=CONVERGED    673 CALLS     3519 TOTAL
                     EDM=   .78E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    2.0634       -.19717E-08** at limit **
   2  Prefactor     16.728        33.871       -.69305E-07    .41338E-05
   3  norm          8.9715        7.1204       -.93391E-08    .16884E-04
   4  Prefactor     .10000E-03    13.739       -.27396E-06** at limit **
   5  Prefactor     .10000E-03    7.7929       -.45813E-06** at limit **
   6  Prefactor     .10000E-03    2.4044        .45300E-07** at limit **
   7  norm          .10000E-03    .68392       -.96645E-06** at limit **
   8  norm          2.1756        4.1213        .51781E-06   -.54873E-04
   9  Prefactor     3.9131        9.3154        .53476E-06   -.37807E-04
  10  Prefactor     31.188        50.591       -.13301E-06   -.36679E-04
  11  Prefactor     5.2039        9.0243        .19179E-06   -.35886E-05
  12  Prefactor     6.5946        13.211        .35028E-05   -.57279E-05
  13  Prefactor     .10027E-03    7.3739       -.28052E-09** at limit **
  14  norm          7.5101        1.6734       -.59034E-07    .96609E-04
  15  Prefactor     .10000E-03    7.4340        .79395E-07** at limit **
  16  Prefactor     18.575        22.165       -.96608E-07   -.13202E-05
  17  Prefactor     27.923        19.727        .16379E-07    .11634E-04
  18  norm          .10000E-03    11.273        .84062E-07** at limit **
  19  Prefactor     .10000E-03    1.3947        .26317E-06** at limit **
  20  Prefactor     .10000E-03    5.1811        .47804E-07** at limit **
  21  Prefactor     2.5605        2.5603        .35667E-07   -.60718E-05
  22  Prefactor     .10000E-03    4.8732        .20013E-06** at limit **
  23  Prefactor     .10000E-03    10.640        .19794E-06** at limit **
  24  Prefactor     .10000E-03    1.2461        .15395E-06** at limit **
  25  norm          .13175        .12699       -.44123E-07   -.66625E-03
  26  Prefactor     2.1518        36.391        .18509E-05   -.19095E-05
  27  Normalizat    1.0587        .16675        .11666E-05    .16900E-04
  28  Prefactor     .83255        .15538       -.14169E-05    .10816E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 16.7284
  norm       = 8.97149
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 2.17559
  Prefactor  = 3.91308
  Prefactor  = 31.1877
  Prefactor  = 5.20391
  Prefactor  = 6.59458
  Prefactor  = 0.00010027
  norm       = 7.5101
  Prefactor  = 0.0001
  Prefactor  = 18.5755
  Prefactor  = 27.9233
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.56047
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.131745
  Prefactor  = 2.1518
  Normalizat = 1.05868
  Prefactor  = 0.832547
 **********
 **   18 **HESSE 
 **********

 FCN=   6408.999     FROM HESSE     STATUS=OK           525 CALLS     4044 TOTAL
                     EDM=   .71E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.0707        .11229E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     16.728        33.895        .97910E-04   -1.4890    
   3  norm          8.9715        7.1184        .13381E-03   -1.5109    
   4  Prefactor     .10000E-03    13.936        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    8.1439        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    2.4075        .12122E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    .68183        .12629E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          2.1756        4.0060        .18190E-03   -1.5413    
   9  Prefactor     3.9131        8.5709        .20445E-03   -1.5312    
  10  Prefactor     31.188        50.621        .35803E-03   -1.4590    
  11  Prefactor     5.2039        9.0109        .17621E-03   -1.5252    
  12  Prefactor     6.5946        13.191        .78172E-03   -1.5194    
  13  Prefactor     .10027E-03    37.547        .38082E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          7.5101        1.6732        .46011E-04   -1.5160    
  15  Prefactor     .10000E-03    7.4895        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     18.575        22.162        .92933E-04   -1.4846    
  17  Prefactor     27.923        19.683        .75817E-04   -1.4651    
  18  norm          .10000E-03    11.313        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    1.4533        .18433E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    5.1833        .17797E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     2.5605        2.5529        .12307E-03   -1.5388    
  22  Prefactor     .10000E-03    4.9508        .17255E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    10.664        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    1.2778        .17439E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .13175        .11941        .25418E-03   -1.5635    
  26  Prefactor     2.1518        35.259        .27897E-03   -1.5415    
  27  Normalizat    1.0587        .19101        .22943E-03   -.91090    
  28  Prefactor     .83255        .17726        .24451E-03   -.98540    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.14212e-09
Minuit parameter uncertainties:
  1  2.69267e-07
  2  33.9336
  3  7.11908
  4  9.27349e-06
  5  2.69302e-05
  6  2.51633e-06
  7  2.53967e-06
  8  4.00648
  9  8.57359
  10  50.6905
  11  9.0132
  12  13.1968
  13  0.00637264
  14  1.67319
  15  3.88784e-06
  16  22.172
  17  19.6878
  18  3.54363e-06
  19  1.81193e-07
  20  2.07932e-07
  21  2.55301
  22  3.62162e-06
  23  2.85818e-06
  24  7.73934e-07
  25  0.119411
  26  17.4325
  27  0.191134
  28  0.177384
Done.

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

Extracting fit parameters...

4FGL J1535.9+3743
   Spectrum: LogParabola
303         norm:  1.000e-04  3.544e-06  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:  8.325e-01  1.774e-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:  1.059e+00  1.911e-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.11e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.99e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/609074/likelihoodResults_313718401_313977601_4FGL_J1535.9+3743_daily_bin287.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) = 6408.99915522
delta logL = -0.000421445190113

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6408.99873377
delta logL = 6.54836185277e-11

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.4510       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0587       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .83255       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6408.999     FROM MIGRAD    STATUS=CONVERGED    109 CALLS      257 TOTAL
                     EDM=   .37E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    11.590        .18142E-02** at limit **
   2  alpha         3.0244        3.6541        .50000       -.18956E-05
   3  Normalizat    1.0587        .18198        .22942E-03    .27750E-05
   4  Prefactor     .83255        .17492        .24451E-03   -.27432E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 3.02439
  Normalizat = 1.05868
  Prefactor  = 0.832546
 **********
 **   18 **HESSE 
 **********

 FCN=   6408.999     FROM HESSE     STATUS=OK            29 CALLS      286 TOTAL
                     EDM=   .37E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    11.477        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         3.0244        3.6492        .50000        .21133    
   3  Normalizat    1.0587        .18216        .91769E-05   -.91090    
   4  Prefactor     .83255        .17509        .97805E-05   -.98540    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.7027e-12
Minuit parameter uncertainties:
  1  1.41702e-08
  2  2.44498
  3  0.182264
  4  0.175209
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/609074': 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) = 6408.99873369
delta logL = 8.09477569419e-08

Extracting fit parameters...

4FGL J1535.9+3743
   Spectrum: LogParabola
303         norm:  1.000e-04  1.417e-08  1.000e-04  1.000e+04 ( 1.000e-13)
304        alpha:  3.024e+00  2.445e+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:  8.325e-01  1.752e-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:  1.059e+00  1.823e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/609074/cmap_HighResolution_313718401_313977601_4FGL_J1535.9+3743_daily_bin287.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.99e-05', job_status='DONE', photon_flux_upper_limit='5.11e-08', time_completed='2021-09-12 08:05:59.199561', job_id='609074', GAL2='0.83', fit_tolerance='1e-08', EG2='1.06', EG='1.06', time_epoch_completed='1631459159.2', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.83', dlogl='8.09e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.45' WHERE bin_id='287' AND source_name='4FGL J1535.9+3743' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 12 08:05:59 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0246>
Subject: Job 609074: <4FGL_J1535.9+3743_daily_bin287> in cluster <slac> Done

Job <4FGL_J1535.9+3743_daily_bin287> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sun Sep 12 07:50:20 2021
Job was executed on host(s) <bullet0246>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 12 07:51:16 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:51:16 2021
Terminated at Sun Sep 12 08:06:00 2021
Results reported at Sun Sep 12 08:06:00 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1535.9+3743_daily_bin287 233.983 37.7249 313718401 313977601 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 :                                   866.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             328.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   883 sec.
    Turnaround time :                            940 sec.

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

