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


Performing analysis on: 4FGL_J1339.0-2400_daily_bin1098
RA = 204.756, Dec = -24.0085
tmin = 523929601, tmax = 524188801
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='855408', job_status='RUN', time_executed='2021-09-08 07:34:22.299334', time_epoch_executed='1631111662.3' WHERE source_name='4FGL J1339.0-2400' and cadence='daily' and bin_id='1098'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/855408

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/855408/ft1_4FGL_J1339.0-2400_daily_bin1098.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/855408/ft2_4FGL_J1339.0-2400_daily_bin1098.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/855408/ft1_4FGL_J1339.0-2400_daily_bin1098.fits outfile=/scratch/kocevski/855408/ft1_filteredMKT_4FGL_J1339.0-2400_daily_bin1098.fits ra=204.756 dec=-24.0085 rad=12.0 tmin=523929601.0 tmax=524188801.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 2.89
user 2.67
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/855408/ft2_4FGL_J1339.0-2400_daily_bin1098.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/855408/ft1_filteredMKT_4FGL_J1339.0-2400_daily_bin1098.fits evtable="EVENTS" outfile="/scratch/kocevski/855408/ft1_filtered_4FGL_J1339.0-2400_daily_bin1098.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.45
user 0.30
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/855408/ft1_filtered_4FGL_J1339.0-2400_daily_bin1098.fits" evtable="EVENTS" scfile=/scratch/kocevski/855408/ft2_4FGL_J1339.0-2400_daily_bin1098.fits sctable="SC_DATA" outfile=/scratch/kocevski/855408/ltcube_523929601_524188801_4FGL_J1339.0-2400_daily_bin1098.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/855408/ft2_4FGL_J1339.0-2400_daily_bin1098.fits
.....................!
real 13.33
user 12.95
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/855408/ft1_filtered_4FGL_J1339.0-2400_daily_bin1098.fits evtable="EVENTS" scfile=/scratch/kocevski/855408/ft2_4FGL_J1339.0-2400_daily_bin1098.fits sctable="SC_DATA" expcube=/scratch/kocevski/855408/ltcube_523929601_524188801_4FGL_J1339.0-2400_daily_bin1098.fits outfile=/scratch/kocevski/855408/expmap_523929601_524188801_4FGL_J1339.0-2400_daily_bin1098.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/855408/ltcube_523929601_524188801_4FGL_J1339.0-2400_daily_bin1098.fits
.....................!
real 156.58
user 151.88
sys 4.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 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/855408/ft1_filtered_4FGL_J1339.0-2400_daily_bin1098.fits scfile=/scratch/kocevski/855408/ft2_4FGL_J1339.0-2400_daily_bin1098.fits outfile=/scratch/kocevski/855408/cmap_523929601_524188801_4FGL_J1339.0-2400_daily_bin1098.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.48
user 0.32
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/855408/ft1_filtered_4FGL_J1339.0-2400_daily_bin1098.fits scfile=/scratch/kocevski/855408/ft2_4FGL_J1339.0-2400_daily_bin1098.fits outfile=/scratch/kocevski/855408/cmap_HighResolution_523929601_524188801_4FGL_J1339.0-2400_daily_bin1098.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.51
user 0.34
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/855408/ft1_filtered_4FGL_J1339.0-2400_daily_bin1098.fits evtable="EVENTS" scfile=/scratch/kocevski/855408/ft2_4FGL_J1339.0-2400_daily_bin1098.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/855408/Model_4FGL_J1339.0-2400_daily_bin1098.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/855408/ft1_filtered_4FGL_J1339.0-2400_daily_bin1098.fits.....................!
real 95.17
user 93.83
sys 1.07

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.0683       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10188E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    3.1212       1.0000         .10000E-03   10000.    
     4 'norm      '    10.808       1.0000         .10000E-03   10000.    
     5 'Prefactor '    11.531       1.0000         .10000E-03   10000.    
     6 'norm      '    6.1966       1.0000         .10000E-03   10000.    
     7 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    20.918       1.0000         .10000E-03   10000.    
    10 'norm      '    7.0411       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10394E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10110E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    13.547       1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .41829E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    3.0798       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    51.038       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.8015       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .72348       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.285     FROM MIGRAD    STATUS=CONVERGED    564 CALLS     2875 TOTAL
                     EDM=   .11E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 10.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.0683        1.5544       -.23584E-07   -.43742E-05
   2  Prefactor     .10000E-03    47.648       -.17472E-05** at limit **
   3  norm          3.1209        6.6974       -.12961E-06    .12676E-05
   4  norm          10.809        8.9054       -.22093E-06    .49521E-05
   5  Prefactor     11.531        8.6493       -.14180E-06   -.18611E-05
   6  norm          6.1956        3.8424       -.66397E-08   -.23257E-04
   7  norm          .10000E-03    1.7971        .14919E-06** at limit **
   8  Prefactor     .10000E-03    25.657        .63424E-06** at limit **
   9  norm          20.919        7.3229       -.15884E-06   -.21076E-03
  10  norm          7.0408        8.5801        .11087E-06   -.42982E-04
  11  Prefactor     .10000E-03    23.114       -.21264E-05** at limit **
  12  Prefactor     .10000E-03    12.343        .99327E-06** at limit **
  13  Prefactor     .10000E-03    11.938        .94757E-06** at limit **
  14  Prefactor     .10000E-03    9.2021        .10475E-05** at limit **
  15  norm          .10000E-03    3.0005        .27188E-06** at limit **
  16  Prefactor     13.548        52.401        .32392E-06   -.34140E-05
  17  norm          .10000E-03    10.001       -.15216E-05** at limit **
  18  Prefactor     .10000E-03    31.673        .42391E-05** at limit **
  19  norm          .10000E-03    125.34       -.32727E-04** at limit **
  20  Prefactor     3.0842        4.9611       -.11298E-05   -.10382E-03
  21  Prefactor     .10000E-03    27.909        .12706E-05** at limit **
  22  Prefactor     51.013        54.748       -.49606E-05   -.68025E-05
  23  Prefactor     .10000E-03    14.988       -.72434E-06** at limit **
  24  Normalizat    1.8010        .27475        .13635E-06   -.22435E-03
  25  Prefactor     .72368        .11327       -.33885E-07   -.10230E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.06835
  Prefactor  = 0.0001
  norm       = 3.12093
  norm       = 10.8095
  Prefactor  = 11.531
  norm       = 6.19564
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 20.9186
  norm       = 7.04077
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 13.5479
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 3.08418
  Prefactor  = 0.0001
  Prefactor  = 51.0125
  Prefactor  = 0.0001
  Normalizat = 1.80103
  Prefactor  = 0.723681
 **********
 **   18 **HESSE 
 **********

 FCN=   7118.285     FROM HESSE     STATUS=OK           427 CALLS     3302 TOTAL
                     EDM=   .23E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.0683        1.5460        .88016E-04   -1.5420    
   2  Prefactor     .10000E-03    47.635        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          3.1209        6.6767        .22949E-03   -1.5355    
   4  norm          10.809        8.9187        .12187E-03   -1.5050    
   5  Prefactor     11.531        8.6633        .11797E-03   -1.5029    
   6  norm          6.1956        3.8439        .12465E-03   -1.5210    
   7  norm          .10000E-03    1.8028        .11046E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    25.748        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          20.919        7.3189        .87575E-04   -1.4793    
  10  norm          7.0408        8.5694        .15118E-03   -1.5177    
  11  Prefactor     .10000E-03    23.380        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    12.358        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    12.040        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    9.2528        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    3.0491        .14273E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     13.548        52.429        .10883E-03   -1.4972    
  17  norm          .10000E-03    10.006        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    31.730        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    120.66        .46575E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     3.0842        4.9832        .11171E-02   -1.5357    
  21  Prefactor     .10000E-03    27.923        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     51.013        54.778        .28068E-03   -1.4278    
  23  Prefactor     .10000E-03    15.000        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.8010        .32857        .32988E-03   -.69637    
  25  Prefactor     .72368        .13612        .20505E-03   -1.0261    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.26641e-10
Minuit parameter uncertainties:
  1  1.54598
  2  4.22357e-05
  3  6.67831
  4  8.91978
  5  8.66426
  6  3.84404
  7  1.43436e-06
  8  0.000155715
  9  7.31918
  10  8.57084
  11  5.9019e-05
  12  1.0617e-05
  13  2.019e-05
  14  1.89123e-05
  15  5.89398e-06
  16  52.6081
  17  1.41936e-06
  18  3.35551e-05
  19  0.000343541
  20  4.98382
  21  1.21351e-05
  22  54.8317
  23  2.1211e-05
  24  0.328972
  25  0.13618
Done.

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

Extracting fit parameters...

4FGL J1339.0-2400
   Spectrum: PowerLaw
309    Prefactor:  1.000e-04  1.062e-05  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:  7.237e-01  1.362e-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.801e+00  3.290e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 204.756 -24.009
Photon Flux Upper Limit: 9.24e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.09e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/855408/likelihoodResults_523929601_524188801_4FGL_J1339.0-2400_daily_bin1098.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) = 7118.28519506
delta logL = -0.000385375239603

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7118.28480968
delta logL = -1.60980562214e-10

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3051       1.0000          .0000       10.000    
     3 'Normalizat'    1.8010       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .72368       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=   7118.285     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      243 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10014E-03    526.84        .18142E-02** at limit **
   2  Index         2.3401        6.8681        .50000       -.14930E-05
   3  Normalizat    1.8010        .47258E-01    .32988E-03   -.36875E-05
   4  Prefactor     .72368        .19870E-01    .20505E-03   -.55442E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100143
  Index      = 2.34012
  Normalizat = 1.80103
  Prefactor  = 0.723679
 **********
 **   18 **HESSE 
 **********

 FCN=   7118.285     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      272 TOTAL
                     EDM=   .66E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10014E-03    1968.6        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3401        8.8057        .50000       -.56093    
   3  Normalizat    1.8010        .12350        .13195E-04   -.69637    
   4  Prefactor     .72368        .51834E-01    .82022E-05   -1.0261    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.56412e-09
Minuit parameter uncertainties:
  1  0.0348104
  2  3900.84
  3  0.123523
  4  0.0518376
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/855408': 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) = 7118.28480967
delta logL = 9.50967660174e-09

Extracting fit parameters...

4FGL J1339.0-2400
   Spectrum: PowerLaw
309    Prefactor:  1.001e-04  3.481e-02  1.000e-04  1.000e+04 ( 1.000e-13)
310        Index:  2.340e+00  3.901e+03  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:  7.237e-01  5.184e-02  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.801e+00  1.235e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

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/855408/cmap_HighResolution_523929601_524188801_4FGL_J1339.0-2400_daily_bin1098.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.09e-03', job_status='DONE', photon_flux_upper_limit='9.24e-08', time_completed='2021-09-08 07:46:16.713807', job_id='855408', GAL2='0.72', fit_tolerance='1e-08', EG2='1.80', EG='1.80', time_epoch_completed='1631112376.71', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.72', dlogl='9.51e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.30' WHERE bin_id='1098' AND source_name='4FGL J1339.0-2400' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 07:46:16 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0189>
Subject: Job 855408: <4FGL_J1339.0-2400_daily_bin1098> in cluster <slac> Done

Job <4FGL_J1339.0-2400_daily_bin1098> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Wed Sep  8 07:30:45 2021
Job was executed on host(s) <bullet0189>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 07:31:42 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:31:42 2021
Terminated at Wed Sep  8 07:46:17 2021
Results reported at Wed Sep  8 07:46:17 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1339.0-2400_daily_bin1098 204.756 -24.0085 523929601 524188801 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 :                                   709.38 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             309.82 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   874 sec.
    Turnaround time :                            932 sec.

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

