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


Performing analysis on: 4FGL_J1535.9+3743_daily_bin221
RA = 233.983, Dec = 37.7249
tmin = 296611201, tmax = 296870401
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='607706', job_status='RUN', time_executed='2021-09-12 07:45:46.837082', time_epoch_executed='1631457946.84' WHERE source_name='4FGL J1535.9+3743' and cadence='daily' and bin_id='221'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/607706

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/607706/ft1_4FGL_J1535.9+3743_daily_bin221.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/607706/ft2_4FGL_J1535.9+3743_daily_bin221.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/607706/ft1_4FGL_J1535.9+3743_daily_bin221.fits outfile=/scratch/kocevski/607706/ft1_filteredMKT_4FGL_J1535.9+3743_daily_bin221.fits ra=233.983 dec=37.7249 rad=12.0 tmin=296611201.0 tmax=296870401.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 4.37
user 4.09
sys 0.24

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/607706/ft1_filtered_4FGL_J1535.9+3743_daily_bin221.fits evtable="EVENTS" scfile=/scratch/kocevski/607706/ft2_4FGL_J1535.9+3743_daily_bin221.fits sctable="SC_DATA" expcube=/scratch/kocevski/607706/ltcube_296611201_296870401_4FGL_J1535.9+3743_daily_bin221.fits outfile=/scratch/kocevski/607706/expmap_296611201_296870401_4FGL_J1535.9+3743_daily_bin221.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/607706/ltcube_296611201_296870401_4FGL_J1535.9+3743_daily_bin221.fits
.....................!
real 192.66
user 187.00
sys 5.07

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/607706/ft1_filtered_4FGL_J1535.9+3743_daily_bin221.fits scfile=/scratch/kocevski/607706/ft2_4FGL_J1535.9+3743_daily_bin221.fits outfile=/scratch/kocevski/607706/cmap_296611201_296870401_4FGL_J1535.9+3743_daily_bin221.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.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/607706/ft1_filtered_4FGL_J1535.9+3743_daily_bin221.fits scfile=/scratch/kocevski/607706/ft2_4FGL_J1535.9+3743_daily_bin221.fits outfile=/scratch/kocevski/607706/cmap_HighResolution_296611201_296870401_4FGL_J1535.9+3743_daily_bin221.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/607706/ft1_filtered_4FGL_J1535.9+3743_daily_bin221.fits evtable="EVENTS" scfile=/scratch/kocevski/607706/ft2_4FGL_J1535.9+3743_daily_bin221.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/607706/Model_4FGL_J1535.9+3743_daily_bin221.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/607706/ft1_filtered_4FGL_J1535.9+3743_daily_bin221.fits.....................!
real 55.94
user 54.54
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    5.9879       1.0000         .10000E-03   10000.    
     6 'Prefactor '    7.8131       1.0000         .10000E-03   10000.    
     7 'norm      '    .10374E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    8.3728       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    97.388       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    54.406       1.0000         .10000E-03   10000.    
    13 'Prefactor '    9.1715       1.0000         .10000E-03   10000.    
    14 'norm      '    7.4069       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .47149E-01   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10018E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    7.1436       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    2.5218       1.0000         .10000E-03   10000.    
    25 'norm      '    .49264       1.0000         .10000E-03   10000.    
    26 'Prefactor '    4.4864       1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.2781       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .84246       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6250E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7156.604     FROM MIGRAD    STATUS=CONVERGED    117 CALLS     2464 TOTAL
                     EDM=   .27E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    3.5244       -.22871E-06** at limit **
   2  Prefactor     .10000E-03    15.074       -.10908E-04** at limit **
   3  norm          .10000E-03    2.6946        .43890E-05** at limit **
   4  Prefactor     .10000E-03    9.9982       -.58271E-06** at limit **
   5  Prefactor     5.9838        1.0418        .23231E-06   -.32090E-04
   6  Prefactor     7.8100        1.1536       -.45478E-06    .20023E-03
   7  norm          .10000E-03    .83521        .27382E-07** at limit **
   8  norm          8.3724        1.0112       -.19957E-07   -.87544E-04
   9  Prefactor     .10000E-03    4.4141       -.77342E-05** at limit **
  10  Prefactor     97.391        1.0446        .70906E-07   -.12477E-02
  11  Prefactor     .10000E-03    4.0497        .56595E-05** at limit **
  12  Prefactor     54.395        1.2825        .63983E-07   -.17277E-02
  13  Prefactor     9.1704        1.0842       -.27432E-06    .54368E-03
  14  norm          7.4125        1.8384        .12211E-06    .14375E-02
  15  Prefactor     .10000E-03    246.77       -.22550E-04** at limit **
  16  Prefactor     .10000E-03    14.191        .10739E-04** at limit **
  17  Prefactor     .10000E-03    5.6245        .23430E-05** at limit **
  18  norm          .10000E-03    3.7931        .61640E-06** at limit **
  19  Prefactor     .10000E-03    1.8297       -.82071E-08** at limit **
  20  Prefactor     7.1390        1.0895        .15031E-06   -.40457E-03
  21  Prefactor     .10000E-03    1.2488        .27835E-08** at limit **
  22  Prefactor     .10000E-03    2.9143       -.52435E-05** at limit **
  23  Prefactor     .10000E-03    45.918        .69563E-05** at limit **
  24  Prefactor     2.5212        2.8927        .22837E-07    .15831E-03
  25  norm          .49262        .18232       -.98771E-09   -.49679E-02
  26  Prefactor     4.4835        1.0411        .12956E-06   -.23839E-03
  27  Normalizat    1.2784        .21689        .52936E-06    .15579E-03
  28  Prefactor     .84236        .19505       -.42527E-06    .87911E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 5.98381
  Prefactor  = 7.80996
  norm       = 0.0001
  norm       = 8.37237
  Prefactor  = 0.000100001
  Prefactor  = 97.3912
  Prefactor  = 0.000100002
  Prefactor  = 54.3951
  Prefactor  = 9.17043
  norm       = 7.41252
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.13897
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 2.52116
  norm       = 0.492616
  Prefactor  = 4.48348
  Normalizat = 1.27837
  Prefactor  = 0.842355
 **********
 **   18 **HESSE 
 **********

 FCN=   7156.604     FROM HESSE     STATUS=OK           581 CALLS     3045 TOTAL
                     EDM=   .36E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    3.5165        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    15.182        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    4.1940        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    9.9690        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     5.9838        9.4242        .41023E-02   -1.5219    
   6  Prefactor     7.8100        9.2702        .35864E-02   -1.5149    
   7  norm          .10000E-03    .82699        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          8.3724        4.5563        .34636E-02   -1.5129    
   9  Prefactor     .10000E-03    5.0651        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     97.391        70.565        .10183E-02   -1.3731    
  11  Prefactor     .10000E-03    4.7960        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     54.395        24.837        .13595E-02   -1.4232    
  13  Prefactor     9.1704        13.126        .33085E-02   -1.5102    
  14  norm          7.4125        1.9797        .36842E-02   -1.5163    
  15  Prefactor     .10000E-03    6.4224        .92562E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    14.284        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    5.6583        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    3.8096        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    1.0265        .33938E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     7.1390        21.375        .37521E-02   -1.5174    
  21  Prefactor     .10000E-03    1.2418        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    4.0996        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    45.496        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     2.5212        2.9082        .64312E-02   -1.5390    
  25  norm          .49262        .19002        .48067E-02   -1.5568    
  26  Prefactor     4.4835        25.864        .47523E-02   -1.5284    
  27  Normalizat    1.2784        .18979        .57434E-01   -.84214    
  28  Prefactor     .84236        .16664        .44267E-01   -.98185    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.59342e-08
Minuit parameter uncertainties:
  1  1.6719e-06
  2  7.26059e-05
  3  0.000198943
  4  7.65691e-05
  5  9.42653
  6  9.27193
  7  2.6252e-06
  8  4.55652
  9  0.000103494
  10  70.6255
  11  0.000175269
  12  24.842
  13  13.1299
  14  1.9797
  15  3.2805e-05
  16  2.82719e-06
  17  8.69034e-05
  18  5.313e-05
  19  2.02093e-06
  20  21.3977
  21  2.404e-06
  22  0.000142765
  23  9.66716e-05
  24  2.90837
  25  0.190023
  26  21.551
  27  0.189892
  28  0.166738
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
622    Prefactor:  8.424e-01  1.667e-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.278e+00  1.899e-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.62e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.41e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/607706/likelihoodResults_296611201_296870401_4FGL_J1535.9+3743_daily_bin221.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) = 7156.6049194
delta logL = -0.00123111030371

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7156.60368856
delta logL = -2.71805220109e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10223E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4315       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2785       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84225       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=   7156.604     FROM MIGRAD    STATUS=CONVERGED     98 CALLS      242 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    192.04        .16348E-01** at limit **
   2  alpha         1.6462        3.4364        .16468        .23105E-06
   3  Normalizat    1.2784        .28801E-01    .25398E-03    .60517E-04
   4  Prefactor     .84236        .26268E-01    .27734E-03    .52838E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.64622
  Normalizat = 1.27837
  Prefactor  = 0.842356
 **********
 **   18 **HESSE 
 **********

 FCN=   7156.604     FROM HESSE     STATUS=OK            23 CALLS      265 TOTAL
                     EDM=   .98E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    5.3440        .18957E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.6462        2.7544        .65874E-02   -.34852    
   3  Normalizat    1.2784        .21377        .10159E-04   -.84214    
   4  Prefactor     .84236        .19494        .11094E-04   -.98185    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.76992e-10
Minuit parameter uncertainties:
  1  9.49213e-05
  2  315.243
  3  0.213921
  4  0.195101
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/607706': 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) = 7156.60368467
delta logL = 3.62214905181e-06

Extracting fit parameters...

4FGL J1535.9+3743
   Spectrum: LogParabola
303         norm:  1.000e-04  9.492e-05  1.000e-04  1.000e+04 ( 1.000e-13)
304        alpha:  1.646e+00  3.152e+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:  8.424e-01  1.951e-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.278e+00  2.139e-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/607706/cmap_HighResolution_296611201_296870401_4FGL_J1535.9+3743_daily_bin221.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.41e-05', job_status='DONE', photon_flux_upper_limit='3.62e-08', time_completed='2021-09-12 07:59:31.270931', job_id='607706', GAL2='0.84', fit_tolerance='1e-08', EG2='1.28', EG='1.28', time_epoch_completed='1631458771.27', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.84', dlogl='3.62e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.45' WHERE bin_id='221' AND source_name='4FGL J1535.9+3743' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 12 07:59:31 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0105>
Subject: Job 607706: <4FGL_J1535.9+3743_daily_bin221> in cluster <slac> Done

Job <4FGL_J1535.9+3743_daily_bin221> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Sun Sep 12 07:45:19 2021
Job was executed on host(s) <bullet0105>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 12 07:45:29 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:45:29 2021
Terminated at Sun Sep 12 07:59:32 2021
Results reported at Sun Sep 12 07:59:32 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1535.9+3743_daily_bin221 233.983 37.7249 296611201 296870401 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 :                                   821.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             313.75 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   842 sec.
    Turnaround time :                            853 sec.

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

