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


Performing analysis on: 4FGL_J1534.8+0131_daily_bin390
RA = 233.725, Dec = 1.5224
tmin = 340416001, tmax = 340675201
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='550108', job_status='RUN', time_executed='2021-09-12 04:18:53.413951', time_epoch_executed='1631445533.41' WHERE source_name='4FGL J1534.8+0131' and cadence='daily' and bin_id='390'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/550108

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

Retrieving the FT1 file...

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

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

Retrieving 53 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/550108/ft1_4FGL_J1534.8+0131_daily_bin390.fits


Retrieving the FT1 file...

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

Retrieving 53 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/550108/ft2_4FGL_J1534.8+0131_daily_bin390.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/550108/ft1_4FGL_J1534.8+0131_daily_bin390.fits outfile=/scratch/kocevski/550108/ft1_filteredMKT_4FGL_J1534.8+0131_daily_bin390.fits ra=233.725 dec=1.5224 rad=12.0 tmin=340416001.0 tmax=340675201.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 6.78
user 6.46
sys 0.29

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/550108/ft2_4FGL_J1534.8+0131_daily_bin390.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/550108/ft1_filteredMKT_4FGL_J1534.8+0131_daily_bin390.fits evtable="EVENTS" outfile="/scratch/kocevski/550108/ft1_filtered_4FGL_J1534.8+0131_daily_bin390.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.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/550108/ft1_filtered_4FGL_J1534.8+0131_daily_bin390.fits" evtable="EVENTS" scfile=/scratch/kocevski/550108/ft2_4FGL_J1534.8+0131_daily_bin390.fits sctable="SC_DATA" outfile=/scratch/kocevski/550108/ltcube_340416001_340675201_4FGL_J1534.8+0131_daily_bin390.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/550108/ft2_4FGL_J1534.8+0131_daily_bin390.fits
.....................!
real 11.95
user 11.59
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/550108/ft1_filtered_4FGL_J1534.8+0131_daily_bin390.fits evtable="EVENTS" scfile=/scratch/kocevski/550108/ft2_4FGL_J1534.8+0131_daily_bin390.fits sctable="SC_DATA" expcube=/scratch/kocevski/550108/ltcube_340416001_340675201_4FGL_J1534.8+0131_daily_bin390.fits outfile=/scratch/kocevski/550108/expmap_340416001_340675201_4FGL_J1534.8+0131_daily_bin390.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/550108/ltcube_340416001_340675201_4FGL_J1534.8+0131_daily_bin390.fits
.....................!
real 190.53
user 185.11
sys 5.00

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/550108/ft1_filtered_4FGL_J1534.8+0131_daily_bin390.fits scfile=/scratch/kocevski/550108/ft2_4FGL_J1534.8+0131_daily_bin390.fits outfile=/scratch/kocevski/550108/cmap_340416001_340675201_4FGL_J1534.8+0131_daily_bin390.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.53
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/550108/ft1_filtered_4FGL_J1534.8+0131_daily_bin390.fits scfile=/scratch/kocevski/550108/ft2_4FGL_J1534.8+0131_daily_bin390.fits outfile=/scratch/kocevski/550108/cmap_HighResolution_340416001_340675201_4FGL_J1534.8+0131_daily_bin390.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.52
user 0.39
sys 0.13

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/550108/ft1_filtered_4FGL_J1534.8+0131_daily_bin390.fits', '/scratch/kocevski/550108/ft2_4FGL_J1534.8+0131_daily_bin390.fits', expMap='/scratch/kocevski/550108/expmap_340416001_340675201_4FGL_J1534.8+0131_daily_bin390.fits', expCube='/scratch/kocevski/550108/ltcube_340416001_340675201_4FGL_J1534.8+0131_daily_bin390.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/550108/Model_4FGL_J1534.8+0131_daily_bin390.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/550108/ft1_filtered_4FGL_J1534.8+0131_daily_bin390.fits
Spacecraft file(s): /scratch/kocevski/550108/ft2_4FGL_J1534.8+0131_daily_bin390.fits
Exposure map: /scratch/kocevski/550108/expmap_340416001_340675201_4FGL_J1534.8+0131_daily_bin390.fits
Exposure cube: /scratch/kocevski/550108/ltcube_340416001_340675201_4FGL_J1534.8+0131_daily_bin390.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/550108/Model_4FGL_J1534.8+0131_daily_bin390.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) = 9384.83455607

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .82230       1.0000         .10000E-03   10000.    
     2 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10041E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    4.0737       1.0000         .10000E-03   10000.    
     6 'norm      '    7.2399       1.0000         .10000E-03   10000.    
     7 'Prefactor '    23.987       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    14.514       1.0000         .10000E-03   10000.    
    13 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    35.923       1.0000         .10000E-03   10000.    
    15 'norm      '    2.7160       1.0000         .10000E-03   10000.    
    16 'norm      '    102.38       1.0000         .10000E-03   10000.    
    17 'Normalizat'    1.1768       1.0000         .10000E-01   10.000    
    18 'Prefactor '    1.1344       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=   9384.818     FROM MIGRAD    STATUS=CONVERGED    357 CALLS     1719 TOTAL
                     EDM=   .28E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .82231        .27495        .22766E-07    .89107E-04
   2  norm          .10000E-03    1.1613        .73054E-07** at limit **
   3  norm          .10000E-03    4.8983        .18658E-07** at limit **
   4  norm          .10000E-03    11.694        .16718E-06** at limit **
   5  norm          4.0737        3.5264        .14030E-06   -.11260E-03
   6  norm          7.2399        .52415        .13071E-07    .21129E-04
   7  Prefactor     23.976        32.868       -.14315E-04   -.59902E-05
   8  Prefactor     .10000E-03    1.5457        .32014E-07** at limit **
   9  Prefactor     .10000E-03    9.4686       -.54062E-07** at limit **
  10  Prefactor     .10000E-03    19.552       -.30515E-06** at limit **
  11  Prefactor     .10000E-03    38.630        .68249E-06** at limit **
  12  Prefactor     14.514        5.1377        .29484E-06   -.19561E-04
  13  norm          .10000E-03    2.1013       -.12308E-06** at limit **
  14  Prefactor     35.952        73.072        .43995E-04   -.28179E-06
  15  norm          2.7160        1.8329       -.28654E-06   -.16779E-03
  16  norm          102.36        120.49       -.23698E-04    .61252E-06
  17  Normalizat    1.1766        .27841       -.31936E-05    .99665E-05
  18  Prefactor     1.1345        .10900        .44435E-06   -.10424E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.822315
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 4.07369
  norm       = 7.23993
  Prefactor  = 23.976
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 14.5139
  norm       = 0.0001
  Prefactor  = 35.9516
  norm       = 2.71604
  norm       = 102.358
  Normalizat = 1.17656
  Prefactor  = 1.13446
 **********
 **   18 **HESSE 
 **********

 FCN=   9384.818     FROM HESSE     STATUS=OK           242 CALLS     1961 TOTAL
                     EDM=   .62E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .82231        .27566        .28457E-04   -1.5527    
   2  norm          .10000E-03    1.1779        .10187E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    4.9767        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    12.167        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          4.0737        3.5229        .16463E-03   -1.5304    
   6  norm          7.2399        .52407        .18181E-04   -1.5170    
   7  Prefactor     23.976        32.892        .81788E-04   -1.4728    
   8  Prefactor     .10000E-03    1.5511        .11760E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    9.4739        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    19.562        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    38.687        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     14.514        5.1385        .10513E-03   -1.4946    
  13  norm          .10000E-03    2.1373        .13710E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     35.952        73.097        .66865E-04   -1.4508    
  15  norm          2.7160        1.8332        .10466E-03   -1.5378    
  16  norm          102.36        120.51        .19868E-03   -1.3681    
  17  Normalizat    1.1766        .30814        .49416E-03   -.87330    
  18  Prefactor     1.1345        .12125        .19964E-03   -.88373    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.19489e-11
Minuit parameter uncertainties:
  1  0.275664
  2  7.78129e-06
  3  3.69881e-06
  4  2.0134e-05
  5  3.52306
  6  0.524075
  7  32.917
  8  3.80635e-06
  9  6.06923e-06
  10  3.00721e-06
  11  7.82958e-06
  12  5.13863
  13  1.81404e-05
  14  73.2803
  15  1.83324
  16  120.798
  17  0.308614
  18  0.12128
Done.

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

Extracting fit parameters...

4FGL J1534.8+0131
   Spectrum: PowerLaw
223    Prefactor:  1.000e-04  3.806e-06  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.134e+00  1.213e-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.177e+00  3.086e-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: 8.51e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.58e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/550108/likelihoodResults_340416001_340675201_4FGL_J1534.8+0131_daily_bin390.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) = 9384.82150743
delta logL = -0.00303354539392

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 9384.81847387
delta logL = 9.26411303226e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4154       1.0000          .0000       10.000    
     3 'Normalizat'    1.1765       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1345       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=   9384.818     FROM MIGRAD    STATUS=FAILED        89 CALLS      240 TOTAL
                     EDM=   .29E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10044E-03    72.132        .11773E-02** at limit **
   2  Index         2.3584        7.0913        .50000        .22883E-04
   3  Normalizat    1.1766        .53327E-01    .49416E-03   -.54754E-05
   4  Prefactor     1.1345        .21371E-01    .19964E-03   -.10706E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   9384.818     FROM SIMPLEX   STATUS=UNCHANGED    144 CALLS      384 TOTAL
                     EDM=   .99E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10044E-03    72.132        .19802E-03** at limit **
   2  Index         2.3584        7.0913        .54887E-04    .22883E-04
   3  Normalizat    1.1766        .53327E-01    .20741E-05   -.54754E-05
   4  Prefactor     1.1345        .21371E-01    .74126E-06   -.10706E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   9384.818     FROM MIGRAD    STATUS=CONVERGED     72 CALLS      456 TOTAL
                     EDM=   .25E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.7000        .47092E-04** at limit **
   2  Index         2.1576        7.9776        .50000       -.11214E-06
   3  Normalizat    1.1766        .30159        .39533E-05    .69018E-04
   4  Prefactor     1.1345        .12101        .15971E-05    .17938E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.15762
  Normalizat = 1.17656
  Prefactor  = 1.13446
 **********
 **   18 **HESSE 
 **********

 FCN=   9384.818     FROM HESSE     STATUS=OK            29 CALLS      485 TOTAL
                     EDM=   .26E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.6010        .94185E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1576        8.8742        .50000       -.60465    
   3  Normalizat    1.1766        .30267        .79066E-06   -.87330    
   4  Prefactor     1.1345        .12102        .31942E-06   -.88373    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.64659e-11
Minuit parameter uncertainties:
  1  7.66125e-06
  2  95.2338
  3  0.303125
  4  0.121052
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/550108': 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) = 9384.81847295
delta logL = 9.30496753426e-07

Extracting fit parameters...

4FGL J1534.8+0131
   Spectrum: PowerLaw
223    Prefactor:  1.000e-04  7.661e-06  1.000e-04  1.000e+04 ( 1.000e-12)
224        Index:  2.158e+00  9.523e+01  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.134e+00  1.211e-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.177e+00  3.031e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 233.725 1.522

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/550108/cmap_HighResolution_340416001_340675201_4FGL_J1534.8+0131_daily_bin390.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.58e-03', job_status='DONE', photon_flux_upper_limit='8.51e-08', time_completed='2021-09-12 04:30:28.114800', job_id='550108', GAL2='1.13', fit_tolerance='1e-08', EG2='1.18', EG='1.18', time_epoch_completed='1631446228.11', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.13', dlogl='9.30e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.42' WHERE bin_id='390' AND source_name='4FGL J1534.8+0131' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 12 04:30:28 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0082>
Subject: Job 550108: <4FGL_J1534.8+0131_daily_bin390> in cluster <slac> Done

Job <4FGL_J1534.8+0131_daily_bin390> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sun Sep 12 04:15:44 2021
Job was executed on host(s) <bullet0082>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 12 04:16: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 04:16:31 2021
Terminated at Sun Sep 12 04:30:28 2021
Results reported at Sun Sep 12 04:30:28 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1534.8+0131_daily_bin390 233.725 1.5224 340416001 340675201 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 :                                   690.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             337.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   837 sec.
    Turnaround time :                            884 sec.

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

