/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 49 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 = 7463
number of fields = 29
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1339.0-2400_daily_bin619
RA = 204.756, Dec = -24.0085
tmin = 399772801, tmax = 400032001
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='853749', job_status='RUN', time_executed='2021-09-08 07:26:36.892437', time_epoch_executed='1631111196.89' WHERE source_name='4FGL J1339.0-2400' and cadence='daily' and bin_id='619'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/853749

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/853749/ft1_4FGL_J1339.0-2400_daily_bin619.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/853749/ft2_4FGL_J1339.0-2400_daily_bin619.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/853749/ft1_4FGL_J1339.0-2400_daily_bin619.fits outfile=/scratch/kocevski/853749/ft1_filteredMKT_4FGL_J1339.0-2400_daily_bin619.fits ra=204.756 dec=-24.0085 rad=12.0 tmin=399772801.0 tmax=400032001.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 5.34
user 4.90
sys 0.28

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/853749/ft2_4FGL_J1339.0-2400_daily_bin619.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/853749/ft2_4FGL_J1339.0-2400_daily_bin619.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/853749/ft1_filteredMKT_4FGL_J1339.0-2400_daily_bin619.fits evtable="EVENTS" outfile="/scratch/kocevski/853749/ft1_filtered_4FGL_J1339.0-2400_daily_bin619.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 1.82
user 0.31
sys 0.18

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/853749/ft1_filtered_4FGL_J1339.0-2400_daily_bin619.fits" evtable="EVENTS" scfile=/scratch/kocevski/853749/ft2_4FGL_J1339.0-2400_daily_bin619.fits sctable="SC_DATA" outfile=/scratch/kocevski/853749/ltcube_399772801_400032001_4FGL_J1339.0-2400_daily_bin619.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/853749/ft2_4FGL_J1339.0-2400_daily_bin619.fits
.....................!
real 12.48
user 12.09
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/853749/ft1_filtered_4FGL_J1339.0-2400_daily_bin619.fits evtable="EVENTS" scfile=/scratch/kocevski/853749/ft2_4FGL_J1339.0-2400_daily_bin619.fits sctable="SC_DATA" expcube=/scratch/kocevski/853749/ltcube_399772801_400032001_4FGL_J1339.0-2400_daily_bin619.fits outfile=/scratch/kocevski/853749/expmap_399772801_400032001_4FGL_J1339.0-2400_daily_bin619.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/853749/ltcube_399772801_400032001_4FGL_J1339.0-2400_daily_bin619.fits
.....................!
real 190.59
user 184.98
sys 5.11

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 192 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.0-2400 @ 204.756 -24.0085

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/853749/ft1_filtered_4FGL_J1339.0-2400_daily_bin619.fits scfile=/scratch/kocevski/853749/ft2_4FGL_J1339.0-2400_daily_bin619.fits outfile=/scratch/kocevski/853749/cmap_399772801_400032001_4FGL_J1339.0-2400_daily_bin619.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.756 yref=-24.0085 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.53
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/853749/ft1_filtered_4FGL_J1339.0-2400_daily_bin619.fits scfile=/scratch/kocevski/853749/ft2_4FGL_J1339.0-2400_daily_bin619.fits outfile=/scratch/kocevski/853749/cmap_HighResolution_399772801_400032001_4FGL_J1339.0-2400_daily_bin619.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.756 yref=-24.0085 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.56
user 0.38
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/853749/ft1_filtered_4FGL_J1339.0-2400_daily_bin619.fits evtable="EVENTS" scfile=/scratch/kocevski/853749/ft2_4FGL_J1339.0-2400_daily_bin619.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/853749/Model_4FGL_J1339.0-2400_daily_bin619.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/853749/ft1_filtered_4FGL_J1339.0-2400_daily_bin619.fits.....................!
real 98.78
user 97.39
sys 1.13

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/853749/ft1_filtered_4FGL_J1339.0-2400_daily_bin619.fits', '/scratch/kocevski/853749/ft2_4FGL_J1339.0-2400_daily_bin619.fits', expMap='/scratch/kocevski/853749/expmap_399772801_400032001_4FGL_J1339.0-2400_daily_bin619.fits', expCube='/scratch/kocevski/853749/ltcube_399772801_400032001_4FGL_J1339.0-2400_daily_bin619.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/853749/Model_4FGL_J1339.0-2400_daily_bin619.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1339.0-2400'

4FGL J1339.0-2400
   Spectrum: PowerLaw
309    Prefactor:  8.627e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
310        Index:  2.302e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
311        Scale:  1.047e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/853749/ft1_filtered_4FGL_J1339.0-2400_daily_bin619.fits
Spacecraft file(s): /scratch/kocevski/853749/ft2_4FGL_J1339.0-2400_daily_bin619.fits
Exposure map: /scratch/kocevski/853749/expmap_399772801_400032001_4FGL_J1339.0-2400_daily_bin619.fits
Exposure cube: /scratch/kocevski/853749/ltcube_399772801_400032001_4FGL_J1339.0-2400_daily_bin619.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/853749/Model_4FGL_J1339.0-2400_daily_bin619.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) = 5915.77660029

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.4403       1.0000         .10000E-03   10000.    
     2 'Prefactor '    41.663       1.0000         .10000E-03   10000.    
     3 'norm      '    2.8910       1.0000         .10000E-03   10000.    
     4 'norm      '    .10048E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.4934       1.0000         .10000E-03   10000.    
     6 'norm      '    1.7549       1.0000         .10000E-03   10000.    
     7 'norm      '    2.3020       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    1.2729       1.0000         .10000E-03   10000.    
    10 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    22.698       1.0000         .10000E-03   10000.    
    12 'Prefactor '    29.169       1.0000         .10000E-03   10000.    
    13 'Prefactor '    8.0598       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .13841E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    16.946       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .17827E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    5.1996       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    35.349       1.0000         .10000E-03   10000.    
    22 'Prefactor '    47.261       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.2539       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .83203       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6360E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5915.769     FROM MIGRAD    STATUS=CONVERGED    585 CALLS     2979 TOTAL
                     EDM=   .12E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.4404        1.7246        .82937E-07    .16589E-04
   2  Prefactor     41.679        69.203       -.24394E-05   -.48609E-05
   3  norm          2.8912        7.0993        .43134E-05   -.30354E-05
   4  norm          .10000E-03    2.5859        .26508E-06** at limit **
   5  Prefactor     2.4935        3.4639        .16480E-06    .44521E-04
   6  norm          1.7551        2.0295        .36671E-07    .87830E-05
   7  norm          2.3028        6.0803        .61247E-06   -.75341E-06
   8  Prefactor     .10000E-03    13.863        .24689E-07** at limit **
   9  norm          1.2732        2.2701        .72372E-07   -.43332E-06
  10  norm          .10000E-03    3.9724        .40332E-08** at limit **
  11  Prefactor     22.700        17.033        .38824E-06    .48688E-05
  12  Prefactor     29.174        31.622       -.18712E-06   -.13228E-05
  13  Prefactor     8.0616        11.725        .79738E-06   -.29347E-05
  14  Prefactor     .10000E-03    5.9418       -.12029E-06** at limit **
  15  norm          .10000E-03    3.5736        .29919E-07** at limit **
  16  Prefactor     .10000E-03    32.028       -.58940E-07** at limit **
  17  norm          16.946        22.244       -.78216E-07   -.22971E-07
  18  Prefactor     .10000E-03    123.89       -.30915E-06** at limit **
  19  norm          5.2024        10.440        .14598E-05   -.97121E-05
  20  Prefactor     .10000E-03    2.1703       -.33232E-07** at limit **
  21  Prefactor     35.306        67.718        .68075E-05   -.52382E-05
  22  Prefactor     47.268        53.754       -.59316E-06   -.26338E-06
  23  Prefactor     .10000E-03    7.3795        .60556E-07** at limit **
  24  Normalizat    1.2540        .26074       -.14904E-05   -.58547E-05
  25  Prefactor     .83189        .11450        .99500E-07    .18351E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.44041
  Prefactor  = 41.6786
  norm       = 2.89121
  norm       = 0.0001
  Prefactor  = 2.49347
  norm       = 1.7551
  norm       = 2.30275
  Prefactor  = 0.0001
  norm       = 1.27318
  norm       = 0.0001
  Prefactor  = 22.7
  Prefactor  = 29.1735
  Prefactor  = 8.06163
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 16.9455
  Prefactor  = 0.0001
  norm       = 5.20235
  Prefactor  = 0.0001
  Prefactor  = 35.3061
  Prefactor  = 47.2676
  Prefactor  = 0.0001
  Normalizat = 1.25404
  Prefactor  = 0.831892
 **********
 **   18 **HESSE 
 **********

 FCN=   5915.769     FROM HESSE     STATUS=OK           433 CALLS     3412 TOTAL
                     EDM=   .22E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.4404        1.7186        .81221E-04   -1.5396    
   2  Prefactor     41.679        69.080        .62104E-04   -1.4416    
   3  norm          2.8912        7.1008        .11951E-02   -1.5368    
   4  norm          .10000E-03    2.5982        .12070E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     2.4935        3.4442        .16161E-03   -1.5392    
   6  norm          1.7551        2.0211        .11445E-03   -1.5443    
   7  norm          2.3028        6.0645        .27047E-03   -1.5404    
   8  Prefactor     .10000E-03    13.911        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          1.2732        2.2153        .15021E-03   -1.5482    
  10  norm          .10000E-03    3.9994        .14967E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     22.700        16.982        .84076E-04   -1.4755    
  12  Prefactor     29.174        31.602        .74181E-04   -1.4627    
  13  Prefactor     8.0616        11.716        .70613E-03   -1.5140    
  14  Prefactor     .10000E-03    5.9545        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    18.696        .28109E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    32.053        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          16.946        22.250        .97295E-04   -1.4884    
  18  Prefactor     .10000E-03    124.75        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          5.2024        10.439        .88145E-03   -1.5252    
  20  Prefactor     .10000E-03    2.1934        .11054E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     35.306        67.672        .67404E-04   -1.4519    
  22  Prefactor     47.268        53.761        .58326E-04   -1.4332    
  23  Prefactor     .10000E-03    7.3816        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.2540        .30977        .33229E-03   -.84949    
  25  Prefactor     .83189        .13702        .17772E-03   -.98563    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.18825e-10
Minuit parameter uncertainties:
  1  1.71859
  2  69.2131
  3  7.10291
  4  2.1721e-05
  5  3.44447
  6  2.02121
  7  6.06607
  8  4.36146e-06
  9  2.21547
  10  1.50576e-06
  11  16.9855
  12  31.62
  13  11.7193
  14  1.20403e-05
  15  4.89937e-05
  16  2.38279e-05
  17  22.2613
  18  6.54004e-05
  19  10.4429
  20  2.39893e-06
  21  67.8201
  22  53.8164
  23  1.79302e-06
  24  0.310226
  25  0.137079
Done.

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

Extracting fit parameters...

4FGL J1339.0-2400
   Spectrum: PowerLaw
309    Prefactor:  2.917e+01  3.162e+01  1.000e-04  1.000e+04 ( 1.000e-13)
310        Index:  2.302e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
311        Scale:  1.047e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
633    Prefactor:  8.319e-01  1.371e-01  0.000e+00  1.000e+01 ( 1.000e+00)
634        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
635        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
632   Normalization:  1.254e+00  3.102e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.16
Ra Dec: 204.756 -24.009
Photon Index (Fixed Index): 2.30 +/- 0.00
Photon Flux (Fixed Index): 5.00e-08 +/- 5.42e-08
Energy Flux (Fixed Index): 1.89e-05 +/- 2.04e-05

TS (Fixed Index): 1.16
Ra Dec: 204.756 -24.009
Photon Flux Upper Limit: 1.67e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.28e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/853749/likelihoodResults_399772801_400032001_4FGL_J1339.0-2400_daily_bin619.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) = 5915.76063644
delta logL = 0.00850674318008

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5915.75680425
delta logL = 0.0123389279215

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5915.757     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      234 TOTAL
                     EDM=   .54E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     32.325        1293.4        .17619E-02    .14073E-04
   2  Index         2.1919        5.7469        .16430        .55469E-04
   3  Normalizat    1.2598        .13394        .74938E-01   -.17030E-05
   4  Prefactor     .82991        .52169E-01    .44108E-01    .89235E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 32.3249
  Index      = 2.19191
  Normalizat = 1.25981
  Prefactor  = 0.829908
 **********
 **   18 **HESSE 
 **********

 FCN=   5915.757     FROM HESSE     STATUS=OK            33 CALLS      267 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     32.325        39.363        .70477E-04   -1.4570    
   2  Index         2.1919        .70106        .90397E-02   -.59634    
   3  Normalizat    1.2598        .30498        .33165E-03   -.84774    
   4  Prefactor     .82991        .13641        .17790E-03   -.98635    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.46363e-09
Minuit parameter uncertainties:
  1  39.3948
  2  0.704458
  3  0.305415
  4  0.13647
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/853749': 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) = 5915.7568031
delta logL = 0.0123400827424

Extracting fit parameters...

4FGL J1339.0-2400
   Spectrum: PowerLaw
309    Prefactor:  3.232e+01  3.939e+01  1.000e-04  1.000e+04 ( 1.000e-13)
310        Index:  2.192e+00  7.045e-01  0.000e+00  1.000e+01 (-1.000e+00)
311        Scale:  1.047e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
633    Prefactor:  8.299e-01  1.365e-01  0.000e+00  1.000e+01 ( 1.000e+00)
634        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
635        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
632   Normalization:  1.260e+00  3.054e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.19
Ra Dec: 204.756 -24.009
Photon Index (Free Index): 2.19 +/- 0.70
Photon Flux (Free Index): 4.67e-08 +/- 5.38e-08
Energy Flux (Free Index): 2.13e-05 +/- 2.90e-05

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/853749/cmap_HighResolution_399772801_400032001_4FGL_J1339.0-2400_daily_bin619.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.28e-02', comment='SUCCESS', photon_flux='5.00e-08', energy_flux2='2.13e-05', photon_flux_error='5.42e-08', dlogl='1.23e-02', energy_flux='1.89e-05', photon_flux2='4.67e-08', job_status='DONE', time_completed='2021-09-08 07:40:03.180330', photon_index_error2='0.70', photon_index2='2.19', ts='1.16', fit_tolerance='1e-08', GAL='0.83', photon_index_error='0.00', photon_flux_upper_limit='1.67e-07', energy_flux_error2='2.90e-05', EG='1.25', time_epoch_completed='1631112003.18', return_code='0', job_id='853749', GAL2='0.83', EG2='1.26', return_code2='0', energy_flux_error='2.04e-05', photon_flux_error2='5.38e-08', ts2='1.19', photon_index='2.30' WHERE bin_id='619' AND source_name='4FGL J1339.0-2400' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 07:40:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0262>
Subject: Job 853749: <4FGL_J1339.0-2400_daily_bin619> in cluster <slac> Done

Job <4FGL_J1339.0-2400_daily_bin619> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Wed Sep  8 07:25:24 2021
Job was executed on host(s) <bullet0262>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 07:25:30 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:25:30 2021
Terminated at Wed Sep  8 07:40:03 2021
Results reported at Wed Sep  8 07:40:03 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1339.0-2400_daily_bin619 204.756 -24.0085 399772801 400032001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1339.0-2400 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   796.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             295.79 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   873 sec.
    Turnaround time :                            879 sec.

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

