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


Performing analysis on: 4FGL_J1339.0-2400_daily_bin1259
RA = 204.756, Dec = -24.0085
tmin = 565660801, tmax = 565920001
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='858092', job_status='RUN', time_executed='2021-09-08 07:41:12.618462', time_epoch_executed='1631112072.62' WHERE source_name='4FGL J1339.0-2400' and cadence='daily' and bin_id='1259'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/858092

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/858092/ft1_4FGL_J1339.0-2400_daily_bin1259.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/858092/ft2_4FGL_J1339.0-2400_daily_bin1259.fits


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

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

Done.
real 3.56
user 3.32
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/858092/ft1_filtered_4FGL_J1339.0-2400_daily_bin1259.fits" evtable="EVENTS" scfile=/scratch/kocevski/858092/ft2_4FGL_J1339.0-2400_daily_bin1259.fits sctable="SC_DATA" outfile=/scratch/kocevski/858092/ltcube_565660801_565920001_4FGL_J1339.0-2400_daily_bin1259.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/858092/ft2_4FGL_J1339.0-2400_daily_bin1259.fits
.....................!
real 17.48
user 17.05
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/858092/ft1_filtered_4FGL_J1339.0-2400_daily_bin1259.fits evtable="EVENTS" scfile=/scratch/kocevski/858092/ft2_4FGL_J1339.0-2400_daily_bin1259.fits sctable="SC_DATA" expcube=/scratch/kocevski/858092/ltcube_565660801_565920001_4FGL_J1339.0-2400_daily_bin1259.fits outfile=/scratch/kocevski/858092/expmap_565660801_565920001_4FGL_J1339.0-2400_daily_bin1259.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/858092/ltcube_565660801_565920001_4FGL_J1339.0-2400_daily_bin1259.fits
.....................!
real 193.07
user 187.66
sys 4.71

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/858092/ft1_filtered_4FGL_J1339.0-2400_daily_bin1259.fits scfile=/scratch/kocevski/858092/ft2_4FGL_J1339.0-2400_daily_bin1259.fits outfile=/scratch/kocevski/858092/cmap_565660801_565920001_4FGL_J1339.0-2400_daily_bin1259.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.68
user 0.40
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/858092/ft1_filtered_4FGL_J1339.0-2400_daily_bin1259.fits scfile=/scratch/kocevski/858092/ft2_4FGL_J1339.0-2400_daily_bin1259.fits outfile=/scratch/kocevski/858092/cmap_HighResolution_565660801_565920001_4FGL_J1339.0-2400_daily_bin1259.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.58
user 0.42
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/858092/ft1_filtered_4FGL_J1339.0-2400_daily_bin1259.fits evtable="EVENTS" scfile=/scratch/kocevski/858092/ft2_4FGL_J1339.0-2400_daily_bin1259.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/858092/Model_4FGL_J1339.0-2400_daily_bin1259.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/858092/ft1_filtered_4FGL_J1339.0-2400_daily_bin1259.fits.....................!
real 122.90
user 121.10
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.8534       1.0000         .10000E-03   10000.    
     2 'Prefactor '    76.645       1.0000         .10000E-03   10000.    
     3 'norm      '    1.9235       1.0000         .10000E-03   10000.    
     4 'norm      '    .10207E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    9.5462       1.0000         .10000E-03   10000.    
     6 'norm      '    2.1757       1.0000         .10000E-03   10000.    
     7 'norm      '    2.5518       1.0000         .10000E-03   10000.    
     8 'Prefactor '    58.109       1.0000         .10000E-03   10000.    
     9 'norm      '    .10139E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    25.833       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    27.207       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.5250       1.0000         .10000E-03   10000.    
    15 'norm      '    .15537E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    40.255       1.0000         .10000E-03   10000.    
    17 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    15.657       1.0000         .10000E-03   10000.    
    19 'norm      '    18.725       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .11390E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    55.740       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    21.713       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.1123       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0228       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=   7575.030     FROM MIGRAD    STATUS=CONVERGED    589 CALLS     3080 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.8534        1.4647       -.53994E-07   -.26372E-04
   2  Prefactor     76.654        86.892        .78582E-05   -.23264E-03
   3  norm          1.9229        5.1623        .13015E-05   -.33696E-03
   4  norm          .10000E-03    7.6266       -.26166E-06** at limit **
   5  Prefactor     9.5478        6.3324       -.35009E-06   -.84563E-04
   6  norm          2.1758        2.4323       -.28432E-07   -.45107E-04
   7  norm          2.5512        1.8133        .14675E-06   -.14773E-02
   8  Prefactor     58.078        24.913       -.28469E-05   -.11199E-02
   9  norm          .10000E-03    4.6290        .28864E-05** at limit **
  10  norm          25.830        10.661       -.18452E-06   -.10366E-02
  11  Prefactor     .10000E-03    4.6633       -.77551E-07** at limit **
  12  Prefactor     27.207        22.640       -.26908E-06    .70243E-04
  13  Prefactor     .10000E-03    2.8379       -.17811E-06** at limit **
  14  Prefactor     2.5246        6.4360       -.37045E-07   -.30441E-04
  15  norm          .10005E-03    3.8742        .20441E-06** at limit **
  16  Prefactor     40.253        55.142       -.23496E-05    .90750E-04
  17  norm          .10000E-03    14.398       -.70551E-06** at limit **
  18  Prefactor     15.656        31.498        .12246E-05   -.75097E-04
  19  norm          18.728        13.270        .10150E-05   -.95231E-04
  20  Prefactor     .10001E-03    3.9179       -.69177E-06** at limit **
  21  Prefactor     55.740        78.440       -.82522E-06    .35861E-04
  22  Prefactor     .10000E-03    40.689        .31631E-06** at limit **
  23  Prefactor     21.714        23.086       -.42526E-06    .59490E-04
  24  Normalizat    1.1125        .27134        .11664E-06   -.61017E-04
  25  Prefactor     1.0228        .11701       -.22493E-06   -.62138E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.85337
  Prefactor  = 76.6539
  norm       = 1.92292
  norm       = 0.0001
  Prefactor  = 9.54779
  norm       = 2.17579
  norm       = 2.55122
  Prefactor  = 58.0778
  norm       = 0.0001
  norm       = 25.8297
  Prefactor  = 0.0001
  Prefactor  = 27.2073
  Prefactor  = 0.0001
  Prefactor  = 2.52458
  norm       = 0.000100046
  Prefactor  = 40.2529
  norm       = 0.0001
  Prefactor  = 15.656
  norm       = 18.7284
  Prefactor  = 0.000100006
  Prefactor  = 55.7396
  Prefactor  = 0.0001
  Prefactor  = 21.7142
  Normalizat = 1.11252
  Prefactor  = 1.02276
 **********
 **   18 **HESSE 
 **********

 FCN=   7575.030     FROM HESSE     STATUS=OK           435 CALLS     3515 TOTAL
                     EDM=   .57E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.8534        1.4610        .90443E-04   -1.5436    
   2  Prefactor     76.654        83.204        .45867E-04   -1.3955    
   3  norm          1.9229        5.0980        .29957E-03   -1.5431    
   4  norm          .10000E-03    7.7771        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     9.5478        6.2769        .12970E-03   -1.5090    
   6  norm          2.1758        2.4231        .13896E-03   -1.5413    
   7  norm          2.5512        6.0206        .12780E-02   -1.5389    
   8  Prefactor     58.078        24.990        .52628E-04   -1.4182    
   9  norm          .10000E-03    12.742        .31653E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          25.830        10.634        .78816E-04   -1.4691    
  11  Prefactor     .10000E-03    4.6686        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     27.207        22.630        .76804E-04   -1.4664    
  13  Prefactor     .10000E-03    2.8379        .14315E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     2.5246        6.4108        .25707E-03   -1.5390    
  15  norm          .10005E-03    4.4016        .50469E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     40.253        54.913        .63177E-04   -1.4438    
  17  norm          .10000E-03    14.407        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     15.656        31.437        .10122E-03   -1.4916    
  19  norm          18.728        12.902        .92558E-04   -1.4842    
  20  Prefactor     .10001E-03    12.344        .31656E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     55.740        78.436        .53729E-04   -1.4213    
  22  Prefactor     .10000E-03    40.709        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     21.714        23.091        .85958E-04   -1.4776    
  24  Normalizat    1.1125        .31655        .40275E-03   -.89351    
  25  Prefactor     1.0228        .13923        .18294E-03   -.91975    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.67653e-09
Minuit parameter uncertainties:
  1  1.46106
  2  83.3303
  3  5.09913
  4  9.32076e-05
  5  6.27736
  6  2.42319
  7  6.02198
  8  24.9942
  9  0.000136697
  10  10.6348
  11  6.93539e-06
  12  22.6369
  13  9.14441e-06
  14  6.41251
  15  0.000902061
  16  54.9824
  17  7.33884e-05
  18  31.4698
  19  12.9041
  20  0.00055281
  21  78.5816
  22  3.92163e-05
  23  23.1004
  24  0.317097
  25  0.139281
Done.

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

Extracting fit parameters...

4FGL J1339.0-2400
   Spectrum: PowerLaw
309    Prefactor:  2.721e+01  2.264e+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.023e+00  1.393e-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.113e+00  3.171e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.00
Ra Dec: 204.756 -24.009
Photon Index (Fixed Index): 2.30 +/- 0.00
Photon Flux (Fixed Index): 4.66e-08 +/- 3.88e-08
Energy Flux (Fixed Index): 1.76e-05 +/- 1.46e-05

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

Saving results to:
/scratch/kocevski/858092/likelihoodResults_565660801_565920001_4FGL_J1339.0-2400_daily_bin1259.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) = 7574.89897666
delta logL = 0.130840603533

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7574.89648325
delta logL = 0.133334020405

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    31.514       1.0000         .10000E-03   10000.    
     2 'Index     '    1.9751       1.0000          .0000       10.000    
     3 'Normalizat'    1.1289       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0186       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=   7574.896     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      258 TOTAL
                     EDM=   .58E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     31.559        894.53        .17844E-02    .49823E-05
   2  Index         1.9765        5.6246        .25934        .81890E-05
   3  Normalizat    1.1295        .20410        .90314E-01    .28227E-04
   4  Prefactor     1.0184        .54627E-01    .42279E-01    .13876E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 31.5591
  Index      = 1.9765
  Normalizat = 1.12947
  Prefactor  = 1.0184
 **********
 **   18 **HESSE 
 **********

 FCN=   7574.896     FROM HESSE     STATUS=OK            31 CALLS      289 TOTAL
                     EDM=   .25E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     31.559        26.445        .71376E-04   -1.4584    
   2  Index         1.9765        .59843        .94525E-02   -.64939    
   3  Normalizat    1.1295        .31145        .40001E-03   -.88811    
   4  Prefactor     1.0184        .13700        .18327E-03   -.92119    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.48651e-13
Minuit parameter uncertainties:
  1  26.4544
  2  0.600704
  3  0.311955
  4  0.137042
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/858092': 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) = 7574.89647665
delta logL = 0.133340619231

Extracting fit parameters...

4FGL J1339.0-2400
   Spectrum: PowerLaw
309    Prefactor:  3.156e+01  2.645e+01  1.000e-04  1.000e+04 ( 1.000e-13)
310        Index:  1.977e+00  6.007e-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.018e+00  1.370e-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.129e+00  3.120e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.27
Ra Dec: 204.756 -24.009
Photon Index (Free Index): 1.98 +/- 0.60
Photon Flux (Free Index): 3.35e-08 +/- 3.65e-08
Energy Flux (Free Index): 2.46e-05 +/- 2.87e-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/858092/cmap_HighResolution_565660801_565920001_4FGL_J1339.0-2400_daily_bin1259.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.10e-02', comment='SUCCESS', photon_flux='4.66e-08', energy_flux2='2.46e-05', photon_flux_error='3.88e-08', dlogl='1.33e-01', energy_flux='1.76e-05', photon_flux2='3.35e-08', job_status='DONE', time_completed='2021-09-08 07:56:52.231039', photon_index_error2='0.60', photon_index2='1.98', ts='3.00', fit_tolerance='1e-08', GAL='1.02', photon_index_error='0.00', photon_flux_upper_limit='1.43e-07', energy_flux_error2='2.87e-05', EG='1.11', time_epoch_completed='1631113012.23', return_code='0', job_id='858092', GAL2='1.02', EG2='1.13', return_code2='0', energy_flux_error='1.46e-05', photon_flux_error2='3.65e-08', ts2='3.27', photon_index='2.30' WHERE bin_id='1259' AND source_name='4FGL J1339.0-2400' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 07:56:52 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0243>
Subject: Job 858092: <4FGL_J1339.0-2400_daily_bin1259> in cluster <slac> Done

Job <4FGL_J1339.0-2400_daily_bin1259> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Wed Sep  8 07:40:38 2021
Job was executed on host(s) <bullet0243>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 07:41:01 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:41:01 2021
Terminated at Wed Sep  8 07:56:52 2021
Results reported at Wed Sep  8 07:56:52 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1339.0-2400_daily_bin1259 204.756 -24.0085 565660801 565920001 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 :                                   932.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             336.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   951 sec.
    Turnaround time :                            974 sec.

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

