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


Performing analysis on: 4FGL_J1535.9+3743_daily_bin341
RA = 233.983, Dec = 37.7249
tmin = 327715201, tmax = 327974401
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='610391', job_status='RUN', time_executed='2021-09-12 07:55:37.865897', time_epoch_executed='1631458537.87' WHERE source_name='4FGL J1535.9+3743' and cadence='daily' and bin_id='341'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/610391

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/610391/ft1_4FGL_J1535.9+3743_daily_bin341.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/610391/ft2_4FGL_J1535.9+3743_daily_bin341.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/610391/ft1_4FGL_J1535.9+3743_daily_bin341.fits outfile=/scratch/kocevski/610391/ft1_filteredMKT_4FGL_J1535.9+3743_daily_bin341.fits ra=233.983 dec=37.7249 rad=12.0 tmin=327715201.0 tmax=327974401.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.37
user 3.08
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/610391/ft1_filtered_4FGL_J1535.9+3743_daily_bin341.fits evtable="EVENTS" scfile=/scratch/kocevski/610391/ft2_4FGL_J1535.9+3743_daily_bin341.fits sctable="SC_DATA" expcube=/scratch/kocevski/610391/ltcube_327715201_327974401_4FGL_J1535.9+3743_daily_bin341.fits outfile=/scratch/kocevski/610391/expmap_327715201_327974401_4FGL_J1535.9+3743_daily_bin341.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/610391/ltcube_327715201_327974401_4FGL_J1535.9+3743_daily_bin341.fits
.....................!
real 192.53
user 186.56
sys 5.44

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/610391/ft1_filtered_4FGL_J1535.9+3743_daily_bin341.fits scfile=/scratch/kocevski/610391/ft2_4FGL_J1535.9+3743_daily_bin341.fits outfile=/scratch/kocevski/610391/cmap_327715201_327974401_4FGL_J1535.9+3743_daily_bin341.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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/610391/ft1_filtered_4FGL_J1535.9+3743_daily_bin341.fits scfile=/scratch/kocevski/610391/ft2_4FGL_J1535.9+3743_daily_bin341.fits outfile=/scratch/kocevski/610391/cmap_HighResolution_327715201_327974401_4FGL_J1535.9+3743_daily_bin341.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/610391/ft1_filtered_4FGL_J1535.9+3743_daily_bin341.fits evtable="EVENTS" scfile=/scratch/kocevski/610391/ft2_4FGL_J1535.9+3743_daily_bin341.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/610391/Model_4FGL_J1535.9+3743_daily_bin341.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/610391/ft1_filtered_4FGL_J1535.9+3743_daily_bin341.fits.....................!
real 51.74
user 50.41
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    8.0502       1.0000         .10000E-03   10000.    
     2 'Prefactor '    4.8818       1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    6.2908       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    3.9780       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    19.865       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    8.3838       1.0000         .10000E-03   10000.    
    14 'norm      '    8.6106       1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.3325       1.0000         .10000E-03   10000.    
    16 'Prefactor '    26.994       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10977E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .11913E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .16915E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    7.3851       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .13458E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    2.4274       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    .80108       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .92223       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=   6690.289     FROM MIGRAD    STATUS=CONVERGED    700 CALLS     3501 TOTAL
                     EDM=   .54E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          8.0519        7.6439        .96636E-07    .99172E-05
   2  Prefactor     4.8879        118.17       -.22189E-05    .15726E-05
   3  norm          .10000E-03    2.3606        .10780E-08** at limit **
   4  Prefactor     6.2921        8.3349        .21529E-09   -.15565E-04
   5  Prefactor     .10000E-03    3.2651        .20987E-06** at limit **
   6  Prefactor     .10000E-03    2.8670        .26558E-07** at limit **
   7  norm          .10000E-03    .57982        .46847E-07** at limit **
   8  norm          3.9770        3.4704        .66691E-07    .13239E-03
   9  Prefactor     .10000E-03    6.5167       -.27055E-06** at limit **
  10  Prefactor     .10000E-03    25.722        .50238E-06** at limit **
  11  Prefactor     19.865        11.888       -.29222E-07    .22146E-04
  12  Prefactor     .10000E-03    14.994       -.51380E-06** at limit **
  13  Prefactor     8.3823        10.767        .34742E-06    .15201E-03
  14  norm          8.6104        1.9375       -.33960E-06    .93822E-04
  15  Prefactor     3.3348        9.0794        .52033E-05   -.13631E-03
  16  Prefactor     26.988        28.776       -.46494E-06    .11353E-04
  17  Prefactor     .10000E-03    6.8919        .13939E-06** at limit **
  18  norm          .10000E-03    3.9400       -.34214E-07** at limit **
  19  Prefactor     .10005E-03    1.0008       -.66645E-06** at limit **
  20  Prefactor     .10000E-03    8.9305        .38281E-06** at limit **
  21  Prefactor     .10000E-03    1.8240        .68687E-06** at limit **
  22  Prefactor     .10000E-03    4.7038       -.20278E-05** at limit **
  23  Prefactor     7.3388        20.102        .30053E-05    .11352E-04
  24  Prefactor     .10001E-03    1.4806        .56389E-06** at limit **
  25  norm          2.4272        .31855        .15966E-07    .13874E-02
  26  Prefactor     .10000E-03    40.852       -.12003E-05** at limit **
  27  Normalizat    .80089        .17016        .52508E-06    .15857E-03
  28  Prefactor     .92238        .15780       -.63184E-06    .76832E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 8.05191
  Prefactor  = 4.88793
  norm       = 0.0001
  Prefactor  = 6.29209
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 3.97699
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 19.8646
  Prefactor  = 0.0001
  Prefactor  = 8.3823
  norm       = 8.61035
  Prefactor  = 3.33481
  Prefactor  = 26.9884
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100049
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 7.33884
  Prefactor  = 0.000100005
  norm       = 2.42722
  Prefactor  = 0.0001
  Normalizat = 0.800889
  Prefactor  = 0.922382
 **********
 **   18 **HESSE 
 **********

 FCN=   6690.289     FROM HESSE     STATUS=OK           525 CALLS     4026 TOTAL
                     EDM=   .41E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          8.0519        7.6425        .14131E-03   -1.5140    
   2  Prefactor     4.8879        117.48        .18205E-03   -1.5266    
   3  norm          .10000E-03    2.3612        .12273E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     6.2921        8.3296        .16004E-03   -1.5206    
   5  Prefactor     .10000E-03    3.2872        .14429E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    2.8813        .13525E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    .59898        .12146E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          3.9770        3.4576        .13266E-03   -1.5309    
   9  Prefactor     .10000E-03    6.5466        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    25.728        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     19.865        11.881        .89865E-04   -1.4816    
  12  Prefactor     .10000E-03    15.056        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     8.3823        10.741        .13845E-03   -1.5129    
  14  norm          8.6104        1.9502        .44811E-04   -1.5121    
  15  Prefactor     3.3348        9.3385        .11086E-02   -1.5343    
  16  Prefactor     26.988        28.758        .77106E-04   -1.4668    
  17  Prefactor     .10000E-03    6.9111        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    3.9470        .15856E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10005E-03    16.804        .14965E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    8.9525        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    3.2034        .21028E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    5.0439        .17857E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     7.3388        20.145        .14759E-03   -1.5166    
  24  Prefactor     .10001E-03    9.7003        .18585E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          2.4272        .31743        .16060E-04   -1.5396    
  26  Prefactor     .10000E-03    40.980        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    .80089        .19996        .26219E-03   -1.0004    
  28  Prefactor     .92238        .18575        .23840E-03   -.95363    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.08677e-09
Minuit parameter uncertainties:
  1  7.6434
  2  48.032
  3  2.7709e-07
  4  8.33109
  5  2.1828e-06
  6  1.23405e-06
  7  1.64646e-06
  8  3.45775
  9  4.15655e-06
  10  9.44056e-06
  11  11.882
  12  1.88849e-05
  13  10.7433
  14  1.95022
  15  9.34259
  16  28.7731
  17  8.48769e-07
  18  2.53024e-06
  19  0.00181116
  20  1.31385e-05
  21  2.59206e-05
  22  0.000260283
  23  20.1636
  24  0.000455561
  25  0.317432
  26  7.45944e-05
  27  0.200142
  28  0.185874
Done.

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

Extracting fit parameters...

4FGL J1535.9+3743
   Spectrum: LogParabola
303         norm:  1.000e-04  2.530e-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.224e-01  1.859e-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.009e-01  2.001e-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.39e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.32e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/610391/likelihoodResults_327715201_327974401_4FGL_J1535.9+3743_daily_bin341.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) = 6690.29055798
delta logL = -0.00120264387624

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6690.28935518
delta logL = 1.55067937158e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4322       1.0000          .0000       5.0000    
     3 'Normalizat'    .80090       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92238       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=   6690.289     FROM MIGRAD    STATUS=CONVERGED     98 CALLS      230 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    208.25        .16059E-01** at limit **
   2  alpha         1.6238        3.9677        .16468        .78077E-07
   3  Normalizat    .80089        .25550E-01    .26219E-03    .33344E-04
   4  Prefactor     .92238        .24927E-01    .23840E-03    .53838E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.62383
  Normalizat = 0.800887
  Prefactor  = 0.922383
 **********
 **   18 **HESSE 
 **********

 FCN=   6690.289     FROM HESSE     STATUS=OK            23 CALLS      253 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    5.5024        .18675E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.6238        4.0954        .65873E-02   -.35807    
   3  Normalizat    .80089        .18799        .10488E-04   -1.0004    
   4  Prefactor     .92238        .18343        .95362E-05   -.95363    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.30982e-10
Minuit parameter uncertainties:
  1  5.29519e-05
  2  318.233
  3  0.188147
  4  0.183555
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/610391': 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) = 6690.28935181
delta logL = 3.52692495653e-06

Extracting fit parameters...

4FGL J1535.9+3743
   Spectrum: LogParabola
303         norm:  1.000e-04  5.295e-05  1.000e-04  1.000e+04 ( 1.000e-13)
304        alpha:  1.624e+00  3.182e+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.224e-01  1.836e-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.009e-01  1.881e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/610391/cmap_HighResolution_327715201_327974401_4FGL_J1535.9+3743_daily_bin341.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.32e-05', job_status='DONE', photon_flux_upper_limit='3.39e-08', time_completed='2021-09-12 08:10:44.962738', job_id='610391', GAL2='0.92', fit_tolerance='1e-08', EG2='0.80', EG='0.80', time_epoch_completed='1631459444.96', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.92', dlogl='3.53e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.45' WHERE bin_id='341' AND source_name='4FGL J1535.9+3743' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 12 08:10:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0055>
Subject: Job 610391: <4FGL_J1535.9+3743_daily_bin341> in cluster <slac> Done

Job <4FGL_J1535.9+3743_daily_bin341> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sun Sep 12 07:55:15 2021
Job was executed on host(s) <bullet0055>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 12 07:55:27 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:55:27 2021
Terminated at Sun Sep 12 08:10:45 2021
Results reported at Sun Sep 12 08:10:45 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1535.9+3743_daily_bin341 233.983 37.7249 327715201 327974401 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 :                                   898.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             331.57 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   918 sec.
    Turnaround time :                            930 sec.

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

