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


Performing analysis on: 4FGL_J1341.8-2053_daily_bin485
RA = 205.461, Dec = -20.8901
tmin = 365040001, tmax = 365299201
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='889125', job_status='RUN', time_executed='2021-09-08 09:20:03.817985', time_epoch_executed='1631118003.82' WHERE source_name='4FGL J1341.8-2053' and cadence='daily' and bin_id='485'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/889125

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/889125/ft1_4FGL_J1341.8-2053_daily_bin485.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/889125/ft2_4FGL_J1341.8-2053_daily_bin485.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/889125/ft1_4FGL_J1341.8-2053_daily_bin485.fits outfile=/scratch/kocevski/889125/ft1_filteredMKT_4FGL_J1341.8-2053_daily_bin485.fits ra=205.461 dec=-20.8901 rad=12.0 tmin=365040001.0 tmax=365299201.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.74
user 3.44
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/889125/ft1_filtered_4FGL_J1341.8-2053_daily_bin485.fits" evtable="EVENTS" scfile=/scratch/kocevski/889125/ft2_4FGL_J1341.8-2053_daily_bin485.fits sctable="SC_DATA" outfile=/scratch/kocevski/889125/ltcube_365040001_365299201_4FGL_J1341.8-2053_daily_bin485.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/889125/ft2_4FGL_J1341.8-2053_daily_bin485.fits
.....................!
real 15.96
user 15.51
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/889125/ft1_filtered_4FGL_J1341.8-2053_daily_bin485.fits evtable="EVENTS" scfile=/scratch/kocevski/889125/ft2_4FGL_J1341.8-2053_daily_bin485.fits sctable="SC_DATA" expcube=/scratch/kocevski/889125/ltcube_365040001_365299201_4FGL_J1341.8-2053_daily_bin485.fits outfile=/scratch/kocevski/889125/expmap_365040001_365299201_4FGL_J1341.8-2053_daily_bin485.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/889125/ltcube_365040001_365299201_4FGL_J1341.8-2053_daily_bin485.fits
.....................!
real 191.00
user 185.34
sys 4.99

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/889125/ft1_filtered_4FGL_J1341.8-2053_daily_bin485.fits scfile=/scratch/kocevski/889125/ft2_4FGL_J1341.8-2053_daily_bin485.fits outfile=/scratch/kocevski/889125/cmap_365040001_365299201_4FGL_J1341.8-2053_daily_bin485.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.55
user 0.40
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/889125/ft1_filtered_4FGL_J1341.8-2053_daily_bin485.fits scfile=/scratch/kocevski/889125/ft2_4FGL_J1341.8-2053_daily_bin485.fits outfile=/scratch/kocevski/889125/cmap_HighResolution_365040001_365299201_4FGL_J1341.8-2053_daily_bin485.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.57
user 0.40
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/889125/ft1_filtered_4FGL_J1341.8-2053_daily_bin485.fits evtable="EVENTS" scfile=/scratch/kocevski/889125/ft2_4FGL_J1341.8-2053_daily_bin485.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/889125/Model_4FGL_J1341.8-2053_daily_bin485.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/889125/ft1_filtered_4FGL_J1341.8-2053_daily_bin485.fits.....................!
real 56.70
user 55.24
sys 1.17

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/889125/ft1_filtered_4FGL_J1341.8-2053_daily_bin485.fits', '/scratch/kocevski/889125/ft2_4FGL_J1341.8-2053_daily_bin485.fits', expMap='/scratch/kocevski/889125/expmap_365040001_365299201_4FGL_J1341.8-2053_daily_bin485.fits', expCube='/scratch/kocevski/889125/ltcube_365040001_365299201_4FGL_J1341.8-2053_daily_bin485.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/889125/Model_4FGL_J1341.8-2053_daily_bin485.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/889125/ft1_filtered_4FGL_J1341.8-2053_daily_bin485.fits
Spacecraft file(s): /scratch/kocevski/889125/ft2_4FGL_J1341.8-2053_daily_bin485.fits
Exposure map: /scratch/kocevski/889125/expmap_365040001_365299201_4FGL_J1341.8-2053_daily_bin485.fits
Exposure cube: /scratch/kocevski/889125/ltcube_365040001_365299201_4FGL_J1341.8-2053_daily_bin485.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/889125/Model_4FGL_J1341.8-2053_daily_bin485.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) = 6693.09853182

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10212E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    34.889       1.0000         .10000E-03   10000.    
     3 'norm      '    8.3782       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    3.7304       1.0000         .10000E-03   10000.    
     6 'Prefactor '    7.4060       1.0000         .10000E-03   10000.    
     7 'Prefactor '    6.2918       1.0000         .10000E-03   10000.    
     8 'norm      '    .10182E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    3.5759       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10162E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    71.180       1.0000         .10000E-03   10000.    
    18 'norm      '    .10063E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    38.671       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .68675E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    10.042       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.4146       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .80833       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.

 FCN=   6693.093     FROM MIGRAD    STATUS=CONVERGED    591 CALLS     2948 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    172.61       -.26534E-05** at limit **
   2  norm          34.887        14.733       -.94646E-06   -.79065E-03
   3  norm          8.3741        7.2398        .27589E-06    .85333E-04
   4  Prefactor     .10000E-03    3.7094       -.76023E-08** at limit **
   5  norm          3.7302        2.5159        .35488E-07   -.39163E-04
   6  Prefactor     7.4055        8.6778        .88861E-06    .50097E-03
   7  Prefactor     6.2994        15.326       -.13832E-05   -.13194E-03
   8  norm          .10000E-03    3.6717        .53437E-05** at limit **
   9  norm          3.5754        5.8363        .49978E-05    .20610E-02
  10  Prefactor     .10000E-03    21.015        .33565E-05** at limit **
  11  Prefactor     .10000E-03    5.4683        .69160E-06** at limit **
  12  Prefactor     .10000E-03    4.0170        .29478E-07** at limit **
  13  Prefactor     .10000E-03    6.2235        .10527E-06** at limit **
  14  norm          .10000E-03    2.0916       -.15203E-06** at limit **
  15  norm          .10000E-03    17.428       -.43106E-06** at limit **
  16  Prefactor     .10000E-03    4.6018        .29021E-06** at limit **
  17  Prefactor     71.181        53.836       -.92300E-06   -.12316E-03
  18  norm          .10000E-03    9.6183       -.11425E-06** at limit **
  19  Prefactor     .10000E-03    1.4734       -.21898E-06** at limit **
  20  norm          .10000E-03    3.6374        .35576E-06** at limit **
  21  Prefactor     38.671        72.778       -.35560E-06    .30165E-05
  22  Prefactor     .10377E-03    198.77       -.49305E-04** at limit **
  23  Prefactor     10.038        29.641        .97749E-06    .23862E-04
  24  Normalizat    1.4146        .25082       -.94276E-06   -.23077E-03
  25  Prefactor     .80840        .11211       -.34805E-06   -.44462E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100003
  norm       = 34.8868
  norm       = 8.37409
  Prefactor  = 0.0001
  norm       = 3.73025
  Prefactor  = 7.40551
  Prefactor  = 6.29937
  norm       = 0.0001
  norm       = 3.57539
  Prefactor  = 0.000100005
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 71.1809
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 38.6713
  Prefactor  = 0.000103769
  Prefactor  = 10.0379
  Normalizat = 1.41461
  Prefactor  = 0.808395
 **********
 **   18 **HESSE 
 **********

 FCN=   6693.093     FROM HESSE     STATUS=OK           425 CALLS     3373 TOTAL
                     EDM=   .99E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    173.13        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          34.887        14.814        .67845E-04   -1.4526    
   3  norm          8.3741        7.2150        .13850E-03   -1.5129    
   4  Prefactor     .10000E-03    3.7388        .15342E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          3.7302        2.5194        .10336E-03   -1.5322    
   6  Prefactor     7.4055        8.7244        .73688E-03   -1.5164    
   7  Prefactor     6.2994        15.878        .16003E-03   -1.5206    
   8  norm          .10000E-03    3.6791        .29921E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          3.5754        7.6038        .10685E-02   -1.5330    
  10  Prefactor     .10000E-03    21.472        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    5.4782        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    4.0284        .16013E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    6.2511        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    2.1027        .11554E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    17.477        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    4.7186        .34249E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     71.181        53.931        .47582E-04   -1.4019    
  18  norm          .10000E-03    9.7861        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    1.4845        .96950E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    3.6627        .15240E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     38.671        72.870        .64453E-04   -1.4463    
  22  Prefactor     .10377E-03    26.110        .11134       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     10.038        29.671        .12645E-03   -1.5074    
  24  Normalizat    1.4146        .30144        .32944E-03   -.80207    
  25  Prefactor     .80840        .13506        .18791E-03   -.99420    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.85519e-09
Minuit parameter uncertainties:
  1  0.00152634
  2  14.8153
  3  7.21577
  4  1.9214e-06
  5  2.5195
  6  8.72589
  7  15.8883
  8  1.55036e-05
  9  7.60588
  10  0.000629291
  11  7.36037e-05
  12  6.08923e-06
  13  6.33608e-06
  14  1.37256e-05
  15  7.35551e-05
  16  3.56251e-06
  17  53.9684
  18  9.35724e-07
  19  8.42951e-06
  20  2.71324e-05
  21  73.0382
  22  0.0198492
  23  29.7144
  24  0.301823
  25  0.135118
Done.

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

Extracting fit parameters...

4FGL J1341.8-2053
   Spectrum: PowerLaw
295    Prefactor:  1.000e-04  6.336e-06  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:  8.084e-01  1.351e-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:  1.415e+00  3.018e-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.15e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.11e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/889125/likelihoodResults_365040001_365299201_4FGL_J1341.8-2053_daily_bin485.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) = 6693.09326645
delta logL = -0.000762434252465

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6693.09250416
delta logL = -1.40426891448e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10127E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7245       1.0000          .0000       10.000    
     3 'Normalizat'    1.4145       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .80844       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=   6693.093     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      242 TOTAL
                     EDM=   .68E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10052E-03    183.55        .18142E-02** at limit **
   2  Index         2.6708        6.8034        .50000        .75628E-05
   3  Normalizat    1.4146        .35556E-01    .32944E-03    .33612E-04
   4  Prefactor     .80840        .15934E-01    .18791E-03    .54813E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100517
  Index      = 2.67079
  Normalizat = 1.41461
  Prefactor  = 0.808396
 **********
 **   18 **HESSE 
 **********

 FCN=   6693.093     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      271 TOTAL
                     EDM=   .30E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10052E-03    701.20        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.6708        5.5501        .50000       -.48459    
   3  Normalizat    1.4146        .79863E-01    .13178E-04   -.80207    
   4  Prefactor     .80840        .35791E-01    .75165E-05   -.99420    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.04695e-08
Minuit parameter uncertainties:
  1  0.0385294
  2  1724.73
  3  0.0798705
  4  0.0357916
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/889125': 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) = 6693.09250394
delta logL = 8.00018824521e-08

Extracting fit parameters...

4FGL J1341.8-2053
   Spectrum: PowerLaw
295    Prefactor:  1.005e-04  3.853e-02  1.000e-04  1.000e+04 ( 1.000e-12)
296        Index:  2.671e+00  1.725e+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:  8.084e-01  3.579e-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:  1.415e+00  7.987e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/889125/cmap_HighResolution_365040001_365299201_4FGL_J1341.8-2053_daily_bin485.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.11e-03', job_status='DONE', photon_flux_upper_limit='1.15e-07', time_completed='2021-09-08 09:32:09.679361', job_id='889125', GAL2='0.81', fit_tolerance='1e-08', EG2='1.41', EG='1.41', time_epoch_completed='1631118729.68', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.81', dlogl='8.00e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.73' WHERE bin_id='485' AND source_name='4FGL J1341.8-2053' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 09:32:09 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0261>
Subject: Job 889125: <4FGL_J1341.8-2053_daily_bin485> in cluster <slac> Done

Job <4FGL_J1341.8-2053_daily_bin485> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Wed Sep  8 09:15:50 2021
Job was executed on host(s) <bullet0261>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 09:16:26 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:16:26 2021
Terminated at Wed Sep  8 09:32:10 2021
Results reported at Wed Sep  8 09:32:10 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1341.8-2053_daily_bin485 205.461 -20.8901 365040001 365299201 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 :                                   721.06 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             279.61 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   946 sec.
    Turnaround time :                            980 sec.

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

