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


Performing analysis on: 4FGL_J1535.9+3743_daily_bin786
RA = 233.983, Dec = 37.7249
tmin = 443059201, tmax = 443318401
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='617484', job_status='RUN', time_executed='2021-09-12 08:15:33.122538', time_epoch_executed='1631459733.12' WHERE source_name='4FGL J1535.9+3743' and cadence='daily' and bin_id='786'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/617484

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/617484/ft1_4FGL_J1535.9+3743_daily_bin786.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/617484/ft2_4FGL_J1535.9+3743_daily_bin786.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/617484/ft1_4FGL_J1535.9+3743_daily_bin786.fits outfile=/scratch/kocevski/617484/ft1_filteredMKT_4FGL_J1535.9+3743_daily_bin786.fits ra=233.983 dec=37.7249 rad=12.0 tmin=443059201.0 tmax=443318401.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.91
user 3.57
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/617484/ft2_4FGL_J1535.9+3743_daily_bin786.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/617484/ft1_filteredMKT_4FGL_J1535.9+3743_daily_bin786.fits evtable="EVENTS" outfile="/scratch/kocevski/617484/ft1_filtered_4FGL_J1535.9+3743_daily_bin786.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.49
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/617484/ft1_filtered_4FGL_J1535.9+3743_daily_bin786.fits" evtable="EVENTS" scfile=/scratch/kocevski/617484/ft2_4FGL_J1535.9+3743_daily_bin786.fits sctable="SC_DATA" outfile=/scratch/kocevski/617484/ltcube_443059201_443318401_4FGL_J1535.9+3743_daily_bin786.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/617484/ft2_4FGL_J1535.9+3743_daily_bin786.fits
.....................!
real 14.24
user 13.84
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/617484/ft1_filtered_4FGL_J1535.9+3743_daily_bin786.fits evtable="EVENTS" scfile=/scratch/kocevski/617484/ft2_4FGL_J1535.9+3743_daily_bin786.fits sctable="SC_DATA" expcube=/scratch/kocevski/617484/ltcube_443059201_443318401_4FGL_J1535.9+3743_daily_bin786.fits outfile=/scratch/kocevski/617484/expmap_443059201_443318401_4FGL_J1535.9+3743_daily_bin786.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/617484/ltcube_443059201_443318401_4FGL_J1535.9+3743_daily_bin786.fits
.....................!
real 193.59
user 187.29
sys 5.53

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/617484/ft1_filtered_4FGL_J1535.9+3743_daily_bin786.fits scfile=/scratch/kocevski/617484/ft2_4FGL_J1535.9+3743_daily_bin786.fits outfile=/scratch/kocevski/617484/cmap_443059201_443318401_4FGL_J1535.9+3743_daily_bin786.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.57
user 0.39
sys 0.16

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

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

This is gtbin version HEAD
real 0.56
user 0.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.6552       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10010       1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.3115       1.0000         .10000E-03   10000.    
     7 'norm      '    12.617       1.0000         .10000E-03   10000.    
     8 'norm      '    6.4660       1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.9785       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .13580E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    13.891       1.0000         .10000E-03   10000.    
    12 'Prefactor '    14.472       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10063E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    9.6288       1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.4233       1.0000         .10000E-03   10000.    
    16 'Prefactor '    39.555       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    1.5187       1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.2402       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .70566       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    1.0165       1.0000         .10000E-03   10000.    
    25 'norm      '    1.4409       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    .83852       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .91092       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=   7093.688     FROM MIGRAD    STATUS=CONVERGED    712 CALLS     3592 TOTAL
                     EDM=   .84E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.6544        5.8647       -.23302E-06    .45286E-04
   2  Prefactor     .10000E-03    13.528       -.12713E-06** at limit **
   3  norm          .10000E-03    3.3096        .12160E-06** at limit **
   4  Prefactor     .10000E-03    16.991        .16069E-06** at limit **
   5  Prefactor     .11781        121.80       -.31463E-05    .99722E-06
   6  Prefactor     4.3116        4.3048        .15985E-07   -.78100E-05
   7  norm          12.615        2.8797       -.12249E-06   -.41132E-03
   8  norm          6.4686        4.9991       -.43682E-07    .11263E-03
   9  Prefactor     2.9701        11.743       -.33331E-07    .21431E-04
  10  Prefactor     .10000E-03    270.14       -.25451E-05** at limit **
  11  Prefactor     13.892        11.046        .70420E-07    .11509E-04
  12  Prefactor     14.477        19.297       -.18833E-06    .55904E-04
  13  Prefactor     .10000E-03    14.072       -.24627E-05** at limit **
  14  norm          9.6332        2.4131        .32209E-06    .59033E-03
  15  Prefactor     1.3921        34.793       -.64282E-05    .53670E-05
  16  Prefactor     39.579        35.126        .11832E-05    .35421E-04
  17  Prefactor     .10000E-03    11.925       -.25639E-06** at limit **
  18  norm          1.5180        12.446       -.94308E-06    .32543E-04
  19  Prefactor     3.2403        2.5188        .68218E-07    .41382E-04
  20  Prefactor     .10000E-03    7.0786       -.15547E-06** at limit **
  21  Prefactor     .70557        2.2451       -.19374E-06    .28678E-04
  22  Prefactor     .10000E-03    3.6291        .14632E-06** at limit **
  23  Prefactor     .10000E-03    20.902       -.42918E-06** at limit **
  24  Prefactor     1.0166        1.7461        .22610E-06    .29777E-03
  25  norm          1.4408        .26398       -.21489E-07    .34033E-03
  26  Prefactor     .10000E-03    30.984        .20414E-06** at limit **
  27  Normalizat    .83855        .17540        .78012E-06   -.41464E-05
  28  Prefactor     .91091        .15794       -.45283E-06    .70848E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 6.6544
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.117806
  Prefactor  = 4.31155
  norm       = 12.615
  norm       = 6.46859
  Prefactor  = 2.97009
  Prefactor  = 0.0001
  Prefactor  = 13.8916
  Prefactor  = 14.4769
  Prefactor  = 0.0001
  norm       = 9.63316
  Prefactor  = 1.3921
  Prefactor  = 39.5788
  Prefactor  = 0.0001
  norm       = 1.51805
  Prefactor  = 3.24034
  Prefactor  = 0.0001
  Prefactor  = 0.705567
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.01657
  norm       = 1.44084
  Prefactor  = 0.0001
  Normalizat = 0.838547
  Prefactor  = 0.910911
 **********
 **   18 **HESSE 
 **********

 FCN=   7093.688     FROM HESSE     STATUS=OK           535 CALLS     4127 TOTAL
                     EDM=   .75E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.6544        5.8651        .15555E-03   -1.5192    
   2  Prefactor     .10000E-03    13.526        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    3.3151        .14964E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    17.184        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .11781        9.9467        .57816E-01   -1.5639    
   6  Prefactor     4.3116        4.3056        .17015E-03   -1.5293    
   7  norm          12.615        2.9364        .58784E-04   -1.4997    
   8  norm          6.4686        5.0187        .59112E-03   -1.5199    
   9  Prefactor     2.9701        11.865        .11762E-02   -1.5363    
  10  Prefactor     .10000E-03    270.85        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     13.892        11.046        .10747E-03   -1.4962    
  12  Prefactor     14.477        19.278        .10529E-03   -1.4947    
  13  Prefactor     .10000E-03    13.815        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          9.6332        2.3917        .48499E-04   -1.5087    
  15  Prefactor     1.3921        34.314        .36247E-03   -1.5472    
  16  Prefactor     39.579        35.087        .63732E-04   -1.4449    
  17  Prefactor     .10000E-03    11.919        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          1.5180        12.294        .34677E-03   -1.5462    
  19  Prefactor     3.2403        2.5140        .11267E-03   -1.5348    
  20  Prefactor     .10000E-03    7.0828        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .70557        2.1934        .21585E-03   -1.5540    
  22  Prefactor     .10000E-03    3.6513        .15666E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    21.135        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     1.0166        1.3952        .14368E-02   -1.5506    
  25  norm          1.4408        .26358        .17818E-04   -1.5468    
  26  Prefactor     .10000E-03    31.109        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    .83855        .19894        .27693E-03   -.98654    
  28  Prefactor     .91091        .17981        .25177E-03   -.95761    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.48947e-10
Minuit parameter uncertainties:
  1  5.86556
  2  2.27147e-05
  3  1.15006e-06
  4  1.34636e-05
  5  2.16442
  6  4.30589
  7  2.93641
  8  5.01898
  9  11.8743
  10  0.000221184
  11  11.0472
  12  19.2864
  13  0.000155682
  14  2.3917
  15  13.8314
  16  35.1057
  17  3.67952e-05
  18  8.64226
  19  2.51413
  20  7.57465e-06
  21  2.19369
  22  3.74866e-06
  23  7.86378e-05
  24  1.3952
  25  0.263578
  26  3.04912e-05
  27  0.199112
  28  0.17993
Done.

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

Extracting fit parameters...

4FGL J1535.9+3743
   Spectrum: LogParabola
303         norm:  1.518e+00  8.642e+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

GAL_V02
   Spectrum: PowerLaw
622    Prefactor:  9.109e-01  1.799e-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.385e-01  1.991e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/617484/likelihoodResults_443059201_443318401_4FGL_J1535.9+3743_daily_bin786.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) = 7093.42565538
delta logL = 0.262151277894

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7093.34328342
delta logL = 0.344523230395

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .14387       1.0000         .10000E-03   10000.    
     2 'alpha     '    5.0000       1.0000          .0000       5.0000    
     3 'Normalizat'    .78546       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94092       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=   7093.343     FROM MIGRAD    STATUS=CONVERGED    102 CALLS      336 TOTAL
                     EDM=   .23E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .14409        .19912        .37716E-04   -.79879E-04
   2  alpha         5.0000        3.3382        .50000    ** at limit **
   3  Normalizat    .78548        .19942        .28552E-03    .69560E-04
   4  Prefactor     .94086        .18119        .24817E-03    .77053E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.14409
  alpha      = 5
  Normalizat = 0.785481
  Prefactor  = 0.940859
 **********
 **   18 **HESSE 
 **********

 FCN=   7093.343     FROM HESSE     STATUS=OK            29 CALLS      365 TOTAL
                     EDM=   .23E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .14409        .19839        .15086E-05   -1.5632    
   2  alpha         5.0000        3.3331        .50000        1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .78548        .19968        .11421E-04   -1.0061    
   4  Prefactor     .94086        .18139        .99267E-05   -.94728    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.29833e-11
Minuit parameter uncertainties:
  1  0.198388
  2  4.85981e-05
  3  0.199865
  4  0.181508
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/617484': 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) = 7093.34328254
delta logL = 0.34452410926

Extracting fit parameters...

4FGL J1535.9+3743
   Spectrum: LogParabola
303         norm:  1.441e-01  1.984e-01  1.000e-04  1.000e+04 ( 1.000e-13)
304        alpha:  5.000e+00  4.860e-05  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.409e-01  1.815e-01  0.000e+00  1.000e+01 ( 1.000e+00)
623        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
624        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
621   Normalization:  7.855e-01  1.999e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.04
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/617484/cmap_HighResolution_443059201_443318401_4FGL_J1535.9+3743_daily_bin786.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.08e-05', job_status='DONE', photon_flux_upper_limit='5.35e-08', time_completed='2021-09-12 08:31:22.373118', job_id='617484', GAL2='0.94', fit_tolerance='1e-08', EG2='0.79', EG='0.84', time_epoch_completed='1631460682.37', return_code2='0', ts='0.04', comment='SUCCESS', return_code='0', GAL='0.91', dlogl='3.45e-01', ts2='0.79', photon_index_error='0.00', photon_index='2.45' WHERE bin_id='786' AND source_name='4FGL J1535.9+3743' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 12 08:31:22 PDT 2021


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

Job <4FGL_J1535.9+3743_daily_bin786> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sun Sep 12 08:15:14 2021
Job was executed on host(s) <bullet0022>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 12 08:15:21 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:15:21 2021
Terminated at Sun Sep 12 08:31:23 2021
Results reported at Sun Sep 12 08:31:23 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1535.9+3743_daily_bin786 233.983 37.7249 443059201 443318401 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 :                                   943.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             343.55 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   961 sec.
    Turnaround time :                            969 sec.

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

