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


Performing analysis on: 4FGL_J1534.8+0131_daily_bin251
RA = 233.725, Dec = 1.5224
tmin = 304387201, tmax = 304646401
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='549903', job_status='RUN', time_executed='2021-09-12 04:19:44.289131', time_epoch_executed='1631445584.29' WHERE source_name='4FGL J1534.8+0131' and cadence='daily' and bin_id='251'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/549903

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/549903/ft1_4FGL_J1534.8+0131_daily_bin251.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/549903/ft2_4FGL_J1534.8+0131_daily_bin251.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/549903/ft1_4FGL_J1534.8+0131_daily_bin251.fits outfile=/scratch/kocevski/549903/ft1_filteredMKT_4FGL_J1534.8+0131_daily_bin251.fits ra=233.725 dec=1.5224 rad=12.0 tmin=304387201.0 tmax=304646401.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.14
user 3.89
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/549903/ft2_4FGL_J1534.8+0131_daily_bin251.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/549903/ft2_4FGL_J1534.8+0131_daily_bin251.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/549903/ft1_filteredMKT_4FGL_J1534.8+0131_daily_bin251.fits evtable="EVENTS" outfile="/scratch/kocevski/549903/ft1_filtered_4FGL_J1534.8+0131_daily_bin251.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.49
user 0.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/549903/ft1_filtered_4FGL_J1534.8+0131_daily_bin251.fits" evtable="EVENTS" scfile=/scratch/kocevski/549903/ft2_4FGL_J1534.8+0131_daily_bin251.fits sctable="SC_DATA" outfile=/scratch/kocevski/549903/ltcube_304387201_304646401_4FGL_J1534.8+0131_daily_bin251.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/549903/ft2_4FGL_J1534.8+0131_daily_bin251.fits
.....................!
real 14.68
user 14.11
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/549903/ft1_filtered_4FGL_J1534.8+0131_daily_bin251.fits evtable="EVENTS" scfile=/scratch/kocevski/549903/ft2_4FGL_J1534.8+0131_daily_bin251.fits sctable="SC_DATA" expcube=/scratch/kocevski/549903/ltcube_304387201_304646401_4FGL_J1534.8+0131_daily_bin251.fits outfile=/scratch/kocevski/549903/expmap_304387201_304646401_4FGL_J1534.8+0131_daily_bin251.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/549903/ltcube_304387201_304646401_4FGL_J1534.8+0131_daily_bin251.fits
.....................!
real 191.46
user 186.12
sys 4.86

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 150 point sources and 0 extended sources

Setting source of interest to:
4FGL J1534.8+0131 @ 233.725 1.5224

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/549903/ft1_filtered_4FGL_J1534.8+0131_daily_bin251.fits scfile=/scratch/kocevski/549903/ft2_4FGL_J1534.8+0131_daily_bin251.fits outfile=/scratch/kocevski/549903/cmap_304387201_304646401_4FGL_J1534.8+0131_daily_bin251.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.725 yref=1.5224 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

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/549903/ft1_filtered_4FGL_J1534.8+0131_daily_bin251.fits scfile=/scratch/kocevski/549903/ft2_4FGL_J1534.8+0131_daily_bin251.fits outfile=/scratch/kocevski/549903/cmap_HighResolution_304387201_304646401_4FGL_J1534.8+0131_daily_bin251.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.725 yref=1.5224 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.55
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/549903/ft1_filtered_4FGL_J1534.8+0131_daily_bin251.fits evtable="EVENTS" scfile=/scratch/kocevski/549903/ft2_4FGL_J1534.8+0131_daily_bin251.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/549903/Model_4FGL_J1534.8+0131_daily_bin251.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/549903/ft1_filtered_4FGL_J1534.8+0131_daily_bin251.fits....................!
real 71.28
user 69.97
sys 1.14

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/549903/ft1_filtered_4FGL_J1534.8+0131_daily_bin251.fits', '/scratch/kocevski/549903/ft2_4FGL_J1534.8+0131_daily_bin251.fits', expMap='/scratch/kocevski/549903/expmap_304387201_304646401_4FGL_J1534.8+0131_daily_bin251.fits', expCube='/scratch/kocevski/549903/ltcube_304387201_304646401_4FGL_J1534.8+0131_daily_bin251.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/549903/Model_4FGL_J1534.8+0131_daily_bin251.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1534.8+0131'

4FGL J1534.8+0131
   Spectrum: PowerLaw
223    Prefactor:  2.180e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
224        Index:  2.421e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
225        Scale:  8.077e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/549903/ft1_filtered_4FGL_J1534.8+0131_daily_bin251.fits
Spacecraft file(s): /scratch/kocevski/549903/ft2_4FGL_J1534.8+0131_daily_bin251.fits
Exposure map: /scratch/kocevski/549903/expmap_304387201_304646401_4FGL_J1534.8+0131_daily_bin251.fits
Exposure cube: /scratch/kocevski/549903/ltcube_304387201_304646401_4FGL_J1534.8+0131_daily_bin251.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/549903/Model_4FGL_J1534.8+0131_daily_bin251.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) = 8808.60855903

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .46970       1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    10.265       1.0000         .10000E-03   10000.    
     5 'norm      '    1.4639       1.0000         .10000E-03   10000.    
     6 'norm      '    .53447       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .18094E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    15.461       1.0000         .10000E-03   10000.    
    10 'Prefactor '    25.760       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .16704E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.1429       1.0000         .10000E-03   10000.    
    13 'norm      '    5.6355       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .11396E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    4.7644       1.0000         .10000E-03   10000.    
    16 'norm      '    .42994E-02   1.0000         .10000E-03   10000.    
    17 'Normalizat'    1.0341       1.0000         .10000E-01   10.000    
    18 'Prefactor '    1.0160       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4970E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8808.564     FROM MIGRAD    STATUS=CONVERGED    369 CALLS     1784 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .46970        .25402        .65117E-07   -.11642E-02
   2  norm          .10000E-03    .92094        .10933E-06** at limit **
   3  norm          .10000E-03    5.1683        .15665E-06** at limit **
   4  norm          10.271        6.9634        .22262E-06   -.22981E-03
   5  norm          1.4643        3.1541       -.67441E-07   -.10213E-02
   6  norm          .53443        .19733        .50350E-08   -.22066E-02
   7  Prefactor     .10000E-03    11.519        .99320E-05** at limit **
   8  Prefactor     .10000E-03    2.8698        .39603E-06** at limit **
   9  Prefactor     15.416        15.134       -.80627E-05   -.12209E-04
  10  Prefactor     25.830        42.187        .10710E-03   -.96403E-05
  11  Prefactor     .10000E-03    12.793       -.39133E-05** at limit **
  12  Prefactor     4.1436        3.5289        .15214E-06   -.42702E-03
  13  norm          5.6365        3.8745        .14241E-05   -.29413E-03
  14  Prefactor     .10000E-03    13.610       -.85753E-05** at limit **
  15  norm          4.7644        1.8099        .95707E-07    .92973E-04
  16  norm          .10000E-03    35.257        .20352E-04** at limit **
  17  Normalizat    1.0341        .23359        .96213E-06   -.40418E-03
  18  Prefactor     1.0159        .89410E-01   -.42510E-05    .55212E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.469705
  norm       = 0.0001
  norm       = 0.0001
  norm       = 10.2706
  norm       = 1.46426
  norm       = 0.534435
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 15.4158
  Prefactor  = 25.8298
  Prefactor  = 0.0001
  Prefactor  = 4.1436
  norm       = 5.63654
  Prefactor  = 0.0001
  norm       = 4.76445
  norm       = 0.0001
  Normalizat = 1.03408
  Prefactor  = 1.01594
 **********
 **   18 **HESSE 
 **********

 FCN=   8808.564     FROM HESSE     STATUS=OK           248 CALLS     2032 TOTAL
                     EDM=   .39E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .46970        .24850        .33252E-04   -1.5571    
   2  norm          .10000E-03    .94484        .17569E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    5.1951        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          10.271        6.9560        .12506E-03   -1.5067    
   5  norm          1.4643        3.1175        .23660E-03   -1.5466    
   6  norm          .53443        .19538        .23273E-04   -1.5562    
   7  Prefactor     .10000E-03    11.532        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    7.5109        .30120E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     15.416        15.130        .10186E-03   -1.4923    
  10  Prefactor     25.830        42.141        .78928E-04   -1.4691    
  11  Prefactor     .10000E-03    12.797        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     4.1436        3.5098        .15436E-03   -1.5301    
  13  norm          5.6365        3.8694        .14676E-03   -1.5233    
  14  Prefactor     .10000E-03    13.611        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          4.7644        1.8108        .75866E-04   -1.5271    
  16  norm          .10000E-03    35.260        .19403E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Normalizat    1.0341        .26116        .41213E-03   -.91897    
  18  Prefactor     1.0159        .10169        .16437E-03   -.92200    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.85448e-09
Minuit parameter uncertainties:
  1  0.248501
  2  9.30795e-06
  3  1.47423e-05
  4  6.9565
  5  3.11788
  6  0.195383
  7  1.47909e-05
  8  0.000364894
  9  15.1342
  10  42.1901
  11  6.27014e-05
  12  3.50995
  13  3.86957
  14  8.28416e-06
  15  1.81084
  16  1.41867e-05
  17  0.261483
  18  0.101709
Done.

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

Extracting fit parameters...

4FGL J1534.8+0131
   Spectrum: PowerLaw
223    Prefactor:  1.000e-04  3.649e-04  1.000e-04  1.000e+04 ( 1.000e-12)
224        Index:  2.421e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
225        Scale:  8.077e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
494    Prefactor:  1.016e+00  1.017e-01  0.000e+00  1.000e+01 ( 1.000e+00)
495        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
496        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
493   Normalization:  1.034e+00  2.615e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 233.725 1.522
Photon Flux Upper Limit: 1.06e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.23e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/549903/likelihoodResults_304387201_304646401_4FGL_J1534.8+0131_daily_bin251.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) = 8808.56507243
delta logL = -0.000631991597402

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8808.56441946
delta logL = 2.09797453863e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .97964E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5572       1.0000          .0000       10.000    
     3 'Normalizat'    1.0339       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0160       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4970E+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=   8805.858     FROM MIGRAD    STATUS=FAILED       162 CALLS      342 TOTAL
                     EDM=   .36E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .83292E-01    1.0144        .13377E-04   -.34386E-02
   2  Index         5.4289        3.3635        .21489E-01    .16456E-03
   3  Normalizat    .85154        .17500        .44876E-03   -.83044E-04
   4  Prefactor     1.0545        .68634E-01    .16149E-03   -.66363E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   8805.858     FROM SIMPLEX   STATUS=UNCHANGED     79 CALLS      421 TOTAL
                     EDM=   .11E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .83292E-01    1.0144        .37604E-04   -.34386E-02
   2  Index         5.4289        3.3635        .12568E-02    .16456E-03
   3  Normalizat    .85154        .17500        .37347E-03   -.83044E-04
   4  Prefactor     1.0545        .68634E-01    .12371E-03   -.66363E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8805.858     FROM MIGRAD    STATUS=CONVERGED     29 CALLS      450 TOTAL
                     EDM=   .24E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .83290E-01    .24362        .53508E-06   -.33198E-02
   2  Index         5.4289        1.5256        .48020E-03   -.72541E-04
   3  Normalizat    .85154        .26181        .17950E-04   -.62067E-04
   4  Prefactor     1.0545        .10199        .32298E-04   -.54868E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0832902
  Index      = 5.42893
  Normalizat = 0.85154
  Prefactor  = 1.05448
 **********
 **   18 **HESSE 
 **********

 FCN=   8805.858     FROM HESSE     STATUS=OK            23 CALLS      473 TOTAL
                     EDM=   .24E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .83290E-01    .21276        .37313E-06   -1.5650    
   2  Index         5.4289        1.3375        .19208E-04    .85893E-01
   3  Normalizat    .85154        .26176        .35901E-05   -.98184    
   4  Prefactor     1.0545        .10199        .64597E-05   -.90935    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.36751e-10
Minuit parameter uncertainties:
  1  0.212766
  2  1.35409
  3  0.262149
  4  0.102011
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/549903': 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) = 8805.85804418
delta logL = 2.70639625274

Extracting fit parameters...

4FGL J1534.8+0131
   Spectrum: PowerLaw
223    Prefactor:  8.329e-02  2.128e-01  1.000e-04  1.000e+04 ( 1.000e-12)
224        Index:  5.429e+00  1.354e+00  0.000e+00  1.000e+01 (-1.000e+00)
225        Scale:  8.077e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
494    Prefactor:  1.054e+00  1.020e-01  0.000e+00  1.000e+01 ( 1.000e+00)
495        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
496        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
493   Normalization:  8.515e-01  2.621e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.85
Ra Dec: 233.725 1.522
Photon Index (Free Index): 5.43 +/- 1.35
Photon Flux (Free Index): 1.60e-07 +/- 8.22e-08
Energy Flux (Free Index): 2.06e-05 +/- 1.07e-05

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/549903/cmap_HighResolution_304387201_304646401_4FGL_J1534.8+0131_daily_bin251.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.23e-03', comment='SUCCESS', energy_flux2='2.06e-05', dlogl='2.71e+00', photon_flux2='1.60e-07', job_status='DONE', time_completed='2021-09-12 04:30:29.377349', photon_index_error2='1.35', photon_index2='5.43', ts='-0.00', fit_tolerance='1e-08', GAL='1.02', photon_index_error='0.00', photon_flux_upper_limit='1.06e-07', energy_flux_error2='1.07e-05', EG='1.03', time_epoch_completed='1631446229.38', return_code='0', job_id='549903', GAL2='1.05', EG2='0.85', return_code2='0', photon_flux_error2='8.22e-08', ts2='5.85', photon_index='2.42' WHERE bin_id='251' AND source_name='4FGL J1534.8+0131' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 12 04:30:29 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0291>
Subject: Job 549903: <4FGL_J1534.8+0131_daily_bin251> in cluster <slac> Done

Job <4FGL_J1534.8+0131_daily_bin251> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sun Sep 12 04:15:30 2021
Job was executed on host(s) <bullet0291>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 12 04:15:53 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep 12 04:15:53 2021
Terminated at Sun Sep 12 04:30:30 2021
Results reported at Sun Sep 12 04:30:30 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1534.8+0131_daily_bin251 233.725 1.5224 304387201 304646401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1534.8+0131 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   641.00 sec.
    Max Memory :                                 1214 MB
    Average Memory :                             289.28 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   876 sec.
    Turnaround time :                            900 sec.

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

