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


Performing analysis on: 4FGL_J1535.9+3743_daily_bin1399
RA = 233.983, Dec = 37.7249
tmin = 601948801, tmax = 602208001
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='621930', job_status='RUN', time_executed='2021-09-12 08:32:23.135973', time_epoch_executed='1631460743.14' WHERE source_name='4FGL J1535.9+3743' and cadence='daily' and bin_id='1399'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/621930

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/621930/ft1_4FGL_J1535.9+3743_daily_bin1399.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/621930/ft2_4FGL_J1535.9+3743_daily_bin1399.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/621930/ft1_4FGL_J1535.9+3743_daily_bin1399.fits outfile=/scratch/kocevski/621930/ft1_filteredMKT_4FGL_J1535.9+3743_daily_bin1399.fits ra=233.983 dec=37.7249 rad=12.0 tmin=601948801.0 tmax=602208001.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.89
user 3.58
sys 0.22

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/621930/ft1_filtered_4FGL_J1535.9+3743_daily_bin1399.fits evtable="EVENTS" scfile=/scratch/kocevski/621930/ft2_4FGL_J1535.9+3743_daily_bin1399.fits sctable="SC_DATA" expcube=/scratch/kocevski/621930/ltcube_601948801_602208001_4FGL_J1535.9+3743_daily_bin1399.fits outfile=/scratch/kocevski/621930/expmap_601948801_602208001_4FGL_J1535.9+3743_daily_bin1399.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/621930/ltcube_601948801_602208001_4FGL_J1535.9+3743_daily_bin1399.fits
.....................!
real 192.27
user 186.24
sys 5.02

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

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/621930/ft1_filtered_4FGL_J1535.9+3743_daily_bin1399.fits scfile=/scratch/kocevski/621930/ft2_4FGL_J1535.9+3743_daily_bin1399.fits outfile=/scratch/kocevski/621930/cmap_HighResolution_601948801_602208001_4FGL_J1535.9+3743_daily_bin1399.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.54
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    9.2067       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    24.437       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.9856       1.0000         .10000E-03   10000.    
     7 'norm      '    .10153E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    4.5312       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10849E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    33.756       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    26.370       1.0000         .10000E-03   10000.    
    13 'Prefactor '    6.1414       1.0000         .10000E-03   10000.    
    14 'norm      '    2.0898       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .25658E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    57.198       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10787E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10749E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    31.613       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .25484       1.0000         .10000E-03   10000.    
    26 'Prefactor '    37.623       1.0000         .10000E-03   10000.    
    27 'Normalizat'    .82607       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .87792       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=   5125.133     FROM MIGRAD    STATUS=CONVERGED    693 CALLS     3500 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          9.2048        7.6475       -.43708E-08    .90923E-04
   2  Prefactor     .10000E-03    59.078       -.10936E-05** at limit **
   3  norm          .10000E-03    2.6420       -.59494E-08** at limit **
   4  Prefactor     24.430        14.515        .81866E-09    .12532E-03
   5  Prefactor     .10000E-03    9.4859       -.19747E-06** at limit **
   6  Prefactor     3.9845        9.3017        .20615E-05    .46608E-03
   7  norm          .10000E-03    .80175       -.52092E-06** at limit **
   8  norm          4.5313        4.7198       -.66410E-08    .16074E-03
   9  Prefactor     .10000E-03    18.914       -.22146E-06** at limit **
  10  Prefactor     33.739        41.556        .14510E-05    .51721E-04
  11  Prefactor     .10000E-03    3.6001       -.49096E-07** at limit **
  12  Prefactor     26.357        25.913        .96028E-06    .10205E-03
  13  Prefactor     6.1582        18.123       -.11393E-05    .40573E-04
  14  norm          2.0910        1.1005        .40404E-06   -.19543E-03
  15  Prefactor     .10005E-03    14.711        .33679E-05** at limit **
  16  Prefactor     57.245        46.312       -.36585E-06   -.62808E-04
  17  Prefactor     .10000E-03    9.7682       -.65131E-07** at limit **
  18  norm          .10000E-03    7.4289       -.13415E-06** at limit **
  19  Prefactor     .10000E-03    1.9298        .45742E-07** at limit **
  20  Prefactor     .10000E-03    8.6856       -.22999E-06** at limit **
  21  Prefactor     .10000E-03    1.3015       -.12961E-06** at limit **
  22  Prefactor     .10000E-03    23.326        .32194E-05** at limit **
  23  Prefactor     31.639        28.934       -.16756E-05   -.13321E-03
  24  Prefactor     .10000E-03    .91918       -.22118E-07** at limit **
  25  norm          .25486        .16586       -.11666E-07    .95280E-04
  26  Prefactor     37.614        30.688        .28421E-06    .42359E-05
  27  Normalizat    .82602        .17491        .31472E-06    .14643E-03
  28  Prefactor     .87802        .15791        .49054E-06    .18982E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 9.20483
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 24.4304
  Prefactor  = 0.0001
  Prefactor  = 3.98452
  norm       = 0.0001
  norm       = 4.53129
  Prefactor  = 0.0001
  Prefactor  = 33.7393
  Prefactor  = 0.0001
  Prefactor  = 26.3571
  Prefactor  = 6.15821
  norm       = 2.09098
  Prefactor  = 0.000100051
  Prefactor  = 57.2453
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 31.6392
  Prefactor  = 0.0001
  norm       = 0.254862
  Prefactor  = 37.6144
  Normalizat = 0.826018
  Prefactor  = 0.878018
 **********
 **   18 **HESSE 
 **********

 FCN=   5125.133     FROM HESSE     STATUS=OK           515 CALLS     4015 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          9.2048        7.6550        .13208E-03   -1.5101    
   2  Prefactor     .10000E-03    59.365        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    2.6425        .11364E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     24.430        14.505        .81033E-04   -1.4719    
   5  Prefactor     .10000E-03    9.7235        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     3.9845        9.6477        .10101E-02   -1.5309    
   7  norm          .10000E-03    1.4308        .12096E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          4.5313        4.6743        .14191E-03   -1.5282    
   9  Prefactor     .10000E-03    19.037        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     33.739        41.521        .68972E-04   -1.4546    
  11  Prefactor     .10000E-03    3.6091        .13267E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     26.357        25.678        .78012E-04   -1.4681    
  13  Prefactor     6.1582        17.788        .16200E-03   -1.5212    
  14  norm          2.0910        1.0844        .28558E-04   -1.5419    
  15  Prefactor     .10005E-03    20.021        .37209E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     57.245        44.976        .53043E-04   -1.4193    
  17  Prefactor     .10000E-03    9.7901        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    7.4631        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    2.0167        .19391E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    8.6916        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    1.3252        .79759E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    24.383        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     31.639        29.147        .71264E-04   -1.4582    
  24  Prefactor     .10000E-03    .92559        .67018E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .25486        .16382        .20777E-04   -1.5607    
  26  Prefactor     37.614        30.854        .65342E-04   -1.4481    
  27  Normalizat    .82602        .20322        .23846E-03   -.99111    
  28  Prefactor     .87802        .18363        .22146E-03   -.96913    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.33292e-09
Minuit parameter uncertainties:
  1  7.65584
  2  8.88477e-05
  3  5.58744e-07
  4  14.5069
  5  2.59055e-05
  6  9.65148
  7  3.52401e-06
  8  4.67469
  9  1.66878e-05
  10  41.5563
  11  6.9141e-06
  12  25.689
  13  17.8034
  14  1.08444
  15  0.00202512
  16  45.0026
  17  2.31794e-05
  18  2.2796e-05
  19  3.3303e-06
  20  1.07072e-05
  21  6.76998e-06
  22  0.000662217
  23  29.1598
  24  9.02636e-07
  25  0.163818
  26  30.8667
  27  0.203405
  28  0.183764
Done.

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

Extracting fit parameters...

4FGL J1535.9+3743
   Spectrum: LogParabola
303         norm:  1.000e-04  2.280e-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.780e-01  1.838e-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.260e-01  2.034e-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: 4.72e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.84e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/621930/likelihoodResults_601948801_602208001_4FGL_J1535.9+3743_daily_bin1399.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) = 5125.13321189
delta logL = -0.000638316087134

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5125.13257358
delta logL = -4.76757122669e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4437       1.0000          .0000       5.0000    
     3 'Normalizat'    .82601       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87803       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=   5125.133     FROM MIGRAD    STATUS=CONVERGED     94 CALLS      230 TOTAL
                     EDM=   .86E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    289.78        .18142E-01** at limit **
   2  alpha         2.0089        3.5873        .16466       -.96661E-08
   3  Normalizat    .82602        .26463E-01    .23846E-03    .72608E-04
   4  Prefactor     .87802        .25423E-01    .22146E-03    .83213E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.00887
  Normalizat = 0.826018
  Prefactor  = 0.878018
 **********
 **   18 **HESSE 
 **********

 FCN=   5125.133     FROM HESSE     STATUS=OK            23 CALLS      253 TOTAL
                     EDM=   .11E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    7.9337        .19624E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.0089        3.1667        .65864E-02   -.19774    
   3  Normalizat    .82602        .18916        .95386E-05   -.99111    
   4  Prefactor     .87802        .18175        .88585E-05   -.96914    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.08312e-11
Minuit parameter uncertainties:
  1  6.07372e-06
  2  485.517
  3  0.189307
  4  0.181871
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/621930': 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) = 5125.13257319
delta logL = 3.8538746594e-07

Extracting fit parameters...

4FGL J1535.9+3743
   Spectrum: LogParabola
303         norm:  1.000e-04  6.074e-06  1.000e-04  1.000e+04 ( 1.000e-13)
304        alpha:  2.009e+00  4.855e+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.780e-01  1.819e-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.260e-01  1.893e-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/621930/cmap_HighResolution_601948801_602208001_4FGL_J1535.9+3743_daily_bin1399.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.84e-05', job_status='DONE', photon_flux_upper_limit='4.72e-08', time_completed='2021-09-12 08:45:20.455214', job_id='621930', GAL2='0.88', fit_tolerance='1e-08', EG2='0.83', EG='0.83', time_epoch_completed='1631461520.46', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.88', dlogl='3.85e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.45' WHERE bin_id='1399' AND source_name='4FGL J1535.9+3743' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 12 08:45:20 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0119>
Subject: Job 621930: <4FGL_J1535.9+3743_daily_bin1399> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1535.9+3743_daily_bin1399 233.983 37.7249 601948801 602208001 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 :                                   740.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             328.81 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   790 sec.
    Turnaround time :                            894 sec.

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

