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


Performing analysis on: 4FGL_J1341.8-2053_daily_bin1015
RA = 205.461, Dec = -20.8901
tmin = 502416001, tmax = 502675201
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='893050', job_status='RUN', time_executed='2021-09-08 09:32:25.000184', time_epoch_executed='1631118745.0' WHERE source_name='4FGL J1341.8-2053' and cadence='daily' and bin_id='1015'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/893050

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/893050/ft1_4FGL_J1341.8-2053_daily_bin1015.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/893050/ft2_4FGL_J1341.8-2053_daily_bin1015.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/893050/ft1_4FGL_J1341.8-2053_daily_bin1015.fits outfile=/scratch/kocevski/893050/ft1_filteredMKT_4FGL_J1341.8-2053_daily_bin1015.fits ra=205.461 dec=-20.8901 rad=12.0 tmin=502416001.0 tmax=502675201.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.56
user 3.35
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/893050/ft2_4FGL_J1341.8-2053_daily_bin1015.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/893050/ft1_filteredMKT_4FGL_J1341.8-2053_daily_bin1015.fits evtable="EVENTS" outfile="/scratch/kocevski/893050/ft1_filtered_4FGL_J1341.8-2053_daily_bin1015.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/893050/ft1_filtered_4FGL_J1341.8-2053_daily_bin1015.fits" evtable="EVENTS" scfile=/scratch/kocevski/893050/ft2_4FGL_J1341.8-2053_daily_bin1015.fits sctable="SC_DATA" outfile=/scratch/kocevski/893050/ltcube_502416001_502675201_4FGL_J1341.8-2053_daily_bin1015.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/893050/ft2_4FGL_J1341.8-2053_daily_bin1015.fits
.....................!
real 15.98
user 15.57
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/893050/ft1_filtered_4FGL_J1341.8-2053_daily_bin1015.fits evtable="EVENTS" scfile=/scratch/kocevski/893050/ft2_4FGL_J1341.8-2053_daily_bin1015.fits sctable="SC_DATA" expcube=/scratch/kocevski/893050/ltcube_502416001_502675201_4FGL_J1341.8-2053_daily_bin1015.fits outfile=/scratch/kocevski/893050/expmap_502416001_502675201_4FGL_J1341.8-2053_daily_bin1015.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/893050/ltcube_502416001_502675201_4FGL_J1341.8-2053_daily_bin1015.fits
.....................!
real 193.00
user 186.85
sys 5.08

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/893050/ft1_filtered_4FGL_J1341.8-2053_daily_bin1015.fits scfile=/scratch/kocevski/893050/ft2_4FGL_J1341.8-2053_daily_bin1015.fits outfile=/scratch/kocevski/893050/cmap_502416001_502675201_4FGL_J1341.8-2053_daily_bin1015.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/893050/ft1_filtered_4FGL_J1341.8-2053_daily_bin1015.fits scfile=/scratch/kocevski/893050/ft2_4FGL_J1341.8-2053_daily_bin1015.fits outfile=/scratch/kocevski/893050/cmap_HighResolution_502416001_502675201_4FGL_J1341.8-2053_daily_bin1015.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.58
user 0.40
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/893050/ft1_filtered_4FGL_J1341.8-2053_daily_bin1015.fits evtable="EVENTS" scfile=/scratch/kocevski/893050/ft2_4FGL_J1341.8-2053_daily_bin1015.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/893050/Model_4FGL_J1341.8-2053_daily_bin1015.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/893050/ft1_filtered_4FGL_J1341.8-2053_daily_bin1015.fits.....................!
real 61.05
user 59.46
sys 1.31

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    56.596       1.0000         .10000E-03   10000.    
     2 'norm      '    .10038E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    19.704       1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.3436       1.0000         .10000E-03   10000.    
     5 'norm      '    .77480       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .88127       1.0000         .10000E-03   10000.    
     8 'norm      '    8.9379       1.0000         .10000E-03   10000.    
     9 'norm      '    .33438E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    18.754       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    62.177       1.0000         .10000E-03   10000.    
    18 'norm      '    .16453E-02   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10082E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10068E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    2.0567       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .66955       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=   7413.701     FROM MIGRAD    STATUS=CONVERGED   1035 CALLS     3768 TOTAL
                     EDM=   .78E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     56.613        73.637        .53323E-04   -.15500E-03
   2  norm          .10000E-03    8.6006        .18142E-02** at limit **
   3  norm          19.707        9.3156        .90230E-04   -.47753E-04
   4  Prefactor     2.3450        5.6754        .13390E-02    .21247E-02
   5  norm          .77280        2.1070        .20254E-03    .42434E-03
   6  Prefactor     .10000E-03    4.8876        .18142E-02** at limit **
   7  Prefactor     1.0854        1013.6        .59749E-02    .61095E-04
   8  norm          8.9011        15.277        .13118E-03    .60823E-03
   9  norm          .10001E-03    15.012        .37229E-02** at limit **
  10  Prefactor     .10000E-03    4.6406        .18098E-02** at limit **
  11  Prefactor     18.755        24.114        .92487E-04   -.30485E-04
  12  Prefactor     .10000E-03    4.0823        .16973E-02** at limit **
  13  Prefactor     .10000E-03    7.0814        .18142E-02** at limit **
  14  norm          .10000E-03    1.0693        .86909E-03** at limit **
  15  norm          .10000E-03    9.6451        .18142E-02** at limit **
  16  Prefactor     .10000E-03    1.6264        .10702E-02** at limit **
  17  Prefactor     62.189        43.453        .50888E-04   -.11103E-03
  18  norm          .10194E-03    9.7747        .76983E-01** at limit **
  19  Prefactor     .10000E-03    2.5417        .26463E-03** at limit **
  20  norm          .10000E-03    4.4877        .17747E-02** at limit **
  21  Prefactor     .10000E-03    23.038        .18142E-02** at limit **
  22  Prefactor     .10000E-03    25.042        .18142E-02** at limit **
  23  Prefactor     .10000E-03    29.601        .18142E-02** at limit **
  24  Normalizat    2.0571        .32316        .31033E-03   -.85527E-04
  25  Prefactor     .66941        .13605        .21715E-03   -.11115E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 56.6129
  norm       = 0.0001
  norm       = 19.7065
  Prefactor  = 2.34504
  norm       = 0.772795
  Prefactor  = 0.0001
  Prefactor  = 1.08537
  norm       = 8.90107
  norm       = 0.000100005
  Prefactor  = 0.0001
  Prefactor  = 18.7554
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 62.1885
  norm       = 0.000101938
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  Normalizat = 2.05712
  Prefactor  = 0.669407
 **********
 **   18 **HESSE 
 **********

 FCN=   7413.701     FROM HESSE     STATUS=OK           413 CALLS     4181 TOTAL
                     EDM=   .75E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     56.613        73.639        .10665E-04   -1.4202    
   2  norm          .10000E-03    8.6042        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          19.707        9.2972        .36092E-05   -1.4820    
   4  Prefactor     2.3450        5.6619        .53560E-04   -1.5402    
   5  norm          .77280        2.1069        .81017E-05   -1.5532    
   6  Prefactor     .10000E-03    4.8881        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     1.0854        346.42        .23900E-03   -1.5500    
   8  norm          8.9011        8.8368        .52471E-05   -1.5111    
   9  norm          .10001E-03    15.059        .74458E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    4.6409        .36196E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     18.755        24.110        .36995E-05   -1.4842    
  12  Prefactor     .10000E-03    4.0825        .33947E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    7.0836        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    1.0693        .17382E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    9.6453        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    1.6265        .21404E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     62.189        43.447        .10178E-04   -1.4129    
  18  norm          .10194E-03    9.1466        .81147E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    2.5417        .52926E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    4.4890        .35495E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    23.038        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    25.053        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    29.606        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    2.0571        .31222        .62065E-04   -.63126    
  25  Prefactor     .66941        .13412        .86861E-05   -1.0474    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.53681e-09
Minuit parameter uncertainties:
  1  73.7579
  2  3.63801e-05
  3  9.29787
  4  5.6632
  5  2.10708
  6  3.20143e-06
  7  39.0091
  8  8.83813
  9  0.000568378
  10  1.57377e-05
  11  24.1226
  12  2.12351e-06
  13  1.12572e-05
  14  1.83654e-06
  15  3.68855e-05
  16  8.83013e-07
  17  43.4692
  18  0.00842261
  19  3.84228e-06
  20  4.83464e-06
  21  0.000263697
  22  0.00060657
  23  0.000130615
  24  0.312535
  25  0.134185
Done.

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

Extracting fit parameters...

4FGL J1341.8-2053
   Spectrum: PowerLaw
295    Prefactor:  1.000e-04  1.126e-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:  6.694e-01  1.342e-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:  2.057e+00  3.125e-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.08e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.53e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/893050/likelihoodResults_502416001_502675201_4FGL_J1341.8-2053_daily_bin1015.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) = 7413.70134579
delta logL = -0.000672798097185

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7413.70067333
delta logL = -3.39294274454e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10290E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7492       1.0000          .0000       10.000    
     3 'Normalizat'    2.0569       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .66949       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=   7413.701     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      241 TOTAL
                     EDM=   .67E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    12.751        .18142E-02** at limit **
   2  Index         2.7671        6.3240        .50000       -.23312E-04
   3  Normalizat    2.0571        .30216        .31033E-03    .63766E-04
   4  Prefactor     .66941        .13116        .21715E-03    .65285E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100004
  Index      = 2.76705
  Normalizat = 2.05713
  Prefactor  = 0.669407
 **********
 **   18 **HESSE 
 **********

 FCN=   7413.701     FROM HESSE     STATUS=OK            29 CALLS      270 TOTAL
                     EDM=   .97E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7.3839        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.7671        6.3714        .50000       -.46295    
   3  Normalizat    2.0571        .30243        .62065E-04   -.63126    
   4  Prefactor     .66941        .13128        .86861E-05   -1.0474    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.71896e-10
Minuit parameter uncertainties:
  1  0.000344915
  2  4.51446
  3  0.302718
  4  0.131339
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/893050': 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) = 7413.70067281
delta logL = 1.82933035831e-07

Extracting fit parameters...

4FGL J1341.8-2053
   Spectrum: PowerLaw
295    Prefactor:  1.000e-04  3.449e-04  1.000e-04  1.000e+04 ( 1.000e-12)
296        Index:  2.767e+00  4.514e+00  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:  6.694e-01  1.313e-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:  2.057e+00  3.027e-01  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/893050/cmap_HighResolution_502416001_502675201_4FGL_J1341.8-2053_daily_bin1015.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.53e-03', job_status='DONE', photon_flux_upper_limit='1.08e-07', time_completed='2021-09-08 09:46:41.130984', job_id='893050', GAL2='0.67', fit_tolerance='1e-08', EG2='2.06', EG='2.06', time_epoch_completed='1631119601.13', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.67', dlogl='1.83e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.73' WHERE bin_id='1015' AND source_name='4FGL J1341.8-2053' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 09:46:41 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0273>
Subject: Job 893050: <4FGL_J1341.8-2053_daily_bin1015> in cluster <slac> Done

Job <4FGL_J1341.8-2053_daily_bin1015> was submitted from host <rhel6-64c> by user <kocevski> in cluster <slac> at Wed Sep  8 09:30:28 2021
Job was executed on host(s) <bullet0273>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 09:31:12 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:31:12 2021
Terminated at Wed Sep  8 09:46:41 2021
Results reported at Wed Sep  8 09:46:41 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1341.8-2053_daily_bin1015 205.461 -20.8901 502416001 502675201 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 :                                   848.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             312.28 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   929 sec.
    Turnaround time :                            973 sec.

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

