/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 87 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 = 7642
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1535.9+3743_daily_bin1075
RA = 233.983, Dec = 37.7249
tmin = 517968001, tmax = 518227201
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='620476', job_status='RUN', time_executed='2021-09-12 08:27:43.923010', time_epoch_executed='1631460463.92' WHERE source_name='4FGL J1535.9+3743' and cadence='daily' and bin_id='1075'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/620476

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/620476/ft1_4FGL_J1535.9+3743_daily_bin1075.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/620476/ft2_4FGL_J1535.9+3743_daily_bin1075.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/620476/ft1_4FGL_J1535.9+3743_daily_bin1075.fits outfile=/scratch/kocevski/620476/ft1_filteredMKT_4FGL_J1535.9+3743_daily_bin1075.fits ra=233.983 dec=37.7249 rad=12.0 tmin=517968001.0 tmax=518227201.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.83
user 3.49
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/620476/ft1_filtered_4FGL_J1535.9+3743_daily_bin1075.fits" evtable="EVENTS" scfile=/scratch/kocevski/620476/ft2_4FGL_J1535.9+3743_daily_bin1075.fits sctable="SC_DATA" outfile=/scratch/kocevski/620476/ltcube_517968001_518227201_4FGL_J1535.9+3743_daily_bin1075.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/620476/ft2_4FGL_J1535.9+3743_daily_bin1075.fits
.....................!
real 14.31
user 13.89
sys 0.38

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/620476/ft1_filtered_4FGL_J1535.9+3743_daily_bin1075.fits evtable="EVENTS" scfile=/scratch/kocevski/620476/ft2_4FGL_J1535.9+3743_daily_bin1075.fits sctable="SC_DATA" expcube=/scratch/kocevski/620476/ltcube_517968001_518227201_4FGL_J1535.9+3743_daily_bin1075.fits outfile=/scratch/kocevski/620476/expmap_517968001_518227201_4FGL_J1535.9+3743_daily_bin1075.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/620476/ltcube_517968001_518227201_4FGL_J1535.9+3743_daily_bin1075.fits
.....................!
real 191.45
user 185.95
sys 4.77

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/620476/ft1_filtered_4FGL_J1535.9+3743_daily_bin1075.fits scfile=/scratch/kocevski/620476/ft2_4FGL_J1535.9+3743_daily_bin1075.fits outfile=/scratch/kocevski/620476/cmap_517968001_518227201_4FGL_J1535.9+3743_daily_bin1075.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.40
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/620476/ft1_filtered_4FGL_J1535.9+3743_daily_bin1075.fits scfile=/scratch/kocevski/620476/ft2_4FGL_J1535.9+3743_daily_bin1075.fits outfile=/scratch/kocevski/620476/cmap_HighResolution_517968001_518227201_4FGL_J1535.9+3743_daily_bin1075.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.40
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 'Prefactor '    7.4686       1.0000         .10000E-03   10000.    
     3 'norm      '    7.8961       1.0000         .10000E-03   10000.    
     4 'Prefactor '    25.307       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10055E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10265E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    9.2237       1.0000         .10000E-03   10000.    
    12 'Prefactor '    16.689       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10545E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    1.4551       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    3.2609       1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.8029       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    7.5288       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    3.4579       1.0000         .10000E-03   10000.    
    25 'norm      '    .40068       1.0000         .10000E-03   10000.    
    26 'Prefactor '    9.7413       1.0000         .10000E-03   10000.    
    27 'Normalizat'    .95402       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .84809       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=   5749.180     FROM MIGRAD    STATUS=CONVERGED    685 CALLS     3475 TOTAL
                     EDM=   .48E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    2.2589        .14737E-07** at limit **
   2  Prefactor     7.4686        52.295       -.28993E-05   -.46072E-05
   3  norm          7.8956        7.2553        .59141E-06    .25217E-04
   4  Prefactor     25.312        18.807       -.56246E-05    .32908E-04
   5  Prefactor     .10000E-03    2.6813        .43943E-07** at limit **
   6  Prefactor     .10000E-03    5.6239       -.77314E-06** at limit **
   7  norm          .10000E-03    .52996        .48434E-07** at limit **
   8  norm          .10000E-03    1.0488        .14973E-07** at limit **
   9  Prefactor     .10000E-03    5.2341        .76874E-06** at limit **
  10  Prefactor     .10000E-03    23.021        .61710E-05** at limit **
  11  Prefactor     9.2244        9.6469       -.23772E-06    .84698E-04
  12  Prefactor     16.691        21.454       -.57345E-05    .25121E-04
  13  Prefactor     .10000E-03    7.4059       -.15171E-05** at limit **
  14  norm          1.4560        1.3497       -.50326E-07    .12046E-02
  15  Prefactor     .10000E-03    24.268       -.10425E-04** at limit **
  16  Prefactor     .10000E-03    28.878        .43752E-05** at limit **
  17  Prefactor     .10000E-03    12.095        .76310E-05** at limit **
  18  norm          3.2616        18.223       -.55850E-05   -.12744E-03
  19  Prefactor     1.8016        3.2684       -.10043E-05   -.64887E-03
  20  Prefactor     .10000E-03    7.3401        .22495E-05** at limit **
  21  Prefactor     7.5301        4.0762       -.81167E-06   -.61904E-04
  22  Prefactor     .10000E-03    4.5920       -.10625E-06** at limit **
  23  Prefactor     .10000E-03    11.837       -.74484E-05** at limit **
  24  Prefactor     3.4584        2.7787       -.19760E-06   -.10450E-03
  25  norm          .40071        .20020        .90385E-07   -.60204E-03
  26  Prefactor     9.6761        34.382       -.93523E-05    .53879E-06
  27  Normalizat    .95358        .18253        .39501E-05    .15106E-03
  28  Prefactor     .84854        .16197        .20032E-06    .33419E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 7.46857
  norm       = 7.89558
  Prefactor  = 25.312
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.22441
  Prefactor  = 16.6906
  Prefactor  = 0.0001
  norm       = 1.45596
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.26158
  Prefactor  = 1.80162
  Prefactor  = 0.0001
  Prefactor  = 7.5301
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.4584
  norm       = 0.400713
  Prefactor  = 9.67605
  Normalizat = 0.953578
  Prefactor  = 0.848536
 **********
 **   18 **HESSE 
 **********

 FCN=   5749.180     FROM HESSE     STATUS=OK           519 CALLS     3994 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.2610        .11127E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     7.4686        52.331        .14675E-03   -1.5161    
   3  norm          7.8956        7.2551        .14269E-03   -1.5146    
   4  Prefactor     25.312        18.851        .79629E-04   -1.4701    
   5  Prefactor     .10000E-03    2.6870        .12123E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    5.7315        .17562E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    .53502        .53849E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    1.0550        .75810E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    5.2975        .16923E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    23.000        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     9.2244        9.6368        .13196E-03   -1.5100    
  12  Prefactor     16.691        21.534        .98039E-04   -1.4891    
  13  Prefactor     .10000E-03    7.4196        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          1.4560        1.3202        .77890E-04   -1.5467    
  15  Prefactor     .10000E-03    24.515        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    28.972        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    12.111        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          3.2616        18.539        .22427E-03   -1.5347    
  19  Prefactor     1.8016        3.2816        .17334E-03   -1.5440    
  20  Prefactor     .10000E-03    7.3403        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     7.5301        4.0808        .10712E-03   -1.5159    
  22  Prefactor     .10000E-03    4.6511        .15867E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    11.861        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     3.4584        2.7763        .10917E-03   -1.5336    
  25  norm          .40071        .20038        .20829E-04   -1.5581    
  26  Prefactor     9.6761        34.678        .12839E-03   -1.5086    
  27  Normalizat    .95358        .21649        .23850E-03   -.94602    
  28  Prefactor     .84854        .19259        .23455E-03   -.97963    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.00922e-09
Minuit parameter uncertainties:
  1  5.36976e-06
  2  39.5883
  3  7.2559
  4  18.8552
  5  1.18102e-05
  6  1.71953e-05
  7  3.40309e-06
  8  9.77923e-07
  9  3.80751e-05
  10  8.9817e-06
  11  9.63843
  12  21.5441
  13  7.33726e-05
  14  1.32022
  15  0.000124356
  16  1.59507e-06
  17  3.92789e-05
  18  15.5593
  19  3.28197
  20  1.46716e-06
  21  4.08094
  22  9.07366e-06
  23  1.60309e-05
  24  2.77636
  25  0.200381
  26  34.7504
  27  0.216689
  28  0.192741
Done.

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

Extracting fit parameters...

4FGL J1535.9+3743
   Spectrum: LogParabola
303         norm:  3.262e+00  1.556e+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:  8.485e-01  1.927e-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:  9.536e-01  2.167e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/620476/likelihoodResults_517968001_518227201_4FGL_J1535.9+3743_daily_bin1075.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) = 5749.12584657
delta logL = 0.0539502188894

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5749.09406849
delta logL = 0.0857282909828

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.8325       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.5586       1.0000          .0000       5.0000    
     3 'Normalizat'    .96104       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84108       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=   5749.094     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      254 TOTAL
                     EDM=   .36E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.8434        19.186        .14328E-03    .24598E-05
   2  alpha         1.5586        1.4733        .43020E-01   -.42560E-05
   3  Normalizat    .96098        .20118        .23764E-03   -.84724E-04
   4  Prefactor     .84113        .18943        .23543E-03   -.81125E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 7.84343
  alpha      = 1.55855
  Normalizat = 0.960984
  Prefactor  = 0.841125
 **********
 **   18 **HESSE 
 **********

 FCN=   5749.094     FROM HESSE     STATUS=OK            25 CALLS      279 TOTAL
                     EDM=   .29E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.8434        19.570        .57310E-05   -1.5148    
   2  alpha         1.5586        1.4995        .17208E-02   -.38610    
   3  Normalizat    .96098        .20137        .95057E-05   -.94349    
   4  Prefactor     .84113        .18967        .94173E-05   -.98230    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.86359e-11
Minuit parameter uncertainties:
  1  19.5857
  2  1.63106
  3  0.201531
  4  0.189814
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/620476': 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) = 5749.09406828
delta logL = 0.0857285024586

Extracting fit parameters...

4FGL J1535.9+3743
   Spectrum: LogParabola
303         norm:  7.843e+00  1.959e+01  1.000e-04  1.000e+04 ( 1.000e-13)
304        alpha:  1.559e+00  1.631e+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.411e-01  1.898e-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:  9.610e-01  2.015e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.05
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/620476/cmap_HighResolution_517968001_518227201_4FGL_J1535.9+3743_daily_bin1075.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.88e-05', job_status='DONE', photon_flux_upper_limit='7.38e-08', time_completed='2021-09-12 08:40:54.944144', job_id='620476', GAL2='0.84', fit_tolerance='1e-08', EG2='0.96', EG='0.95', time_epoch_completed='1631461254.94', return_code2='0', ts='0.05', comment='SUCCESS', return_code='0', GAL='0.85', dlogl='8.57e-02', ts2='0.22', photon_index_error='0.00', photon_index='2.45' WHERE bin_id='1075' AND source_name='4FGL J1535.9+3743' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 12 08:40:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0022>
Subject: Job 620476: <4FGL_J1535.9+3743_daily_bin1075> in cluster <slac> Done

Job <4FGL_J1535.9+3743_daily_bin1075> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Sun Sep 12 08:25:22 2021
Job was executed on host(s) <bullet0022>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 12 08:26: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 08:26:01 2021
Terminated at Sun Sep 12 08:40:55 2021
Results reported at Sun Sep 12 08:40:55 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1535.9+3743_daily_bin1075 233.983 37.7249 517968001 518227201 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 :                                   785.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             299.68 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   894 sec.
    Turnaround time :                            933 sec.

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

