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


Performing analysis on: 4FGL_J1535.9+3743_daily_bin1082
RA = 233.983, Dec = 37.7249
tmin = 519782401, tmax = 520041601
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='620487', job_status='RUN', time_executed='2021-09-12 08:27:45.667157', time_epoch_executed='1631460465.67' WHERE source_name='4FGL J1535.9+3743' and cadence='daily' and bin_id='1082'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/620487

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/620487/ft1_4FGL_J1535.9+3743_daily_bin1082.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/620487/ft2_4FGL_J1535.9+3743_daily_bin1082.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/620487/ft1_4FGL_J1535.9+3743_daily_bin1082.fits outfile=/scratch/kocevski/620487/ft1_filteredMKT_4FGL_J1535.9+3743_daily_bin1082.fits ra=233.983 dec=37.7249 rad=12.0 tmin=519782401.0 tmax=520041601.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.59
user 3.30
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/620487/ft1_filtered_4FGL_J1535.9+3743_daily_bin1082.fits" evtable="EVENTS" scfile=/scratch/kocevski/620487/ft2_4FGL_J1535.9+3743_daily_bin1082.fits sctable="SC_DATA" outfile=/scratch/kocevski/620487/ltcube_519782401_520041601_4FGL_J1535.9+3743_daily_bin1082.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/620487/ft2_4FGL_J1535.9+3743_daily_bin1082.fits
.....................!
real 14.61
user 14.16
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/620487/ft1_filtered_4FGL_J1535.9+3743_daily_bin1082.fits evtable="EVENTS" scfile=/scratch/kocevski/620487/ft2_4FGL_J1535.9+3743_daily_bin1082.fits sctable="SC_DATA" expcube=/scratch/kocevski/620487/ltcube_519782401_520041601_4FGL_J1535.9+3743_daily_bin1082.fits outfile=/scratch/kocevski/620487/expmap_519782401_520041601_4FGL_J1535.9+3743_daily_bin1082.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/620487/ltcube_519782401_520041601_4FGL_J1535.9+3743_daily_bin1082.fits
.....................!
real 192.00
user 186.02
sys 5.29

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/620487/ft1_filtered_4FGL_J1535.9+3743_daily_bin1082.fits scfile=/scratch/kocevski/620487/ft2_4FGL_J1535.9+3743_daily_bin1082.fits outfile=/scratch/kocevski/620487/cmap_519782401_520041601_4FGL_J1535.9+3743_daily_bin1082.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.56
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/620487/ft1_filtered_4FGL_J1535.9+3743_daily_bin1082.fits scfile=/scratch/kocevski/620487/ft2_4FGL_J1535.9+3743_daily_bin1082.fits outfile=/scratch/kocevski/620487/cmap_HighResolution_519782401_520041601_4FGL_J1535.9+3743_daily_bin1082.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=233.983 yref=37.7249 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.57
user 0.40
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    4.8819       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .57147       1.0000         .10000E-03   10000.    
     5 'Prefactor '    7.9950       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .60858       1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .96785       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    20.508       1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.0156       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .20458E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .11472E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    3.8951       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    17.107       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10057E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    8.1712       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .28217       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    2.2641       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .43283       1.0000         .10000E-03   10000.    
    25 'norm      '    .24980       1.0000         .10000E-03   10000.    
    26 'Prefactor '    40.817       1.0000         .10000E-03   10000.    
    27 'Normalizat'    .92029       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .87537       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=   5474.235     FROM MIGRAD    STATUS=CONVERGED    692 CALLS     3529 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1.7443        .90712E-02** at limit **
   2  Prefactor     .10000E-03    24.247        .90712E-02** at limit **
   3  norm          4.8818        5.3709        .45513E-02   -.26186E-02
   4  Prefactor     .57054        8.4354        .11559        .16453E-03
   5  Prefactor     7.9943        7.0648        .35450E-02    .30363E-02
   6  Prefactor     .60790        6.4494        .57601E-01    .58337E-03
   7  norm          .10000E-03    .47668        .90712E-02** at limit **
   8  norm          .95983        2.6017        .38687E-01    .85293E-03
   9  Prefactor     .10000E-03    3.8856        .90712E-02** at limit **
  10  Prefactor     20.508        68.321        .22111E-02   -.43164E-04
  11  Prefactor     2.0151        10.233        .72887E-02    .32186E-03
  12  Prefactor     .10000E-03    12.025        .90712E-01** at limit **
  13  Prefactor     .10000E-03    12.681        .90712E-02** at limit **
  14  norm          3.8948        1.4109        .51110E-02    .22408E-03
  15  Prefactor     .10000E-03    4.5275        .90712E-02** at limit **
  16  Prefactor     17.113        22.974        .24209E-02   -.77455E-03
  17  Prefactor     .10000E-03    9.7184        .90712E-02** at limit **
  18  norm          8.1626        14.376        .35063E-02   -.77571E-03
  19  Prefactor     .28181        1.6745        .10347E-01    .19778E-02
  20  Prefactor     .10000E-03    4.9598        .90712E-02** at limit **
  21  Prefactor     2.2648        2.6967        .68245E-02    .49126E-03
  22  Prefactor     .10000E-03    2.9379        .90712E-02** at limit **
  23  Prefactor     .10000E-03    7.6439        .90712E-02** at limit **
  24  Prefactor     .43352        2.0573        .55681E-01    .55184E-03
  25  norm          .24976        .15608        .47934E-02    .39522E-03
  26  Prefactor     40.818        25.236        .15686E-02   -.28422E-03
  27  Normalizat    .92000        .17511        .45160E-01    .94217E-04
  28  Prefactor     .87577        .16052        .44690E-01    .82566E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 4.88179
  Prefactor  = 0.570542
  Prefactor  = 7.99427
  Prefactor  = 0.607897
  norm       = 0.0001
  norm       = 0.959835
  Prefactor  = 0.0001
  Prefactor  = 20.508
  Prefactor  = 2.01509
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.89479
  Prefactor  = 0.0001
  Prefactor  = 17.1131
  Prefactor  = 0.0001
  norm       = 8.16261
  Prefactor  = 0.281807
  Prefactor  = 0.0001
  Prefactor  = 2.26483
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.433522
  norm       = 0.249762
  Prefactor  = 40.8185
  Normalizat = 0.919998
  Prefactor  = 0.875768
 **********
 **   18 **HESSE 
 **********

 FCN=   5474.235     FROM HESSE     STATUS=OK           529 CALLS     4058 TOTAL
                     EDM=   .62E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.7471        .95425E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    24.270        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          4.8818        5.3760        .87617E-03   -1.5266    
   4  Prefactor     .57054        77.413        .39551E-02   -1.5557    
   5  Prefactor     7.9943        7.0486        .70901E-03   -1.5142    
   6  Prefactor     .60790        16.562        .35905E-02   -1.5552    
   7  norm          .10000E-03    .48358        .49688E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .95983        2.2488        .18601E-02   -1.5512    
   9  Prefactor     .10000E-03    3.8967        .14221E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     20.508        68.294        .88445E-04   -1.4802    
  11  Prefactor     2.0151        10.215        .29155E-03   -1.5424    
  12  Prefactor     .10000E-03    73.202        .48883E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    12.871        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          3.8948        1.4085        .49916E-04   -1.5313    
  15  Prefactor     .10000E-03    4.5472        .15354E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     17.113        22.954        .96836E-04   -1.4880    
  17  Prefactor     .10000E-03    9.7216        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          8.1626        14.391        .14025E-03   -1.5136    
  19  Prefactor     .28181        1.6486        .18386E-03   -1.5602    
  20  Prefactor     .10000E-03    4.9608        .16093E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     2.2648        2.6812        .12711E-03   -1.5407    
  22  Prefactor     .10000E-03    2.9479        .12385E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    7.6516        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .43352        7.0070        .19680E-02   -1.5576    
  25  norm          .24976        .15371        .21354E-04   -1.5608    
  26  Prefactor     40.818        25.179        .62742E-04   -1.4429    
  27  Normalizat    .92000        .20609        .22940E-03   -.95761    
  28  Prefactor     .87577        .19047        .22681E-03   -.96993    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.1724e-08
Minuit parameter uncertainties:
  1  2.03464e-06
  2  6.83245e-05
  3  5.37657
  4  13.3082
  5  7.04935
  6  6.34736
  7  3.23851e-07
  8  2.24896
  9  1.42883e-06
  10  68.5556
  11  9.07604
  12  5.5595e-05
  13  1.77405e-05
  14  1.40848
  15  4.34241e-06
  16  22.966
  17  7.16994e-06
  18  14.3974
  19  1.36304
  20  3.41686e-06
  21  2.68131
  22  7.9573e-07
  23  1.52143e-05
  24  3.48586
  25  0.153713
  26  25.1856
  27  0.20627
  28  0.190612
Done.

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

Extracting fit parameters...

4FGL J1535.9+3743
   Spectrum: LogParabola
303         norm:  8.163e+00  1.440e+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.758e-01  1.906e-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.200e-01  2.063e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/620487/likelihoodResults_519782401_520041601_4FGL_J1535.9+3743_daily_bin1082.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) = 5472.55914034
delta logL = 1.67623441392

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5472.51534758
delta logL = 1.72002717256

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .84173       1.0000         .10000E-03   10000.    
     2 'alpha     '    4.5134       1.0000          .0000       5.0000    
     3 'Normalizat'    .82342       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93114       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=   5472.515     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      270 TOTAL
                     EDM=   .74E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .84058        8.7362        .86542E-02    .58193E-03
   2  alpha         4.5141        4.6988        .30361        .27951E-04
   3  Normalizat    .82349        .54356E-01    .43915E-01    .76654E-05
   4  Prefactor     .93108        .52653E-01    .45401E-01   -.29253E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.84058
  alpha      = 4.51406
  Normalizat = 0.823486
  Prefactor  = 0.931081
 **********
 **   18 **HESSE 
 **********

 FCN=   5472.515     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      303 TOTAL
                     EDM=   .11E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .84058        14.310        .38994E-04   -1.5525    
   2  alpha         4.5141        4.7420        .14511E-01    .93673    
   3  Normalizat    .82349        .19358        .24068E-03   -.99203    
   4  Prefactor     .93108        .18293        .22043E-03   -.95063    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.06958e-07
Minuit parameter uncertainties:
  1  6.93802
  2  3.94339
  3  0.19374
  4  0.183049
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/620487': 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): 102
logL (Free Index) = 5472.5153473
delta logL = 1.72002744642

Extracting fit parameters...

4FGL J1535.9+3743
   Spectrum: LogParabola
303         norm:  8.406e-01  6.938e+00  1.000e-04  1.000e+04 ( 1.000e-13)
304        alpha:  4.514e+00  3.943e+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:  9.311e-01  1.830e-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.235e-01  1.937e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.05
Ra Dec: 233.983 37.725
Photon Index (Free Index): 4.51 +/- 3.94
Photon Flux (Free Index): 8.50e-08 +/- 6.00e-08
Energy Flux (Free Index): 1.31e-05 +/- 8.74e-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/620487/cmap_HighResolution_519782401_520041601_4FGL_J1535.9+3743_daily_bin1082.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.86e-05', comment='SUCCESS', energy_flux2='1.31e-05', dlogl='1.72e+00', photon_flux2='8.50e-08', job_status='DONE', time_completed='2021-09-12 08:40:52.413460', photon_index_error2='3.94', photon_index2='4.51', ts='0.40', fit_tolerance='1e-08', GAL='0.88', photon_index_error='0.00', photon_flux_upper_limit='7.34e-08', energy_flux_error2='8.74e-06', EG='0.92', time_epoch_completed='1631461252.41', return_code='0', job_id='620487', GAL2='0.93', EG2='0.82', return_code2='102', photon_flux_error2='6.00e-08', ts2='4.05', photon_index='2.45' WHERE bin_id='1082' AND source_name='4FGL J1535.9+3743' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 12 08:40:52 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0010>
Subject: Job 620487: <4FGL_J1535.9+3743_daily_bin1082> in cluster <slac> Done

Job <4FGL_J1535.9+3743_daily_bin1082> 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) <bullet0010>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 12 08:26:07 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:07 2021
Terminated at Sun Sep 12 08:40:53 2021
Results reported at Sun Sep 12 08:40:53 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1535.9+3743_daily_bin1082 233.983 37.7249 519782401 520041601 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 :                                   775.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             295.45 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   885 sec.
    Turnaround time :                            931 sec.

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

