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


Performing analysis on: 4FGL_J1339.1-2620_daily_bin1010
RA = 204.799, Dec = -26.3351
tmin = 501120001, tmax = 501379201
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='865569', job_status='RUN', time_executed='2021-09-08 08:06:58.262407', time_epoch_executed='1631113618.26' WHERE source_name='4FGL J1339.1-2620' and cadence='daily' and bin_id='1010'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/865569

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/865569/ft1_4FGL_J1339.1-2620_daily_bin1010.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/865569/ft2_4FGL_J1339.1-2620_daily_bin1010.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/865569/ft1_4FGL_J1339.1-2620_daily_bin1010.fits outfile=/scratch/kocevski/865569/ft1_filteredMKT_4FGL_J1339.1-2620_daily_bin1010.fits ra=204.799 dec=-26.3351 rad=12.0 tmin=501120001.0 tmax=501379201.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.56
user 3.34
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/865569/ft2_4FGL_J1339.1-2620_daily_bin1010.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/865569/ft1_filteredMKT_4FGL_J1339.1-2620_daily_bin1010.fits evtable="EVENTS" outfile="/scratch/kocevski/865569/ft1_filtered_4FGL_J1339.1-2620_daily_bin1010.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.37
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/865569/ft1_filtered_4FGL_J1339.1-2620_daily_bin1010.fits" evtable="EVENTS" scfile=/scratch/kocevski/865569/ft2_4FGL_J1339.1-2620_daily_bin1010.fits sctable="SC_DATA" outfile=/scratch/kocevski/865569/ltcube_501120001_501379201_4FGL_J1339.1-2620_daily_bin1010.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/865569/ft2_4FGL_J1339.1-2620_daily_bin1010.fits
.....................!
real 17.75
user 17.38
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/865569/ft1_filtered_4FGL_J1339.1-2620_daily_bin1010.fits evtable="EVENTS" scfile=/scratch/kocevski/865569/ft2_4FGL_J1339.1-2620_daily_bin1010.fits sctable="SC_DATA" expcube=/scratch/kocevski/865569/ltcube_501120001_501379201_4FGL_J1339.1-2620_daily_bin1010.fits outfile=/scratch/kocevski/865569/expmap_501120001_501379201_4FGL_J1339.1-2620_daily_bin1010.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/865569/ltcube_501120001_501379201_4FGL_J1339.1-2620_daily_bin1010.fits
.....................!
real 193.25
user 188.73
sys 4.04

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/865569/ft1_filtered_4FGL_J1339.1-2620_daily_bin1010.fits scfile=/scratch/kocevski/865569/ft2_4FGL_J1339.1-2620_daily_bin1010.fits outfile=/scratch/kocevski/865569/cmap_501120001_501379201_4FGL_J1339.1-2620_daily_bin1010.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.57
user 0.41
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/865569/ft1_filtered_4FGL_J1339.1-2620_daily_bin1010.fits scfile=/scratch/kocevski/865569/ft2_4FGL_J1339.1-2620_daily_bin1010.fits outfile=/scratch/kocevski/865569/cmap_HighResolution_501120001_501379201_4FGL_J1339.1-2620_daily_bin1010.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.58
user 0.41
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/865569/ft1_filtered_4FGL_J1339.1-2620_daily_bin1010.fits evtable="EVENTS" scfile=/scratch/kocevski/865569/ft2_4FGL_J1339.1-2620_daily_bin1010.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/865569/Model_4FGL_J1339.1-2620_daily_bin1010.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/865569/ft1_filtered_4FGL_J1339.1-2620_daily_bin1010.fits.....................!
real 129.54
user 127.51
sys 1.25

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/865569/ft1_filtered_4FGL_J1339.1-2620_daily_bin1010.fits', '/scratch/kocevski/865569/ft2_4FGL_J1339.1-2620_daily_bin1010.fits', expMap='/scratch/kocevski/865569/expmap_501120001_501379201_4FGL_J1339.1-2620_daily_bin1010.fits', expCube='/scratch/kocevski/865569/ltcube_501120001_501379201_4FGL_J1339.1-2620_daily_bin1010.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/865569/Model_4FGL_J1339.1-2620_daily_bin1010.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/865569/ft1_filtered_4FGL_J1339.1-2620_daily_bin1010.fits
Spacecraft file(s): /scratch/kocevski/865569/ft2_4FGL_J1339.1-2620_daily_bin1010.fits
Exposure map: /scratch/kocevski/865569/expmap_501120001_501379201_4FGL_J1339.1-2620_daily_bin1010.fits
Exposure cube: /scratch/kocevski/865569/ltcube_501120001_501379201_4FGL_J1339.1-2620_daily_bin1010.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/865569/Model_4FGL_J1339.1-2620_daily_bin1010.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) = 7744.88331797

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .31840       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    16.099       1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.0188       1.0000         .10000E-03   10000.    
     5 'norm      '    .10066E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    4.9746       1.0000         .10000E-03   10000.    
     7 'norm      '    7.4283       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10102E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.5905       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    13.946       1.0000         .10000E-03   10000.    
    12 'norm      '    .10017E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    60.489       1.0000         .10000E-03   10000.    
    14 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.4556       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10091E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    39.591       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.0224       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0014       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=   7744.796     FROM MIGRAD    STATUS=CONVERGED    544 CALLS     2243 TOTAL
                     EDM=   .59E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .31790        .75414       -.53199E-07   -.36302E-03
   2  Prefactor     .10000E-03    143.03        .21859E-04** at limit **
   3  norm          16.098        7.1825       -.26824E-06   -.30513E-03
   4  Prefactor     2.0179        2.0618        .55176E-06   -.23730E-02
   5  norm          .10000E-03    3.8301       -.32125E-07** at limit **
   6  norm          4.9744        3.2233       -.19475E-07   -.17216E-04
   7  norm          7.4288        5.3839        .15952E-07   -.31432E-03
   8  Prefactor     .10000E-03    18.821       -.51512E-05** at limit **
   9  Prefactor     2.5245        60.033       -.11366E-04   -.59642E-05
  10  Prefactor     .10000E-03    3.5330        .33442E-07** at limit **
  11  Prefactor     13.948        13.134        .16306E-05    .22146E-03
  12  norm          .10000E-03    3.2271       -.97998E-08** at limit **
  13  Prefactor     60.483        52.603       -.26055E-05   -.97410E-05
  14  norm          .10000E-03    18.547        .48790E-05** at limit **
  15  norm          .10000E-03    14.320       -.19850E-06** at limit **
  16  Prefactor     .10000E-03    47.550       -.25908E-04** at limit **
  17  norm          .10000E-03    4.5248       -.19547E-08** at limit **
  18  Prefactor     3.4558        4.0292        .73598E-07    .56273E-05
  19  Prefactor     .10000E-03    45.778        .24119E-04** at limit **
  20  Prefactor     .10000E-03    262.58       -.27941E-04** at limit **
  21  Prefactor     39.591        32.123        .33528E-06    .43958E-04
  22  Normalizat    1.0226        .26484       -.65158E-08    .11590E-03
  23  Prefactor     1.0014        .10987        .19186E-06    .16038E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.317904
  Prefactor  = 0.0001
  norm       = 16.0981
  Prefactor  = 2.01793
  norm       = 0.0001
  norm       = 4.97437
  norm       = 7.42876
  Prefactor  = 0.0001
  Prefactor  = 2.52449
  Prefactor  = 0.0001
  Prefactor  = 13.9481
  norm       = 0.0001
  Prefactor  = 60.4829
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 3.45584
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 39.5908
  Normalizat = 1.02263
  Prefactor  = 1.00141
 **********
 **   18 **HESSE 
 **********

 FCN=   7744.796     FROM HESSE     STATUS=OK           368 CALLS     2611 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .31790        .62249        .11382E-02   -1.5595    
   2  Prefactor     .10000E-03    143.44        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          16.098        8.2263        .49910E-03   -1.4905    
   4  Prefactor     2.0179        6.1283        .14564E-02   -1.5424    
   5  norm          .10000E-03    10.991        .33067E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          4.9744        3.2238        .12224E-03   -1.5262    
   7  norm          7.4288        5.3861        .73577E-03   -1.5163    
   8  Prefactor     .10000E-03    19.035        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     2.5245        60.022        .25352E-03   -1.5390    
  10  Prefactor     .10000E-03    3.5376        .16153E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     13.948        13.128        .10726E-03   -1.4961    
  12  norm          .10000E-03    3.3264        .30867E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     60.483        52.618        .51589E-04   -1.4151    
  14  norm          .10000E-03    18.597        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    14.324        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    47.593        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    4.5348        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     3.4558        4.0177        .18130E-03   -1.5336    
  19  Prefactor     .10000E-03    45.838        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    264.06        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     39.591        32.117        .63702E-04   -1.4449    
  22  Normalizat    1.0226        .31549        .40553E-03   -.92276    
  23  Prefactor     1.0014        .13275        .17393E-03   -.92683    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.61748e-08
Minuit parameter uncertainties:
  1  0.622505
  2  0.000257747
  3  8.22691
  4  6.13019
  5  2.02641e-05
  6  3.22393
  7  5.38642
  8  0.000107867
  9  24.6464
  10  6.15155e-06
  11  13.1306
  12  2.38112e-06
  13  52.6581
  14  2.62617e-05
  15  3.12177e-07
  16  0.000186997
  17  2.25835e-07
  18  4.01802
  19  0.000101826
  20  0.000383783
  21  32.1306
  22  0.316065
  23  0.132789
Done.

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

Extracting fit parameters...

4FGL J1339.1-2620
   Spectrum: PowerLaw
315    Prefactor:  1.000e-04  6.152e-06  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:  1.001e+00  1.328e-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.023e+00  3.161e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 204.799 -26.335
Photon Flux Upper Limit: 6.62e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.06e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/865569/likelihoodResults_501120001_501379201_4FGL_J1339.1-2620_daily_bin1010.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7744.79731609
delta logL = -0.0013450888946

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7744.79597081
delta logL = 1.95533175429e-07

Fit tolerance = 1e-08

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

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

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   7744.796     FROM MIGRAD    STATUS=FAILED        86 CALLS      242 TOTAL
                     EDM=   .26E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10166E-03    45.634        .16375E-02** at limit **
   2  Index         2.1553        8.8806        .50000        .36249E-04
   3  Normalizat    1.0226        .22366E-01    .40553E-03   -.28595E-05
   4  Prefactor     1.0014        .95723E-02    .17393E-03    .20786E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   7744.796     FROM SIMPLEX   STATUS=UNCHANGED    121 CALLS      363 TOTAL
                     EDM=   .17E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10166E-03    45.634        .40181E-03** at limit **
   2  Index         2.1553        8.8806        .68192E-03    .36249E-04
   3  Normalizat    1.0226        .22366E-01    .46282E-05   -.28595E-05
   4  Prefactor     1.0014        .95723E-02    .21923E-05    .20786E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7744.796     FROM MIGRAD    STATUS=CONVERGED     46 CALLS      409 TOTAL
                     EDM=   .65E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    53.269        .32750E-02** at limit **
   2  Index         1.7406        9.1204        .50000        .26012E-07
   3  Normalizat    1.0226        .22509E-01    .16221E-04   -.21306E-04
   4  Prefactor     1.0014        .96338E-02    .34785E-04   -.44056E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.74064
  Normalizat = 1.02263
  Prefactor  = 1.00141
 **********
 **   18 **HESSE 
 **********

 FCN=   7744.796     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      438 TOTAL
                     EDM=   .30E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    247.11        .65500E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.7406        6.1240        .50000       -.71005    
   3  Normalizat    1.0226        .51381E-01    .32442E-05   -.92276    
   4  Prefactor     1.0014        .21989E-01    .69570E-05   -.92683    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.02363e-11
Minuit parameter uncertainties:
  1  9.84883e-05
  2  855.73
  3  0.0513837
  4  0.0219893
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/865569': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7744.79596839
delta logL = 2.61636159848e-06

Extracting fit parameters...

4FGL J1339.1-2620
   Spectrum: PowerLaw
315    Prefactor:  1.000e-04  9.849e-05  1.000e-04  1.000e+04 ( 1.000e-13)
316        Index:  1.741e+00  8.557e+02  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:  1.001e+00  2.199e-02  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.023e+00  5.138e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
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/865569/cmap_HighResolution_501120001_501379201_4FGL_J1339.1-2620_daily_bin1010.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.06e-03', job_status='DONE', photon_flux_upper_limit='6.62e-08', time_completed='2021-09-08 08:21:22.381078', job_id='865569', GAL2='1.00', fit_tolerance='1e-08', EG2='1.02', EG='1.02', time_epoch_completed='1631114482.38', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.00', dlogl='2.62e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.24' WHERE bin_id='1010' AND source_name='4FGL J1339.1-2620' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 08:21:22 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0228>
Subject: Job 865569: <4FGL_J1339.1-2620_daily_bin1010> in cluster <slac> Done

Job <4FGL_J1339.1-2620_daily_bin1010> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep  8 08:05:43 2021
Job was executed on host(s) <bullet0228>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 08:05:52 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:05:52 2021
Terminated at Wed Sep  8 08:21:23 2021
Results reported at Wed Sep  8 08:21:23 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1339.1-2620_daily_bin1010 204.799 -26.3351 501120001 501379201 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 :                                   859.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             356.33 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   930 sec.
    Turnaround time :                            940 sec.

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

