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


Performing analysis on: 4FGL_J1341.8-2053_daily_bin1133
RA = 205.461, Dec = -20.8901
tmin = 533001601, tmax = 533260801
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='893218', job_status='RUN', time_executed='2021-09-08 09:32:18.069172', time_epoch_executed='1631118738.07' WHERE source_name='4FGL J1341.8-2053' and cadence='daily' and bin_id='1133'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/893218

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/893218/ft1_4FGL_J1341.8-2053_daily_bin1133.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/893218/ft2_4FGL_J1341.8-2053_daily_bin1133.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/893218/ft1_4FGL_J1341.8-2053_daily_bin1133.fits outfile=/scratch/kocevski/893218/ft1_filteredMKT_4FGL_J1341.8-2053_daily_bin1133.fits ra=205.461 dec=-20.8901 rad=12.0 tmin=533001601.0 tmax=533260801.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.59
user 3.34
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/893218/ft1_filtered_4FGL_J1341.8-2053_daily_bin1133.fits" evtable="EVENTS" scfile=/scratch/kocevski/893218/ft2_4FGL_J1341.8-2053_daily_bin1133.fits sctable="SC_DATA" outfile=/scratch/kocevski/893218/ltcube_533001601_533260801_4FGL_J1341.8-2053_daily_bin1133.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/893218/ft2_4FGL_J1341.8-2053_daily_bin1133.fits
.....................!
real 15.92
user 15.47
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/893218/ft1_filtered_4FGL_J1341.8-2053_daily_bin1133.fits evtable="EVENTS" scfile=/scratch/kocevski/893218/ft2_4FGL_J1341.8-2053_daily_bin1133.fits sctable="SC_DATA" expcube=/scratch/kocevski/893218/ltcube_533001601_533260801_4FGL_J1341.8-2053_daily_bin1133.fits outfile=/scratch/kocevski/893218/expmap_533001601_533260801_4FGL_J1341.8-2053_daily_bin1133.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/893218/ltcube_533001601_533260801_4FGL_J1341.8-2053_daily_bin1133.fits
.....................!
real 192.51
user 187.43
sys 4.50

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/893218/ft1_filtered_4FGL_J1341.8-2053_daily_bin1133.fits scfile=/scratch/kocevski/893218/ft2_4FGL_J1341.8-2053_daily_bin1133.fits outfile=/scratch/kocevski/893218/cmap_533001601_533260801_4FGL_J1341.8-2053_daily_bin1133.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.57
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/893218/ft1_filtered_4FGL_J1341.8-2053_daily_bin1133.fits scfile=/scratch/kocevski/893218/ft2_4FGL_J1341.8-2053_daily_bin1133.fits outfile=/scratch/kocevski/893218/cmap_HighResolution_533001601_533260801_4FGL_J1341.8-2053_daily_bin1133.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.55
user 0.39
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/893218/ft1_filtered_4FGL_J1341.8-2053_daily_bin1133.fits evtable="EVENTS" scfile=/scratch/kocevski/893218/ft2_4FGL_J1341.8-2053_daily_bin1133.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/893218/Model_4FGL_J1341.8-2053_daily_bin1133.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/893218/ft1_filtered_4FGL_J1341.8-2053_daily_bin1133.fits.....................!
real 68.07
user 66.53
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    17.809       1.0000         .10000E-03   10000.    
     3 'norm      '    4.7765       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .85557       1.0000         .10000E-03   10000.    
     6 'Prefactor '    16.408       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10018E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    18.167       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.6160       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .30962       1.0000         .10000E-03   10000.    
    15 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    2.7963       1.0000         .10000E-03   10000.    
    21 'Prefactor '    65.352       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.2462       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.1201       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=   8626.961     FROM MIGRAD    STATUS=CONVERGED    556 CALLS     2477 TOTAL
                     EDM=   .84E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    42.782        .10814E-06** at limit **
   2  norm          17.809        8.9515        .60014E-07   -.14162E-04
   3  norm          4.7775        4.5734        .21125E-06   -.18728E-03
   4  Prefactor     .10000E-03    1.8691       -.19550E-06** at limit **
   5  norm          .85482        1.6346       -.38307E-06   -.17532E-02
   6  Prefactor     16.407        9.1713        .14107E-07   -.43013E-04
   7  Prefactor     .10000E-03    7.7264        .30104E-06** at limit **
   8  norm          .10000E-03    1.5462       -.74212E-08** at limit **
   9  norm          18.166        8.2456       -.15662E-06   -.20420E-03
  10  Prefactor     .10000E-03    6.6598        .19784E-08** at limit **
  11  Prefactor     .10000E-03    11.583       -.33786E-07** at limit **
  12  Prefactor     3.6112        11.636        .41920E-05    .12576E-04
  13  Prefactor     .10000E-03    9.4215       -.14430E-06** at limit **
  14  norm          .30890        3.2351        .24573E-06   -.16803E-03
  15  norm          .10000E-03    15.756        .41364E-06** at limit **
  16  Prefactor     .10000E-03    3.0674        .10282E-07** at limit **
  17  Prefactor     .10000E-03    12.196        .10757E-06** at limit **
  18  norm          .10000E-03    3.4280        .22034E-08** at limit **
  19  Prefactor     .10000E-03    1.4921       -.17038E-07** at limit **
  20  norm          2.7957        6.6660        .48803E-05   -.69160E-04
  21  Prefactor     65.346        54.925        .76075E-06   -.66111E-05
  22  Prefactor     .10000E-03    19.958       -.92981E-06** at limit **
  23  Prefactor     .10000E-03    15.190        .46683E-06** at limit **
  24  Normalizat    1.2462        .24651       -.82245E-06    .10028E-03
  25  Prefactor     1.1202        .11229       -.13865E-06    .20210E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  norm       = 17.8089
  norm       = 4.77752
  Prefactor  = 0.0001
  norm       = 0.854817
  Prefactor  = 16.4072
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 18.1662
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.61118
  Prefactor  = 0.000100001
  norm       = 0.308899
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 2.79566
  Prefactor  = 65.3456
  Prefactor  = 0.000100003
  Prefactor  = 0.000100001
  Normalizat = 1.24621
  Prefactor  = 1.12017
 **********
 **   18 **HESSE 
 **********

 FCN=   8626.961     FROM HESSE     STATUS=OK           425 CALLS     2902 TOTAL
                     EDM=   .64E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    42.834        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          17.809        8.9538        .94907E-04   -1.4864    
   3  norm          4.7775        4.5645        .18409E-03   -1.5271    
   4  Prefactor     .10000E-03    1.8775        .12397E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .85482        1.2675        .16386E-02   -1.5523    
   6  Prefactor     16.407        9.1737        .98877E-04   -1.4898    
   7  Prefactor     .10000E-03    7.7645        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    1.5594        .11257E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          18.166        8.2413        .93969E-04   -1.4855    
  10  Prefactor     .10000E-03    6.6841        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    11.623        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     3.6112        11.589        .10624E-02   -1.5328    
  13  Prefactor     .10000E-03    9.5925        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .30890        10.977        .31971E-02   -1.5597    
  15  norm          .10000E-03    15.799        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    3.1008        .15877E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    12.203        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    3.4319        .16795E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    1.5012        .11075E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          2.7957        6.5991        .12165E-02   -1.5374    
  21  Prefactor     65.346        54.985        .24822E-03   -1.4089    
  22  Prefactor     .10000E-03    20.209        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    15.244        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.2462        .28533        .38588E-03   -.85187    
  25  Prefactor     1.1202        .13088        .18534E-03   -.88824    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.39435e-08
Minuit parameter uncertainties:
  1  0.000447335
  2  8.95447
  3  4.56485
  4  1.57891e-05
  5  1.26756
  6  9.17452
  7  8.91081e-05
  8  1.66271e-07
  9  8.24181
  10  3.70424e-05
  11  3.16904e-05
  12  11.596
  13  0.000198531
  14  3.68291
  15  0.000166112
  16  6.82607e-06
  17  3.75767e-05
  18  1.26064e-06
  19  2.03049e-06
  20  6.60085
  21  55.0277
  22  0.000464012
  23  0.000191532
  24  0.285688
  25  0.130922
Done.

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

Extracting fit parameters...

4FGL J1341.8-2053
   Spectrum: PowerLaw
295    Prefactor:  1.000e-04  1.985e-04  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.120e+00  1.309e-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.246e+00  2.857e-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.54e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/893218/likelihoodResults_533001601_533260801_4FGL_J1341.8-2053_daily_bin1133.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) = 8626.96117324
delta logL = -0.000496899190694

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8626.96067687
delta logL = -5.28094460606e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10201E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7183       1.0000          .0000       10.000    
     3 'Normalizat'    1.2459       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1203       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=   8626.961     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      234 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10101E-03    237.86        .18142E-02** at limit **
   2  Index         2.6575        6.3209        .50000        .86817E-05
   3  Normalizat    1.2462        .31455E-01    .38588E-03    .18083E-03
   4  Prefactor     1.1202        .14515E-01    .18534E-03    .33170E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101008
  Index      = 2.65747
  Normalizat = 1.24621
  Prefactor  = 1.12017
 **********
 **   18 **HESSE 
 **********

 FCN=   8626.961     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      263 TOTAL
                     EDM=   .50E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10101E-03    915.85        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.6575        6.3839        .50000       -.48760    
   3  Normalizat    1.2462        .69048E-01    .15435E-04   -.85187    
   4  Prefactor     1.1202        .31863E-01    .37068E-04   -.88825    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.99185e-08
Minuit parameter uncertainties:
  1  0.06173
  2  1496.23
  3  0.0690532
  4  0.0318633
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/893218': 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) = 8626.96067622
delta logL = 1.24757207232e-07

Extracting fit parameters...

4FGL J1341.8-2053
   Spectrum: PowerLaw
295    Prefactor:  1.010e-04  6.173e-02  1.000e-04  1.000e+04 ( 1.000e-12)
296        Index:  2.657e+00  1.496e+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.120e+00  3.186e-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.246e+00  6.905e-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/893218/cmap_HighResolution_533001601_533260801_4FGL_J1341.8-2053_daily_bin1133.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.54e-03', job_status='DONE', photon_flux_upper_limit='1.08e-07', time_completed='2021-09-08 09:45:53.441505', job_id='893218', GAL2='1.12', fit_tolerance='1e-08', EG2='1.25', EG='1.25', time_epoch_completed='1631119553.44', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.12', dlogl='1.25e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.73' WHERE bin_id='1133' AND source_name='4FGL J1341.8-2053' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 09:45:53 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0218>
Subject: Job 893218: <4FGL_J1341.8-2053_daily_bin1133> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1341.8-2053_daily_bin1133 205.461 -20.8901 533001601 533260801 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 :                                   797.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             352.46 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   856 sec.
    Turnaround time :                            913 sec.

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

