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


Performing analysis on: 4FGL_J1339.1-2620_daily_bin1261
RA = 204.799, Dec = -26.3351
tmin = 566179201, tmax = 566438401
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='867078', job_status='RUN', time_executed='2021-09-08 08:13:10.021474', time_epoch_executed='1631113990.02' WHERE source_name='4FGL J1339.1-2620' and cadence='daily' and bin_id='1261'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/867078

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/867078/ft1_4FGL_J1339.1-2620_daily_bin1261.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/867078/ft2_4FGL_J1339.1-2620_daily_bin1261.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/867078/ft1_4FGL_J1339.1-2620_daily_bin1261.fits outfile=/scratch/kocevski/867078/ft1_filteredMKT_4FGL_J1339.1-2620_daily_bin1261.fits ra=204.799 dec=-26.3351 rad=12.0 tmin=566179201.0 tmax=566438401.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.31
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/867078/ft1_filtered_4FGL_J1339.1-2620_daily_bin1261.fits" evtable="EVENTS" scfile=/scratch/kocevski/867078/ft2_4FGL_J1339.1-2620_daily_bin1261.fits sctable="SC_DATA" outfile=/scratch/kocevski/867078/ltcube_566179201_566438401_4FGL_J1339.1-2620_daily_bin1261.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/867078/ft2_4FGL_J1339.1-2620_daily_bin1261.fits
.....................!
real 14.88
user 14.48
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/867078/ft1_filtered_4FGL_J1339.1-2620_daily_bin1261.fits evtable="EVENTS" scfile=/scratch/kocevski/867078/ft2_4FGL_J1339.1-2620_daily_bin1261.fits sctable="SC_DATA" expcube=/scratch/kocevski/867078/ltcube_566179201_566438401_4FGL_J1339.1-2620_daily_bin1261.fits outfile=/scratch/kocevski/867078/expmap_566179201_566438401_4FGL_J1339.1-2620_daily_bin1261.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/867078/ltcube_566179201_566438401_4FGL_J1339.1-2620_daily_bin1261.fits
.....................!
real 192.29
user 186.06
sys 5.31

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/867078/ft1_filtered_4FGL_J1339.1-2620_daily_bin1261.fits scfile=/scratch/kocevski/867078/ft2_4FGL_J1339.1-2620_daily_bin1261.fits outfile=/scratch/kocevski/867078/cmap_566179201_566438401_4FGL_J1339.1-2620_daily_bin1261.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.55
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/867078/ft1_filtered_4FGL_J1339.1-2620_daily_bin1261.fits scfile=/scratch/kocevski/867078/ft2_4FGL_J1339.1-2620_daily_bin1261.fits outfile=/scratch/kocevski/867078/cmap_HighResolution_566179201_566438401_4FGL_J1339.1-2620_daily_bin1261.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.57
user 0.39
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/867078/ft1_filtered_4FGL_J1339.1-2620_daily_bin1261.fits evtable="EVENTS" scfile=/scratch/kocevski/867078/ft2_4FGL_J1339.1-2620_daily_bin1261.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/867078/Model_4FGL_J1339.1-2620_daily_bin1261.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/867078/ft1_filtered_4FGL_J1339.1-2620_daily_bin1261.fits.....................!
real 84.66
user 83.10
sys 1.29

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .80529       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .12097E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    10.142       1.0000         .10000E-03   10000.    
     5 'norm      '    .10103E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    28.165       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    10.723       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10075E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.9275       1.0000         .10000E-03   10000.    
    12 'norm      '    .51433       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .22089E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    22.801       1.0000         .10000E-03   10000.    
    15 'norm      '    16.258       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    15.401       1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.6052       1.0000         .10000E-03   10000.    
    19 'Prefactor '    35.056       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    10.524       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .64319       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.1634       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=   5099.602     FROM MIGRAD    STATUS=CONVERGED    524 CALLS     2980 TOTAL
                     EDM=   .67E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .80523        2.0125        .78987E-06   -.16076E-04
   2  Prefactor     .10000E-03    193.52        .18410E-05** at limit **
   3  norm          .10000E-03    3.1908        .40004E-06** at limit **
   4  Prefactor     10.141        6.7916       -.34913E-07    .37867E-04
   5  norm          .10000E-03    16.600       -.33080E-06** at limit **
   6  norm          .10000E-03    2.0881        .27884E-07** at limit **
   7  norm          28.164        17.149        .92458E-07   -.35202E-04
   8  Prefactor     .10000E-03    4.7171       -.12578E-06** at limit **
   9  Prefactor     10.729        38.288        .57801E-06   -.10982E-04
  10  Prefactor     .10000E-03    29.880        .32528E-06** at limit **
  11  Prefactor     4.9286        10.807        .18340E-06   -.58482E-04
  12  norm          .51590        6.6000        .32538E-05   -.77840E-04
  13  Prefactor     .10000E-03    354.09        .92040E-06** at limit **
  14  norm          22.802        40.296        .24443E-07    .38856E-05
  15  norm          16.348        216.87        .18312E-05    .19959E-04
  16  Prefactor     .10000E-03    9.9812       -.39348E-07** at limit **
  17  norm          15.397        19.955        .11430E-06   -.42218E-04
  18  Prefactor     2.6038        8.7087        .79930E-06    .24125E-04
  19  Prefactor     35.049        195.49        .12076E-05   -.30141E-05
  20  Prefactor     .10000E-03    19.676        .20563E-07** at limit **
  21  Prefactor     10.522        22.960        .25657E-06   -.14362E-04
  22  Normalizat    .64318        .35481       -.16872E-06   -.94865E-04
  23  Prefactor     1.1633        .14891       -.71263E-06   -.16561E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.805225
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 10.1406
  norm       = 0.0001
  norm       = 0.0001
  norm       = 28.1638
  Prefactor  = 0.0001
  Prefactor  = 10.7286
  Prefactor  = 0.0001
  Prefactor  = 4.92862
  norm       = 0.515902
  Prefactor  = 0.0001
  norm       = 22.802
  norm       = 16.3479
  Prefactor  = 0.0001
  norm       = 15.397
  Prefactor  = 2.60379
  Prefactor  = 35.0488
  Prefactor  = 0.0001
  Prefactor  = 10.5218
  Normalizat = 0.64318
  Prefactor  = 1.16335
 **********
 **   18 **HESSE 
 **********

 FCN=   5099.602     FROM HESSE     STATUS=OK           368 CALLS     3348 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .80523        2.0053        .14917E-03   -1.5529    
   2  Prefactor     .10000E-03    194.06        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    3.2073        .12440E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     10.141        6.7523        .12582E-03   -1.5071    
   5  norm          .10000E-03    16.898        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    2.1788        .20144E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          28.164        17.123        .75489E-04   -1.4646    
   8  Prefactor     .10000E-03    4.7213        .15143E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     10.729        38.155        .12235E-03   -1.5053    
  10  Prefactor     .10000E-03    30.265        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     4.9286        10.747        .18119E-03   -1.5264    
  12  norm          .51590        6.6131        .34343E-03   -1.5564    
  13  Prefactor     .10000E-03    354.96        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          22.802        40.202        .83884E-04   -1.4753    
  15  norm          16.348        217.41        .99331E-04   -1.4899    
  16  Prefactor     .10000E-03    9.9826        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          15.397        19.818        .10206E-03   -1.4923    
  18  Prefactor     2.6038        8.5952        .25275E-03   -1.5385    
  19  Prefactor     35.049        195.18        .67684E-04   -1.4523    
  20  Prefactor     .10000E-03    19.678        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     10.522        22.972        .12350E-03   -1.5059    
  22  Normalizat    .64318        .37968        .49406E-03   -1.0618    
  23  Prefactor     1.1633        .16271        .16404E-03   -.87467    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.38732e-10
Minuit parameter uncertainties:
  1  2.00546
  2  0.000196469
  3  3.49763e-06
  4  6.75277
  5  1.37952e-05
  6  3.40975e-06
  7  17.1263
  8  2.6993e-06
  9  38.2423
  10  1.85269e-05
  11  10.7515
  12  3.69432
  13  0.000654569
  14  40.2501
  15  119.77
  16  2.64955e-06
  17  19.8264
  18  8.59928
  19  166.258
  20  3.7588e-06
  21  22.9916
  22  0.381235
  23  0.16278
Done.

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

Extracting fit parameters...

4FGL J1339.1-2620
   Spectrum: PowerLaw
315    Prefactor:  1.000e-04  1.853e-05  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.163e+00  1.628e-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:  6.432e-01  3.812e-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: 1.54e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.17e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/867078/likelihoodResults_566179201_566438401_4FGL_J1339.1-2620_daily_bin1261.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) = 5099.60213827
delta logL = -0.000157415190188

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5099.60198155
delta logL = -6.89588887326e-07

Fit tolerance = 1e-08

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

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

 FCN=   5099.396     FROM MIGRAD    STATUS=CONVERGED    123 CALLS      314 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .80578        31.481        .90712E-02   -.16092E-02
   2  Index         3.6529        3.3963        .12222       -.96554E-04
   3  Normalizat    .56727        .67176E-01    .11822        .50202E-04
   4  Prefactor     1.1803        .29227E-01    .35561E-01    .47351E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.805775
  Index      = 3.65288
  Normalizat = 0.567266
  Prefactor  = 1.18029
 **********
 **   18 **HESSE 
 **********

 FCN=   5099.396     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      345 TOTAL
                     EDM=   .20E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .80578        96.040        .98048E-04   -1.5528    
   2  Index         3.6529        6.3755        .68346E-02   -.27279    
   3  Normalizat    .56727        .33268        .52424E-03   -1.0939    
   4  Prefactor     1.1803        .14447        .16297E-03   -.86940    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.98233e-08
Minuit parameter uncertainties:
  1  17.6219
  2  9.18742
  3  0.33386
  4  0.144515
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/867078': 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) = 5099.3964279
delta logL = 0.205552961

Extracting fit parameters...

4FGL J1339.1-2620
   Spectrum: PowerLaw
315    Prefactor:  8.058e-01  1.762e+01  1.000e-04  1.000e+04 ( 1.000e-13)
316        Index:  3.653e+00  9.187e+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:  1.180e+00  1.445e-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:  5.673e-01  3.339e-01  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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/867078/cmap_HighResolution_566179201_566438401_4FGL_J1339.1-2620_daily_bin1261.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.17e-02', job_status='DONE', photon_flux_upper_limit='1.54e-07', time_completed='2021-09-08 08:25:12.693093', job_id='867078', GAL2='1.18', fit_tolerance='1e-08', EG2='0.57', EG='0.64', time_epoch_completed='1631114712.69', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.16', dlogl='2.06e-01', ts2='0.47', photon_index_error='0.00', photon_index='2.24' WHERE bin_id='1261' AND source_name='4FGL J1339.1-2620' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 08:25:12 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0050>
Subject: Job 867078: <4FGL_J1339.1-2620_daily_bin1261> in cluster <slac> Done

Job <4FGL_J1339.1-2620_daily_bin1261> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Wed Sep  8 08:10:40 2021
Job was executed on host(s) <bullet0050>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 08:11:40 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:40 2021
Terminated at Wed Sep  8 08:25:13 2021
Results reported at Wed Sep  8 08:25:13 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1339.1-2620_daily_bin1261 204.799 -26.3351 566179201 566438401 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 :                                   700.05 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             284.65 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   812 sec.
    Turnaround time :                            873 sec.

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

