/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 45 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 = 7574
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1339.1-2620_daily_bin288
RA = 204.799, Dec = -26.3351
tmin = 313977601, tmax = 314236801
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='861189', job_status='RUN', time_executed='2021-09-08 07:52:16.415036', time_epoch_executed='1631112736.42' WHERE source_name='4FGL J1339.1-2620' and cadence='daily' and bin_id='288'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/861189

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/861189/ft1_4FGL_J1339.1-2620_daily_bin288.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/861189/ft2_4FGL_J1339.1-2620_daily_bin288.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/861189/ft1_4FGL_J1339.1-2620_daily_bin288.fits outfile=/scratch/kocevski/861189/ft1_filteredMKT_4FGL_J1339.1-2620_daily_bin288.fits ra=204.799 dec=-26.3351 rad=12.0 tmin=313977601.0 tmax=314236801.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 2.89
user 2.60
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/861189/ft1_filtered_4FGL_J1339.1-2620_daily_bin288.fits" evtable="EVENTS" scfile=/scratch/kocevski/861189/ft2_4FGL_J1339.1-2620_daily_bin288.fits sctable="SC_DATA" outfile=/scratch/kocevski/861189/ltcube_313977601_314236801_4FGL_J1339.1-2620_daily_bin288.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/861189/ft2_4FGL_J1339.1-2620_daily_bin288.fits
.....................!
real 15.21
user 14.85
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/861189/ft1_filtered_4FGL_J1339.1-2620_daily_bin288.fits evtable="EVENTS" scfile=/scratch/kocevski/861189/ft2_4FGL_J1339.1-2620_daily_bin288.fits sctable="SC_DATA" expcube=/scratch/kocevski/861189/ltcube_313977601_314236801_4FGL_J1339.1-2620_daily_bin288.fits outfile=/scratch/kocevski/861189/expmap_313977601_314236801_4FGL_J1339.1-2620_daily_bin288.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/861189/ltcube_313977601_314236801_4FGL_J1339.1-2620_daily_bin288.fits
.....................!
real 160.71
user 152.67
sys 4.67

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/861189/ft1_filtered_4FGL_J1339.1-2620_daily_bin288.fits scfile=/scratch/kocevski/861189/ft2_4FGL_J1339.1-2620_daily_bin288.fits outfile=/scratch/kocevski/861189/cmap_313977601_314236801_4FGL_J1339.1-2620_daily_bin288.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.50
user 0.33
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/861189/ft1_filtered_4FGL_J1339.1-2620_daily_bin288.fits scfile=/scratch/kocevski/861189/ft2_4FGL_J1339.1-2620_daily_bin288.fits outfile=/scratch/kocevski/861189/cmap_HighResolution_313977601_314236801_4FGL_J1339.1-2620_daily_bin288.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.50
user 0.35
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/861189/ft1_filtered_4FGL_J1339.1-2620_daily_bin288.fits evtable="EVENTS" scfile=/scratch/kocevski/861189/ft2_4FGL_J1339.1-2620_daily_bin288.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/861189/Model_4FGL_J1339.1-2620_daily_bin288.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/861189/ft1_filtered_4FGL_J1339.1-2620_daily_bin288.fits.....................!
real 87.92
user 86.06
sys 1.09

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.5155       1.0000         .10000E-03   10000.    
     2 'Prefactor '    19.041       1.0000         .10000E-03   10000.    
     3 'norm      '    .11300E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .67020       1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .11718E-01   1.0000         .10000E-03   10000.    
     7 'norm      '    13.738       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    26.015       1.0000         .10000E-03   10000.    
    10 'Prefactor '    11.352       1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.7133       1.0000         .10000E-03   10000.    
    12 'norm      '    .13584E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    17.990       1.0000         .10000E-03   10000.    
    14 'norm      '    18.375       1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    51.195       1.0000         .10000E-03   10000.    
    17 'norm      '    5.0365       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .12535E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .34014E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.7841       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .69213       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=   6301.566     FROM MIGRAD    STATUS=CONVERGED    524 CALLS     2589 TOTAL
                     EDM=   .40E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.5154        1.8188        .12263E-07   -.14061E-03
   2  Prefactor     19.022        172.64        .35558E-06   -.19880E-04
   3  norm          .10000E-03    9.7303        .20798E-05** at limit **
   4  Prefactor     .66771        9.9151        .22486E-05   -.25782E-04
   5  norm          .10000E-03    2.3317       -.39778E-07** at limit **
   6  norm          .10000E-03    68.765       -.61032E-05** at limit **
   7  norm          13.737        8.0675        .40026E-08   -.55836E-06
   8  Prefactor     .10000E-03    5.5203        .70742E-07** at limit **
   9  Prefactor     26.011        37.457       -.24776E-06   -.21995E-04
  10  Prefactor     11.356        14.704       -.64950E-06   -.81278E-04
  11  Prefactor     2.7177        13.575        .75745E-06    .38799E-05
  12  norm          .10000E-03    7.3107        .22471E-05** at limit **
  13  Prefactor     17.984        51.193        .37672E-06    .13657E-04
  14  norm          18.376        29.507       -.16127E-06   -.25995E-04
  15  norm          .10000E-03    14.436       -.11684E-09** at limit **
  16  Prefactor     51.210        59.373        .70830E-06   -.84704E-04
  17  norm          5.0453        11.763       -.20784E-05   -.97103E-04
  18  Prefactor     .10000E-03    5.4716        .21852E-05** at limit **
  19  Prefactor     .10000E-03    56.727       -.17361E-05** at limit **
  20  Prefactor     .10000E-03    157.47        .38992E-05** at limit **
  21  Prefactor     .10000E-03    9.3094       -.24919E-06** at limit **
  22  Normalizat    1.7844        .29931        .10709E-05   -.31911E-03
  23  Prefactor     .69204        .11732       -.91550E-06   -.34769E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 3.51543
  Prefactor  = 19.0223
  norm       = 0.0001
  Prefactor  = 0.667707
  norm       = 0.0001
  norm       = 0.000100001
  norm       = 13.7368
  Prefactor  = 0.0001
  Prefactor  = 26.0109
  Prefactor  = 11.3563
  Prefactor  = 2.71771
  norm       = 0.000100002
  Prefactor  = 17.984
  norm       = 18.3765
  norm       = 0.0001
  Prefactor  = 51.2095
  norm       = 5.0453
  Prefactor  = 0.000100002
  Prefactor  = 0.000100002
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  Normalizat = 1.78438
  Prefactor  = 0.69204
 **********
 **   18 **HESSE 
 **********

 FCN=   6301.566     FROM HESSE     STATUS=OK           378 CALLS     2967 TOTAL
                     EDM=   .92E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.5154        1.8160        .73996E-04   -1.5333    
   2  Prefactor     19.022        166.85        .91786E-04   -1.4835    
   3  norm          .10000E-03    9.5977        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .66771        10.092        .45198E-03   -1.5545    
   5  norm          .10000E-03    2.3527        .11837E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    3.3330        .35597E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          13.737        8.0715        .10807E-03   -1.4967    
   8  Prefactor     .10000E-03    5.5236        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     26.011        37.419        .78540E-04   -1.4688    
  10  Prefactor     11.356        14.697        .11890E-03   -1.5034    
  11  Prefactor     2.7177        13.479        .24726E-03   -1.5378    
  12  norm          .10000E-03    10.199        .29871E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     17.984        51.242        .94428E-04   -1.4860    
  14  norm          18.376        29.568        .93435E-04   -1.4850    
  15  norm          .10000E-03    14.438        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     51.210        59.029        .56051E-04   -1.4276    
  17  norm          5.0453        11.806        .17918E-03   -1.5259    
  18  Prefactor     .10000E-03    7.4413        .28645E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    57.033        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    161.30        .42672E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    9.3175        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.7844        .35284        .32596E-03   -.70072    
  23  Prefactor     .69204        .13819        .19798E-03   -1.0384    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.22357e-10
Minuit parameter uncertainties:
  1  1.81601
  2  113.098
  3  0.00013367
  4  5.19226
  5  1.13739e-06
  6  0.00011895
  7  8.0721
  8  5.70511e-06
  9  37.4529
  10  14.7019
  11  12.1088
  12  0.000317579
  13  51.3676
  14  29.592
  15  4.54678e-06
  16  59.0963
  17  11.8112
  18  0.00024678
  19  0.000618453
  20  0.00152346
  21  3.0759e-05
  22  0.353339
  23  0.13826
Done.

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

Extracting fit parameters...

4FGL J1339.1-2620
   Spectrum: PowerLaw
315    Prefactor:  1.136e+01  1.470e+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:  6.920e-01  1.383e-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.784e+00  3.533e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/861189/likelihoodResults_313977601_314236801_4FGL_J1339.1-2620_daily_bin288.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) = 6298.81486207
delta logL = 2.75079460132

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6298.4334003
delta logL = 3.13225636609

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     '    7.8328       1.0000          .0000       10.000    
     3 'Normalizat'    1.4346       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .79973       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6550E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6298.433     FROM MIGRAD    STATUS=CONVERGED    198 CALLS      584 TOTAL
                     EDM=   .42E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .68612E-03    .47080E-07** at limit **
   2  Index         7.8327        .17282        .42395E-06    .66593E-04
   3  Normalizat    1.4346        .36381        .22899E-05    .11799E-03
   4  Prefactor     .79975        .14347       -.28598E-06    .30527E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 7.83269
  Normalizat = 1.43459
  Prefactor  = 0.799747
 **********
 **   18 **HESSE 
 **********

 FCN=   6298.433     FROM HESSE     STATUS=NOT POSDEF    43 CALLS      627 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    .19960E-02    .24881E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         7.8327        1.6748        .68499E-01    .60230    
   3  Normalizat    1.4346        .10070        .80123E-01   -.79633    
   4  Prefactor     .79975        .39264E-01    .43714E-01   -.99738    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.00334e-08
Minuit parameter uncertainties:
  1  4.7744e-09
  2  1.72472
  3  0.100718
  4  0.039265
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/861189': 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) = 6298.43340007
delta logL = 3.13225660033

Extracting fit parameters...

4FGL J1339.1-2620
   Spectrum: PowerLaw
315    Prefactor:  1.000e-04  4.774e-09  1.000e-04  1.000e+04 ( 1.000e-13)
316        Index:  7.833e+00  1.725e+00  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:  7.997e-01  3.927e-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.435e+00  1.007e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.27
Ra Dec: 204.799 -26.335
Photon Index (Free Index): 7.83 +/- 1.72
Photon Flux (Free Index): 3.07e-07 +/- 1.35e-06
Energy Flux (Free Index): 3.58e-05 +/- 1.56e-04

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/861189/cmap_HighResolution_313977601_314236801_4FGL_J1339.1-2620_daily_bin288.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.29e-02', comment='SUCCESS', energy_flux2='3.58e-05', dlogl='3.13e+00', photon_flux2='3.07e-07', job_status='DONE', time_completed='2021-09-08 08:04:06.005564', photon_index_error2='1.72', photon_index2='7.83', ts='0.97', fit_tolerance='1e-08', GAL='0.69', photon_index_error='0.00', photon_flux_upper_limit='1.69e-07', energy_flux_error2='1.56e-04', EG='1.78', time_epoch_completed='1631113446.01', return_code='0', job_id='861189', GAL2='0.80', EG2='1.43', return_code2='102', photon_flux_error2='1.35e-06', ts2='8.27', photon_index='2.24' WHERE bin_id='288' AND source_name='4FGL J1339.1-2620' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 08:04:06 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0168>
Subject: Job 861189: <4FGL_J1339.1-2620_daily_bin288> in cluster <slac> Done

Job <4FGL_J1339.1-2620_daily_bin288> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Wed Sep  8 07:50:37 2021
Job was executed on host(s) <bullet0168>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 07:51:10 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep  8 07:51:10 2021
Terminated at Wed Sep  8 08:04:06 2021
Results reported at Wed Sep  8 08:04:06 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1339.1-2620_daily_bin288 204.799 -26.3351 313977601 314236801 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 :                                   662.40 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             331.68 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   776 sec.
    Turnaround time :                            809 sec.

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

