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


Performing analysis on: 4FGL_J1238.3-1959_daily_bin1249
RA = 189.594, Dec = -19.9945
tmin = 563068801, tmax = 563328001
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='853135', job_status='RUN', time_executed='2021-09-06 02:25:30.184267', time_epoch_executed='1630920330.18' WHERE source_name='4FGL J1238.3-1959' and cadence='daily' and bin_id='1249'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/853135

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/853135/ft1_4FGL_J1238.3-1959_daily_bin1249.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/853135/ft2_4FGL_J1238.3-1959_daily_bin1249.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/853135/ft1_4FGL_J1238.3-1959_daily_bin1249.fits outfile=/scratch/kocevski/853135/ft1_filteredMKT_4FGL_J1238.3-1959_daily_bin1249.fits ra=189.594 dec=-19.9945 rad=12.0 tmin=563068801.0 tmax=563328001.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.50
user 3.23
sys 0.24

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/853135/ft2_4FGL_J1238.3-1959_daily_bin1249.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/853135/ft2_4FGL_J1238.3-1959_daily_bin1249.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/853135/ft1_filteredMKT_4FGL_J1238.3-1959_daily_bin1249.fits evtable="EVENTS" outfile="/scratch/kocevski/853135/ft1_filtered_4FGL_J1238.3-1959_daily_bin1249.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.36
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/853135/ft1_filtered_4FGL_J1238.3-1959_daily_bin1249.fits" evtable="EVENTS" scfile=/scratch/kocevski/853135/ft2_4FGL_J1238.3-1959_daily_bin1249.fits sctable="SC_DATA" outfile=/scratch/kocevski/853135/ltcube_563068801_563328001_4FGL_J1238.3-1959_daily_bin1249.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/853135/ft2_4FGL_J1238.3-1959_daily_bin1249.fits
.....................!
real 17.81
user 17.40
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/853135/ft1_filtered_4FGL_J1238.3-1959_daily_bin1249.fits evtable="EVENTS" scfile=/scratch/kocevski/853135/ft2_4FGL_J1238.3-1959_daily_bin1249.fits sctable="SC_DATA" expcube=/scratch/kocevski/853135/ltcube_563068801_563328001_4FGL_J1238.3-1959_daily_bin1249.fits outfile=/scratch/kocevski/853135/expmap_563068801_563328001_4FGL_J1238.3-1959_daily_bin1249.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/853135/ltcube_563068801_563328001_4FGL_J1238.3-1959_daily_bin1249.fits
.....................!
real 191.86
user 185.96
sys 5.20

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
Added 185 point sources and 0 extended sources

Setting source of interest to:
4FGL J1238.3-1959 @ 189.594 -19.9945

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/853135/ft1_filtered_4FGL_J1238.3-1959_daily_bin1249.fits scfile=/scratch/kocevski/853135/ft2_4FGL_J1238.3-1959_daily_bin1249.fits outfile=/scratch/kocevski/853135/cmap_563068801_563328001_4FGL_J1238.3-1959_daily_bin1249.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=189.594 yref=-19.9945 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.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/853135/ft1_filtered_4FGL_J1238.3-1959_daily_bin1249.fits scfile=/scratch/kocevski/853135/ft2_4FGL_J1238.3-1959_daily_bin1249.fits outfile=/scratch/kocevski/853135/cmap_HighResolution_563068801_563328001_4FGL_J1238.3-1959_daily_bin1249.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=189.594 yref=-19.9945 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.40
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/853135/ft1_filtered_4FGL_J1238.3-1959_daily_bin1249.fits evtable="EVENTS" scfile=/scratch/kocevski/853135/ft2_4FGL_J1238.3-1959_daily_bin1249.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/853135/Model_4FGL_J1238.3-1959_daily_bin1249.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 EG_v02
adding source GAL_V02
Working on...
/scratch/kocevski/853135/ft1_filtered_4FGL_J1238.3-1959_daily_bin1249.fits.....................!
real 45.10
user 43.17
sys 1.20

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/853135/ft1_filtered_4FGL_J1238.3-1959_daily_bin1249.fits', '/scratch/kocevski/853135/ft2_4FGL_J1238.3-1959_daily_bin1249.fits', expMap='/scratch/kocevski/853135/expmap_563068801_563328001_4FGL_J1238.3-1959_daily_bin1249.fits', expCube='/scratch/kocevski/853135/ltcube_563068801_563328001_4FGL_J1238.3-1959_daily_bin1249.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/853135/Model_4FGL_J1238.3-1959_daily_bin1249.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1238.3-1959'

4FGL J1238.3-1959
   Spectrum: PowerLaw
307    Prefactor:  3.073e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
308        Index:  2.151e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
309        Scale:  1.503e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/853135/ft1_filtered_4FGL_J1238.3-1959_daily_bin1249.fits
Spacecraft file(s): /scratch/kocevski/853135/ft2_4FGL_J1238.3-1959_daily_bin1249.fits
Exposure map: /scratch/kocevski/853135/expmap_563068801_563328001_4FGL_J1238.3-1959_daily_bin1249.fits
Exposure cube: /scratch/kocevski/853135/ltcube_563068801_563328001_4FGL_J1238.3-1959_daily_bin1249.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/853135/Model_4FGL_J1238.3-1959_daily_bin1249.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) = 4569.34132415

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.0423       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    16.427       1.0000         .10000E-03   10000.    
    14 'norm      '    3.0701       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .89380       1.0000         .10000E-03   10000.    
    19 'norm      '    3.1000       1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.3851       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .87372       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6030E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4569.235     FROM MIGRAD    STATUS=CONVERGED    433 CALLS     1841 TOTAL
                     EDM=   .96E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    25.039        .19507E-05** at limit **
   2  Prefactor     .10000E-03    6.2214        .15918E-06** at limit **
   3  norm          .10000E-03    2.0396       -.22264E-07** at limit **
   4  Prefactor     .10000E-03    3.4574       -.69501E-07** at limit **
   5  Prefactor     .10000E-03    17.703       -.94380E-05** at limit **
   6  Prefactor     .10000E-03    27.316        .12817E-04** at limit **
   7  Prefactor     .10000E-03    13.499        .15046E-04** at limit **
   8  Prefactor     .10000E-03    50.984       -.32540E-04** at limit **
   9  Prefactor     .10000E-03    22.086       -.10416E-04** at limit **
  10  Prefactor     .10000E-03    1.4893        .32300E-08** at limit **
  11  Prefactor     4.0422        2.1643        .16102E-07    .93552E-04
  12  Prefactor     .10000E-03    11.300       -.57430E-05** at limit **
  13  Prefactor     16.423        15.369       -.24259E-06   -.14473E-04
  14  norm          3.0699        2.0684       -.51019E-07   -.20458E-03
  15  Prefactor     .10000E-03    40.257        .25842E-04** at limit **
  16  norm          .10000E-03    16.353       -.33706E-05** at limit **
  17  norm          .10000E-03    3.3895        .10954E-06** at limit **
  18  Prefactor     .89395        5.4241       -.18166E-05   -.91401E-03
  19  norm          3.0998        3.4751        .74197E-06   -.16772E-04
  20  Normalizat    1.3855        .28767        .51471E-07    .69730E-04
  21  Prefactor     .87358        .13967        .13350E-06    .10389E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.04223
  Prefactor  = 0.0001
  Prefactor  = 16.4232
  norm       = 3.06995
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.893955
  norm       = 3.09979
  Normalizat = 1.38546
  Prefactor  = 0.873581
 **********
 **   18 **HESSE 
 **********

 FCN=   4569.235     FROM HESSE     STATUS=OK           307 CALLS     2148 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    25.069        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    6.2438        .16465E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    2.0600        .94247E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    3.4989        .12270E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    17.686        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    27.336        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    13.460        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    50.818        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    22.114        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    1.4903        .80558E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     4.0422        2.1655        .70804E-04   -1.5306    
  12  Prefactor     .10000E-03    11.320        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     16.423        15.410        .98818E-04   -1.4897    
  14  norm          3.0699        2.0616        .74822E-04   -1.5358    
  15  Prefactor     .10000E-03    40.134        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    16.565        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    3.3938        .12143E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .89395        5.4182        .30878E-03   -1.5519    
  19  norm          3.0998        3.4724        .12988E-03   -1.5356    
  20  Normalizat    1.3855        .34045        .32387E-03   -.81050    
  21  Prefactor     .87358        .16556        .19325E-03   -.97070    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.85125e-09
Minuit parameter uncertainties:
  1  3.08328e-06
  2  1.51968e-07
  3  9.97568e-08
  4  2.36549e-06
  5  7.05772e-07
  6  1.49185e-05
  7  1.15393e-07
  8  1.1611e-05
  9  8.62253e-06
  10  6.64804e-08
  11  2.16553
  12  5.79587e-06
  13  15.4137
  14  2.06168
  15  1.43175e-05
  16  1.61254e-05
  17  1.00018e-05
  18  4.40198
  19  3.47265
  20  0.341006
  21  0.165654
Done.

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

Extracting fit parameters...

4FGL J1238.3-1959
   Spectrum: PowerLaw
307    Prefactor:  1.000e-04  5.796e-06  1.000e-04  1.000e+04 ( 1.000e-13)
308        Index:  2.151e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
309        Scale:  1.503e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
600    Prefactor:  8.736e-01  1.657e-01  0.000e+00  1.000e+01 ( 1.000e+00)
601        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
602        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
599   Normalization:  1.385e+00  3.410e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 189.594 -19.994
Photon Flux Upper Limit: 1.20e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.08e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/853135/likelihoodResults_563068801_563328001_4FGL_J1238.3-1959_daily_bin1249.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4569.23557479
delta logL = -0.000420855491029

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4569.23515403
delta logL = -9.5536961453e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10170E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1472       1.0000          .0000       10.000    
     3 'Normalizat'    1.3854       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87362       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6030E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4569.235     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      207 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    17.011        .90712E-02** at limit **
   2  Index         2.1433        7.8728        .50000        .27526E-05
   3  Normalizat    1.3855        .92733E-02    .73192E-01    .12532E-04
   4  Prefactor     .87358        .45388E-02    .44668E-01    .15084E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.14335
  Normalizat = 1.38546
  Prefactor  = 0.873581
 **********
 **   18 **HESSE 
 **********

 FCN=   4569.235     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      240 TOTAL
                     EDM=   .10E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    135.77        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1433        6.0223        .50000       -.60813    
   3  Normalizat    1.3855        .26459E-01    .32387E-03   -.81050    
   4  Prefactor     .87358        .12961E-01    .19325E-03   -.97070    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.00937e-07
Minuit parameter uncertainties:
  1  2.86869e-06
  2  473.833
  3  0.0264589
  4  0.0129614
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/853135': 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) = 4569.23515392
delta logL = 5.51881385036e-09

Extracting fit parameters...

4FGL J1238.3-1959
   Spectrum: PowerLaw
307    Prefactor:  1.000e-04  2.869e-06  1.000e-04  1.000e+04 ( 1.000e-13)
308        Index:  2.143e+00  4.738e+02  0.000e+00  1.000e+01 (-1.000e+00)
309        Scale:  1.503e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
600    Prefactor:  8.736e-01  1.296e-02  0.000e+00  1.000e+01 ( 1.000e+00)
601        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
602        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
599   Normalization:  1.385e+00  2.646e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 189.594 -19.994

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/853135/cmap_HighResolution_563068801_563328001_4FGL_J1238.3-1959_daily_bin1249.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.08e-03', job_status='DONE', photon_flux_upper_limit='1.20e-07', time_completed='2021-09-06 02:34:29.177988', job_id='853135', GAL2='0.87', fit_tolerance='1e-08', EG2='1.39', EG='1.39', time_epoch_completed='1630920869.18', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.87', dlogl='5.52e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.15' WHERE bin_id='1249' AND source_name='4FGL J1238.3-1959' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 02:34:29 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0270>
Subject: Job 853135: <4FGL_J1238.3-1959_daily_bin1249> in cluster <slac> Done

Job <4FGL_J1238.3-1959_daily_bin1249> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Mon Sep  6 02:20:53 2021
Job was executed on host(s) <bullet0270>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 02:22:46 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Sep  6 02:22:46 2021
Terminated at Mon Sep  6 02:34:29 2021
Results reported at Mon Sep  6 02:34:29 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1238.3-1959_daily_bin1249 189.594 -19.9945 563068801 563328001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1238.3-1959 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   536.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             247.22 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   703 sec.
    Turnaround time :                            816 sec.

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

