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


Performing analysis on: 4FGL_J1341.8-2053_daily_bin1241
RA = 205.461, Dec = -20.8901
tmin = 560995201, tmax = 561254401
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='894487', job_status='RUN', time_executed='2021-09-08 09:38:50.473663', time_epoch_executed='1631119130.47' WHERE source_name='4FGL J1341.8-2053' and cadence='daily' and bin_id='1241'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/894487

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/894487/ft1_4FGL_J1341.8-2053_daily_bin1241.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/894487/ft2_4FGL_J1341.8-2053_daily_bin1241.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/894487/ft1_4FGL_J1341.8-2053_daily_bin1241.fits outfile=/scratch/kocevski/894487/ft1_filteredMKT_4FGL_J1341.8-2053_daily_bin1241.fits ra=205.461 dec=-20.8901 rad=12.0 tmin=560995201.0 tmax=561254401.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.80
user 3.53
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/894487/ft2_4FGL_J1341.8-2053_daily_bin1241.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/894487/ft1_filteredMKT_4FGL_J1341.8-2053_daily_bin1241.fits evtable="EVENTS" outfile="/scratch/kocevski/894487/ft1_filtered_4FGL_J1341.8-2053_daily_bin1241.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.51
user 0.33
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/894487/ft1_filtered_4FGL_J1341.8-2053_daily_bin1241.fits" evtable="EVENTS" scfile=/scratch/kocevski/894487/ft2_4FGL_J1341.8-2053_daily_bin1241.fits sctable="SC_DATA" outfile=/scratch/kocevski/894487/ltcube_560995201_561254401_4FGL_J1341.8-2053_daily_bin1241.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/894487/ft2_4FGL_J1341.8-2053_daily_bin1241.fits
.....................!
real 14.80
user 14.41
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/894487/ft1_filtered_4FGL_J1341.8-2053_daily_bin1241.fits evtable="EVENTS" scfile=/scratch/kocevski/894487/ft2_4FGL_J1341.8-2053_daily_bin1241.fits sctable="SC_DATA" expcube=/scratch/kocevski/894487/ltcube_560995201_561254401_4FGL_J1341.8-2053_daily_bin1241.fits outfile=/scratch/kocevski/894487/expmap_560995201_561254401_4FGL_J1341.8-2053_daily_bin1241.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/894487/ltcube_560995201_561254401_4FGL_J1341.8-2053_daily_bin1241.fits
.....................!
real 192.18
user 186.77
sys 4.82

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/894487/ft1_filtered_4FGL_J1341.8-2053_daily_bin1241.fits scfile=/scratch/kocevski/894487/ft2_4FGL_J1341.8-2053_daily_bin1241.fits outfile=/scratch/kocevski/894487/cmap_560995201_561254401_4FGL_J1341.8-2053_daily_bin1241.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.56
user 0.38
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/894487/ft1_filtered_4FGL_J1341.8-2053_daily_bin1241.fits scfile=/scratch/kocevski/894487/ft2_4FGL_J1341.8-2053_daily_bin1241.fits outfile=/scratch/kocevski/894487/cmap_HighResolution_560995201_561254401_4FGL_J1341.8-2053_daily_bin1241.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.56
user 0.40
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/894487/ft1_filtered_4FGL_J1341.8-2053_daily_bin1241.fits evtable="EVENTS" scfile=/scratch/kocevski/894487/ft2_4FGL_J1341.8-2053_daily_bin1241.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/894487/Model_4FGL_J1341.8-2053_daily_bin1241.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/894487/ft1_filtered_4FGL_J1341.8-2053_daily_bin1241.fits.....................!
real 51.51
user 50.05
sys 1.26

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12293E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    10.067       1.0000         .10000E-03   10000.    
     3 'norm      '    4.2069       1.0000         .10000E-03   10000.    
     4 'Prefactor '    15.896       1.0000         .10000E-03   10000.    
     5 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    49.440       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10343E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .11218E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10297E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .31684E-02   1.0000         .10000E-03   10000.    
    12 'Prefactor '    6.1827       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .88998       1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    104.39       1.0000         .10000E-03   10000.    
    18 'norm      '    6.0455       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    1.1347       1.0000         .10000E-03   10000.    
    22 'Prefactor '    17.384       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.6304       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .94183       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=   5698.300     FROM MIGRAD    STATUS=CONVERGED    639 CALLS     3070 TOTAL
                     EDM=   .68E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  8.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    196.14       -.69650E-05** at limit **
   2  norm          10.070        14.380       -.21090E-05   -.20203E-04
   3  norm          4.2042        6.8060        .35193E-06    .99314E-04
   4  Prefactor     15.894        9.3687       -.41364E-06    .21625E-03
   5  norm          .10000E-03    .74931       -.30860E-07** at limit **
   6  Prefactor     49.482        32.063       -.66214E-06    .25546E-05
   7  Prefactor     .10000E-03    27.926        .93250E-07** at limit **
   8  norm          .10000E-03    5.2390       -.27899E-06** at limit **
   9  norm          .10000E-03    23.373        .27192E-06** at limit **
  10  Prefactor     .10000E-03    40.334       -.84849E-06** at limit **
  11  Prefactor     .10006E-03    500.86        .88818E-04** at limit **
  12  Prefactor     6.1811        11.696       -.23721E-05   -.12003E-04
  13  Prefactor     .10000E-03    6.3256       -.76284E-07** at limit **
  14  norm          .90881        7.7807        .51294E-05    .54851E-03
  15  norm          .10000E-03    8.3234       -.47139E-07** at limit **
  16  Prefactor     .10000E-03    5.7106        .11711E-06** at limit **
  17  Prefactor     104.33        97.880       -.75649E-05    .59927E-04
  18  norm          6.0472        10.183       -.63032E-07    .19763E-04
  19  Prefactor     .10000E-03    1.5791       -.24406E-06** at limit **
  20  norm          .10000E-03    8.9011        .39059E-07** at limit **
  21  Prefactor     2.4638        616.13        .11927E-04    .19450E-04
  22  Prefactor     17.295        33.759       -.72899E-05    .95059E-04
  23  Prefactor     .10000E-03    47.426        .24402E-06** at limit **
  24  Normalizat    1.6302        .33993        .22361E-05   -.99510E-05
  25  Prefactor     .94167        .14294        .50679E-06    .28955E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100002
  norm       = 10.0697
  norm       = 4.20416
  Prefactor  = 15.8941
  norm       = 0.0001
  Prefactor  = 49.482
  Prefactor  = 0.0001
  norm       = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.00010006
  Prefactor  = 6.18112
  Prefactor  = 0.0001
  norm       = 0.908808
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 104.332
  norm       = 6.04721
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 2.46376
  Prefactor  = 17.2951
  Prefactor  = 0.0001
  Normalizat = 1.63024
  Prefactor  = 0.941672
 **********
 **   18 **HESSE 
 **********

 FCN=   5698.300     FROM HESSE     STATUS=OK           435 CALLS     3505 TOTAL
                     EDM=   .45E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    196.60        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          10.070        14.307        .63146E-03   -1.5073    
   3  norm          4.2042        6.7649        .19648E-03   -1.5298    
   4  Prefactor     15.894        9.3194        .10046E-03   -1.4910    
   5  norm          .10000E-03    .75075        .63812E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     49.482        31.645        .57032E-04   -1.4300    
   7  Prefactor     .10000E-03    27.972        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    15.108        .32831E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    23.681        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    40.841        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10006E-03    32.379        .11190       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     6.1811        11.896        .80726E-03   -1.5211    
  13  Prefactor     .10000E-03    6.3424        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .90881        29.660        .34782E-02   -1.5517    
  15  norm          .10000E-03    8.3242        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    5.7251        .17616E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     104.33        98.286        .39356E-04   -1.3662    
  18  norm          6.0472        10.182        .16330E-03   -1.5216    
  19  Prefactor     .10000E-03    1.5925        .92588E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    8.9184        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     2.4638        617.16        .43769E-03   -1.5394    
  22  Prefactor     17.295        33.666        .96061E-04   -1.4876    
  23  Prefactor     .10000E-03    47.569        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.6302        .41324        .36717E-03   -.74182    
  25  Prefactor     .94167        .17710        .19872E-03   -.94700    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.47468e-09
Minuit parameter uncertainties:
  1  0.0012722
  2  14.3115
  3  6.76615
  4  9.3203
  5  1.3318e-06
  6  31.6559
  7  1.57263e-06
  8  0.000234812
  9  3.17844e-06
  10  0.0001564
  11  0.00279433
  12  11.9003
  13  1.39304e-05
  14  10.3886
  15  3.75433e-08
  16  5.92926e-06
  17  98.4397
  18  10.1845
  19  7.72672e-06
  20  1.2186e-06
  21  78.8217
  22  33.7029
  23  0.000154614
  24  0.414112
  25  0.177208
Done.

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

Extracting fit parameters...

4FGL J1341.8-2053
   Spectrum: PowerLaw
295    Prefactor:  1.000e-04  1.393e-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:  9.417e-01  1.772e-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.630e+00  4.141e-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.34e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.05e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/894487/likelihoodResults_560995201_561254401_4FGL_J1341.8-2053_daily_bin1241.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) = 5698.30025571
delta logL = -0.000750875778976

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5698.2995048
delta logL = 3.04080458591e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7179       1.0000          .0000       10.000    
     3 'Normalizat'    1.6303       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94167       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=   5698.300     FROM MIGRAD    STATUS=CONVERGED     98 CALLS      250 TOTAL
                     EDM=   .58E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    25.098        .18142E-01** at limit **
   2  Index         2.3683        5.9241        .50000        .25784E-07
   3  Normalizat    1.6302        .15548E-01    .36717E-03    .37333E-03
   4  Prefactor     .94167        .66811E-02    .19871E-03    .72862E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.36825
  Normalizat = 1.63025
  Prefactor  = 0.94167
 **********
 **   18 **HESSE 
 **********

 FCN=   5698.300     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      279 TOTAL
                     EDM=   .55E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    233.99        .19513E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3683        8.1918        .50000       -.55430    
   3  Normalizat    1.6302        .49015E-01    .73433E-04   -.74181    
   4  Prefactor     .94167        .21063E-01    .39743E-04   -.94700    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.46727e-10
Minuit parameter uncertainties:
  1  0.00038624
  2  822.107
  3  0.0490169
  4  0.0210631
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/894487': 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) = 5698.29950402
delta logL = 8.0724748841e-07

Extracting fit parameters...

4FGL J1341.8-2053
   Spectrum: PowerLaw
295    Prefactor:  1.000e-04  3.862e-04  1.000e-04  1.000e+04 ( 1.000e-12)
296        Index:  2.368e+00  8.221e+02  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:  9.417e-01  2.106e-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.630e+00  4.902e-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/894487/cmap_HighResolution_560995201_561254401_4FGL_J1341.8-2053_daily_bin1241.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.05e-02', job_status='DONE', photon_flux_upper_limit='1.34e-07', time_completed='2021-09-08 09:50:13.347033', job_id='894487', GAL2='0.94', fit_tolerance='1e-08', EG2='1.63', EG='1.63', time_epoch_completed='1631119813.35', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.94', dlogl='8.07e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.73' WHERE bin_id='1241' AND source_name='4FGL J1341.8-2053' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 09:50:13 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0116>
Subject: Job 894487: <4FGL_J1341.8-2053_daily_bin1241> in cluster <slac> Done

Job <4FGL_J1341.8-2053_daily_bin1241> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep  8 09:35:22 2021
Job was executed on host(s) <bullet0116>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 09:35:48 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:35:48 2021
Terminated at Wed Sep  8 09:50:14 2021
Results reported at Wed Sep  8 09:50:14 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1341.8-2053_daily_bin1241 205.461 -20.8901 560995201 561254401 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 :                                   679.28 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             237.77 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   865 sec.
    Turnaround time :                            892 sec.

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

