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


Performing analysis on: 4FGL_J1535.9+3743_daily_bin801
RA = 233.983, Dec = 37.7249
tmin = 446947201, tmax = 447206401
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='617509', job_status='RUN', time_executed='2021-09-12 08:15:46.856776', time_epoch_executed='1631459746.86' WHERE source_name='4FGL J1535.9+3743' and cadence='daily' and bin_id='801'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/617509

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/617509/ft1_4FGL_J1535.9+3743_daily_bin801.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/617509/ft2_4FGL_J1535.9+3743_daily_bin801.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/617509/ft1_4FGL_J1535.9+3743_daily_bin801.fits outfile=/scratch/kocevski/617509/ft1_filteredMKT_4FGL_J1535.9+3743_daily_bin801.fits ra=233.983 dec=37.7249 rad=12.0 tmin=446947201.0 tmax=447206401.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.39
user 3.18
sys 0.19

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/617509/ft1_filtered_4FGL_J1535.9+3743_daily_bin801.fits evtable="EVENTS" scfile=/scratch/kocevski/617509/ft2_4FGL_J1535.9+3743_daily_bin801.fits sctable="SC_DATA" expcube=/scratch/kocevski/617509/ltcube_446947201_447206401_4FGL_J1535.9+3743_daily_bin801.fits outfile=/scratch/kocevski/617509/expmap_446947201_447206401_4FGL_J1535.9+3743_daily_bin801.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/617509/ltcube_446947201_447206401_4FGL_J1535.9+3743_daily_bin801.fits
.....................!
real 193.12
user 187.64
sys 4.97

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/617509/ft1_filtered_4FGL_J1535.9+3743_daily_bin801.fits scfile=/scratch/kocevski/617509/ft2_4FGL_J1535.9+3743_daily_bin801.fits outfile=/scratch/kocevski/617509/cmap_446947201_447206401_4FGL_J1535.9+3743_daily_bin801.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.37
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.8082       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10120E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10020E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .45627       1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.1191       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    15.463       1.0000         .10000E-03   10000.    
    13 'Prefactor '    7.7242       1.0000         .10000E-03   10000.    
    14 'norm      '    12.593       1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.9553       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    10.753       1.0000         .10000E-03   10000.    
    18 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .60929       1.0000         .10000E-03   10000.    
    20 'Prefactor '    12.355       1.0000         .10000E-03   10000.    
    21 'Prefactor '    9.4950       1.0000         .10000E-03   10000.    
    22 'Prefactor '    6.9993       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .47868       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    .84886       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .93189       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=   6289.265     FROM MIGRAD    STATUS=CONVERGED    709 CALLS     3520 TOTAL
                     EDM=   .28E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.8083        5.5411        .82529E-07   -.43949E-04
   2  Prefactor     .10000E-03    33.425        .21889E-05** at limit **
   3  norm          .10000E-03    2.0890        .32749E-09** at limit **
   4  Prefactor     .10000E-03    5.2959        .59611E-08** at limit **
   5  Prefactor     .10000E-03    2.9404        .11747E-07** at limit **
   6  Prefactor     .10000E-03    10.246        .82342E-07** at limit **
   7  norm          .10000E-03    .71341        .36684E-07** at limit **
   8  norm          .45727        5.3206        .15094E-05   -.54122E-04
   9  Prefactor     3.0899        27.963       -.63133E-05   -.76376E-04
  10  Prefactor     .10000E-03    55.197       -.19836E-05** at limit **
  11  Prefactor     .10000E-03    3.4846        .66069E-09** at limit **
  12  Prefactor     15.405        27.588        .15128E-05   -.22356E-04
  13  Prefactor     7.7684        21.804        .26515E-05   -.10614E-03
  14  norm          12.592        2.1956       -.10730E-06   -.29787E-06
  15  Prefactor     1.9555        11.324        .27121E-05   -.27996E-05
  16  Prefactor     .10000E-03    12.986       -.19259E-06** at limit **
  17  Prefactor     10.753        12.525        .95818E-08   -.79285E-07
  18  norm          .10000E-03    3.9106        .62233E-08** at limit **
  19  Prefactor     .60907        2.0149        .60983E-07    .49868E-05
  20  Prefactor     12.348        23.986       -.80450E-07   -.53147E-05
  21  Prefactor     9.4949        3.9229       -.37917E-07    .68492E-04
  22  Prefactor     6.9996        6.9311        .10686E-06   -.63282E-04
  23  Prefactor     .10000E-03    16.755        .66280E-06** at limit **
  24  Prefactor     .10000E-03    2.0030       -.46342E-08** at limit **
  25  norm          .47868        .17598       -.39012E-08    .10244E-02
  26  Prefactor     .10000E-03    23.594       -.14803E-05** at limit **
  27  Normalizat    .84892        .17182       -.16770E-06   -.31639E-04
  28  Prefactor     .93185        .15738       -.90914E-07   -.27588E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 4.8083
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.45727
  Prefactor  = 3.08993
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 15.4052
  Prefactor  = 7.76838
  norm       = 12.5923
  Prefactor  = 1.95547
  Prefactor  = 0.0001
  Prefactor  = 10.7534
  norm       = 0.0001
  Prefactor  = 0.60907
  Prefactor  = 12.3476
  Prefactor  = 9.49487
  Prefactor  = 6.99955
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.478677
  Prefactor  = 0.0001
  Normalizat = 0.848925
  Prefactor  = 0.93185
 **********
 **   18 **HESSE 
 **********

 FCN=   6289.265     FROM HESSE     STATUS=OK           523 CALLS     4043 TOTAL
                     EDM=   .67E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.8083        5.5352        .18347E-03   -1.5269    
   2  Prefactor     .10000E-03    33.335        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    2.0891        .11194E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    5.3125        .17823E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    2.9628        .13277E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    10.528        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    .73869        .13055E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .45727        10.859        .24864E-02   -1.5573    
   9  Prefactor     3.0899        33.890        .22958E-03   -1.5356    
  10  Prefactor     .10000E-03    55.244        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    3.5024        .14457E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     15.405        27.578        .10185E-03   -1.4923    
  13  Prefactor     7.7684        22.283        .14428E-03   -1.5150    
  14  norm          12.592        2.2128        .41517E-04   -1.4998    
  15  Prefactor     1.9555        11.557        .14836E-02   -1.5428    
  16  Prefactor     .10000E-03    12.994        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     10.753        12.522        .61090E-03   -1.5052    
  18  norm          .10000E-03    3.9134        .15314E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .60907        2.0231        .19386E-03   -1.5552    
  20  Prefactor     12.348        23.991        .11397E-03   -1.5005    
  21  Prefactor     9.4949        3.9227        .96102E-04   -1.5092    
  22  Prefactor     6.9996        6.9240        .15164E-03   -1.5179    
  23  Prefactor     .10000E-03    16.780        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    2.0632        .21898E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .47868        .17510        .19428E-04   -1.5570    
  26  Prefactor     .10000E-03    23.581        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    .84892        .19938        .25673E-03   -.98279    
  28  Prefactor     .93185        .18240        .23515E-03   -.95037    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.74469e-08
Minuit parameter uncertainties:
  1  5.53584
  2  8.83807e-05
  3  7.78666e-08
  4  8.47528e-08
  5  1.37445e-06
  6  1.01272e-05
  7  1.89053e-06
  8  4.45711
  9  20.4808
  10  8.80822e-05
  11  2.66446e-07
  12  27.6006
  13  22.3068
  14  2.21285
  15  9.5103
  16  2.99204e-06
  17  12.5246
  18  1.04614e-06
  19  2.02334
  20  24.0101
  21  3.92285
  22  6.92478
  23  3.36692e-05
  24  1.83056e-06
  25  0.175101
  26  7.33094e-05
  27  0.199553
  28  0.182522
Done.

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

Extracting fit parameters...

4FGL J1535.9+3743
   Spectrum: LogParabola
303         norm:  1.000e-04  1.046e-06  1.000e-04  1.000e+04 ( 1.000e-13)
304        alpha:  2.450e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
305         beta:  1.985e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
306           Eb:  1.271e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
622    Prefactor:  9.318e-01  1.825e-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.489e-01  1.996e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/617509/likelihoodResults_446947201_447206401_4FGL_J1535.9+3743_daily_bin801.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): 102
logL (Free Index) = 6289.26575058
delta logL = -0.00120983789384

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6289.26454088
delta logL = -1.38526047522e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10126E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4308       1.0000          .0000       5.0000    
     3 'Normalizat'    .84903       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93175       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=   6289.265     FROM MIGRAD    STATUS=CONVERGED     99 CALLS      235 TOTAL
                     EDM=   .42E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    229.06        .15542E-01** at limit **
   2  alpha         1.5522        3.2260        .16469        .16568E-07
   3  Normalizat    .84893        .27060E-01    .25673E-03    .24665E-04
   4  Prefactor     .93185        .26007E-01    .23515E-03    .28911E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.55217
  Normalizat = 0.848925
  Prefactor  = 0.93185
 **********
 **   18 **HESSE 
 **********

 FCN=   6289.265     FROM HESSE     STATUS=OK            23 CALLS      258 TOTAL
                     EDM=   .71E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    5.8163        .18641E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.5522        2.6962        .65875E-02   -.38886    
   3  Normalizat    .84893        .18573        .10269E-04   -.98279    
   4  Prefactor     .93185        .17852        .94061E-05   -.95037    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.13542e-12
Minuit parameter uncertainties:
  1  1.22359e-05
  2  311.09
  3  0.185871
  4  0.178636
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/617509': 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) = 6289.26453659
delta logL = 4.14876285504e-06

Extracting fit parameters...

4FGL J1535.9+3743
   Spectrum: LogParabola
303         norm:  1.000e-04  1.224e-05  1.000e-04  1.000e+04 ( 1.000e-13)
304        alpha:  1.552e+00  3.111e+02  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.318e-01  1.786e-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.489e-01  1.859e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 233.983 37.725

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/617509/cmap_HighResolution_446947201_447206401_4FGL_J1535.9+3743_daily_bin801.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.39e-05', job_status='DONE', photon_flux_upper_limit='3.57e-08', time_completed='2021-09-12 08:30:09.202469', job_id='617509', GAL2='0.93', fit_tolerance='1e-08', EG2='0.85', EG='0.85', time_epoch_completed='1631460609.2', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.93', dlogl='4.15e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.45' WHERE bin_id='801' AND source_name='4FGL J1535.9+3743' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 12 08:30:09 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0152>
Subject: Job 617509: <4FGL_J1535.9+3743_daily_bin801> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1535.9+3743_daily_bin801 233.983 37.7249 446947201 447206401 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 :                                   857.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             337.93 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   876 sec.
    Turnaround time :                            893 sec.

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

