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


Performing analysis on: 4FGL_J1535.9+3743_daily_bin291
RA = 233.983, Dec = 37.7249
tmin = 314755201, tmax = 315014401
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='609080', job_status='RUN', time_executed='2021-09-12 07:51:30.214723', time_epoch_executed='1631458290.21' WHERE source_name='4FGL J1535.9+3743' and cadence='daily' and bin_id='291'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/609080

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/609080/ft1_4FGL_J1535.9+3743_daily_bin291.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/609080/ft2_4FGL_J1535.9+3743_daily_bin291.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/609080/ft1_4FGL_J1535.9+3743_daily_bin291.fits outfile=/scratch/kocevski/609080/ft1_filteredMKT_4FGL_J1535.9+3743_daily_bin291.fits ra=233.983 dec=37.7249 rad=12.0 tmin=314755201.0 tmax=315014401.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.45
user 3.22
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/609080/ft1_filtered_4FGL_J1535.9+3743_daily_bin291.fits" evtable="EVENTS" scfile=/scratch/kocevski/609080/ft2_4FGL_J1535.9+3743_daily_bin291.fits sctable="SC_DATA" outfile=/scratch/kocevski/609080/ltcube_314755201_315014401_4FGL_J1535.9+3743_daily_bin291.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/609080/ft2_4FGL_J1535.9+3743_daily_bin291.fits
.....................!
real 12.94
user 12.54
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/609080/ft1_filtered_4FGL_J1535.9+3743_daily_bin291.fits evtable="EVENTS" scfile=/scratch/kocevski/609080/ft2_4FGL_J1535.9+3743_daily_bin291.fits sctable="SC_DATA" expcube=/scratch/kocevski/609080/ltcube_314755201_315014401_4FGL_J1535.9+3743_daily_bin291.fits outfile=/scratch/kocevski/609080/expmap_314755201_315014401_4FGL_J1535.9+3743_daily_bin291.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/609080/ltcube_314755201_315014401_4FGL_J1535.9+3743_daily_bin291.fits
.....................!
real 192.25
user 185.91
sys 4.73

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/609080/ft1_filtered_4FGL_J1535.9+3743_daily_bin291.fits scfile=/scratch/kocevski/609080/ft2_4FGL_J1535.9+3743_daily_bin291.fits outfile=/scratch/kocevski/609080/cmap_314755201_315014401_4FGL_J1535.9+3743_daily_bin291.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.54
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/609080/ft1_filtered_4FGL_J1535.9+3743_daily_bin291.fits scfile=/scratch/kocevski/609080/ft2_4FGL_J1535.9+3743_daily_bin291.fits outfile=/scratch/kocevski/609080/cmap_HighResolution_314755201_315014401_4FGL_J1535.9+3743_daily_bin291.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.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    12.770       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10129E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    13.236       1.0000         .10000E-03   10000.    
     7 'norm      '    .93064       1.0000         .10000E-03   10000.    
     8 'norm      '    6.6098       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .32250E-01   1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.2976       1.0000         .10000E-03   10000.    
    12 'Prefactor '    17.939       1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.6293       1.0000         .10000E-03   10000.    
    14 'norm      '    4.8176       1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.6171       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10335E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10180E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    18.211       1.0000         .10000E-03   10000.    
    19 'Prefactor '    5.4078       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    6.8542       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10250E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .56814E-02   1.0000         .10000E-03   10000.    
    25 'norm      '    .36427       1.0000         .10000E-03   10000.    
    26 'Prefactor '    25.760       1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.4540       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .61554       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=   6477.829     FROM MIGRAD    STATUS=CONVERGED   1260 CALLS     4582 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          12.771        9.1637        .11209E-03    .11420E-03
   2  Prefactor     .10000E-03    30.300        .18142E-02** at limit **
   3  norm          .10000E-03    4.6854        .16949E-02** at limit **
   4  Prefactor     .10000E-03    4.4679        .16605E-02** at limit **
   5  Prefactor     .10000E-03    2.4998        .12414E-02** at limit **
   6  Prefactor     13.235        8.8584        .11010E-03    .38206E-05
   7  norm          .92515        1.8404        .13620E-03   -.12704E-03
   8  norm          6.6109        3.7401        .11008E-03   -.34432E-04
   9  Prefactor     .10000E-03    2.9566        .13498E-02** at limit **
  10  Prefactor     .10001E-03    94.777        .20320    ** at limit **
  11  Prefactor     4.2975        11.741        .19433E-03    .30596E-04
  12  Prefactor     17.885        27.603        .94563E-04    .38952E-04
  13  Prefactor     4.6371        17.435        .18706E-03    .69101E-04
  14  norm          4.8175        1.9013        .55284E-04    .49456E-03
  15  Prefactor     2.6195        13.515        .25212E-03    .12445E-04
  16  Prefactor     .10000E-03    15.166        .18142E-02** at limit **
  17  Prefactor     .10000E-03    10.517        .18142E-02** at limit **
  18  norm          18.207        13.605        .93855E-04    .32221E-04
  19  Prefactor     5.4065        3.4732        .11388E-03    .16971E-03
  20  Prefactor     .10000E-03    10.664        .18142E-02** at limit **
  21  Prefactor     .10000E-03    1.1405        .83528E-03** at limit **
  22  Prefactor     6.8553        7.4061        .15325E-03   -.58902E-04
  23  Prefactor     .10000E-03    22.543        .18142E-02** at limit **
  24  Prefactor     .10009E-03    58.739        .20643E-02** at limit **
  25  norm          .36431        .20151        .23946E-04    .10345E-02
  26  Prefactor     25.744        37.337        .78928E-04    .63521E-04
  27  Normalizat    1.4537        .24258        .23141E-03    .31775E-03
  28  Prefactor     .61591        .21020        .31085E-03    .23066E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 12.7707
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.2347
  norm       = 0.925145
  norm       = 6.61092
  Prefactor  = 0.0001
  Prefactor  = 0.000100008
  Prefactor  = 4.29747
  Prefactor  = 17.8851
  Prefactor  = 4.63714
  norm       = 4.81748
  Prefactor  = 2.6195
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 18.2069
  Prefactor  = 5.40653
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.85534
  Prefactor  = 0.0001
  Prefactor  = 0.000100088
  norm       = 0.364313
  Prefactor  = 25.7444
  Normalizat = 1.4537
  Prefactor  = 0.615908
 **********
 **   18 **HESSE 
 **********

 FCN=   6477.829     FROM HESSE     STATUS=OK           501 CALLS     5083 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          12.771        9.1633        .44837E-05   -1.4993    
   2  Prefactor     .10000E-03    30.301        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    4.6866        .33899E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    4.4681        .33209E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    2.4999        .24828E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     13.235        8.8582        .44040E-05   -1.4980    
   7  norm          .92515        1.8405        .54479E-05   -1.5516    
   8  norm          6.6109        3.7396        .22016E-04   -1.5194    
   9  Prefactor     .10000E-03    2.9566        .26996E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10001E-03    100.83        .19514       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     4.2975        11.740        .77733E-05   -1.5293    
  12  Prefactor     17.885        27.583        .37825E-05   -1.4862    
  13  Prefactor     4.6371        17.416        .74825E-05   -1.5277    
  14  norm          4.8175        1.8992        .22114E-05   -1.5269    
  15  Prefactor     2.6195        13.479        .10085E-04   -1.5384    
  16  Prefactor     .10000E-03    15.166        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    10.518        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          18.207        13.605        .37542E-05   -1.4854    
  19  Prefactor     5.4065        3.4729        .45553E-05   -1.5243    
  20  Prefactor     .10000E-03    10.665        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    1.1406        .16706E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     6.8553        7.4054        .61300E-05   -1.5184    
  23  Prefactor     .10000E-03    22.547        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10009E-03    61.372        .82572E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .36431        .20149        .95786E-06   -1.5587    
  26  Prefactor     25.744        37.359        .31571E-05   -1.4693    
  27  Normalizat    1.4537        .24264        .46282E-04   -.79088    
  28  Prefactor     .61591        .21038        .12434E-04   -1.0692    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.59262e-09
Minuit parameter uncertainties:
  1  9.1643
  2  3.08165e-05
  3  1.43866e-06
  4  5.67978e-07
  5  7.11993e-06
  6  8.85905
  7  1.84058
  8  3.73972
  9  1.30887e-05
  10  0.00177914
  11  11.7461
  12  27.6026
  13  17.4349
  14  1.89921
  15  11.8882
  16  2.55998e-05
  17  1.6267e-05
  18  13.6068
  19  3.47306
  20  1.4632e-05
  21  3.61018e-06
  22  7.40643
  23  0.000142733
  24  0.00464245
  25  0.201485
  26  37.3929
  27  0.242829
  28  0.210654
Done.

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

Extracting fit parameters...

4FGL J1535.9+3743
   Spectrum: LogParabola
303         norm:  1.821e+01  1.361e+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:  6.159e-01  2.107e-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.454e+00  2.428e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.52
Ra Dec: 233.983 37.725
Photon Index (Fixed Index): 2.45 +/- 0.00
Photon Flux (Fixed Index): 3.15e-08 +/- 2.35e-08
Energy Flux (Fixed Index): 1.23e-05 +/- 9.16e-06

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) = 6477.82695065
delta logL = 0.00160832574147

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6477.82608032
delta logL = 0.00247866100108

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    17.561       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.5091       1.0000          .0000       5.0000    
     3 'Normalizat'    1.4517       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .61646       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=   6477.826     FROM MIGRAD    STATUS=CONVERGED     61 CALLS      235 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          17.520        365.51        .23894E-02   -.34020E-04
   2  alpha         2.5048        3.2554        .30861        .40485E-04
   3  Normalizat    1.4518        .11619        .52370E-01    .30129E-03
   4  Prefactor     .61684        .74956E-01    .70182E-01    .18663E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 17.52
  alpha      = 2.50476
  Normalizat = 1.45178
  Prefactor  = 0.616843
 **********
 **   18 **HESSE 
 **********

 FCN=   6477.826     FROM HESSE     STATUS=OK            31 CALLS      266 TOTAL
                     EDM=   .37E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          17.520        17.090        .95574E-04   -1.4871    
   2  alpha         2.5048        .79056        .15521E-01    .19053E-02
   3  Normalizat    1.4518        .22675        .23154E-03   -.79142    
   4  Prefactor     .61684        .20638        .31063E-03   -1.0688    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.66357e-09
Minuit parameter uncertainties:
  1  17.0943
  2  0.804364
  3  0.226905
  4  0.20663
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/609080': 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) = 6477.82602943
delta logL = 0.00252954815642

Extracting fit parameters...

4FGL J1535.9+3743
   Spectrum: LogParabola
303         norm:  1.752e+01  1.709e+01  1.000e-04  1.000e+04 ( 1.000e-13)
304        alpha:  2.505e+00  8.044e-01  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:  6.168e-01  2.066e-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.452e+00  2.269e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.52
Ra Dec: 233.983 37.725
Photon Index (Free Index): 2.50 +/- 0.80
Photon Flux (Free Index): 3.31e-08 +/- 3.33e-08
Energy Flux (Free Index): 1.22e-05 +/- 9.10e-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/609080/cmap_HighResolution_314755201_315014401_4FGL_J1535.9+3743_daily_bin291.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.15e-08', energy_flux2='1.22e-05', photon_flux_error='2.35e-08', dlogl='2.53e-03', energy_flux='1.23e-05', photon_flux2='3.31e-08', job_status='DONE', time_completed='2021-09-12 08:05:34.808947', photon_index_error2='0.80', photon_index2='2.50', ts='5.52', fit_tolerance='1e-08', GAL='0.62', photon_index_error='0.00', energy_flux_error2='9.10e-06', EG='1.45', time_epoch_completed='1631459134.81', return_code='0', job_id='609080', GAL2='0.62', EG2='1.45', return_code2='0', energy_flux_error='9.16e-06', photon_flux_error2='3.33e-08', ts2='5.52', photon_index='2.45' WHERE bin_id='291' AND source_name='4FGL J1535.9+3743' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 12 08:05:34 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0236>
Subject: Job 609080: <4FGL_J1535.9+3743_daily_bin291> in cluster <slac> Done

Job <4FGL_J1535.9+3743_daily_bin291> 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) <bullet0236>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 12 07:51:20 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:20 2021
Terminated at Sun Sep 12 08:05:35 2021
Results reported at Sun Sep 12 08:05:35 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1535.9+3743_daily_bin291 233.983 37.7249 314755201 315014401 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 :                                   836.37 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             331.46 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   855 sec.
    Turnaround time :                            915 sec.

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

