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


Performing analysis on: 4FGL_J1341.8-2053_daily_bin783
RA = 205.461, Dec = -20.8901
tmin = 442281601, tmax = 442540801
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='891795', job_status='RUN', time_executed='2021-09-08 09:26:05.288043', time_epoch_executed='1631118365.29' WHERE source_name='4FGL J1341.8-2053' and cadence='daily' and bin_id='783'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/891795

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/891795/ft1_4FGL_J1341.8-2053_daily_bin783.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/891795/ft2_4FGL_J1341.8-2053_daily_bin783.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/891795/ft1_4FGL_J1341.8-2053_daily_bin783.fits outfile=/scratch/kocevski/891795/ft1_filteredMKT_4FGL_J1341.8-2053_daily_bin783.fits ra=205.461 dec=-20.8901 rad=12.0 tmin=442281601.0 tmax=442540801.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.50
user 3.26
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/891795/ft1_filtered_4FGL_J1341.8-2053_daily_bin783.fits" evtable="EVENTS" scfile=/scratch/kocevski/891795/ft2_4FGL_J1341.8-2053_daily_bin783.fits sctable="SC_DATA" outfile=/scratch/kocevski/891795/ltcube_442281601_442540801_4FGL_J1341.8-2053_daily_bin783.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/891795/ft2_4FGL_J1341.8-2053_daily_bin783.fits
.....................!
real 16.69
user 16.29
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/891795/ft1_filtered_4FGL_J1341.8-2053_daily_bin783.fits evtable="EVENTS" scfile=/scratch/kocevski/891795/ft2_4FGL_J1341.8-2053_daily_bin783.fits sctable="SC_DATA" expcube=/scratch/kocevski/891795/ltcube_442281601_442540801_4FGL_J1341.8-2053_daily_bin783.fits outfile=/scratch/kocevski/891795/expmap_442281601_442540801_4FGL_J1341.8-2053_daily_bin783.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/891795/ltcube_442281601_442540801_4FGL_J1341.8-2053_daily_bin783.fits
.....................!
real 193.36
user 187.58
sys 5.17

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/891795/ft1_filtered_4FGL_J1341.8-2053_daily_bin783.fits scfile=/scratch/kocevski/891795/ft2_4FGL_J1341.8-2053_daily_bin783.fits outfile=/scratch/kocevski/891795/cmap_442281601_442540801_4FGL_J1341.8-2053_daily_bin783.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.39
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/891795/ft1_filtered_4FGL_J1341.8-2053_daily_bin783.fits scfile=/scratch/kocevski/891795/ft2_4FGL_J1341.8-2053_daily_bin783.fits outfile=/scratch/kocevski/891795/cmap_HighResolution_442281601_442540801_4FGL_J1341.8-2053_daily_bin783.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=205.461 yref=-20.8901 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.58
user 0.41
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    41.270       1.0000         .10000E-03   10000.    
     2 'norm      '    .10663E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .20451E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .28372E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .27545       1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.7175       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .97548E-02   1.0000         .10000E-03   10000.    
     8 'norm      '    11.369       1.0000         .10000E-03   10000.    
     9 'norm      '    7.8716       1.0000         .10000E-03   10000.    
    10 'Prefactor '    8.2568       1.0000         .10000E-03   10000.    
    11 'Prefactor '    22.798       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.2997       1.0000         .10000E-03   10000.    
    14 'norm      '    3.1060       1.0000         .10000E-03   10000.    
    15 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10059E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10128E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    7.5491       1.0000         .10000E-03   10000.    
    20 'norm      '    4.5054       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    8.2671       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .97570       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0559       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=   7074.040     FROM MIGRAD    STATUS=CONVERGED    591 CALLS     2985 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     41.314        61.973       -.85496E-05   -.35740E-03
   2  norm          .10000E-03    12.210        .23467E-06** at limit **
   3  norm          .10022E-03    6.5067        .50770E-05** at limit **
   4  Prefactor     .10001E-03    3.0260       -.38989E-06** at limit **
   5  norm          .26834        1.5023       -.28670E-06    .28065E-03
   6  Prefactor     5.7162        5.6581       -.17727E-06   -.56345E-04
   7  Prefactor     .10000E-03    82.094        .33649E-05** at limit **
   8  norm          11.349        6.6978        .21461E-06   -.19650E-03
   9  norm          7.8639        11.140        .28419E-06   -.66305E-04
  10  Prefactor     8.2483        19.056        .90002E-08   -.57240E-04
  11  Prefactor     22.743        32.542       -.81531E-05   -.29731E-03
  12  Prefactor     .10000E-03    10.939       -.80505E-06** at limit **
  13  Prefactor     3.3045        17.851        .21989E-05    .20751E-04
  14  norm          3.1044        4.8523        .77412E-06   -.19029E-05
  15  norm          .10000E-03    7.2126       -.10478E-06** at limit **
  16  Prefactor     .10000E-03    1.9285       -.53806E-07** at limit **
  17  Prefactor     .10000E-03    30.815       -.83039E-06** at limit **
  18  norm          .10000E-03    31.464        .11154E-05** at limit **
  19  Prefactor     7.5484        5.7695        .72267E-06   -.67603E-06
  20  norm          4.5048        5.1432       -.34510E-06   -.16118E-03
  21  Prefactor     .10000E-03    30.813       -.90815E-06** at limit **
  22  Prefactor     8.2693        12.646        .73721E-06   -.30293E-04
  23  Prefactor     .10000E-03    8.3427        .16652E-06** at limit **
  24  Normalizat    .97567        .25723       -.28621E-07   -.36486E-03
  25  Prefactor     1.0560        .11512       -.10547E-05   -.69675E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 41.3142
  norm       = 0.0001
  norm       = 0.000100219
  Prefactor  = 0.000100008
  norm       = 0.268336
  Prefactor  = 5.71623
  Prefactor  = 0.0001
  norm       = 11.3494
  norm       = 7.86391
  Prefactor  = 8.2483
  Prefactor  = 22.7434
  Prefactor  = 0.0001
  Prefactor  = 3.30446
  norm       = 3.10439
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 7.5484
  norm       = 4.50478
  Prefactor  = 0.0001
  Prefactor  = 8.26933
  Prefactor  = 0.0001
  Normalizat = 0.975668
  Prefactor  = 1.05602
 **********
 **   18 **HESSE 
 **********

 FCN=   7074.040     FROM HESSE     STATUS=OK           431 CALLS     3416 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     41.314        64.023        .62398E-04   -1.4422    
   2  norm          .10000E-03    12.650        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10022E-03    19.975        .33082E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10001E-03    29.948        .26280E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .26834        6.2604        .19686E-02   -1.5604    
   6  Prefactor     5.7162        5.6624        .16798E-03   -1.5230    
   7  Prefactor     .10000E-03    82.993        .36287E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          11.349        6.6420        .11881E-03   -1.5034    
   9  norm          7.8639        11.098        .14292E-03   -1.5147    
  10  Prefactor     8.2483        18.324        .13952E-03   -1.5133    
  11  Prefactor     22.743        32.852        .83890E-04   -1.4754    
  12  Prefactor     .10000E-03    10.974        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     3.3045        16.523        .22288E-03   -1.5344    
  14  norm          3.1044        4.8399        .22193E-03   -1.5356    
  15  norm          .10000E-03    7.2128        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    1.9361        .11399E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    30.870        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    32.421        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     7.5484        5.7662        .14596E-03   -1.5158    
  20  norm          4.5048        5.1387        .18968E-03   -1.5283    
  21  Prefactor     .10000E-03    30.831        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     8.2693        12.644        .69716E-03   -1.5133    
  23  Prefactor     .10000E-03    8.3482        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .97567        .29638        .39029E-03   -.93850    
  25  Prefactor     1.0560        .13425        .17432E-03   -.90885    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.26391e-08
Minuit parameter uncertainties:
  1  64.1293
  2  1.53511e-05
  3  0.00418373
  4  0.000971389
  5  2.59204
  6  5.66289
  7  7.56192e-05
  8  6.64246
  9  11.1005
  10  18.3363
  11  32.8783
  12  0.000106295
  13  14.7846
  14  4.84049
  15  2.94955e-06
  16  1.42898e-06
  17  7.39674e-05
  18  1.23049e-05
  19  5.76664
  20  5.13916
  21  6.97559e-05
  22  12.6482
  23  9.38714e-06
  24  0.296881
  25  0.13429
Done.

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

Extracting fit parameters...

4FGL J1341.8-2053
   Spectrum: PowerLaw
295    Prefactor:  3.304e+00  1.478e+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.056e+00  1.343e-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:  9.757e-01  2.969e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.09
Ra Dec: 205.461 -20.890
Photon Flux Upper Limit: 1.58e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.25e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/891795/likelihoodResults_442281601_442540801_4FGL_J1341.8-2053_daily_bin783.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): 0
logL (Free Index) = 7074.00776547
delta logL = 0.0318160476327

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7073.99622552
delta logL = 0.0433560002621

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.3115       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2979       1.0000          .0000       10.000    
     3 'Normalizat'    .98022       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0531       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=   7073.996     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      260 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.3112        13.641        .17439E-03    .43352E-04
   2  Index         2.2973        1.2174        .13084E-01    .42527E-04
   3  Normalizat    .98029        .28246        .38944E-03   -.60486E-04
   4  Prefactor     1.0531        .13168        .17452E-03   -.15706E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.31122
  Index      = 2.2973
  Normalizat = 0.980294
  Prefactor  = 1.05306
 **********
 **   18 **HESSE 
 **********

 FCN=   7073.996     FROM HESSE     STATUS=OK            23 CALLS      283 TOTAL
                     EDM=   .19E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.3112        13.618        .69756E-05   -1.5247    
   2  Index         2.2973        1.2160        .52335E-03   -.57108    
   3  Normalizat    .98029        .28266        .15578E-04   -.93694    
   4  Prefactor     1.0531        .13173        .34903E-04   -.90981    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.92538e-10
Minuit parameter uncertainties:
  1  13.6258
  2  1.23361
  3  0.283095
  4  0.131775
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/891795': 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) = 7073.99622538
delta logL = 0.0433561403443

Extracting fit parameters...

4FGL J1341.8-2053
   Spectrum: PowerLaw
295    Prefactor:  5.311e+00  1.363e+01  1.000e-04  1.000e+04 ( 1.000e-12)
296        Index:  2.297e+00  1.234e+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.053e+00  1.318e-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:  9.803e-01  2.831e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.09
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/891795/cmap_HighResolution_442281601_442540801_4FGL_J1341.8-2053_daily_bin783.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.25e-02', job_status='DONE', photon_flux_upper_limit='1.58e-07', time_completed='2021-09-08 09:38:55.168483', job_id='891795', GAL2='1.05', fit_tolerance='1e-08', EG2='0.98', EG='0.98', time_epoch_completed='1631119135.17', return_code2='0', ts='0.09', comment='SUCCESS', return_code='0', GAL='1.06', dlogl='4.34e-02', ts2='0.17', photon_index_error='0.00', photon_index='2.73' WHERE bin_id='783' AND source_name='4FGL J1341.8-2053' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 09:38:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0275>
Subject: Job 891795: <4FGL_J1341.8-2053_daily_bin783> in cluster <slac> Done

Job <4FGL_J1341.8-2053_daily_bin783> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep  8 09:25:27 2021
Job was executed on host(s) <bullet0275>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 09:25:43 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:43 2021
Terminated at Wed Sep  8 09:38:56 2021
Results reported at Wed Sep  8 09:38:56 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1341.8-2053_daily_bin783 205.461 -20.8901 442281601 442540801 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 :                                   766.44 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             326.12 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   792 sec.
    Turnaround time :                            809 sec.

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

