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


Performing analysis on: 4FGL_J1339.0-2400_daily_bin1137
RA = 204.756, Dec = -24.0085
tmin = 534038401, tmax = 534297601
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='856614', job_status='RUN', time_executed='2021-09-08 07:37:22.192104', time_epoch_executed='1631111842.19' WHERE source_name='4FGL J1339.0-2400' and cadence='daily' and bin_id='1137'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/856614

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/856614/ft1_4FGL_J1339.0-2400_daily_bin1137.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/856614/ft2_4FGL_J1339.0-2400_daily_bin1137.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/856614/ft1_4FGL_J1339.0-2400_daily_bin1137.fits outfile=/scratch/kocevski/856614/ft1_filteredMKT_4FGL_J1339.0-2400_daily_bin1137.fits ra=204.756 dec=-24.0085 rad=12.0 tmin=534038401.0 tmax=534297601.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.65
user 3.42
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/856614/ft2_4FGL_J1339.0-2400_daily_bin1137.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/856614/ft1_filteredMKT_4FGL_J1339.0-2400_daily_bin1137.fits evtable="EVENTS" outfile="/scratch/kocevski/856614/ft1_filtered_4FGL_J1339.0-2400_daily_bin1137.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.36
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/856614/ft1_filtered_4FGL_J1339.0-2400_daily_bin1137.fits" evtable="EVENTS" scfile=/scratch/kocevski/856614/ft2_4FGL_J1339.0-2400_daily_bin1137.fits sctable="SC_DATA" outfile=/scratch/kocevski/856614/ltcube_534038401_534297601_4FGL_J1339.0-2400_daily_bin1137.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/856614/ft2_4FGL_J1339.0-2400_daily_bin1137.fits
.....................!
real 17.62
user 17.21
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/856614/ft1_filtered_4FGL_J1339.0-2400_daily_bin1137.fits evtable="EVENTS" scfile=/scratch/kocevski/856614/ft2_4FGL_J1339.0-2400_daily_bin1137.fits sctable="SC_DATA" expcube=/scratch/kocevski/856614/ltcube_534038401_534297601_4FGL_J1339.0-2400_daily_bin1137.fits outfile=/scratch/kocevski/856614/expmap_534038401_534297601_4FGL_J1339.0-2400_daily_bin1137.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/856614/ltcube_534038401_534297601_4FGL_J1339.0-2400_daily_bin1137.fits
.....................!
real 192.13
user 186.58
sys 4.91

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/856614/ft1_filtered_4FGL_J1339.0-2400_daily_bin1137.fits scfile=/scratch/kocevski/856614/ft2_4FGL_J1339.0-2400_daily_bin1137.fits outfile=/scratch/kocevski/856614/cmap_534038401_534297601_4FGL_J1339.0-2400_daily_bin1137.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.62
user 0.40
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/856614/ft1_filtered_4FGL_J1339.0-2400_daily_bin1137.fits scfile=/scratch/kocevski/856614/ft2_4FGL_J1339.0-2400_daily_bin1137.fits outfile=/scratch/kocevski/856614/cmap_HighResolution_534038401_534297601_4FGL_J1339.0-2400_daily_bin1137.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.57
user 0.41
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/856614/ft1_filtered_4FGL_J1339.0-2400_daily_bin1137.fits evtable="EVENTS" scfile=/scratch/kocevski/856614/ft2_4FGL_J1339.0-2400_daily_bin1137.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/856614/Model_4FGL_J1339.0-2400_daily_bin1137.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/856614/ft1_filtered_4FGL_J1339.0-2400_daily_bin1137.fits.....................!
real 116.42
user 114.81
sys 1.26

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/856614/ft1_filtered_4FGL_J1339.0-2400_daily_bin1137.fits', '/scratch/kocevski/856614/ft2_4FGL_J1339.0-2400_daily_bin1137.fits', expMap='/scratch/kocevski/856614/expmap_534038401_534297601_4FGL_J1339.0-2400_daily_bin1137.fits', expCube='/scratch/kocevski/856614/ltcube_534038401_534297601_4FGL_J1339.0-2400_daily_bin1137.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/856614/Model_4FGL_J1339.0-2400_daily_bin1137.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/856614/ft1_filtered_4FGL_J1339.0-2400_daily_bin1137.fits
Spacecraft file(s): /scratch/kocevski/856614/ft2_4FGL_J1339.0-2400_daily_bin1137.fits
Exposure map: /scratch/kocevski/856614/expmap_534038401_534297601_4FGL_J1339.0-2400_daily_bin1137.fits
Exposure cube: /scratch/kocevski/856614/ltcube_534038401_534297601_4FGL_J1339.0-2400_daily_bin1137.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/856614/Model_4FGL_J1339.0-2400_daily_bin1137.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) = 7118.37196554

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.2697       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    13.043       1.0000         .10000E-03   10000.    
     4 'norm      '    4.0115       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    1.8308       1.0000         .10000E-03   10000.    
     7 'norm      '    .59205E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10187E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    18.663       1.0000         .10000E-03   10000.    
    10 'norm      '    4.0674       1.0000         .10000E-03   10000.    
    11 'Prefactor '    7.0487       1.0000         .10000E-03   10000.    
    12 'Prefactor '    58.831       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .23498E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    22.351       1.0000         .10000E-03   10000.    
    19 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    4.2413       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    2.6685       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.5305       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .82728       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=   7118.365     FROM MIGRAD    STATUS=CONVERGED    564 CALLS     2847 TOTAL
                     EDM=   .18E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.2697        1.3975        .60896E-08    .12837E-04
   2  Prefactor     .10000E-03    43.162        .17677E-05** at limit **
   3  norm          13.042        8.6430       -.61894E-08   -.30388E-05
   4  norm          4.0087        5.7322        .18580E-05    .26531E-03
   5  Prefactor     .10000E-03    4.4162        .31169E-06** at limit **
   6  norm          1.8308        1.7865       -.35669E-07   -.91226E-05
   7  norm          .10000E-03    2.6987        .24708E-07** at limit **
   8  Prefactor     .10000E-03    31.523       -.31584E-05** at limit **
   9  norm          18.655        6.1412        .18808E-06    .43111E-03
  10  norm          4.0673        6.2677        .25402E-06    .65747E-04
  11  Prefactor     7.0472        9.3198        .59927E-07    .10361E-04
  12  Prefactor     58.828        32.932        .27246E-06    .67871E-04
  13  Prefactor     .10003E-03    8.2471       -.19993E-05** at limit **
  14  Prefactor     .10000E-03    3.9745        .87179E-08** at limit **
  15  norm          .10000E-03    1.5339       -.11844E-06** at limit **
  16  Prefactor     .10000E-03    25.719        .99293E-06** at limit **
  17  norm          .10000E-03    11.316       -.36555E-08** at limit **
  18  Prefactor     22.329        50.074        .45932E-05    .74605E-05
  19  norm          .10000E-03    3.9020       -.37868E-07** at limit **
  20  Prefactor     4.2400        4.6090        .12637E-06    .13589E-03
  21  Prefactor     .10000E-03    42.011        .58279E-06** at limit **
  22  Prefactor     .10000E-03    27.014       -.38175E-06** at limit **
  23  Prefactor     2.6673        31.138        .70371E-06    .48451E-05
  24  Normalizat    1.5304        .26588       -.52807E-06    .82194E-04
  25  Prefactor     .82729        .11061       -.33965E-06    .95923E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.26967
  Prefactor  = 0.0001
  norm       = 13.0425
  norm       = 4.00865
  Prefactor  = 0.0001
  norm       = 1.83077
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 18.6547
  norm       = 4.06728
  Prefactor  = 7.04715
  Prefactor  = 58.8277
  Prefactor  = 0.000100027
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 22.3286
  norm       = 0.0001
  Prefactor  = 4.24
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.66734
  Normalizat = 1.53042
  Prefactor  = 0.827291
 **********
 **   18 **HESSE 
 **********

 FCN=   7118.365     FROM HESSE     STATUS=OK           427 CALLS     3274 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.2697        1.3827        .10103E-03   -1.5483    
   2  Prefactor     .10000E-03    43.201        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          13.042        8.6429        .11091E-03   -1.4986    
   4  norm          4.0087        5.8415        .10068E-02   -1.5308    
   5  Prefactor     .10000E-03    4.4722        .17329E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          1.8308        1.8004        .10841E-03   -1.5437    
   7  norm          .10000E-03    8.7585        .27008E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    31.851        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          18.655        6.1538        .92710E-04   -1.4844    
  10  norm          4.0673        6.2529        .19992E-03   -1.5305    
  11  Prefactor     7.0472        9.3146        .15110E-03   -1.5177    
  12  Prefactor     58.828        32.734        .52306E-04   -1.4172    
  13  Prefactor     .10003E-03    25.511        .40856E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    3.9813        .16423E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    1.5392        .10208E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    25.729        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    11.321        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     22.329        50.069        .84724E-04   -1.4763    
  19  norm          .10000E-03    3.9061        .16271E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     4.2400        4.5983        .17770E-03   -1.5296    
  21  Prefactor     .10000E-03    42.050        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    27.023        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     2.6673        31.132        .24949E-03   -1.5381    
  24  Normalizat    1.5304        .31908        .34331E-03   -.76927    
  25  Prefactor     .82729        .13298        .19124E-03   -.98730    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.13555e-09
Minuit parameter uncertainties:
  1  1.38269
  2  2.5672e-05
  3  8.64374
  4  5.84237
  5  5.78906e-06
  6  1.80042
  7  2.15727e-05
  8  4.85595e-05
  9  6.15405
  10  6.25388
  11  9.31652
  12  32.7443
  13  0.00164622
  14  6.33804e-07
  15  5.79115e-06
  16  1.24358e-05
  17  3.16409e-06
  18  50.1637
  19  1.18915e-06
  20  4.59873
  21  1.83918e-05
  22  3.02628e-06
  23  18.2368
  24  0.319503
  25  0.133028
Done.

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

Extracting fit parameters...

4FGL J1339.0-2400
   Spectrum: PowerLaw
309    Prefactor:  5.883e+01  3.274e+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.273e-01  1.330e-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.530e+00  3.195e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 9.48
Ra Dec: 204.756 -24.009
Photon Index (Fixed Index): 2.30 +/- 0.00
Photon Flux (Fixed Index): 1.01e-07 +/- 5.61e-08
Energy Flux (Fixed Index): 3.80e-05 +/- 2.12e-05

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) = 7118.36458144
delta logL = 0.000676931018461

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7118.36436122
delta logL = 0.000897149225239

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    59.461       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2810       1.0000          .0000       10.000    
     3 'Normalizat'    1.5328       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82689       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=   7118.364     FROM MIGRAD    STATUS=CONVERGED     61 CALLS      227 TOTAL
                     EDM=   .49E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     59.551        659.74        .13008E-02   -.16519E-05
   2  Index         2.2826        3.3752        .17678        .74166E-04
   3  Normalizat    1.5326        .16802        .77531E-01    .78950E-05
   4  Prefactor     .82676        .47944E-01    .44066E-01    .69911E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 59.5513
  Index      = 2.28261
  Normalizat = 1.53258
  Prefactor  = 0.826759
 **********
 **   18 **HESSE 
 **********

 FCN=   7118.364     FROM HESSE     STATUS=OK            31 CALLS      258 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     59.551        37.819        .52030E-04   -1.4163    
   2  Index         2.2826        .46965        .61772E-02   -.57457    
   3  Normalizat    1.5326        .31449        .34312E-03   -.76867    
   4  Prefactor     .82676        .13293        .19130E-03   -.98749    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.16196e-09
Minuit parameter uncertainties:
  1  37.8339
  2  0.470634
  3  0.314896
  4  0.132983
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/856614': 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) = 7118.36434299
delta logL = 0.000915375512704

Extracting fit parameters...

4FGL J1339.0-2400
   Spectrum: PowerLaw
309    Prefactor:  5.955e+01  3.783e+01  1.000e-04  1.000e+04 ( 1.000e-13)
310        Index:  2.283e+00  4.706e-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.268e-01  1.330e-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.533e+00  3.149e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.46
Ra Dec: 204.756 -24.009
Photon Index (Free Index): 2.28 +/- 0.47
Photon Flux (Free Index): 9.89e-08 +/- 6.99e-08
Energy Flux (Free Index): 3.85e-05 +/- 2.49e-05

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/856614/cmap_HighResolution_534038401_534297601_4FGL_J1339.0-2400_daily_bin1137.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.01e-07', energy_flux2='3.85e-05', photon_flux_error='5.61e-08', dlogl='9.15e-04', energy_flux='3.80e-05', photon_flux2='9.89e-08', job_status='DONE', time_completed='2021-09-08 07:50:21.109483', photon_index_error2='0.47', photon_index2='2.28', ts='9.48', fit_tolerance='1e-08', GAL='0.83', photon_index_error='0.00', energy_flux_error2='2.49e-05', EG='1.53', time_epoch_completed='1631112621.11', return_code='0', job_id='856614', GAL2='0.83', EG2='1.53', return_code2='0', energy_flux_error='2.12e-05', photon_flux_error2='6.99e-08', ts2='9.46', photon_index='2.30' WHERE bin_id='1137' AND source_name='4FGL J1339.0-2400' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 07:50:21 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0273>
Subject: Job 856614: <4FGL_J1339.0-2400_daily_bin1137> in cluster <slac> Done

Job <4FGL_J1339.0-2400_daily_bin1137> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Wed Sep  8 07:35:18 2021
Job was executed on host(s) <bullet0273>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 07:35:33 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:35:33 2021
Terminated at Wed Sep  8 07:50:21 2021
Results reported at Wed Sep  8 07:50:21 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1339.0-2400_daily_bin1137 204.756 -24.0085 534038401 534297601 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 :                                   775.49 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             288.76 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   888 sec.
    Turnaround time :                            903 sec.

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

