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


Performing analysis on: 4FGL_J1339.0-2400_daily_bin1188
RA = 204.756, Dec = -24.0085
tmin = 547257601, tmax = 547516801
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='856691', job_status='RUN', time_executed='2021-09-08 07:40:09.728317', time_epoch_executed='1631112009.73' WHERE source_name='4FGL J1339.0-2400' and cadence='daily' and bin_id='1188'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/856691

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/856691/ft1_4FGL_J1339.0-2400_daily_bin1188.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/856691/ft2_4FGL_J1339.0-2400_daily_bin1188.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/856691/ft1_4FGL_J1339.0-2400_daily_bin1188.fits outfile=/scratch/kocevski/856691/ft1_filteredMKT_4FGL_J1339.0-2400_daily_bin1188.fits ra=204.756 dec=-24.0085 rad=12.0 tmin=547257601.0 tmax=547516801.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.97
user 2.73
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/856691/ft1_filtered_4FGL_J1339.0-2400_daily_bin1188.fits" evtable="EVENTS" scfile=/scratch/kocevski/856691/ft2_4FGL_J1339.0-2400_daily_bin1188.fits sctable="SC_DATA" outfile=/scratch/kocevski/856691/ltcube_547257601_547516801_4FGL_J1339.0-2400_daily_bin1188.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/856691/ft2_4FGL_J1339.0-2400_daily_bin1188.fits
.....................!
real 12.83
user 12.44
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/856691/ft1_filtered_4FGL_J1339.0-2400_daily_bin1188.fits evtable="EVENTS" scfile=/scratch/kocevski/856691/ft2_4FGL_J1339.0-2400_daily_bin1188.fits sctable="SC_DATA" expcube=/scratch/kocevski/856691/ltcube_547257601_547516801_4FGL_J1339.0-2400_daily_bin1188.fits outfile=/scratch/kocevski/856691/expmap_547257601_547516801_4FGL_J1339.0-2400_daily_bin1188.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/856691/ltcube_547257601_547516801_4FGL_J1339.0-2400_daily_bin1188.fits
.....................!
real 159.76
user 155.03
sys 4.20

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/856691/ft1_filtered_4FGL_J1339.0-2400_daily_bin1188.fits scfile=/scratch/kocevski/856691/ft2_4FGL_J1339.0-2400_daily_bin1188.fits outfile=/scratch/kocevski/856691/cmap_547257601_547516801_4FGL_J1339.0-2400_daily_bin1188.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.51
user 0.31
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/856691/ft1_filtered_4FGL_J1339.0-2400_daily_bin1188.fits scfile=/scratch/kocevski/856691/ft2_4FGL_J1339.0-2400_daily_bin1188.fits outfile=/scratch/kocevski/856691/cmap_HighResolution_547257601_547516801_4FGL_J1339.0-2400_daily_bin1188.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.48
user 0.33
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/856691/ft1_filtered_4FGL_J1339.0-2400_daily_bin1188.fits evtable="EVENTS" scfile=/scratch/kocevski/856691/ft2_4FGL_J1339.0-2400_daily_bin1188.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/856691/Model_4FGL_J1339.0-2400_daily_bin1188.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/856691/ft1_filtered_4FGL_J1339.0-2400_daily_bin1188.fits.....................!
real 89.37
user 88.00
sys 1.09

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .14037       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    15.429       1.0000         .10000E-03   10000.    
     4 'norm      '    8.7411       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.0085       1.0000         .10000E-03   10000.    
     9 'norm      '    31.251       1.0000         .10000E-03   10000.    
    10 'norm      '    1.8057       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    6.6966       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10419E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    6.8371       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10019E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    8.4768       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10110E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10819E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    17.719       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .68769       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.2772       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=   6764.657     FROM MIGRAD    STATUS=CONVERGED    577 CALLS     2883 TOTAL
                     EDM=   .29E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .13917        1.1400       -.32220E-07    .17890E-03
   2  Prefactor     .10000E-03    77.929        .63307E-05** at limit **
   3  norm          15.428        10.058        .30953E-06    .34678E-05
   4  norm          8.7411        6.7584        .66310E-07   -.35710E-04
   5  Prefactor     .10000E-03    5.5479        .94653E-07** at limit **
   6  norm          .10000E-03    .86280        .22880E-07** at limit **
   7  norm          .10000E-03    4.8482        .51405E-07** at limit **
   8  Prefactor     2.9213        160.82       -.44125E-06   -.74369E-05
   9  norm          31.270        11.757       -.99474E-06    .24786E-04
  10  norm          1.8020        6.9176        .11801E-05    .81025E-04
  11  Prefactor     .10000E-03    6.1333        .54969E-08** at limit **
  12  Prefactor     6.6944        24.054        .51069E-06   -.28880E-05
  13  Prefactor     .10000E-03    8.1881        .28592E-07** at limit **
  14  Prefactor     .10000E-03    3.6979        .40181E-07** at limit **
  15  norm          .10000E-03    1.3707       -.12503E-08** at limit **
  16  Prefactor     .10000E-03    39.296        .12405E-05** at limit **
  17  norm          6.8364        25.597        .31410E-05   -.90185E-05
  18  Prefactor     .10000E-03    12.987       -.36035E-07** at limit **
  19  norm          .10000E-03    10.273        .92446E-07** at limit **
  20  Prefactor     8.4760        6.5494        .18483E-06   -.22176E-04
  21  Prefactor     .10000E-03    65.067       -.10156E-04** at limit **
  22  Prefactor     .10000E-03    107.61        .12125E-04** at limit **
  23  Prefactor     17.725        33.702        .16093E-05   -.95864E-05
  24  Normalizat    .68778        .33491       -.70905E-06   -.22014E-04
  25  Prefactor     1.2772        .14448       -.56784E-06   -.39886E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.139171
  Prefactor  = 0.0001
  norm       = 15.4283
  norm       = 8.74114
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 2.92132
  norm       = 31.2695
  norm       = 1.80202
  Prefactor  = 0.0001
  Prefactor  = 6.69438
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 6.83638
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 8.47599
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 17.7248
  Normalizat = 0.687781
  Prefactor  = 1.2772
 **********
 **   18 **HESSE 
 **********

 FCN=   6764.657     FROM HESSE     STATUS=OK           427 CALLS     3310 TOTAL
                     EDM=   .27E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .13917        7.3586        .16828E-02   -1.5633    
   2  Prefactor     .10000E-03    78.098        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          15.428        10.054        .10197E-03   -1.4922    
   4  norm          8.7411        6.7300        .13558E-03   -1.5117    
   5  Prefactor     .10000E-03    5.5931        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    .86575        .74604E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    4.8547        .17687E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     2.9213        166.17        .23400E-03   -1.5366    
   9  norm          31.270        11.897        .71674E-04   -1.4589    
  10  norm          1.8020        6.8593        .31100E-03   -1.5439    
  11  Prefactor     .10000E-03    6.1637        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     6.6944        24.047        .15506E-03   -1.5190    
  13  Prefactor     .10000E-03    8.2052        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    3.7035        .15445E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    1.3755        .94026E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    39.301        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          6.8364        25.605        .76721E-03   -1.5185    
  18  Prefactor     .10000E-03    12.992        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    10.300        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     8.4760        6.5354        .13769E-03   -1.5126    
  21  Prefactor     .10000E-03    65.224        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    108.04        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     17.725        33.683        .95149E-04   -1.4866    
  24  Normalizat    .68778        .35628        .51803E-03   -1.0438    
  25  Prefactor     1.2772        .15648        .17536E-03   -.83987    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.73041e-10
Minuit parameter uncertainties:
  1  2.0235
  2  0.000195907
  3  10.0556
  4  6.73058
  5  6.58935e-06
  6  7.74282e-07
  7  2.10035e-06
  8  44.1934
  9  11.898
  10  6.86229
  11  9.9325e-06
  12  24.0814
  13  7.49183e-06
  14  4.2637e-06
  15  2.63256e-06
  16  2.80059e-05
  17  25.6463
  18  7.89289e-06
  19  2.23169e-06
  20  6.53597
  21  0.000252449
  22  0.00037072
  23  33.7191
  24  0.357487
  25  0.156538
Done.

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

Extracting fit parameters...

4FGL J1339.0-2400
   Spectrum: PowerLaw
309    Prefactor:  6.694e+00  2.408e+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:  1.277e+00  1.565e-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:  6.878e-01  3.575e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.09
Ra Dec: 204.756 -24.009
Photon Flux Upper Limit: 1.22e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.40e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/856691/likelihoodResults_547257601_547516801_4FGL_J1339.0-2400_daily_bin1188.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) = 6764.50033287
delta logL = 0.15679306102

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6764.49929682
delta logL = 0.15782910419

Fit tolerance = 1e-08

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

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

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6764.499     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      306 TOTAL
                     EDM=   .81E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     14.470        26.502        .10528E-03   -.14038E-05
   2  Index         1.7006        .84399        .13998E-01   -.12510E-03
   3  Normalizat    .69869        .33963        .51421E-03    .47534E-05
   4  Prefactor     1.2715        .15395        .17565E-03   -.25889E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 14.4702
  Index      = 1.70061
  Normalizat = 0.69869
  Prefactor  = 1.27152
 **********
 **   18 **HESSE 
 **********

 FCN=   6764.499     FROM HESSE     STATUS=OK            25 CALLS      331 TOTAL
                     EDM=   .19E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     14.470        26.702        .42113E-05   -1.4947    
   2  Index         1.7006        .85078        .27997E-02   -.72066    
   3  Normalizat    .69869        .33978        .20569E-04   -1.0394    
   4  Prefactor     1.2715        .15402        .70260E-05   -.84158    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.87709e-12
Minuit parameter uncertainties:
  1  26.7237
  2  0.85822
  3  0.340804
  4  0.154072
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/856691': 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) = 6764.49929679
delta logL = 0.157829140685

Extracting fit parameters...

4FGL J1339.0-2400
   Spectrum: PowerLaw
309    Prefactor:  1.447e+01  2.672e+01  1.000e-04  1.000e+04 ( 1.000e-13)
310        Index:  1.701e+00  8.582e-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:  1.272e+00  1.541e-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:  6.987e-01  3.408e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.09
Ra Dec: 204.756 -24.009

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/856691/cmap_HighResolution_547257601_547516801_4FGL_J1339.0-2400_daily_bin1188.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.40e-03', job_status='DONE', photon_flux_upper_limit='1.22e-07', time_completed='2021-09-08 07:51:42.683638', job_id='856691', GAL2='1.27', fit_tolerance='1e-08', EG2='0.70', EG='0.69', time_epoch_completed='1631112702.68', return_code2='0', ts='0.09', comment='SUCCESS', return_code='0', GAL='1.28', dlogl='1.58e-01', ts2='0.40', photon_index_error='0.00', photon_index='2.30' WHERE bin_id='1188' AND source_name='4FGL J1339.0-2400' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 07:51:42 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0175>
Subject: Job 856691: <4FGL_J1339.0-2400_daily_bin1188> in cluster <slac> Done

Job <4FGL_J1339.0-2400_daily_bin1188> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Wed Sep  8 07:35:24 2021
Job was executed on host(s) <bullet0175>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 07:36: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:36:30 2021
Terminated at Wed Sep  8 07:51:45 2021
Results reported at Wed Sep  8 07:51:45 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1339.0-2400_daily_bin1188 204.756 -24.0085 547257601 547516801 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 :                                   688.11 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             288.43 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   912 sec.
    Turnaround time :                            981 sec.

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

