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


Performing analysis on: 4FGL_J1535.9+3743_daily_bin1181
RA = 233.983, Dec = 37.7249
tmin = 545443201, tmax = 545702401
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='620632', job_status='RUN', time_executed='2021-09-12 08:27:46.069257', time_epoch_executed='1631460466.07' WHERE source_name='4FGL J1535.9+3743' and cadence='daily' and bin_id='1181'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/620632

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/620632/ft1_4FGL_J1535.9+3743_daily_bin1181.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/620632/ft2_4FGL_J1535.9+3743_daily_bin1181.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/620632/ft1_4FGL_J1535.9+3743_daily_bin1181.fits outfile=/scratch/kocevski/620632/ft1_filteredMKT_4FGL_J1535.9+3743_daily_bin1181.fits ra=233.983 dec=37.7249 rad=12.0 tmin=545443201.0 tmax=545702401.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.19
user 3.95
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/620632/ft1_filtered_4FGL_J1535.9+3743_daily_bin1181.fits" evtable="EVENTS" scfile=/scratch/kocevski/620632/ft2_4FGL_J1535.9+3743_daily_bin1181.fits sctable="SC_DATA" outfile=/scratch/kocevski/620632/ltcube_545443201_545702401_4FGL_J1535.9+3743_daily_bin1181.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/620632/ft2_4FGL_J1535.9+3743_daily_bin1181.fits
.....................!
real 13.65
user 13.18
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/620632/ft1_filtered_4FGL_J1535.9+3743_daily_bin1181.fits evtable="EVENTS" scfile=/scratch/kocevski/620632/ft2_4FGL_J1535.9+3743_daily_bin1181.fits sctable="SC_DATA" expcube=/scratch/kocevski/620632/ltcube_545443201_545702401_4FGL_J1535.9+3743_daily_bin1181.fits outfile=/scratch/kocevski/620632/expmap_545443201_545702401_4FGL_J1535.9+3743_daily_bin1181.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/620632/ltcube_545443201_545702401_4FGL_J1535.9+3743_daily_bin1181.fits
.....................!
real 190.40
user 185.39
sys 4.37

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/620632/ft1_filtered_4FGL_J1535.9+3743_daily_bin1181.fits scfile=/scratch/kocevski/620632/ft2_4FGL_J1535.9+3743_daily_bin1181.fits outfile=/scratch/kocevski/620632/cmap_545443201_545702401_4FGL_J1535.9+3743_daily_bin1181.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/620632/ft1_filtered_4FGL_J1535.9+3743_daily_bin1181.fits scfile=/scratch/kocevski/620632/ft2_4FGL_J1535.9+3743_daily_bin1181.fits outfile=/scratch/kocevski/620632/cmap_HighResolution_545443201_545702401_4FGL_J1535.9+3743_daily_bin1181.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=233.983 yref=37.7249 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.56
user 0.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10350E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .56837E-01   1.0000         .10000E-03   10000.    
     3 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    12.249       1.0000         .10000E-03   10000.    
     5 'Prefactor '    13.303       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    6.9978       1.0000         .10000E-03   10000.    
     8 'norm      '    .12193E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .26672E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .12511E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    6.8665       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10421E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    17.016       1.0000         .10000E-03   10000.    
    14 'norm      '    2.1316       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10070E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10187E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10205E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .33947E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .13925E-02   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10177E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    26.017       1.0000         .10000E-03   10000.    
    27 'Normalizat'    .76693       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .76230       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=   1338.706     FROM MIGRAD    STATUS=CONVERGED    707 CALLS     3443 TOTAL
                     EDM=   .73E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    14.671       -.14435E-05** at limit **
   2  Prefactor     .10008E-03    6443.3       -.74840E-04** at limit **
   3  norm          .10000E-03    7.2154       -.77931E-07** at limit **
   4  Prefactor     12.246        30.988       -.36714E-06    .79984E-04
   5  Prefactor     13.324        30.888       -.25198E-05    .13002E-03
   6  Prefactor     .10000E-03    68.003       -.13532E-06** at limit **
   7  norm          6.9955        9.2990        .11065E-06    .35795E-03
   8  norm          .10000E-03    21.199       -.30918E-05** at limit **
   9  Prefactor     .10000E-03    104.23       -.92334E-05** at limit **
  10  Prefactor     .10000E-03    107.51        .12993E-06** at limit **
  11  Prefactor     6.8687        11.310        .45870E-06   -.13570E-04
  12  Prefactor     .10000E-03    71.391       -.20100E-05** at limit **
  13  Prefactor     17.083        69.597        .20007E-05    .11583E-04
  14  norm          2.1321        2.0122        .22311E-06    .11536E-05
  15  Prefactor     .10000E-03    17.200        .69327E-06** at limit **
  16  Prefactor     .10000E-03    25.506        .11377E-06** at limit **
  17  Prefactor     .10000E-03    34.249        .17228E-06** at limit **
  18  norm          .10000E-03    18.565        .12325E-07** at limit **
  19  Prefactor     .10000E-03    3.1536        .54228E-06** at limit **
  20  Prefactor     .10000E-03    44.299       -.40984E-06** at limit **
  21  Prefactor     .10000E-03    3.8453       -.20959E-06** at limit **
  22  Prefactor     .10002E-03    404.80        .26512E-05** at limit **
  23  Prefactor     .10006E-03    893.95        .45537E-05** at limit **
  24  Prefactor     .10000E-03    17.479       -.34974E-06** at limit **
  25  norm          .10000E-03    .64996       -.22211E-05** at limit **
  26  Prefactor     25.765        101.13        .17250E-04    .15764E-03
  27  Normalizat    .76685        .40000       -.15069E-05    .17913E-03
  28  Prefactor     .76247        .30194       -.21110E-05    .19288E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.00010008
  norm       = 0.0001
  Prefactor  = 12.2461
  Prefactor  = 13.3245
  Prefactor  = 0.0001
  norm       = 6.99546
  norm       = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 6.86871
  Prefactor  = 0.0001
  Prefactor  = 17.0834
  norm       = 2.13211
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100019
  Prefactor  = 0.000100055
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 25.7655
  Normalizat = 0.76685
  Prefactor  = 0.762467
 **********
 **   18 **HESSE 
 **********

 FCN=   1338.706     FROM HESSE     STATUS=OK           507 CALLS     3950 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    14.692        .13661E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10008E-03    6448.1        .37214E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    7.2153        .96000E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     12.246        30.939        .11446E-03   -1.5008    
   5  Prefactor     13.324        30.817        .10982E-03   -1.4978    
   6  Prefactor     .10000E-03    68.018        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          6.9955        9.3713        .85239E-04   -1.5179    
   8  norm          .10000E-03    21.150        .16405E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    103.74        .21439E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    107.53        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     6.8687        11.300        .15028E-03   -1.5184    
  12  Prefactor     .10000E-03    71.404        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     17.083        69.472        .97092E-04   -1.4881    
  14  norm          2.1321        2.0084        .46788E-04   -1.5416    
  15  Prefactor     .10000E-03    17.358        .14803E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    25.515        .18055E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    34.271        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    18.574        .15402E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    3.2425        .12665E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    44.303        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    3.8503        .70073E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10002E-03    406.31        .21337E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10006E-03    898.28        .20528E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    17.482        .14946E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    .72043        .56996E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     25.765        113.23        .78537E-04   -1.4692    
  27  Normalizat    .76685        .49091        .26536E-03   -1.0131    
  28  Prefactor     .76247        .37105        .21194E-03   -1.0113    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.46791e-09
Minuit parameter uncertainties:
  1  0.000159669
  2  0.032072
  3  1.21603e-05
  4  30.9792
  5  30.8543
  6  0.000199433
  7  9.37326
  8  0.000180112
  9  0.00113151
  10  0.000215027
  11  11.3036
  12  0.000216119
  13  69.0395
  14  2.00842
  15  3.39568e-05
  16  1.30402e-05
  17  6.60469e-05
  18  5.68418e-06
  19  8.04267e-06
  20  5.25657e-05
  21  3.21068e-06
  22  0.00556189
  23  0.0143372
  24  2.94533e-06
  25  1.14081e-05
  26  108.371
  27  0.49378
  28  0.372272
Done.

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

Extracting fit parameters...

4FGL J1535.9+3743
   Spectrum: LogParabola
303         norm:  1.000e-04  5.684e-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:  7.625e-01  3.723e-01  0.000e+00  1.000e+01 ( 1.000e+00)
623        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
624        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
621   Normalization:  7.669e-01  4.938e-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: 1.52e-07 ph cm-2 s-1
Energy Flux Upper Limit: 5.90e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/620632/likelihoodResults_545443201_545702401_4FGL_J1535.9+3743_daily_bin1181.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) = 1338.70594723
delta logL = -0.000255483099181

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 1338.70569763
delta logL = -5.88926764067e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10175E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    3.4459       1.0000          .0000       5.0000    
     3 'Normalizat'    .76685       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .76247       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   1338.706     FROM MIGRAD    STATUS=FAILED       103 CALLS      271 TOTAL
                     EDM=   .23E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1306.8        .89285E-02** at limit **
   2  alpha         1.7140        3.3502        .18274        .67735E-07
   3  Normalizat    .76686        .69004E-01    .26535E-03    .16081E-02
   4  Prefactor     .76248        .55342E-01    .21195E-03    .20190E-02
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   1338.706     FROM SIMPLEX   STATUS=UNCHANGED    199 CALLS      470 TOTAL
                     EDM=   .13E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1306.8        .82304E-03** at limit **
   2  alpha         1.7140        3.3502        .10826E-07    .67735E-07
   3  Normalizat    .76686        .69004E-01    .15055E-08    .16081E-02
   4  Prefactor     .76248        .55342E-01    .34509E-09    .20190E-02
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   1338.706     FROM MIGRAD    STATUS=CONVERGED     28 CALLS      498 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    25.274        .17857E-02** at limit **
   2  alpha         1.7066        3.3244        .73094E-02    .28463E-07
   3  Normalizat    .76686        .45328        .53070E-04    .16042E-02
   4  Prefactor     .76248        .36417        .42389E-04    .20142E-02
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100003
  alpha      = 1.70661
  Normalizat = 0.766859
  Prefactor  = 0.762478
 **********
 **   18 **HESSE 
 **********

 FCN=   1338.706     FROM HESSE     STATUS=OK            23 CALLS      521 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    25.053        .35714E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.7066        3.0793        .14619E-02   -.32294    
   3  Normalizat    .76686        .45341        .10614E-04   -1.0131    
   4  Prefactor     .76248        .36427        .84778E-05   -1.0113    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.51167e-08
Minuit parameter uncertainties:
  1  0.000552485
  2  674.877
  3  0.455661
  4  0.365424
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/620632': 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) = 1338.70569105
delta logL = 6.88547743266e-07

Extracting fit parameters...

4FGL J1535.9+3743
   Spectrum: LogParabola
303         norm:  1.000e-04  5.525e-04  1.000e-04  1.000e+04 ( 1.000e-13)
304        alpha:  1.707e+00  6.749e+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:  7.625e-01  3.654e-01  0.000e+00  1.000e+01 ( 1.000e+00)
623        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
624        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
621   Normalization:  7.669e-01  4.557e-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/620632/cmap_HighResolution_545443201_545702401_4FGL_J1535.9+3743_daily_bin1181.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.90e-05', job_status='DONE', photon_flux_upper_limit='1.52e-07', time_completed='2021-09-12 08:35:21.315817', job_id='620632', GAL2='0.76', fit_tolerance='1e-08', EG2='0.77', EG='0.77', time_epoch_completed='1631460921.32', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.76', dlogl='6.89e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.45' WHERE bin_id='1181' AND source_name='4FGL J1535.9+3743' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 12 08:35:21 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0264>
Subject: Job 620632: <4FGL_J1535.9+3743_daily_bin1181> in cluster <slac> Done

Job <4FGL_J1535.9+3743_daily_bin1181> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Sun Sep 12 08:25:31 2021
Job was executed on host(s) <bullet0264>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 12 08:27:31 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:27:31 2021
Terminated at Sun Sep 12 08:35:22 2021
Results reported at Sun Sep 12 08:35:22 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1535.9+3743_daily_bin1181 233.983 37.7249 545443201 545702401 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 :                                   430.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             318.78 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   470 sec.
    Turnaround time :                            591 sec.

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

