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


Performing analysis on: 4FGL_J1339.0-2400_daily_bin1345
RA = 204.756, Dec = -24.0085
tmin = 587952001, tmax = 588211201
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='858215', job_status='RUN', time_executed='2021-09-08 07:42:06.636406', time_epoch_executed='1631112126.64' WHERE source_name='4FGL J1339.0-2400' and cadence='daily' and bin_id='1345'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/858215

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/858215/ft1_4FGL_J1339.0-2400_daily_bin1345.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/858215/ft2_4FGL_J1339.0-2400_daily_bin1345.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/858215/ft1_4FGL_J1339.0-2400_daily_bin1345.fits outfile=/scratch/kocevski/858215/ft1_filteredMKT_4FGL_J1339.0-2400_daily_bin1345.fits ra=204.756 dec=-24.0085 rad=12.0 tmin=587952001.0 tmax=588211201.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.51
user 3.24
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/858215/ft1_filtered_4FGL_J1339.0-2400_daily_bin1345.fits" evtable="EVENTS" scfile=/scratch/kocevski/858215/ft2_4FGL_J1339.0-2400_daily_bin1345.fits sctable="SC_DATA" outfile=/scratch/kocevski/858215/ltcube_587952001_588211201_4FGL_J1339.0-2400_daily_bin1345.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/858215/ft2_4FGL_J1339.0-2400_daily_bin1345.fits
.....................!
real 13.20
user 12.78
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/858215/ft1_filtered_4FGL_J1339.0-2400_daily_bin1345.fits evtable="EVENTS" scfile=/scratch/kocevski/858215/ft2_4FGL_J1339.0-2400_daily_bin1345.fits sctable="SC_DATA" expcube=/scratch/kocevski/858215/ltcube_587952001_588211201_4FGL_J1339.0-2400_daily_bin1345.fits outfile=/scratch/kocevski/858215/expmap_587952001_588211201_4FGL_J1339.0-2400_daily_bin1345.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/858215/ltcube_587952001_588211201_4FGL_J1339.0-2400_daily_bin1345.fits
.....................!
real 195.37
user 188.92
sys 5.14

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/858215/ft1_filtered_4FGL_J1339.0-2400_daily_bin1345.fits scfile=/scratch/kocevski/858215/ft2_4FGL_J1339.0-2400_daily_bin1345.fits outfile=/scratch/kocevski/858215/cmap_587952001_588211201_4FGL_J1339.0-2400_daily_bin1345.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.57
user 0.38
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/858215/ft1_filtered_4FGL_J1339.0-2400_daily_bin1345.fits scfile=/scratch/kocevski/858215/ft2_4FGL_J1339.0-2400_daily_bin1345.fits outfile=/scratch/kocevski/858215/cmap_HighResolution_587952001_588211201_4FGL_J1339.0-2400_daily_bin1345.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.55
user 0.39
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.2045       1.0000         .10000E-03   10000.    
     2 'Prefactor '    79.738       1.0000         .10000E-03   10000.    
     3 'norm      '    3.8136       1.0000         .10000E-03   10000.    
     4 'norm      '    .79500       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .34509       1.0000         .10000E-03   10000.    
     6 'norm      '    1.7099       1.0000         .10000E-03   10000.    
     7 'norm      '    .25063E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .11524E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    4.4587       1.0000         .10000E-03   10000.    
    10 'norm      '    3.8350       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .25005E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    40.159       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .15962E-01   1.0000         .10000E-03   10000.    
    15 'norm      '    5.3409       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10498E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    8.7032       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10340E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    177.65       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10205E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.5056       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .80141       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=   6943.944     FROM MIGRAD    STATUS=CONVERGED    634 CALLS     3063 TOTAL
                     EDM=   .91E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.2038        2.0675        .37811E-06    .10540E-03
   2  Prefactor     79.958        132.73        .95419E-05   -.25551E-03
   3  norm          3.8218        9.8975        .11561E-05    .68617E-05
   4  norm          .75577        53.110       -.86823E-05   -.22333E-03
   5  Prefactor     .37477        11.740        .29721E-05   -.23901E-03
   6  norm          1.7102        1.9641        .34678E-06    .37993E-05
   7  norm          .10000E-03    5.4866        .37303E-06** at limit **
   8  Prefactor     .10000E-03    78.890        .16954E-05** at limit **
   9  norm          4.4615        3.9049        .31189E-06   -.77518E-04
  10  norm          3.8319        5.7406       -.24399E-05    .64453E-04
  11  Prefactor     .10000E-03    14.088        .75512E-06** at limit **
  12  Prefactor     40.160        41.158       -.46616E-05   -.32853E-03
  13  Prefactor     .10000E-03    5.6756        .26587E-06** at limit **
  14  Prefactor     .10033E-03    16.413        .32002E-05** at limit **
  15  norm          5.3411        4.9942       -.41666E-06   -.20830E-03
  16  Prefactor     .10000E-03    19.735        .14997E-06** at limit **
  17  norm          .10000E-03    12.041        .77044E-07** at limit **
  18  Prefactor     .10000E-03    15.494        .20847E-06** at limit **
  19  norm          8.7046        12.936       -.18129E-05   -.23537E-03
  20  Prefactor     .10000E-03    3.9493        .20579E-05** at limit **
  21  Prefactor     177.66        105.07       -.10866E-05   -.72886E-04
  22  Prefactor     .10000E-03    79.608        .14391E-05** at limit **
  23  Prefactor     .10000E-03    7.6846        .17835E-06** at limit **
  24  Normalizat    1.5060        .26953       -.86301E-06   -.53028E-03
  25  Prefactor     .80138        .11256       -.87652E-06   -.54476E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 4.20381
  Prefactor  = 79.9582
  norm       = 3.82183
  norm       = 0.755775
  Prefactor  = 0.374775
  norm       = 1.71024
  norm       = 0.000100004
  Prefactor  = 0.000100001
  norm       = 4.46149
  norm       = 3.83191
  Prefactor  = 0.000100002
  Prefactor  = 40.1602
  Prefactor  = 0.0001
  Prefactor  = 0.000100329
  norm       = 5.34107
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 8.70459
  Prefactor  = 0.000100001
  Prefactor  = 177.66
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.50602
  Prefactor  = 0.801384
 **********
 **   18 **HESSE 
 **********

 FCN=   6943.944     FROM HESSE     STATUS=OK           439 CALLS     3502 TOTAL
                     EDM=   .36E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.2038        2.0843        .80023E-04   -1.5298    
   2  Prefactor     79.958        177.29        .22488E-03   -1.3917    
   3  norm          3.8218        9.9081        .20669E-03   -1.5317    
   4  norm          .75577        195.84        .29369E-02   -1.5534    
   5  Prefactor     .37477        175.78        .29679E-02   -1.5586    
   6  norm          1.7102        1.9593        .12114E-03   -1.5446    
   7  norm          .10000E-03    20.318        .37544E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    80.878        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          4.4615        3.8633        .14324E-03   -1.5285    
  10  norm          3.8319        5.7601        .10304E-02   -1.5316    
  11  Prefactor     .10000E-03    72.977        .52257E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     40.160        42.214        .63253E-04   -1.4440    
  13  Prefactor     .10000E-03    5.6958        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10033E-03    18.096        .74871E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          5.3411        4.9777        .17259E-03   -1.5246    
  16  Prefactor     .10000E-03    19.739        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    12.046        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    15.505        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          8.7046        12.765        .13587E-03   -1.5118    
  20  Prefactor     .10000E-03    9.0733        .30752E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     177.66        105.08        .30281E-04   -1.3034    
  22  Prefactor     .10000E-03    79.822        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    7.6889        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.5060        .32613        .34095E-03   -.77609    
  25  Prefactor     .80138        .13485        .19131E-03   -.99677    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.60522e-09
Minuit parameter uncertainties:
  1  2.08429
  2  178.481
  3  9.91231
  4  24.4112
  5  16.2791
  6  1.95934
  7  0.000571083
  8  0.000422256
  9  3.86352
  10  5.76088
  11  0.000791297
  12  42.2458
  13  2.11827e-05
  14  0.00488271
  15  4.97807
  16  4.4863e-06
  17  7.06808e-06
  18  1.18222e-05
  19  12.7685
  20  0.000217852
  21  105.189
  22  0.000109376
  23  7.33436e-08
  24  0.326585
  25  0.134909
Done.

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

Extracting fit parameters...

4FGL J1339.0-2400
   Spectrum: PowerLaw
309    Prefactor:  4.016e+01  4.225e+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.014e-01  1.349e-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.506e+00  3.266e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.22
Ra Dec: 204.756 -24.009
Photon Index (Fixed Index): 2.30 +/- 0.00
Photon Flux (Fixed Index): 6.88e-08 +/- 7.24e-08
Energy Flux (Fixed Index): 2.60e-05 +/- 2.73e-05

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

Saving results to:
/scratch/kocevski/858215/likelihoodResults_587952001_588211201_4FGL_J1339.0-2400_daily_bin1345.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) = 6942.8471288
delta logL = 1.09730216068

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6942.81059398
delta logL = 1.13383698277

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.835       1.0000         .10000E-03   10000.    
     2 'Index     '    3.4827       1.0000          .0000       10.000    
     3 'Normalizat'    1.3710       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .83944       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=   6942.811     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      355 TOTAL
                     EDM=   .71E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.830        100.17        .11645E-03   -.34991E-03
   2  Index         3.4824        2.8196        .41950E-02   -.13730E-03
   3  Normalizat    1.3713        .33631        .35430E-03    .38605E-03
   4  Prefactor     .83941        .14380        .18727E-03    .62793E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.8302
  Index      = 3.4824
  Normalizat = 1.37129
  Prefactor  = 0.839411
 **********
 **   18 **HESSE 
 **********

 FCN=   6942.811     FROM HESSE     STATUS=OK            25 CALLS      380 TOTAL
                     EDM=   .61E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.830        21.337        .46579E-05   -1.5020    
   2  Index         3.4824        .92623        .16780E-03   -.30838    
   3  Normalizat    1.3713        .32732        .70861E-04   -.81463    
   4  Prefactor     .83941        .13590        .37454E-04   -.98292    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.14228e-10
Minuit parameter uncertainties:
  1  21.3508
  2  0.932161
  3  0.32782
  4  0.135954
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/858215': 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) = 6942.81059211
delta logL = 1.13383885285

Extracting fit parameters...

4FGL J1339.0-2400
   Spectrum: PowerLaw
309    Prefactor:  1.183e+01  2.135e+01  1.000e-04  1.000e+04 ( 1.000e-13)
310        Index:  3.482e+00  9.322e-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.394e-01  1.360e-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.371e+00  3.278e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.71
Ra Dec: 204.756 -24.009
Photon Index (Free Index): 3.48 +/- 0.93
Photon Flux (Free Index): 1.70e-07 +/- 1.05e-07
Energy Flux (Free Index): 2.85e-05 +/- 1.78e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/858215/cmap_HighResolution_587952001_588211201_4FGL_J1339.0-2400_daily_bin1345.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.59e-02', comment='SUCCESS', photon_flux='6.88e-08', energy_flux2='2.85e-05', photon_flux_error='7.24e-08', dlogl='1.13e+00', energy_flux='2.60e-05', photon_flux2='1.70e-07', job_status='DONE', time_completed='2021-09-08 07:56:57.038532', photon_index_error2='0.93', photon_index2='3.48', ts='1.22', fit_tolerance='1e-08', GAL='0.80', photon_index_error='0.00', photon_flux_upper_limit='2.07e-07', energy_flux_error2='1.78e-05', EG='1.51', time_epoch_completed='1631113017.04', return_code='0', job_id='858215', GAL2='0.84', EG2='1.37', return_code2='0', energy_flux_error='2.73e-05', photon_flux_error2='1.05e-07', ts2='3.71', photon_index='2.30' WHERE bin_id='1345' AND source_name='4FGL J1339.0-2400' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 07:56:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0279>
Subject: Job 858215: <4FGL_J1339.0-2400_daily_bin1345> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1339.0-2400_daily_bin1345 204.756 -24.0085 587952001 588211201 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 :                                   879.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             308.30 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   911 sec.
    Turnaround time :                            969 sec.

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

