/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)


Waiting 9 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

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

number of points = 7415
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1337.9-1956_daily_bin754
RA = 204.488, Dec = -19.945
tmin = 434764801, tmax = 435024001
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='811258', job_status='RUN', time_executed='2021-09-08 05:17:08.849888', time_epoch_executed='1631103428.85' WHERE source_name='4FGL J1337.9-1956' and cadence='daily' and bin_id='754'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/811258

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/811258/ft1_4FGL_J1337.9-1956_daily_bin754.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/811258/ft2_4FGL_J1337.9-1956_daily_bin754.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/811258/ft1_4FGL_J1337.9-1956_daily_bin754.fits outfile=/scratch/kocevski/811258/ft1_filteredMKT_4FGL_J1337.9-1956_daily_bin754.fits ra=204.488 dec=-19.945 rad=12.0 tmin=434764801.0 tmax=435024001.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 5.74
user 5.46
sys 0.26

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/811258/ft2_4FGL_J1337.9-1956_daily_bin754.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/811258/ft2_4FGL_J1337.9-1956_daily_bin754.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/811258/ft1_filteredMKT_4FGL_J1337.9-1956_daily_bin754.fits evtable="EVENTS" outfile="/scratch/kocevski/811258/ft1_filtered_4FGL_J1337.9-1956_daily_bin754.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.51
user 0.33
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/811258/ft1_filtered_4FGL_J1337.9-1956_daily_bin754.fits" evtable="EVENTS" scfile=/scratch/kocevski/811258/ft2_4FGL_J1337.9-1956_daily_bin754.fits sctable="SC_DATA" outfile=/scratch/kocevski/811258/ltcube_434764801_435024001_4FGL_J1337.9-1956_daily_bin754.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/811258/ft2_4FGL_J1337.9-1956_daily_bin754.fits
.....................!
real 14.90
user 14.51
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/811258/ft1_filtered_4FGL_J1337.9-1956_daily_bin754.fits evtable="EVENTS" scfile=/scratch/kocevski/811258/ft2_4FGL_J1337.9-1956_daily_bin754.fits sctable="SC_DATA" expcube=/scratch/kocevski/811258/ltcube_434764801_435024001_4FGL_J1337.9-1956_daily_bin754.fits outfile=/scratch/kocevski/811258/expmap_434764801_435024001_4FGL_J1337.9-1956_daily_bin754.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/811258/ltcube_434764801_435024001_4FGL_J1337.9-1956_daily_bin754.fits
.....................!
real 192.67
user 187.10
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 178 point sources and 0 extended sources

Setting source of interest to:
4FGL J1337.9-1956 @ 204.488 -19.945

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/811258/ft1_filtered_4FGL_J1337.9-1956_daily_bin754.fits scfile=/scratch/kocevski/811258/ft2_4FGL_J1337.9-1956_daily_bin754.fits outfile=/scratch/kocevski/811258/cmap_434764801_435024001_4FGL_J1337.9-1956_daily_bin754.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=204.488 yref=-19.945 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.37
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/811258/ft1_filtered_4FGL_J1337.9-1956_daily_bin754.fits scfile=/scratch/kocevski/811258/ft2_4FGL_J1337.9-1956_daily_bin754.fits outfile=/scratch/kocevski/811258/cmap_HighResolution_434764801_435024001_4FGL_J1337.9-1956_daily_bin754.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=204.488 yref=-19.945 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.59
user 0.40
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/811258/ft1_filtered_4FGL_J1337.9-1956_daily_bin754.fits evtable="EVENTS" scfile=/scratch/kocevski/811258/ft2_4FGL_J1337.9-1956_daily_bin754.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/811258/Model_4FGL_J1337.9-1956_daily_bin754.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/811258/ft1_filtered_4FGL_J1337.9-1956_daily_bin754.fits.....................!
real 68.91
user 66.02
sys 1.18

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/811258/ft1_filtered_4FGL_J1337.9-1956_daily_bin754.fits', '/scratch/kocevski/811258/ft2_4FGL_J1337.9-1956_daily_bin754.fits', expMap='/scratch/kocevski/811258/expmap_434764801_435024001_4FGL_J1337.9-1956_daily_bin754.fits', expCube='/scratch/kocevski/811258/ltcube_434764801_435024001_4FGL_J1337.9-1956_daily_bin754.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/811258/Model_4FGL_J1337.9-1956_daily_bin754.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1337.9-1956'

4FGL J1337.9-1956
   Spectrum: PowerLaw
301    Prefactor:  1.144e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
302        Index:  2.488e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
303        Scale:  1.258e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/811258/ft1_filtered_4FGL_J1337.9-1956_daily_bin754.fits
Spacecraft file(s): /scratch/kocevski/811258/ft2_4FGL_J1337.9-1956_daily_bin754.fits
Exposure map: /scratch/kocevski/811258/expmap_434764801_435024001_4FGL_J1337.9-1956_daily_bin754.fits
Exposure cube: /scratch/kocevski/811258/ltcube_434764801_435024001_4FGL_J1337.9-1956_daily_bin754.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/811258/Model_4FGL_J1337.9-1956_daily_bin754.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) = 8497.8509064

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10367E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    8.7468       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10816E-02   1.0000         .10000E-03   10000.    
     5 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    33.622       1.0000         .10000E-03   10000.    
     8 'Prefactor '    10.267       1.0000         .10000E-03   10000.    
     9 'norm      '    .18627E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    13.854       1.0000         .10000E-03   10000.    
    11 'Prefactor '    16.710       1.0000         .10000E-03   10000.    
    12 'Prefactor '    19.695       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.5849       1.0000         .10000E-03   10000.    
    15 'norm      '    .97809       1.0000         .10000E-03   10000.    
    16 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    6.0277       1.0000         .10000E-03   10000.    
    18 'Prefactor '    6.6214       1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    39.897       1.0000         .10000E-03   10000.    
    22 'Prefactor '    18.300       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10167E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .67357       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.0977       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5910E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8496.856     FROM MIGRAD    STATUS=CONVERGED    610 CALLS     2696 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    30.999       -.14125E-04** at limit **
   2  norm          .10000E-03    6.9722       -.23592E-05** at limit **
   3  norm          8.7548        7.3792       -.14831E-06   -.83589E-03
   4  Prefactor     .10005E-03    6.2768        .13563E-05** at limit **
   5  norm          .10000E-03    1.2334        .99398E-07** at limit **
   6  Prefactor     .10000E-03    8.4588        .32505E-05** at limit **
   7  Prefactor     33.626        11.995       -.41152E-07    .20393E-05
   8  Prefactor     10.270        17.022        .22690E-05    .14745E-03
   9  norm          .10000E-03    2.3609       -.28620E-06** at limit **
  10  norm          13.854        7.7512       -.31895E-06    .20012E-03
  11  Prefactor     16.711        13.754       -.12896E-06   -.84885E-05
  12  Prefactor     19.688        17.434       -.25197E-05   -.72586E-04
  13  Prefactor     .10000E-03    4.9734        .28794E-05** at limit **
  14  Prefactor     1.5834        3.8796        .19606E-05   -.17325E-02
  15  norm          .97810        3.2798       -.53298E-06   -.34655E-03
  16  norm          .10000E-03    14.668       -.63617E-05** at limit **
  17  Prefactor     6.0287        6.6219       -.79815E-08   -.26102E-04
  18  Prefactor     6.6274        36.828        .12263E-04    .28225E-04
  19  norm          .10000E-03    2.2822       -.11051E-06** at limit **
  20  Prefactor     .10000E-03    1.5096        .66669E-07** at limit **
  21  norm          39.894        11.046        .93274E-07    .23872E-04
  22  Prefactor     18.310        30.929        .12498E-04    .65826E-04
  23  Prefactor     .10000E-03    4.9026       -.25432E-05** at limit **
  24  Prefactor     .10000E-03    24.689        .14123E-04** at limit **
  25  Normalizat    .67362        .24036       -.23365E-05   -.12793E-03
  26  Prefactor     1.0977        .10996       -.53898E-07   -.34422E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 8.75477
  Prefactor  = 0.000100051
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 33.6258
  Prefactor  = 10.2696
  norm       = 0.000100003
  norm       = 13.8535
  Prefactor  = 16.7114
  Prefactor  = 19.6883
  Prefactor  = 0.0001
  Prefactor  = 1.58343
  norm       = 0.978096
  norm       = 0.0001
  Prefactor  = 6.0287
  Prefactor  = 6.62737
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 39.8937
  Prefactor  = 18.3098
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.673623
  Prefactor  = 1.09771
 **********
 **   18 **HESSE 
 **********

 FCN=   8496.856     FROM HESSE     STATUS=OK           462 CALLS     3158 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    30.975        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    7.0376        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          8.7548        6.2286        .13553E-03   -1.5116    
   4  Prefactor     .10005E-03    28.585        .37277E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    2.1493        .19902E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    8.7130        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     33.626        11.985        .69108E-04   -1.4548    
   8  Prefactor     10.270        15.206        .12505E-03   -1.5067    
   9  norm          .10000E-03    7.7066        .22451E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          13.854        7.5355        .10761E-03   -1.4963    
  11  Prefactor     16.711        14.561        .97980E-04   -1.4890    
  12  Prefactor     19.688        17.442        .90251E-04   -1.4820    
  13  Prefactor     .10000E-03    5.0012        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     1.5834        14.039        .16861E-02   -1.5456    
  15  norm          .97810        3.2166        .29075E-03   -1.5510    
  16  norm          .10000E-03    14.686        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     6.0287        6.5875        .16354E-03   -1.5217    
  18  Prefactor     6.6274        36.703        .15595E-03   -1.5193    
  19  norm          .10000E-03    2.2830        .13600E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    1.5511        .22110E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          39.894        11.005        .63459E-04   -1.4444    
  22  Prefactor     18.310        30.935        .93626E-04   -1.4852    
  23  Prefactor     .10000E-03    4.9055        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    24.943        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .67362        .26495        .44489E-03   -1.0494    
  26  Prefactor     1.0977        .12288        .17025E-03   -.89540    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.87144e-08
Minuit parameter uncertainties:
  1  0.000214498
  2  2.54901e-06
  3  6.22905
  4  0.00241666
  5  4.48654e-06
  6  7.70199e-07
  7  11.9859
  8  15.2115
  9  0.000280579
  10  7.536
  11  14.564
  12  17.4469
  13  2.86266e-05
  14  9.43251
  15  3.21714
  16  5.86696e-05
  17  6.58833
  18  31.222
  19  8.91757e-08
  20  1.70017e-06
  21  11.0054
  22  30.9617
  23  1.82082e-05
  24  0.00011138
  25  0.265457
  26  0.122914
Done.

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

Extracting fit parameters...

4FGL J1337.9-1956
   Spectrum: PowerLaw
301    Prefactor:  1.671e+01  1.456e+01  1.000e-04  1.000e+04 ( 1.000e-13)
302        Index:  2.488e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
303        Scale:  1.258e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
588    Prefactor:  1.098e+00  1.229e-01  0.000e+00  1.000e+01 ( 1.000e+00)
589        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
590        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
587   Normalization:  6.736e-01  2.655e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.14
Ra Dec: 204.488 -19.945
Photon Index (Fixed Index): 2.49 +/- 0.00
Photon Flux (Fixed Index): 6.13e-08 +/- 5.34e-08
Energy Flux (Fixed Index): 1.80e-05 +/- 1.57e-05

TS (Fixed Index): 2.14
Ra Dec: 204.488 -19.945
Photon Flux Upper Limit: 1.65e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.28e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/811258/likelihoodResults_434764801_435024001_4FGL_J1337.9-1956_daily_bin754.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): 0
logL (Free Index) = 8496.85187602
delta logL = 0.00409599755403

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8496.84689407
delta logL = 0.00907794841987

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    18.663       1.0000         .10000E-03   10000.    
     2 'Index     '    2.4006       1.0000          .0000       10.000    
     3 'Normalizat'    .67843       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0960       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5910E+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=   8496.847     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      256 TOTAL
                     EDM=   .80E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     18.666        22.389        .92711E-04   -.23299E-04
   2  Index         2.4005        .69442        .78919E-02    .53449E-03
   3  Normalizat    .67844        .25290        .44340E-03   -.94457E-04
   4  Prefactor     1.0960        .12128        .17035E-03   -.10838E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 18.666
  Index      = 2.40046
  Normalizat = 0.678439
  Prefactor  = 1.09603
 **********
 **   18 **HESSE 
 **********

 FCN=   8496.847     FROM HESSE     STATUS=OK            25 CALLS      281 TOTAL
                     EDM=   .47E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     18.666        20.807        .37084E-05   -1.4844    
   2  Index         2.4005        .64517        .15784E-02   -.54674    
   3  Normalizat    .67844        .25256        .17736E-04   -1.0475    
   4  Prefactor     1.0960        .12117        .68142E-05   -.89594    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.68196e-11
Minuit parameter uncertainties:
  1  20.8154
  2  0.647652
  3  0.252992
  4  0.121198
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/811258': 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) = 8496.84689403
delta logL = 0.00907799165725

Extracting fit parameters...

4FGL J1337.9-1956
   Spectrum: PowerLaw
301    Prefactor:  1.867e+01  2.082e+01  1.000e-04  1.000e+04 ( 1.000e-13)
302        Index:  2.400e+00  6.477e-01  0.000e+00  1.000e+01 (-1.000e+00)
303        Scale:  1.258e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
588    Prefactor:  1.096e+00  1.212e-01  0.000e+00  1.000e+01 ( 1.000e+00)
589        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
590        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
587   Normalization:  6.784e-01  2.530e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.14
Ra Dec: 204.488 -19.945
Photon Index (Free Index): 2.40 +/- 0.65
Photon Flux (Free Index): 5.82e-08 +/- 5.28e-08
Energy Flux (Free Index): 1.91e-05 +/- 1.76e-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/811258/cmap_HighResolution_434764801_435024001_4FGL_J1337.9-1956_daily_bin754.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.28e-02', comment='SUCCESS', photon_flux='6.13e-08', energy_flux2='1.91e-05', photon_flux_error='5.34e-08', dlogl='9.08e-03', energy_flux='1.80e-05', photon_flux2='5.82e-08', job_status='DONE', time_completed='2021-09-08 05:31:33.605552', photon_index_error2='0.65', photon_index2='2.40', ts='2.14', fit_tolerance='1e-08', GAL='1.10', photon_index_error='0.00', photon_flux_upper_limit='1.65e-07', energy_flux_error2='1.76e-05', EG='0.67', time_epoch_completed='1631104293.61', return_code='0', job_id='811258', GAL2='1.10', EG2='0.68', return_code2='0', energy_flux_error='1.57e-05', photon_flux_error2='5.28e-08', ts2='2.14', photon_index='2.49' WHERE bin_id='754' AND source_name='4FGL J1337.9-1956' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 05:31:33 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0067>
Subject: Job 811258: <4FGL_J1337.9-1956_daily_bin754> in cluster <slac> Done

Job <4FGL_J1337.9-1956_daily_bin754> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep  8 05:15:22 2021
Job was executed on host(s) <bullet0067>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 05:16:46 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep  8 05:16:46 2021
Terminated at Wed Sep  8 05:31:34 2021
Results reported at Wed Sep  8 05:31:34 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1337.9-1956_daily_bin754 204.488 -19.945 434764801 435024001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1337.9-1956 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   858.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             306.93 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   887 sec.
    Turnaround time :                            972 sec.

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

