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


Performing analysis on: 4FGL_J1339.0-2400_daily_bin1371
RA = 204.756, Dec = -24.0085
tmin = 594691201, tmax = 594950401
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='858250', job_status='RUN', time_executed='2021-09-08 07:44:40.839328', time_epoch_executed='1631112280.84' WHERE source_name='4FGL J1339.0-2400' and cadence='daily' and bin_id='1371'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/858250

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/858250/ft1_4FGL_J1339.0-2400_daily_bin1371.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/858250/ft2_4FGL_J1339.0-2400_daily_bin1371.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/858250/ft1_4FGL_J1339.0-2400_daily_bin1371.fits outfile=/scratch/kocevski/858250/ft1_filteredMKT_4FGL_J1339.0-2400_daily_bin1371.fits ra=204.756 dec=-24.0085 rad=12.0 tmin=594691201.0 tmax=594950401.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.06
user 2.75
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/858250/ft1_filtered_4FGL_J1339.0-2400_daily_bin1371.fits" evtable="EVENTS" scfile=/scratch/kocevski/858250/ft2_4FGL_J1339.0-2400_daily_bin1371.fits sctable="SC_DATA" outfile=/scratch/kocevski/858250/ltcube_594691201_594950401_4FGL_J1339.0-2400_daily_bin1371.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/858250/ft2_4FGL_J1339.0-2400_daily_bin1371.fits
.....................!
real 14.26
user 13.87
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/858250/ft1_filtered_4FGL_J1339.0-2400_daily_bin1371.fits evtable="EVENTS" scfile=/scratch/kocevski/858250/ft2_4FGL_J1339.0-2400_daily_bin1371.fits sctable="SC_DATA" expcube=/scratch/kocevski/858250/ltcube_594691201_594950401_4FGL_J1339.0-2400_daily_bin1371.fits outfile=/scratch/kocevski/858250/expmap_594691201_594950401_4FGL_J1339.0-2400_daily_bin1371.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/858250/ltcube_594691201_594950401_4FGL_J1339.0-2400_daily_bin1371.fits
.....................!
real 191.69
user 186.49
sys 4.73

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/858250/ft1_filtered_4FGL_J1339.0-2400_daily_bin1371.fits scfile=/scratch/kocevski/858250/ft2_4FGL_J1339.0-2400_daily_bin1371.fits outfile=/scratch/kocevski/858250/cmap_594691201_594950401_4FGL_J1339.0-2400_daily_bin1371.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.63
user 0.42
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/858250/ft1_filtered_4FGL_J1339.0-2400_daily_bin1371.fits scfile=/scratch/kocevski/858250/ft2_4FGL_J1339.0-2400_daily_bin1371.fits outfile=/scratch/kocevski/858250/cmap_HighResolution_594691201_594950401_4FGL_J1339.0-2400_daily_bin1371.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.74
user 0.43
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/858250/ft1_filtered_4FGL_J1339.0-2400_daily_bin1371.fits evtable="EVENTS" scfile=/scratch/kocevski/858250/ft2_4FGL_J1339.0-2400_daily_bin1371.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/858250/Model_4FGL_J1339.0-2400_daily_bin1371.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/858250/ft1_filtered_4FGL_J1339.0-2400_daily_bin1371.fits......................!
real 61.59
user 57.81
sys 1.29

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.8312       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10162E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10190E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10074E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    6.2231       1.0000         .10000E-03   10000.    
     6 'norm      '    .60219E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10176E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .54977       1.0000         .10000E-03   10000.    
    10 'norm      '    82.902       1.0000         .10000E-03   10000.    
    11 'Prefactor '    17.184       1.0000         .10000E-03   10000.    
    12 'Prefactor '    116.30       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .11066E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .11694E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .11176E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .64065E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    72.298       1.0000         .10000E-03   10000.    
    19 'norm      '    32.580       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .27846E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .34829E-02   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .13209E-01   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.3879       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .94113       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=   2973.175     FROM MIGRAD    STATUS=CONVERGED    569 CALLS     2929 TOTAL
                     EDM=   .84E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.8315        2.6419        .28240E-06   -.63721E-04
   2  Prefactor     .10000E-03    33.415        .65175E-07** at limit **
   3  norm          .10000E-03    8.7748        .44154E-06** at limit **
   4  norm          .10000E-03    5.1144        .45049E-07** at limit **
   5  Prefactor     6.2333        10.125        .82284E-06   -.96449E-04
   6  norm          .10000E-03    3.1539        .60111E-06** at limit **
   7  norm          .10000E-03    4.2244        .19656E-06** at limit **
   8  Prefactor     .10000E-03    25.270        .13136E-06** at limit **
   9  norm          .53672        8.1257        .89968E-06   -.91683E-04
  10  norm          82.920        29.461       -.99245E-07   -.25449E-03
  11  Prefactor     17.188        36.926        .74798E-06   -.21698E-04
  12  Prefactor     116.19        93.033       -.36228E-06   -.49736E-04
  13  Prefactor     .10000E-03    16.044       -.90905E-06** at limit **
  14  Prefactor     .10000E-03    31.134       -.16988E-05** at limit **
  15  norm          .10000E-03    11.780        .71863E-06** at limit **
  16  Prefactor     .10000E-03    204.63        .12015E-05** at limit **
  17  norm          .10000E-03    26.178       -.12995E-06** at limit **
  18  Prefactor     72.320        120.01        .17424E-05   -.78089E-05
  19  norm          32.618        36.039       -.21600E-07    .14056E-04
  20  Prefactor     .10000E-03    8.3058       -.62142E-07** at limit **
  21  Prefactor     .10000E-03    118.75        .42567E-06** at limit **
  22  Prefactor     .10001E-03    7167.4       -.86606E-04** at limit **
  23  Prefactor     .10004E-03    7265.4       -.11352E-03** at limit **
  24  Normalizat    1.3876        .46815       -.24685E-05   -.10275E-03
  25  Prefactor     .94146        .20019       -.29712E-05   -.15352E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.83147
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 6.23332
  norm       = 0.000100004
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.536722
  norm       = 82.92
  Prefactor  = 17.1878
  Prefactor  = 116.188
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 72.3198
  norm       = 32.6183
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100015
  Prefactor  = 0.000100038
  Normalizat = 1.38764
  Prefactor  = 0.94146
 **********
 **   18 **HESSE 
 **********

 FCN=   2973.175     FROM HESSE     STATUS=OK           419 CALLS     3348 TOTAL
                     EDM=   .27E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.8315        2.6336        .80059E-04   -1.5371    
   2  Prefactor     .10000E-03    33.417        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    8.8407        .15786E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    5.1216        .12018E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     6.2333        10.025        .16092E-03   -1.5209    
   6  norm          .10000E-03    36.115        .18360E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    4.2359        .10949E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    25.303        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .53672        39.406        .25286E-02   -1.5561    
  10  norm          82.920        29.692        .44116E-04   -1.3884    
  11  Prefactor     17.188        36.909        .96616E-04   -1.4879    
  12  Prefactor     116.19        93.628        .18654E-03   -1.3548    
  13  Prefactor     .10000E-03    16.045        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    31.122        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    11.956        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    205.17        .21029E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    26.179        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     72.320        120.31        .47215E-04   -1.4005    
  19  norm          32.618        36.015        .70201E-04   -1.4565    
  20  Prefactor     .10000E-03    8.3222        .15334E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    118.89        .21421E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10001E-03    7144.5        .19661E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10004E-03    7230.5        .36356E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.3876        .55050        .41400E-03   -.80987    
  25  Prefactor     .94146        .23372        .20578E-03   -.94707    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.66181e-10
Minuit parameter uncertainties:
  1  2.63366
  2  1.68253e-05
  3  3.44077e-05
  4  8.12113e-06
  5  10.0273
  6  0.000783719
  7  1.14992e-05
  8  3.18495e-05
  9  9.2033
  10  29.6974
  11  36.9577
  12  93.748
  13  2.10955e-05
  14  5.03075e-05
  15  5.57914e-05
  16  0.000601936
  17  3.03616e-06
  18  120.721
  19  36.0393
  20  2.96408e-05
  21  0.000313185
  22  0.0174089
  23  0.0284654
  24  0.552867
  25  0.233972
Done.

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

Extracting fit parameters...

4FGL J1339.0-2400
   Spectrum: PowerLaw
309    Prefactor:  1.162e+02  9.375e+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:  9.415e-01  2.340e-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.388e+00  5.529e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.19
Ra Dec: 204.756 -24.009
Photon Index (Fixed Index): 2.30 +/- 0.00
Photon Flux (Fixed Index): 1.99e-07 +/- 1.61e-07
Energy Flux (Fixed Index): 7.51e-05 +/- 6.06e-05

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

Saving results to:
/scratch/kocevski/858250/likelihoodResults_594691201_594950401_4FGL_J1339.0-2400_daily_bin1371.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) = 2973.07790175
delta logL = 0.0968492321836

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2973.07406557
delta logL = 0.100685415198

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    98.094       1.0000         .10000E-03   10000.    
     2 'Index     '    2.5802       1.0000          .0000       10.000    
     3 'Normalizat'    1.3417       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95156       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=   2973.074     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      285 TOTAL
                     EDM=   .85E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     98.154        94.419        .20293E-03    .15658E-04
   2  Index         2.5807        .64942        .49681E-02    .20155E-03
   3  Normalizat    1.3422        .55346        .41969E-03   -.14899E-06
   4  Prefactor     .95120        .22995        .20477E-03   -.16656E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 98.1544
  Index      = 2.58072
  Normalizat = 1.34221
  Prefactor  = 0.951198
 **********
 **   18 **HESSE 
 **********

 FCN=   2973.074     FROM HESSE     STATUS=OK            25 CALLS      310 TOTAL
                     EDM=   .47E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     98.154        91.677        .81174E-05   -1.3723    
   2  Index         2.5807        .62992        .99362E-03   -.50506    
   3  Normalizat    1.3422        .55356        .16787E-04   -.82315    
   4  Prefactor     .95120        .23002        .81908E-05   -.94374    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.67352e-12
Minuit parameter uncertainties:
  1  91.8099
  2  0.632115
  3  0.556037
  4  0.230257
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/858250': 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) = 2973.07406284
delta logL = 0.100688140963

Extracting fit parameters...

4FGL J1339.0-2400
   Spectrum: PowerLaw
309    Prefactor:  9.815e+01  9.181e+01  1.000e-04  1.000e+04 ( 1.000e-13)
310        Index:  2.581e+00  6.321e-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:  9.512e-01  2.303e-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.342e+00  5.560e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.37
Ra Dec: 204.756 -24.009
Photon Index (Free Index): 2.58 +/- 0.63
Photon Flux (Free Index): 2.67e-07 +/- 2.41e-07
Energy Flux (Free Index): 7.12e-05 +/- 5.32e-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/858250/cmap_HighResolution_594691201_594950401_4FGL_J1339.0-2400_daily_bin1371.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.21e-02', comment='SUCCESS', photon_flux='1.99e-07', energy_flux2='7.12e-05', photon_flux_error='1.61e-07', dlogl='1.01e-01', energy_flux='7.51e-05', photon_flux2='2.67e-07', job_status='DONE', time_completed='2021-09-08 07:54:43.779339', photon_index_error2='0.63', photon_index2='2.58', ts='3.19', fit_tolerance='1e-08', GAL='0.94', photon_index_error='0.00', photon_flux_upper_limit='5.49e-07', energy_flux_error2='5.32e-05', EG='1.39', time_epoch_completed='1631112883.78', return_code='0', job_id='858250', GAL2='0.95', EG2='1.34', return_code2='0', energy_flux_error='6.06e-05', photon_flux_error2='2.41e-07', ts2='3.37', photon_index='2.30' WHERE bin_id='1371' AND source_name='4FGL J1339.0-2400' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 07:54:43 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0227>
Subject: Job 858250: <4FGL_J1339.0-2400_daily_bin1371> in cluster <slac> Done

Job <4FGL_J1339.0-2400_daily_bin1371> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Wed Sep  8 07:40:50 2021
Job was executed on host(s) <bullet0227>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 07:42:06 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:42:06 2021
Terminated at Wed Sep  8 07:54:44 2021
Results reported at Wed Sep  8 07:54:44 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1339.0-2400_daily_bin1371 204.756 -24.0085 594691201 594950401 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 :                                   548.54 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             259.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   758 sec.
    Turnaround time :                            834 sec.

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

