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


Performing analysis on: 4FGL_J1341.8-2053_daily_bin939
RA = 205.461, Dec = -20.8901
tmin = 482716801, tmax = 482976001
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='892942', job_status='RUN', time_executed='2021-09-08 09:32:45.228639', time_epoch_executed='1631118765.23' WHERE source_name='4FGL J1341.8-2053' and cadence='daily' and bin_id='939'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/892942

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/892942/ft1_4FGL_J1341.8-2053_daily_bin939.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/892942/ft2_4FGL_J1341.8-2053_daily_bin939.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/892942/ft1_4FGL_J1341.8-2053_daily_bin939.fits outfile=/scratch/kocevski/892942/ft1_filteredMKT_4FGL_J1341.8-2053_daily_bin939.fits ra=205.461 dec=-20.8901 rad=12.0 tmin=482716801.0 tmax=482976001.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.67
user 3.42
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/892942/ft2_4FGL_J1341.8-2053_daily_bin939.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/892942/ft2_4FGL_J1341.8-2053_daily_bin939.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/892942/ft1_filteredMKT_4FGL_J1341.8-2053_daily_bin939.fits evtable="EVENTS" outfile="/scratch/kocevski/892942/ft1_filtered_4FGL_J1341.8-2053_daily_bin939.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.34
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/892942/ft1_filtered_4FGL_J1341.8-2053_daily_bin939.fits" evtable="EVENTS" scfile=/scratch/kocevski/892942/ft2_4FGL_J1341.8-2053_daily_bin939.fits sctable="SC_DATA" outfile=/scratch/kocevski/892942/ltcube_482716801_482976001_4FGL_J1341.8-2053_daily_bin939.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/892942/ft2_4FGL_J1341.8-2053_daily_bin939.fits
.....................!
real 16.31
user 15.85
sys 0.38

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/892942/ft1_filtered_4FGL_J1341.8-2053_daily_bin939.fits evtable="EVENTS" scfile=/scratch/kocevski/892942/ft2_4FGL_J1341.8-2053_daily_bin939.fits sctable="SC_DATA" expcube=/scratch/kocevski/892942/ltcube_482716801_482976001_4FGL_J1341.8-2053_daily_bin939.fits outfile=/scratch/kocevski/892942/expmap_482716801_482976001_4FGL_J1341.8-2053_daily_bin939.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/892942/ltcube_482716801_482976001_4FGL_J1341.8-2053_daily_bin939.fits
.....................!
real 192.80
user 187.54
sys 4.68

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

Setting source of interest to:
4FGL J1341.8-2053 @ 205.461 -20.8901

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/892942/ft1_filtered_4FGL_J1341.8-2053_daily_bin939.fits scfile=/scratch/kocevski/892942/ft2_4FGL_J1341.8-2053_daily_bin939.fits outfile=/scratch/kocevski/892942/cmap_482716801_482976001_4FGL_J1341.8-2053_daily_bin939.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=205.461 yref=-20.8901 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.71
user 0.41
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/892942/ft1_filtered_4FGL_J1341.8-2053_daily_bin939.fits scfile=/scratch/kocevski/892942/ft2_4FGL_J1341.8-2053_daily_bin939.fits outfile=/scratch/kocevski/892942/cmap_HighResolution_482716801_482976001_4FGL_J1341.8-2053_daily_bin939.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=205.461 yref=-20.8901 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.61
user 0.41
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/892942/ft1_filtered_4FGL_J1341.8-2053_daily_bin939.fits evtable="EVENTS" scfile=/scratch/kocevski/892942/ft2_4FGL_J1341.8-2053_daily_bin939.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/892942/Model_4FGL_J1341.8-2053_daily_bin939.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/892942/ft1_filtered_4FGL_J1341.8-2053_daily_bin939.fits.....................!
real 60.19
user 58.72
sys 1.23

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/892942/ft1_filtered_4FGL_J1341.8-2053_daily_bin939.fits', '/scratch/kocevski/892942/ft2_4FGL_J1341.8-2053_daily_bin939.fits', expMap='/scratch/kocevski/892942/expmap_482716801_482976001_4FGL_J1341.8-2053_daily_bin939.fits', expCube='/scratch/kocevski/892942/ltcube_482716801_482976001_4FGL_J1341.8-2053_daily_bin939.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/892942/Model_4FGL_J1341.8-2053_daily_bin939.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1341.8-2053'

4FGL J1341.8-2053
   Spectrum: PowerLaw
295    Prefactor:  3.235e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
296        Index:  2.731e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
297        Scale:  5.179e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/892942/ft1_filtered_4FGL_J1341.8-2053_daily_bin939.fits
Spacecraft file(s): /scratch/kocevski/892942/ft2_4FGL_J1341.8-2053_daily_bin939.fits
Exposure map: /scratch/kocevski/892942/expmap_482716801_482976001_4FGL_J1341.8-2053_daily_bin939.fits
Exposure cube: /scratch/kocevski/892942/ltcube_482716801_482976001_4FGL_J1341.8-2053_daily_bin939.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/892942/Model_4FGL_J1341.8-2053_daily_bin939.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) = 7176.53298707

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.8584       1.0000         .10000E-03   10000.    
     2 'norm      '    7.2387       1.0000         .10000E-03   10000.    
     3 'norm      '    27.401       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10155E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    2.9841       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10055E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    73.602       1.0000         .10000E-03   10000.    
     8 'norm      '    4.8692       1.0000         .10000E-03   10000.    
     9 'norm      '    1.9971       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .17279       1.0000         .10000E-03   10000.    
    12 'Prefactor '    7.2910       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10267E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    1.6981       1.0000         .10000E-03   10000.    
    15 'norm      '    .11158E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    7.7141       1.0000         .10000E-03   10000.    
    17 'Prefactor '    19.298       1.0000         .10000E-03   10000.    
    18 'norm      '    .10172E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    9.4461       1.0000         .10000E-03   10000.    
    20 'norm      '    .10017E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    36.683       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .12429E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10127E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .81551       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0970       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5770E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7176.498     FROM MIGRAD    STATUS=CONVERGED    143 CALLS     2450 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.0004        27.777        .21003E-07    .55530E-03
   2  norm          7.2413        1.1520        .35853E-07   -.31794E-03
   3  norm          27.401        1.5938        .28104E-07   -.97981E-03
   4  Prefactor     .10000E-03    2.9284       -.18642E-06** at limit **
   5  norm          2.9835        3.0302        .35498E-07   -.20802E-05
   6  Prefactor     .10000E-03    4.2389        .17365E-06** at limit **
   7  Prefactor     73.632        28.487       -.72037E-06   -.33116E-02
   8  norm          4.8666        4.5036        .59636E-06   -.10125E-02
   9  norm          1.9964        4.9843        .41847E-06    .30731E-02
  10  Prefactor     .10000E-03    4.3288       -.39615E-06** at limit **
  11  Prefactor     .23409E-01    1759.2       -.10722E-05    .99735E-03
  12  Prefactor     7.3158        11.780        .38337E-06    .18007E-02
  13  Prefactor     .10000E-03    5.8633        .84186E-07** at limit **
  14  norm          1.6915        4.4827        .17282E-06   -.47836E-04
  15  norm          .10000E-03    15.253       -.18289E-05** at limit **
  16  Prefactor     7.7123        5.5967       -.21942E-06    .38457E-02
  17  Prefactor     19.547        40.927       -.39646E-06    .85939E-02
  18  norm          .10000E-03    13.599        .51796E-06** at limit **
  19  Prefactor     9.4455        5.7372       -.29451E-06   -.34361E-03
  20  norm          .10000E-03    3.7141       -.22128E-06** at limit **
  21  Prefactor     36.731        8.0475        .18281E-07    .14667E-03
  22  Prefactor     .10000E-03    16.894        .83786E-06** at limit **
  23  Prefactor     .10000E-03    22.351       -.13448E-06** at limit **
  24  Normalizat    .81464        .31857       -.28465E-05   -.39039E-03
  25  Prefactor     1.0974        .14394       -.69256E-07   -.83873E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.00035
  norm       = 7.24126
  norm       = 27.4008
  Prefactor  = 0.0001
  norm       = 2.98346
  Prefactor  = 0.0001
  Prefactor  = 73.6322
  norm       = 4.86664
  norm       = 1.99635
  Prefactor  = 0.0001
  Prefactor  = 0.0234087
  Prefactor  = 7.31577
  Prefactor  = 0.0001
  norm       = 1.69148
  norm       = 0.000100001
  Prefactor  = 7.71233
  Prefactor  = 19.5467
  norm       = 0.0001
  Prefactor  = 9.4455
  norm       = 0.0001
  Prefactor  = 36.7307
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.81464
  Prefactor  = 1.09743
 **********
 **   18 **HESSE 
 **********

 FCN=   7176.498     FROM HESSE     STATUS=OK           487 CALLS     2937 TOTAL
                     EDM=   .16E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.0004        264.98        .45625E-02   -1.5261    
   2  norm          7.2413        8.9335        .37271E-02   -1.5170    
   3  norm          27.401        9.0934        .19133E-02   -1.4661    
   4  Prefactor     .10000E-03    2.9216        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          2.9835        3.0475        .58754E-02   -1.5362    
   6  Prefactor     .10000E-03    4.2226        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     73.632        28.820        .11700E-02   -1.3990    
   8  norm          4.8666        4.6723        .45573E-02   -1.5267    
   9  norm          1.9964        6.1493        .73276E-02   -1.5425    
  10  Prefactor     .10000E-03    4.3286        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .23409E-01    30.386        .12762       -1.5677    
  12  Prefactor     7.3158        12.671        .37136E-02   -1.5167    
  13  Prefactor     .10000E-03    5.8428        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          1.6915        4.5503        .80716E-02   -1.5448    
  15  norm          .10000E-03    15.652        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     7.7123        7.0860        .36095E-02   -1.5152    
  17  Prefactor     19.547        61.278        .22793E-02   -1.4823    
  18  norm          .10000E-03    13.540        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     9.4455        5.8863        .32598E-02   -1.5093    
  20  norm          .10000E-03    3.7085        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     36.731        70.615        .16543E-02   -1.4495    
  22  Prefactor     .10000E-03    17.190        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    22.328        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .81464        .28884        .10052       -.99528    
  25  Prefactor     1.0974        .12622        .37701E-01   -.89549    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.55356e-06
Minuit parameter uncertainties:
  1  73.1445
  2  8.93515
  3  9.09388
  4  1.13258e-05
  5  3.04762
  6  1.40981e-05
  7  28.8251
  8  4.67264
  9  6.15122
  10  3.18942e-05
  11  1.68403
  12  12.6755
  13  1.15145e-05
  14  4.55125
  15  0.000275755
  16  7.08678
  17  61.476
  18  9.55754e-05
  19  5.88664
  20  1.62562e-05
  21  70.7768
  22  0.000115651
  23  2.10501e-05
  24  0.289387
  25  0.126258
Done.

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

Extracting fit parameters...

4FGL J1341.8-2053
   Spectrum: PowerLaw
295    Prefactor:  1.000e-04  1.151e-05  1.000e-04  1.000e+04 ( 1.000e-12)
296        Index:  2.731e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
297        Scale:  5.179e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
574    Prefactor:  1.097e+00  1.263e-01  0.000e+00  1.000e+01 ( 1.000e+00)
575        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
576        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
573   Normalization:  8.146e-01  2.894e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 205.461 -20.890
Photon Flux Upper Limit: 1.09e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.63e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/892942/likelihoodResults_482716801_482976001_4FGL_J1341.8-2053_daily_bin939.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) = 7176.49840263
delta logL = -0.00081180558027

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7176.49759093
delta logL = -1.05638719106e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10087E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7295       1.0000          .0000       10.000    
     3 'Normalizat'    .81458       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0975       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5770E+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=   7176.498     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      242 TOTAL
                     EDM=   .94E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10005E-03    183.83        .18142E-02** at limit **
   2  Index         2.7127        6.8868        .50000        .27612E-05
   3  Normalizat    .81464        .37845E-01    .44545E-03    .23939E-04
   4  Prefactor     1.0974        .17402E-01    .17760E-03    .56333E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100046
  Index      = 2.71273
  Normalizat = 0.814643
  Prefactor  = 1.09743
 **********
 **   18 **HESSE 
 **********

 FCN=   7176.498     FROM HESSE     STATUS=NOT POSDEF    27 CALLS      269 TOTAL
                     EDM=   .38E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10005E-03    714.57        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.7127        5.7098        .50000       -.47513    
   3  Normalizat    .81464        .87738E-01    .17818E-04   -.99528    
   4  Prefactor     1.0974        .40347E-01    .71038E-05   -.89549    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.7884e-08
Minuit parameter uncertainties:
  1  0.0115523
  2  1882.8
  3  0.0877537
  4  0.0403486
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/892942': 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): 102
logL (Free Index) = 7176.49759081
delta logL = 7.50060280552e-09

Extracting fit parameters...

4FGL J1341.8-2053
   Spectrum: PowerLaw
295    Prefactor:  1.000e-04  1.155e-02  1.000e-04  1.000e+04 ( 1.000e-12)
296        Index:  2.713e+00  1.883e+03  0.000e+00  1.000e+01 (-1.000e+00)
297        Scale:  5.179e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
574    Prefactor:  1.097e+00  4.035e-02  0.000e+00  1.000e+01 ( 1.000e+00)
575        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
576        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
573   Normalization:  8.146e-01  8.775e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 205.461 -20.890

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/892942/cmap_HighResolution_482716801_482976001_4FGL_J1341.8-2053_daily_bin939.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.63e-03', job_status='DONE', photon_flux_upper_limit='1.09e-07', time_completed='2021-09-08 09:44:59.636887', job_id='892942', GAL2='1.10', fit_tolerance='1e-08', EG2='0.81', EG='0.81', time_epoch_completed='1631119499.64', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.10', dlogl='7.50e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.73' WHERE bin_id='939' AND source_name='4FGL J1341.8-2053' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 09:44:59 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0067>
Subject: Job 892942: <4FGL_J1341.8-2053_daily_bin939> in cluster <slac> Done

Job <4FGL_J1341.8-2053_daily_bin939> was submitted from host <rhel6-64c> by user <kocevski> in cluster <slac> at Wed Sep  8 09:30:22 2021
Job was executed on host(s) <bullet0067>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 09:30:44 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep  8 09:30:44 2021
Terminated at Wed Sep  8 09:45:01 2021
Results reported at Wed Sep  8 09:45:01 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1341.8-2053_daily_bin939 205.461 -20.8901 482716801 482976001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1341.8-2053 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   731.04 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             322.19 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   857 sec.
    Turnaround time :                            879 sec.

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

