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


Performing analysis on: 4FGL_J1339.1-2620_daily_bin1123
RA = 204.799, Dec = -26.3351
tmin = 530409601, tmax = 530668801
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='866875', job_status='RUN', time_executed='2021-09-08 08:12:30.748330', time_epoch_executed='1631113950.75' WHERE source_name='4FGL J1339.1-2620' and cadence='daily' and bin_id='1123'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/866875

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/866875/ft1_4FGL_J1339.1-2620_daily_bin1123.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/866875/ft2_4FGL_J1339.1-2620_daily_bin1123.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/866875/ft1_4FGL_J1339.1-2620_daily_bin1123.fits outfile=/scratch/kocevski/866875/ft1_filteredMKT_4FGL_J1339.1-2620_daily_bin1123.fits ra=204.799 dec=-26.3351 rad=12.0 tmin=530409601.0 tmax=530668801.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.06
user 2.84
sys 0.19

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/866875/ft2_4FGL_J1339.1-2620_daily_bin1123.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/866875/ft2_4FGL_J1339.1-2620_daily_bin1123.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/866875/ft1_filteredMKT_4FGL_J1339.1-2620_daily_bin1123.fits evtable="EVENTS" outfile="/scratch/kocevski/866875/ft1_filtered_4FGL_J1339.1-2620_daily_bin1123.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.50
user 0.29
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/866875/ft1_filtered_4FGL_J1339.1-2620_daily_bin1123.fits" evtable="EVENTS" scfile=/scratch/kocevski/866875/ft2_4FGL_J1339.1-2620_daily_bin1123.fits sctable="SC_DATA" outfile=/scratch/kocevski/866875/ltcube_530409601_530668801_4FGL_J1339.1-2620_daily_bin1123.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/866875/ft2_4FGL_J1339.1-2620_daily_bin1123.fits
.....................!
real 14.43
user 14.10
sys 0.28

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/866875/ft1_filtered_4FGL_J1339.1-2620_daily_bin1123.fits evtable="EVENTS" scfile=/scratch/kocevski/866875/ft2_4FGL_J1339.1-2620_daily_bin1123.fits sctable="SC_DATA" expcube=/scratch/kocevski/866875/ltcube_530409601_530668801_4FGL_J1339.1-2620_daily_bin1123.fits outfile=/scratch/kocevski/866875/expmap_530409601_530668801_4FGL_J1339.1-2620_daily_bin1123.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/866875/ltcube_530409601_530668801_4FGL_J1339.1-2620_daily_bin1123.fits
.....................!
real 157.04
user 153.15
sys 3.56

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
Extended source CenA Lobes in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/CenALobes.fits is the correct path to the extended template.
Added 198 point sources and 1 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J1339.1-2620 @ 204.799 -26.3351

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/866875/ft1_filtered_4FGL_J1339.1-2620_daily_bin1123.fits scfile=/scratch/kocevski/866875/ft2_4FGL_J1339.1-2620_daily_bin1123.fits outfile=/scratch/kocevski/866875/cmap_530409601_530668801_4FGL_J1339.1-2620_daily_bin1123.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=204.799 yref=-26.3351 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.48
user 0.33
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/866875/ft1_filtered_4FGL_J1339.1-2620_daily_bin1123.fits scfile=/scratch/kocevski/866875/ft2_4FGL_J1339.1-2620_daily_bin1123.fits outfile=/scratch/kocevski/866875/cmap_HighResolution_530409601_530668801_4FGL_J1339.1-2620_daily_bin1123.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=204.799 yref=-26.3351 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.49
user 0.34
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/866875/ft1_filtered_4FGL_J1339.1-2620_daily_bin1123.fits evtable="EVENTS" scfile=/scratch/kocevski/866875/ft2_4FGL_J1339.1-2620_daily_bin1123.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/866875/Model_4FGL_J1339.1-2620_daily_bin1123.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 CenA Lobes
adding source EG_v02
adding source GAL_V02
Working on...
/scratch/kocevski/866875/ft1_filtered_4FGL_J1339.1-2620_daily_bin1123.fits.....................!
real 123.81
user 122.54
sys 1.01

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/866875/ft1_filtered_4FGL_J1339.1-2620_daily_bin1123.fits', '/scratch/kocevski/866875/ft2_4FGL_J1339.1-2620_daily_bin1123.fits', expMap='/scratch/kocevski/866875/expmap_530409601_530668801_4FGL_J1339.1-2620_daily_bin1123.fits', expCube='/scratch/kocevski/866875/ltcube_530409601_530668801_4FGL_J1339.1-2620_daily_bin1123.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/866875/Model_4FGL_J1339.1-2620_daily_bin1123.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1339.1-2620'

4FGL J1339.1-2620
   Spectrum: PowerLaw
315    Prefactor:  1.296e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
316        Index:  2.243e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
317        Scale:  1.546e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/866875/ft1_filtered_4FGL_J1339.1-2620_daily_bin1123.fits
Spacecraft file(s): /scratch/kocevski/866875/ft2_4FGL_J1339.1-2620_daily_bin1123.fits
Exposure map: /scratch/kocevski/866875/expmap_530409601_530668801_4FGL_J1339.1-2620_daily_bin1123.fits
Exposure cube: /scratch/kocevski/866875/ltcube_530409601_530668801_4FGL_J1339.1-2620_daily_bin1123.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/866875/Model_4FGL_J1339.1-2620_daily_bin1123.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) = 8992.39866858

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .63457       1.0000         .10000E-03   10000.    
     2 'Prefactor '    75.563       1.0000         .10000E-03   10000.    
     3 'norm      '    15.691       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .50579E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    9.8070       1.0000         .10000E-03   10000.    
     6 'norm      '    4.8795       1.0000         .10000E-03   10000.    
     7 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    6.6190       1.0000         .10000E-03   10000.    
     9 'Prefactor '    5.3438       1.0000         .10000E-03   10000.    
    10 'Prefactor '    8.9527       1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.3352       1.0000         .10000E-03   10000.    
    12 'norm      '    .52480       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10068E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    27.611       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .32731E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    2.9785       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    2.6476       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.4919       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .92310       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6550E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8992.384     FROM MIGRAD    STATUS=CONVERGED    516 CALLS     2587 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .63507        .84398        .32694E-07   -.13038E-03
   2  Prefactor     75.560        87.225       -.83820E-08   -.16960E-03
   3  norm          15.687        9.5794       -.68297E-06   -.18049E-02
   4  Prefactor     .10046E-03    9.5978        .25094E-05** at limit **
   5  norm          9.8073        5.9346        .58729E-08   -.22165E-04
   6  norm          4.8796        2.5193       -.67519E-08   -.30069E-03
   7  norm          .10000E-03    3.5209        .85115E-07** at limit **
   8  Prefactor     6.6238        15.063        .17383E-05    .92643E-04
   9  Prefactor     5.2929        40.855        .21890E-05   -.23096E-04
  10  Prefactor     8.9659        13.719       -.71702E-06   -.45651E-04
  11  Prefactor     1.3427        30.828       -.51246E-05   -.11926E-03
  12  norm          .52097        .86281        .29946E-06   -.20770E-02
  13  Prefactor     .10000E-03    87.947        .43942E-06** at limit **
  14  norm          .10000E-03    11.837        .90572E-07** at limit **
  15  norm          27.611        30.534        .45089E-07   -.16539E-05
  16  Prefactor     .10001E-03    266.81       -.58756E-05** at limit **
  17  norm          2.9781        5.5372        .37715E-07   -.26065E-04
  18  Prefactor     .10000E-03    1.6910        .18911E-07** at limit **
  19  Prefactor     .10000E-03    20.779        .37833E-07** at limit **
  20  Prefactor     .10000E-03    36.068       -.32894E-07** at limit **
  21  Prefactor     2.6476        14.184        .14404E-06   -.11725E-03
  22  Normalizat    1.4918        .24265        .63519E-06   -.22381E-03
  23  Prefactor     .92311        .10255       -.44252E-06   -.34883E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.635067
  Prefactor  = 75.5603
  norm       = 15.6873
  Prefactor  = 0.000100457
  norm       = 9.80727
  norm       = 4.87955
  norm       = 0.0001
  Prefactor  = 6.62385
  Prefactor  = 5.29292
  Prefactor  = 8.96585
  Prefactor  = 1.34274
  norm       = 0.520967
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 27.6109
  Prefactor  = 0.000100006
  norm       = 2.97812
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.64764
  Normalizat = 1.49181
  Prefactor  = 0.923109
 **********
 **   18 **HESSE 
 **********

 FCN=   8992.384     FROM HESSE     STATUS=OK           384 CALLS     2971 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .63507        .70230        .97511E-03   -1.5549    
   2  Prefactor     75.560        87.234        .46192E-04   -1.3967    
   3  norm          15.687        10.930        .10111E-03   -1.4916    
   4  Prefactor     .10046E-03    9.8248        .58469E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          9.8073        5.9346        .12796E-03   -1.5082    
   6  norm          4.8796        2.5213        .10507E-03   -1.5266    
   7  norm          .10000E-03    3.5483        .17369E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     6.6238        14.501        .15598E-03   -1.5193    
   9  Prefactor     5.2929        40.243        .17385E-03   -1.5248    
  10  Prefactor     8.9659        13.580        .13396E-03   -1.5109    
  11  Prefactor     1.3427        27.423        .37972E-03   -1.5476    
  12  norm          .52097        7.0502        .22743E-02   -1.5564    
  13  Prefactor     .10000E-03    88.274        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    11.840        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          27.611        30.544        .76241E-04   -1.4657    
  16  Prefactor     .10001E-03    269.96        .42705E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          2.9781        5.5178        .23525E-03   -1.5363    
  18  Prefactor     .10000E-03    1.7193        .12032E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    20.789        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    36.164        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     2.6476        14.278        .12527E-02   -1.5383    
  22  Normalizat    1.4918        .28940        .35482E-03   -.78009    
  23  Prefactor     .92311        .12296        .18722E-03   -.95338    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.27793e-08
Minuit parameter uncertainties:
  1  0.702304
  2  87.3817
  3  10.9312
  4  0.00424072
  5  5.93496
  6  2.52137
  7  2.7428e-06
  8  14.5084
  9  29.2165
  10  13.5842
  11  12.142
  12  3.83315
  13  0.000233014
  14  7.30179e-06
  15  30.561
  16  0.00253817
  17  5.51876
  18  1.91178e-06
  19  5.78649e-06
  20  2.67351e-05
  21  12.3013
  22  0.289716
  23  0.122997
Done.

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

Extracting fit parameters...

4FGL J1339.1-2620
   Spectrum: PowerLaw
315    Prefactor:  8.966e+00  1.358e+01  1.000e-04  1.000e+04 ( 1.000e-13)
316        Index:  2.243e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
317        Scale:  1.546e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
652    Prefactor:  9.231e-01  1.230e-01  0.000e+00  1.000e+01 ( 1.000e+00)
653        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
654        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
651   Normalization:  1.492e+00  2.897e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.58
Ra Dec: 204.799 -26.335
Photon Flux Upper Limit: 1.36e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.04e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/866875/likelihoodResults_530409601_530668801_4FGL_J1339.1-2620_daily_bin1123.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) = 8992.2085862
delta logL = 0.17527406714

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8992.20115981
delta logL = 0.182700455476

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.2373       1.0000         .10000E-03   10000.    
     2 'Index     '    2.7605       1.0000          .0000       10.000    
     3 'Normalizat'    1.4608       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93094       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6550E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8992.201     FROM MIGRAD    STATUS=CONVERGED    107 CALLS      325 TOTAL
                     EDM=   .86E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.2192        28.927        .87821E-03   -.22848E-03
   2  Index         2.7634        2.1439        .75431E-02   -.35099E-04
   3  Normalizat    1.4603        .29864        .35798E-03    .38808E-04
   4  Prefactor     .93103        .12654        .18650E-03   -.25602E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.21918
  Index      = 2.7634
  Normalizat = 1.46031
  Prefactor  = 0.931029
 **********
 **   18 **HESSE 
 **********

 FCN=   8992.201     FROM HESSE     STATUS=OK            27 CALLS      352 TOTAL
                     EDM=   .89E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.2192        10.719        .35129E-04   -1.5251    
   2  Index         2.7634        .96557        .30172E-03   -.46377    
   3  Normalizat    1.4603        .29139        .14319E-04   -.78900    
   4  Prefactor     .93103        .12303        .74600E-05   -.95065    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.92492e-11
Minuit parameter uncertainties:
  1  10.723
  2  0.973235
  3  0.291721
  4  0.123064
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/866875': 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) = 8992.20115284
delta logL = 0.182707421563

Extracting fit parameters...

4FGL J1339.1-2620
   Spectrum: PowerLaw
315    Prefactor:  5.219e+00  1.072e+01  1.000e-04  1.000e+04 ( 1.000e-13)
316        Index:  2.763e+00  9.732e-01  0.000e+00  1.000e+01 (-1.000e+00)
317        Scale:  1.546e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
652    Prefactor:  9.310e-01  1.231e-01  0.000e+00  1.000e+01 ( 1.000e+00)
653        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
654        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
651   Normalization:  1.460e+00  2.917e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.58
Ra Dec: 204.799 -26.335

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/866875/cmap_HighResolution_530409601_530668801_4FGL_J1339.1-2620_daily_bin1123.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.04e-02', job_status='DONE', photon_flux_upper_limit='1.36e-07', time_completed='2021-09-08 08:26:14.912417', job_id='866875', GAL2='0.93', fit_tolerance='1e-08', EG2='1.46', EG='1.49', time_epoch_completed='1631114774.91', return_code2='0', ts='0.58', comment='SUCCESS', return_code='0', GAL='0.92', dlogl='1.83e-01', ts2='0.96', photon_index_error='0.00', photon_index='2.24' WHERE bin_id='1123' AND source_name='4FGL J1339.1-2620' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 08:26:14 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0071>
Subject: Job 866875: <4FGL_J1339.1-2620_daily_bin1123> in cluster <slac> Done

Job <4FGL_J1339.1-2620_daily_bin1123> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Wed Sep  8 08:10:28 2021
Job was executed on host(s) <bullet0071>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 08:11:02 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep  8 08:11:02 2021
Terminated at Wed Sep  8 08:26:15 2021
Results reported at Wed Sep  8 08:26:15 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1339.1-2620_daily_bin1123 204.799 -26.3351 530409601 530668801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1339.1-2620 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   819.06 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             305.18 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   915 sec.
    Turnaround time :                            947 sec.

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

