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


Performing analysis on: 4FGL_J1341.8-2053_daily_bin724
RA = 205.461, Dec = -20.8901
tmin = 426988801, tmax = 427248001
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='891709', job_status='RUN', time_executed='2021-09-08 09:26:48.458508', time_epoch_executed='1631118408.46' WHERE source_name='4FGL J1341.8-2053' and cadence='daily' and bin_id='724'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/891709

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/891709/ft1_4FGL_J1341.8-2053_daily_bin724.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/891709/ft2_4FGL_J1341.8-2053_daily_bin724.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/891709/ft1_4FGL_J1341.8-2053_daily_bin724.fits outfile=/scratch/kocevski/891709/ft1_filteredMKT_4FGL_J1341.8-2053_daily_bin724.fits ra=205.461 dec=-20.8901 rad=12.0 tmin=426988801.0 tmax=427248001.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 5.87
user 5.58
sys 0.26

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/891709/ft1_filtered_4FGL_J1341.8-2053_daily_bin724.fits" evtable="EVENTS" scfile=/scratch/kocevski/891709/ft2_4FGL_J1341.8-2053_daily_bin724.fits sctable="SC_DATA" outfile=/scratch/kocevski/891709/ltcube_426988801_427248001_4FGL_J1341.8-2053_daily_bin724.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/891709/ft2_4FGL_J1341.8-2053_daily_bin724.fits
.....................!
real 16.09
user 15.66
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/891709/ft1_filtered_4FGL_J1341.8-2053_daily_bin724.fits evtable="EVENTS" scfile=/scratch/kocevski/891709/ft2_4FGL_J1341.8-2053_daily_bin724.fits sctable="SC_DATA" expcube=/scratch/kocevski/891709/ltcube_426988801_427248001_4FGL_J1341.8-2053_daily_bin724.fits outfile=/scratch/kocevski/891709/expmap_426988801_427248001_4FGL_J1341.8-2053_daily_bin724.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/891709/ltcube_426988801_427248001_4FGL_J1341.8-2053_daily_bin724.fits
.....................!
real 193.37
user 186.96
sys 5.22

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/891709/ft1_filtered_4FGL_J1341.8-2053_daily_bin724.fits scfile=/scratch/kocevski/891709/ft2_4FGL_J1341.8-2053_daily_bin724.fits outfile=/scratch/kocevski/891709/cmap_426988801_427248001_4FGL_J1341.8-2053_daily_bin724.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.58
user 0.37
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/891709/ft1_filtered_4FGL_J1341.8-2053_daily_bin724.fits scfile=/scratch/kocevski/891709/ft2_4FGL_J1341.8-2053_daily_bin724.fits outfile=/scratch/kocevski/891709/cmap_HighResolution_426988801_427248001_4FGL_J1341.8-2053_daily_bin724.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.39
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/891709/ft1_filtered_4FGL_J1341.8-2053_daily_bin724.fits evtable="EVENTS" scfile=/scratch/kocevski/891709/ft2_4FGL_J1341.8-2053_daily_bin724.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/891709/Model_4FGL_J1341.8-2053_daily_bin724.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/891709/ft1_filtered_4FGL_J1341.8-2053_daily_bin724.fits.....................!
real 79.45
user 77.37
sys 1.35

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    64.935       1.0000         .10000E-03   10000.    
     2 'norm      '    14.604       1.0000         .10000E-03   10000.    
     3 'norm      '    .10847E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.1400       1.0000         .10000E-03   10000.    
     5 'norm      '    .95126       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .14847E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    5.6447       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    21.378       1.0000         .10000E-03   10000.    
    12 'Prefactor '    8.8492       1.0000         .10000E-03   10000.    
    13 'Prefactor '    12.022       1.0000         .10000E-03   10000.    
    14 'norm      '    .12183E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    9.3353       1.0000         .10000E-03   10000.    
    17 'Prefactor '    22.033       1.0000         .10000E-03   10000.    
    18 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    7.9220       1.0000         .10000E-03   10000.    
    20 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    16.720       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.1457       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .93943       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=   9953.177     FROM MIGRAD    STATUS=CONVERGED    539 CALLS     2912 TOTAL
                     EDM=   .30E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     64.918        91.417       -.19506E-04   -.53165E-04
   2  norm          14.604        9.0766       -.33814E-06   -.32859E-04
   3  norm          .10000E-03    4.4772        .28714E-05** at limit **
   4  Prefactor     4.1397        4.1364        .86285E-06   -.15850E-03
   5  norm          .95123        1.1382        .91550E-07    .19573E-03
   6  Prefactor     .10000E-03    3.4758        .16805E-05** at limit **
   7  Prefactor     .10000E-03    8.3854        .35448E-05** at limit **
   8  norm          .10001E-03    1.3296       -.78546E-06** at limit **
   9  norm          5.6453        4.7661       -.14093E-06    .29396E-03
  10  Prefactor     .10000E-03    4.3128        .12960E-05** at limit **
  11  Prefactor     21.377        18.383       -.21344E-05    .14721E-04
  12  Prefactor     8.8487        7.4536       -.18942E-06    .26813E-04
  13  Prefactor     12.021        8.2965       -.16852E-06    .50164E-04
  14  norm          .10000E-03    3.6274       -.37630E-05** at limit **
  15  norm          .10000E-03    6.7389       -.28610E-05** at limit **
  16  Prefactor     9.3361        5.0245       -.21529E-08    .25052E-03
  17  Prefactor     22.021        31.704       -.22236E-04    .70289E-04
  18  norm          .10000E-03    2.1088        .71248E-07** at limit **
  19  Prefactor     7.9214        3.7223       -.17134E-06   -.11617E-03
  20  norm          .10000E-03    6.8760       -.19845E-05** at limit **
  21  Prefactor     16.695        31.132       -.51514E-04   -.60257E-06
  22  Prefactor     .10000E-03    9.5105        .52343E-05** at limit **
  23  Prefactor     .10000E-03    11.181       -.49362E-05** at limit **
  24  Normalizat    1.1457        .21219        .41972E-05    .12986E-03
  25  Prefactor     .93944        .93452E-01    .86636E-06    .34794E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 64.9185
  norm       = 14.6037
  norm       = 0.0001
  Prefactor  = 4.13966
  norm       = 0.951232
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100009
  norm       = 5.64535
  Prefactor  = 0.0001
  Prefactor  = 21.3767
  Prefactor  = 8.84868
  Prefactor  = 12.0211
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 9.33614
  Prefactor  = 22.0208
  norm       = 0.0001
  Prefactor  = 7.92143
  norm       = 0.0001
  Prefactor  = 16.6954
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.14569
  Prefactor  = 0.939441
 **********
 **   18 **HESSE 
 **********

 FCN=   9953.177     FROM HESSE     STATUS=OK           427 CALLS     3339 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     64.918        91.182        .49802E-04   -1.4095    
   2  norm          14.604        9.0772        .10481E-03   -1.4943    
   3  norm          .10000E-03    4.5362        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     4.1397        4.1263        .19127E-03   -1.5301    
   5  norm          .95123        1.1172        .11355E-03   -1.5513    
   6  Prefactor     .10000E-03    3.4834        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    8.4149        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10001E-03    6.0590        .21659E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          5.6453        4.6612        .16908E-03   -1.5233    
  10  Prefactor     .10000E-03    4.3431        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     21.377        18.376        .86628E-04   -1.4783    
  12  Prefactor     8.8487        7.4515        .13474E-03   -1.5113    
  13  Prefactor     12.021        8.2957        .11554E-03   -1.5014    
  14  norm          .10000E-03    3.7712        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    6.7412        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     9.3361        5.0272        .13117E-03   -1.5097    
  17  Prefactor     22.021        31.651        .85332E-04   -1.4769    
  18  norm          .10000E-03    2.1099        .14148E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     7.9214        3.7221        .12545E-03   -1.5145    
  20  norm          .10000E-03    7.0850        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     16.695        31.158        .97948E-04   -1.4891    
  22  Prefactor     .10000E-03    9.5382        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    11.210        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.1457        .25307        .36164E-03   -.88298    
  25  Prefactor     .93944        .11223        .17896E-03   -.94776    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.81773e-09
Minuit parameter uncertainties:
  1  91.3791
  2  9.07805
  3  7.81701e-05
  4  4.12658
  5  1.1172
  6  8.3988e-06
  7  3.96225e-06
  8  0.000470956
  9  4.66146
  10  3.85945e-06
  11  18.3809
  12  7.45225
  13  8.29653
  14  8.28422e-05
  15  1.90103e-07
  16  5.02743
  17  31.6755
  18  3.93824e-08
  19  3.72224
  20  3.21469e-06
  21  31.1883
  22  3.83537e-05
  23  2.66812e-05
  24  0.25334
  25  0.11226
Done.

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

Extracting fit parameters...

4FGL J1341.8-2053
   Spectrum: PowerLaw
295    Prefactor:  1.202e+01  8.297e+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

GAL_V02
   Spectrum: PowerLaw
574    Prefactor:  9.394e-01  1.123e-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.146e+00  2.533e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.05
Ra Dec: 205.461 -20.890
Photon Index (Fixed Index): 2.73 +/- 0.00
Photon Flux (Fixed Index): 6.21e-08 +/- 4.28e-08
Energy Flux (Fixed Index): 1.46e-05 +/- 1.01e-05

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): 0
logL (Free Index) = 9951.02544016
delta logL = 2.15107815174

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9950.92528157
delta logL = 2.25123674313

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    16.707       1.0000         .10000E-03   10000.    
     2 'Index     '    1.8119       1.0000          .0000       10.000    
     3 'Normalizat'    1.1888       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92215       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.

 FCN=   9950.925     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      222 TOTAL
                     EDM=   .54E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     16.724        10.091        .24497E-02    .15315E-04
   2  Index         1.8121        .28566        .18578       -.95605E-04
   3  Normalizat    1.1887        .20414        .80369E-01    .24387E-04
   4  Prefactor     .92218        .93054E-01    .45287E-01    .50491E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 16.7238
  Index      = 1.81211
  Normalizat = 1.18874
  Prefactor  = 0.922183
 **********
 **   18 **HESSE 
 **********

 FCN=   9950.925     FROM HESSE     STATUS=OK            33 CALLS      255 TOTAL
                     EDM=   .20E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     16.724        10.937        .97988E-04   -1.4890    
   2  Index         1.8121        .35495        .71713E-02   -.69135    
   3  Normalizat    1.1887        .24469        .35578E-03   -.86952    
   4  Prefactor     .92218        .11172        .18031E-03   -.95370    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.96281e-12
Minuit parameter uncertainties:
  1  10.9382
  2  0.355458
  3  0.244928
  4  0.111748
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/891709': 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) = 9950.92528029
delta logL = 2.25123802257

Extracting fit parameters...

4FGL J1341.8-2053
   Spectrum: PowerLaw
295    Prefactor:  1.672e+01  1.094e+01  1.000e-04  1.000e+04 ( 1.000e-12)
296        Index:  1.812e+00  3.555e-01  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.222e-01  1.117e-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.189e+00  2.449e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.58
Ra Dec: 205.461 -20.890
Photon Index (Free Index): 1.81 +/- 0.36
Photon Flux (Free Index): 4.04e-08 +/- 2.95e-08
Energy Flux (Free Index): 4.66e-05 +/- 4.10e-05

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/891709/cmap_HighResolution_426988801_427248001_4FGL_J1341.8-2053_daily_bin724.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.21e-08', energy_flux2='4.66e-05', photon_flux_error='4.28e-08', dlogl='2.25e+00', energy_flux='1.46e-05', photon_flux2='4.04e-08', job_status='DONE', time_completed='2021-09-08 09:40:43.297433', photon_index_error2='0.36', photon_index2='1.81', ts='4.05', fit_tolerance='1e-08', GAL='0.94', photon_index_error='0.00', energy_flux_error2='4.10e-05', EG='1.15', time_epoch_completed='1631119243.3', return_code='0', job_id='891709', GAL2='0.92', EG2='1.19', return_code2='0', energy_flux_error='1.01e-05', photon_flux_error2='2.95e-08', ts2='8.58', photon_index='2.73' WHERE bin_id='724' AND source_name='4FGL J1341.8-2053' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 09:40:43 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0080>
Subject: Job 891709: <4FGL_J1341.8-2053_daily_bin724> in cluster <slac> Done

Job <4FGL_J1341.8-2053_daily_bin724> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep  8 09:25:22 2021
Job was executed on host(s) <bullet0080>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 09:25:32 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:25:32 2021
Terminated at Wed Sep  8 09:40:44 2021
Results reported at Wed Sep  8 09:40:44 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1341.8-2053_daily_bin724 205.461 -20.8901 426988801 427248001 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 :                                   829.52 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             328.40 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   911 sec.
    Turnaround time :                            922 sec.

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

