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


Performing analysis on: 4FGL_J1339.0-2400_daily_bin1046
RA = 204.756, Dec = -24.0085
tmin = 510451201, tmax = 510710401
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='855324', job_status='RUN', time_executed='2021-09-08 07:32:56.480582', time_epoch_executed='1631111576.48' WHERE source_name='4FGL J1339.0-2400' and cadence='daily' and bin_id='1046'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/855324

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/855324/ft1_4FGL_J1339.0-2400_daily_bin1046.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/855324/ft2_4FGL_J1339.0-2400_daily_bin1046.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/855324/ft1_4FGL_J1339.0-2400_daily_bin1046.fits outfile=/scratch/kocevski/855324/ft1_filteredMKT_4FGL_J1339.0-2400_daily_bin1046.fits ra=204.756 dec=-24.0085 rad=12.0 tmin=510451201.0 tmax=510710401.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 4.49
user 3.85
sys 0.26

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/855324/ft2_4FGL_J1339.0-2400_daily_bin1046.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/855324/ft1_filteredMKT_4FGL_J1339.0-2400_daily_bin1046.fits evtable="EVENTS" outfile="/scratch/kocevski/855324/ft1_filtered_4FGL_J1339.0-2400_daily_bin1046.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.52
user 0.35
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/855324/ft1_filtered_4FGL_J1339.0-2400_daily_bin1046.fits" evtable="EVENTS" scfile=/scratch/kocevski/855324/ft2_4FGL_J1339.0-2400_daily_bin1046.fits sctable="SC_DATA" outfile=/scratch/kocevski/855324/ltcube_510451201_510710401_4FGL_J1339.0-2400_daily_bin1046.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/855324/ft2_4FGL_J1339.0-2400_daily_bin1046.fits
.....................!
real 19.40
user 18.97
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/855324/ft1_filtered_4FGL_J1339.0-2400_daily_bin1046.fits evtable="EVENTS" scfile=/scratch/kocevski/855324/ft2_4FGL_J1339.0-2400_daily_bin1046.fits sctable="SC_DATA" expcube=/scratch/kocevski/855324/ltcube_510451201_510710401_4FGL_J1339.0-2400_daily_bin1046.fits outfile=/scratch/kocevski/855324/expmap_510451201_510710401_4FGL_J1339.0-2400_daily_bin1046.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/855324/ltcube_510451201_510710401_4FGL_J1339.0-2400_daily_bin1046.fits
.....................!
real 197.57
user 191.78
sys 5.18

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/855324/ft1_filtered_4FGL_J1339.0-2400_daily_bin1046.fits scfile=/scratch/kocevski/855324/ft2_4FGL_J1339.0-2400_daily_bin1046.fits outfile=/scratch/kocevski/855324/cmap_510451201_510710401_4FGL_J1339.0-2400_daily_bin1046.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.58
user 0.40
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/855324/ft1_filtered_4FGL_J1339.0-2400_daily_bin1046.fits scfile=/scratch/kocevski/855324/ft2_4FGL_J1339.0-2400_daily_bin1046.fits outfile=/scratch/kocevski/855324/cmap_HighResolution_510451201_510710401_4FGL_J1339.0-2400_daily_bin1046.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.40
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/855324/ft1_filtered_4FGL_J1339.0-2400_daily_bin1046.fits evtable="EVENTS" scfile=/scratch/kocevski/855324/ft2_4FGL_J1339.0-2400_daily_bin1046.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/855324/Model_4FGL_J1339.0-2400_daily_bin1046.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/855324/ft1_filtered_4FGL_J1339.0-2400_daily_bin1046.fits.....................!
real 99.40
user 97.87
sys 1.25

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .15919       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    3.7752       1.0000         .10000E-03   10000.    
     4 'norm      '    .14565E-02   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .19347E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    3.4912       1.0000         .10000E-03   10000.    
     7 'norm      '    25.410       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    7.8898       1.0000         .10000E-03   10000.    
    10 'norm      '    13.755       1.0000         .10000E-03   10000.    
    11 'Prefactor '    14.032       1.0000         .10000E-03   10000.    
    12 'Prefactor '    28.074       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10715E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .17655E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    53.928       1.0000         .10000E-03   10000.    
    17 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .11176E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    46.718       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    21.477       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.3673       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .78382       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=   5998.104     FROM MIGRAD    STATUS=CONVERGED    581 CALLS     2920 TOTAL
                     EDM=   .83E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .15643        1.0390       -.22142E-06   -.32151E-03
   2  Prefactor     .10000E-03    39.243        .52779E-05** at limit **
   3  norm          3.7718        10.063        .46352E-05    .49000E-03
   4  norm          .10010E-03    4.1699       -.51258E-06** at limit **
   5  Prefactor     .10009E-03    11.604        .47642E-05** at limit **
   6  norm          3.4908        2.4628        .61380E-08   -.95304E-04
   7  norm          25.409        9.4582       -.38416E-08    .32663E-05
   8  Prefactor     .10000E-03    21.136        .25582E-07** at limit **
   9  norm          7.8896        5.2321        .30526E-06    .16291E-03
  10  norm          13.755        10.992        .12040E-06    .92368E-04
  11  Prefactor     14.040        16.139       -.32387E-06   -.34283E-04
  12  Prefactor     28.079        37.729       -.13157E-05   -.17384E-04
  13  Prefactor     .10000E-03    13.700       -.37141E-06** at limit **
  14  Prefactor     .10000E-03    9.4220        .15789E-05** at limit **
  15  norm          .10000E-03    10.149       -.12531E-05** at limit **
  16  Prefactor     53.926        67.981        .60728E-06    .13272E-04
  17  norm          .10000E-03    24.900       -.22886E-05** at limit **
  18  Prefactor     .10000E-03    33.811       -.14424E-05** at limit **
  19  norm          .10000E-03    6.9686       -.11694E-06** at limit **
  20  Prefactor     .10004E-03    2.7945       -.13135E-05** at limit **
  21  Prefactor     46.719        52.345       -.95631E-07    .43297E-05
  22  Prefactor     .10000E-03    17.992        .21293E-05** at limit **
  23  Prefactor     21.477        20.739        .10977E-06    .91111E-05
  24  Normalizat    1.3677        .27492       -.66658E-06    .26664E-04
  25  Prefactor     .78372        .11302        .30706E-06    .46293E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.156427
  Prefactor  = 0.000100001
  norm       = 3.77185
  norm       = 0.000100096
  Prefactor  = 0.000100094
  norm       = 3.49076
  norm       = 25.4087
  Prefactor  = 0.0001
  norm       = 7.88963
  norm       = 13.7548
  Prefactor  = 14.0405
  Prefactor  = 28.079
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 53.9262
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100038
  Prefactor  = 46.7189
  Prefactor  = 0.0001
  Prefactor  = 21.4769
  Normalizat = 1.36766
  Prefactor  = 0.783716
 **********
 **   18 **HESSE 
 **********

 FCN=   5998.104     FROM HESSE     STATUS=OK           429 CALLS     3349 TOTAL
                     EDM=   .88E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .15643        5.2250        .14817E-02   -1.5629    
   2  Prefactor     .10000E-03    39.349        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          3.7718        10.750        .10389E-02   -1.5320    
   4  norm          .10010E-03    32.749        .27708E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10009E-03    28.522        .33894E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          3.4908        2.4593        .99086E-04   -1.5334    
   7  norm          25.409        9.4568        .79469E-04   -1.4699    
   8  Prefactor     .10000E-03    21.204        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          7.8896        5.2338        .13132E-03   -1.5146    
  10  norm          13.755        10.991        .10800E-03   -1.4966    
  11  Prefactor     14.040        16.142        .10693E-03   -1.4958    
  12  Prefactor     28.079        37.731        .75612E-04   -1.4648    
  13  Prefactor     .10000E-03    13.770        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    9.5233        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    10.519        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     53.926        67.994        .54619E-04   -1.4238    
  17  norm          .10000E-03    24.984        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    33.852        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    6.9900        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10004E-03    19.561        .22480E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     46.719        52.343        .58662E-04   -1.4340    
  22  Prefactor     .10000E-03    18.012        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     21.477        20.739        .86428E-04   -1.4781    
  24  Normalizat    1.3677        .32250        .34157E-03   -.81569    
  25  Prefactor     .78372        .13429        .18550E-03   -1.0033    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.79583e-09
Minuit parameter uncertainties:
  1  1.80772
  2  0.000381474
  3  10.7557
  4  0.00354307
  5  0.00328135
  6  2.45935
  7  9.4574
  8  9.72379e-05
  9  5.23408
  10  10.993
  11  16.1468
  12  37.7629
  13  5.7866e-05
  14  0.000101968
  15  4.97184e-07
  16  68.0924
  17  0.000116265
  18  0.000104506
  19  8.43811e-07
  20  0.00173454
  21  52.3949
  22  0.000113274
  23  20.7462
  24  0.322975
  25  0.134345
Done.

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

Extracting fit parameters...

4FGL J1339.0-2400
   Spectrum: PowerLaw
309    Prefactor:  2.808e+01  3.776e+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:  7.837e-01  1.343e-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.368e+00  3.230e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/855324/likelihoodResults_510451201_510710401_4FGL_J1339.0-2400_daily_bin1046.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) = 5997.72974142
delta logL = 0.374264639214

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5997.68782577
delta logL = 0.416180289645

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.4426       1.0000         .10000E-03   10000.    
     2 'Index     '    3.3513       1.0000          .0000       10.000    
     3 'Normalizat'    1.2925       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .80545       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=   5997.688     FROM MIGRAD    STATUS=CONVERGED     60 CALLS      262 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.3568        206.05        .32604E-02   -.42859E-03
   2  Index         3.3549        3.6216        .11500       -.90868E-05
   3  Normalizat    1.2926        .97264E-01    .79008E-01   -.70206E-04
   4  Prefactor     .80541        .39745E-01    .43788E-01   -.59842E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.35677
  Index      = 3.35488
  Normalizat = 1.29263
  Prefactor  = 0.80541
 **********
 **   18 **HESSE 
 **********

 FCN=   5997.688     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      295 TOTAL
                     EDM=   .72E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.3568        338.18        .13042E-03   -1.5096    
   2  Index         3.3549        6.6543        .59944E-02   -.33527    
   3  Normalizat    1.2926        .33455        .34972E-03   -.83787    
   4  Prefactor     .80541        .14747        .18319E-03   -.99529    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.21632e-10
Minuit parameter uncertainties:
  1  113.202
  2  6.47647
  3  0.335112
  4  0.14754
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/855324': 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) = 5997.68781799
delta logL = 0.416188067282

Extracting fit parameters...

4FGL J1339.0-2400
   Spectrum: PowerLaw
309    Prefactor:  9.357e+00  1.132e+02  1.000e-04  1.000e+04 ( 1.000e-13)
310        Index:  3.355e+00  6.476e+00  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.054e-01  1.475e-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.293e+00  3.351e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.56
Ra Dec: 204.756 -24.009
Photon Index (Free Index): 3.35 +/- 6.48
Photon Flux (Free Index): 1.05e-07 +/- 1.02e-07
Energy Flux (Free Index): 1.83e-05 +/- 3.39e-05

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/855324/cmap_HighResolution_510451201_510710401_4FGL_J1339.0-2400_daily_bin1046.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.40e-02', comment='SUCCESS', energy_flux2='1.83e-05', dlogl='4.16e-01', photon_flux2='1.05e-07', job_status='DONE', time_completed='2021-09-08 07:46:21.226702', photon_index_error2='6.48', photon_index2='3.35', ts='0.66', fit_tolerance='1e-08', GAL='0.78', photon_index_error='0.00', photon_flux_upper_limit='1.82e-07', energy_flux_error2='3.39e-05', EG='1.37', time_epoch_completed='1631112381.23', return_code='0', job_id='855324', GAL2='0.81', EG2='1.29', return_code2='102', photon_flux_error2='1.02e-07', ts2='1.56', photon_index='2.30' WHERE bin_id='1046' AND source_name='4FGL J1339.0-2400' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 07:46:21 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0075>
Subject: Job 855324: <4FGL_J1339.0-2400_daily_bin1046> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1339.0-2400_daily_bin1046 204.756 -24.0085 510451201 510710401 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 :                                   799.57 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             294.93 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   887 sec.
    Turnaround time :                            943 sec.

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

