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


Performing analysis on: 4FGL_J1341.8-2053_daily_bin1099
RA = 205.461, Dec = -20.8901
tmin = 524188801, tmax = 524448001
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='893169', job_status='RUN', time_executed='2021-09-08 09:33:54.345394', time_epoch_executed='1631118834.35' WHERE source_name='4FGL J1341.8-2053' and cadence='daily' and bin_id='1099'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/893169

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/893169/ft1_4FGL_J1341.8-2053_daily_bin1099.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/893169/ft2_4FGL_J1341.8-2053_daily_bin1099.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/893169/ft1_4FGL_J1341.8-2053_daily_bin1099.fits outfile=/scratch/kocevski/893169/ft1_filteredMKT_4FGL_J1341.8-2053_daily_bin1099.fits ra=205.461 dec=-20.8901 rad=12.0 tmin=524188801.0 tmax=524448001.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.44
user 3.17
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/893169/ft1_filtered_4FGL_J1341.8-2053_daily_bin1099.fits" evtable="EVENTS" scfile=/scratch/kocevski/893169/ft2_4FGL_J1341.8-2053_daily_bin1099.fits sctable="SC_DATA" outfile=/scratch/kocevski/893169/ltcube_524188801_524448001_4FGL_J1341.8-2053_daily_bin1099.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/893169/ft2_4FGL_J1341.8-2053_daily_bin1099.fits
.....................!
real 15.70
user 15.26
sys 0.38

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/893169/ft1_filtered_4FGL_J1341.8-2053_daily_bin1099.fits evtable="EVENTS" scfile=/scratch/kocevski/893169/ft2_4FGL_J1341.8-2053_daily_bin1099.fits sctable="SC_DATA" expcube=/scratch/kocevski/893169/ltcube_524188801_524448001_4FGL_J1341.8-2053_daily_bin1099.fits outfile=/scratch/kocevski/893169/expmap_524188801_524448001_4FGL_J1341.8-2053_daily_bin1099.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/893169/ltcube_524188801_524448001_4FGL_J1341.8-2053_daily_bin1099.fits
.....................!
real 192.03
user 186.09
sys 5.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/893169/ft1_filtered_4FGL_J1341.8-2053_daily_bin1099.fits scfile=/scratch/kocevski/893169/ft2_4FGL_J1341.8-2053_daily_bin1099.fits outfile=/scratch/kocevski/893169/cmap_524188801_524448001_4FGL_J1341.8-2053_daily_bin1099.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.54
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/893169/ft1_filtered_4FGL_J1341.8-2053_daily_bin1099.fits scfile=/scratch/kocevski/893169/ft2_4FGL_J1341.8-2053_daily_bin1099.fits outfile=/scratch/kocevski/893169/cmap_HighResolution_524188801_524448001_4FGL_J1341.8-2053_daily_bin1099.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/893169/ft1_filtered_4FGL_J1341.8-2053_daily_bin1099.fits evtable="EVENTS" scfile=/scratch/kocevski/893169/ft2_4FGL_J1341.8-2053_daily_bin1099.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/893169/Model_4FGL_J1341.8-2053_daily_bin1099.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/893169/ft1_filtered_4FGL_J1341.8-2053_daily_bin1099.fits.....................!
real 53.26
user 51.87
sys 1.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10509E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    1.7275       1.0000         .10000E-03   10000.    
     3 'norm      '    1.4123       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    1.8058       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    26.547       1.0000         .10000E-03   10000.    
     8 'norm      '    4.6591       1.0000         .10000E-03   10000.    
     9 'norm      '    .10619E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .41826       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10203E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    29.360       1.0000         .10000E-03   10000.    
    13 'Prefactor '    23.758       1.0000         .10000E-03   10000.    
    14 'norm      '    6.8303       1.0000         .10000E-03   10000.    
    15 'norm      '    .10046E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .98729       1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.3208       1.0000         .10000E-03   10000.    
    18 'norm      '    6.3062       1.0000         .10000E-03   10000.    
    19 'Prefactor '    12.926       1.0000         .10000E-03   10000.    
    20 'norm      '    .10028E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    86.569       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    15.775       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .59467       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.1885       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=   6396.317     FROM MIGRAD    STATUS=CONVERGED   1078 CALLS     3451 TOTAL
                     EDM=   .53E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    76.371        .18142E-02** at limit **
   2  norm          1.7270        11.161        .15974E-02   -.21010E-04
   3  norm          1.4132        9.0368        .36446E-03   -.26330E-03
   4  Prefactor     .10015E-03    45.995        .35816E-02** at limit **
   5  norm          1.8062        2.2138        .12835E-03   -.11895E-03
   6  Prefactor     .10000E-03    3.6726        .14958E-02** at limit **
   7  Prefactor     26.498        29.084        .77752E-04   -.16157E-03
   8  norm          4.6641        5.5948        .15427E-03   -.20598E-03
   9  norm          .10001E-03    12.679        .31519E-02** at limit **
  10  Prefactor     .23657        39.382        .83554E-01    .13908E-03
  11  Prefactor     .10000E-03    15.246        .18142E-02** at limit **
  12  Prefactor     29.358        15.852        .73941E-04   -.90714E-04
  13  Prefactor     23.806        19.306        .82180E-04   -.46319E-03
  14  norm          6.8310        5.3901        .15352E-03   -.31139E-03
  15  norm          .10000E-03    8.7071        .18142E-02** at limit **
  16  Prefactor     .98803        5.4369        .35318E-03   -.88329E-04
  17  Prefactor     1.5945        496.35        .38286E-03   -.11284E-05
  18  norm          6.3042        13.803        .15984E-03   -.76103E-05
  19  Prefactor     12.928        6.7960        .11141E-03   -.85919E-04
  20  norm          .10000E-03    3.9591        .15493E-02** at limit **
  21  Prefactor     86.465        86.992        .21590E-03    .24117E-04
  22  Prefactor     .10000E-03    7.9595        .18142E-02** at limit **
  23  Prefactor     15.771        31.058        .10084E-03   -.15107E-04
  24  Normalizat    .59519        .34671        .51044E-03   -.25502E-03
  25  Prefactor     1.1882        .15637        .17098E-03   -.48884E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 1.72701
  norm       = 1.41324
  Prefactor  = 0.000100149
  norm       = 1.80617
  Prefactor  = 0.0001
  Prefactor  = 26.4978
  norm       = 4.66407
  norm       = 0.000100009
  Prefactor  = 0.236573
  Prefactor  = 0.0001
  Prefactor  = 29.3575
  Prefactor  = 23.8064
  norm       = 6.83102
  norm       = 0.0001
  Prefactor  = 0.988026
  Prefactor  = 1.59445
  norm       = 6.30419
  Prefactor  = 12.9279
  norm       = 0.0001
  Prefactor  = 86.4654
  Prefactor  = 0.0001
  Prefactor  = 15.771
  Normalizat = 0.595195
  Prefactor  = 1.18822
 **********
 **   18 **HESSE 
 **********

 FCN=   6396.317     FROM HESSE     STATUS=OK           413 CALLS     3864 TOTAL
                     EDM=   .52E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    76.372        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.7270        11.142        .63895E-04   -1.5445    
   3  norm          1.4132        8.8261        .14578E-04   -1.5470    
   4  Prefactor     .10015E-03    46.282        .14326E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          1.8062        2.2138        .51342E-05   -1.5439    
   6  Prefactor     .10000E-03    3.6727        .29916E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     26.498        29.068        .31101E-05   -1.4678    
   8  norm          4.6641        5.5927        .61707E-05   -1.5276    
   9  norm          .10001E-03    12.795        .63037E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .23657        32.061        .92285E-01   -1.5611    
  11  Prefactor     .10000E-03    15.246        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     29.358        15.850        .29576E-05   -1.4624    
  13  Prefactor     23.806        18.891        .16436E-04   -1.4732    
  14  norm          6.8310        5.3877        .61408E-05   -1.5185    
  15  norm          .10000E-03    8.7071        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .98803        5.4332        .14127E-04   -1.5509    
  17  Prefactor     1.5945        495.69        .15314E-04   -1.5455    
  18  norm          6.3042        13.801        .63937E-05   -1.5206    
  19  Prefactor     12.928        6.7945        .44565E-05   -1.4989    
  20  norm          .10000E-03    3.9597        .30987E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     86.465        86.977        .86358E-05   -1.3846    
  22  Prefactor     .10000E-03    7.9596        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     15.771        31.054        .40337E-05   -1.4914    
  24  Normalizat    .59519        .34666        .20418E-04   -1.0819    
  25  Prefactor     1.1882        .15633        .34195E-04   -.86695    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.23967e-09
Minuit parameter uncertainties:
  1  3.7042e-05
  2  8.77521
  3  7.06485
  4  0.00525185
  5  2.21385
  6  2.42278e-06
  7  29.0839
  8  5.59333
  9  0.000675718
  10  5.50994
  11  1.3095e-05
  12  15.8526
  13  18.8958
  14  5.38812
  15  1.48914e-06
  16  4.63426
  17  56.7045
  18  13.8079
  19  6.79488
  20  1.48583e-05
  21  87.1051
  22  6.24096e-06
  23  31.0856
  24  0.347939
  25  0.156388
Done.

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

Extracting fit parameters...

4FGL J1341.8-2053
   Spectrum: PowerLaw
295    Prefactor:  2.381e+01  1.890e+01  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.188e+00  1.564e-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:  5.952e-01  3.479e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.22
Ra Dec: 205.461 -20.890
Photon Index (Fixed Index): 2.73 +/- 0.00
Photon Flux (Fixed Index): 1.23e-07 +/- 9.75e-08
Energy Flux (Fixed Index): 2.89e-05 +/- 2.29e-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) = 6396.17239321
delta logL = 0.144903514994

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6396.15842996
delta logL = 0.158866761861

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    18.475       1.0000         .10000E-03   10000.    
     2 'Index     '    3.2361       1.0000          .0000       10.000    
     3 'Normalizat'    .53373       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2075       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=   6396.158     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      295 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     18.480        22.874        .93182E-04    .26939E-03
   2  Index         3.2356        1.2585        .74624E-02    .82693E-04
   3  Normalizat    .53421        .35279        .53685E-03    .34175E-03
   4  Prefactor     1.2073        .15760        .16978E-03    .17298E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 18.4798
  Index      = 3.23561
  Normalizat = 0.534206
  Prefactor  = 1.20728
 **********
 **   18 **HESSE 
 **********

 FCN=   6396.158     FROM HESSE     STATUS=OK            25 CALLS      320 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     18.480        18.887        .37273E-05   -1.4848    
   2  Index         3.2356        1.0405        .29850E-03   -.36065    
   3  Normalizat    .53421        .34758        .21474E-04   -1.1086    
   4  Prefactor     1.2073        .15575        .33956E-04   -.86108    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.92599e-09
Minuit parameter uncertainties:
  1  18.8927
  2  1.04931
  3  0.349007
  4  0.155807
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/893169': 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) = 6396.15842869
delta logL = 0.158868035936

Extracting fit parameters...

4FGL J1341.8-2053
   Spectrum: PowerLaw
295    Prefactor:  1.848e+01  1.889e+01  1.000e-04  1.000e+04 ( 1.000e-12)
296        Index:  3.236e+00  1.049e+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:  1.207e+00  1.558e-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:  5.342e-01  3.490e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.67
Ra Dec: 205.461 -20.890
Photon Index (Free Index): 3.24 +/- 1.05
Photon Flux (Free Index): 1.69e-07 +/- 1.18e-07
Energy Flux (Free Index): 3.06e-05 +/- 1.73e-05

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/893169/cmap_HighResolution_524188801_524448001_4FGL_J1341.8-2053_daily_bin1099.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.23e-07', energy_flux2='3.06e-05', photon_flux_error='9.75e-08', dlogl='1.59e-01', energy_flux='2.89e-05', photon_flux2='1.69e-07', job_status='DONE', time_completed='2021-09-08 09:45:48.243603', photon_index_error2='1.05', photon_index2='3.24', ts='4.22', fit_tolerance='1e-08', GAL='1.19', photon_index_error='0.00', energy_flux_error2='1.73e-05', EG='0.60', time_epoch_completed='1631119548.24', return_code='0', job_id='893169', GAL2='1.21', EG2='0.53', return_code2='0', energy_flux_error='2.29e-05', photon_flux_error2='1.18e-07', ts2='4.67', photon_index='2.73' WHERE bin_id='1099' AND source_name='4FGL J1341.8-2053' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 09:45:48 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0134>
Subject: Job 893169: <4FGL_J1341.8-2053_daily_bin1099> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1341.8-2053_daily_bin1099 205.461 -20.8901 524188801 524448001 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.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             280.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   860 sec.
    Turnaround time :                            911 sec.

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

