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


Performing analysis on: 4FGL_J1238.5-1201_daily_bin674
RA = 189.625, Dec = -12.028
tmin = 414028801, tmax = 414288001
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='859275', job_status='RUN', time_executed='2021-09-06 02:42:27.747043', time_epoch_executed='1630921347.75' WHERE source_name='4FGL J1238.5-1201' and cadence='daily' and bin_id='674'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/859275

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/859275/ft1_4FGL_J1238.5-1201_daily_bin674.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/859275/ft2_4FGL_J1238.5-1201_daily_bin674.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/859275/ft1_4FGL_J1238.5-1201_daily_bin674.fits outfile=/scratch/kocevski/859275/ft1_filteredMKT_4FGL_J1238.5-1201_daily_bin674.fits ra=189.625 dec=-12.028 rad=12.0 tmin=414028801.0 tmax=414288001.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 5.18
user 4.97
sys 0.18

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/859275/ft2_4FGL_J1238.5-1201_daily_bin674.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/859275/ft2_4FGL_J1238.5-1201_daily_bin674.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/859275/ft1_filteredMKT_4FGL_J1238.5-1201_daily_bin674.fits evtable="EVENTS" outfile="/scratch/kocevski/859275/ft1_filtered_4FGL_J1238.5-1201_daily_bin674.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.49
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/859275/ft1_filtered_4FGL_J1238.5-1201_daily_bin674.fits" evtable="EVENTS" scfile=/scratch/kocevski/859275/ft2_4FGL_J1238.5-1201_daily_bin674.fits sctable="SC_DATA" outfile=/scratch/kocevski/859275/ltcube_414028801_414288001_4FGL_J1238.5-1201_daily_bin674.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/859275/ft2_4FGL_J1238.5-1201_daily_bin674.fits
.....................!
real 13.28
user 12.91
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/859275/ft1_filtered_4FGL_J1238.5-1201_daily_bin674.fits evtable="EVENTS" scfile=/scratch/kocevski/859275/ft2_4FGL_J1238.5-1201_daily_bin674.fits sctable="SC_DATA" expcube=/scratch/kocevski/859275/ltcube_414028801_414288001_4FGL_J1238.5-1201_daily_bin674.fits outfile=/scratch/kocevski/859275/expmap_414028801_414288001_4FGL_J1238.5-1201_daily_bin674.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/859275/ltcube_414028801_414288001_4FGL_J1238.5-1201_daily_bin674.fits
.....................!
real 192.52
user 187.68
sys 4.49

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

Setting source of interest to:
4FGL J1238.5-1201 @ 189.625 -12.028

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/859275/ft1_filtered_4FGL_J1238.5-1201_daily_bin674.fits scfile=/scratch/kocevski/859275/ft2_4FGL_J1238.5-1201_daily_bin674.fits outfile=/scratch/kocevski/859275/cmap_414028801_414288001_4FGL_J1238.5-1201_daily_bin674.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.625 yref=-12.028 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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/859275/ft1_filtered_4FGL_J1238.5-1201_daily_bin674.fits scfile=/scratch/kocevski/859275/ft2_4FGL_J1238.5-1201_daily_bin674.fits outfile=/scratch/kocevski/859275/cmap_HighResolution_414028801_414288001_4FGL_J1238.5-1201_daily_bin674.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.625 yref=-12.028 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.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/859275/ft1_filtered_4FGL_J1238.5-1201_daily_bin674.fits evtable="EVENTS" scfile=/scratch/kocevski/859275/ft2_4FGL_J1238.5-1201_daily_bin674.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/859275/Model_4FGL_J1238.5-1201_daily_bin674.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/859275/ft1_filtered_4FGL_J1238.5-1201_daily_bin674.fits.....................!
real 55.78
user 54.51
sys 1.15

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/859275/ft1_filtered_4FGL_J1238.5-1201_daily_bin674.fits', '/scratch/kocevski/859275/ft2_4FGL_J1238.5-1201_daily_bin674.fits', expMap='/scratch/kocevski/859275/expmap_414028801_414288001_4FGL_J1238.5-1201_daily_bin674.fits', expCube='/scratch/kocevski/859275/ltcube_414028801_414288001_4FGL_J1238.5-1201_daily_bin674.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/859275/Model_4FGL_J1238.5-1201_daily_bin674.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1238.5-1201'

4FGL J1238.5-1201
   Spectrum: PowerLaw
326    Prefactor:  4.386e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
327        Index:  2.660e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
328        Scale:  5.228e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/859275/ft1_filtered_4FGL_J1238.5-1201_daily_bin674.fits
Spacecraft file(s): /scratch/kocevski/859275/ft2_4FGL_J1238.5-1201_daily_bin674.fits
Exposure map: /scratch/kocevski/859275/expmap_414028801_414288001_4FGL_J1238.5-1201_daily_bin674.fits
Exposure cube: /scratch/kocevski/859275/ltcube_414028801_414288001_4FGL_J1238.5-1201_daily_bin674.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/859275/Model_4FGL_J1238.5-1201_daily_bin674.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) = 6596.67026074

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    22.660       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10103E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    4.1001       1.0000         .10000E-03   10000.    
     7 'Prefactor '    8.6678       1.0000         .10000E-03   10000.    
     8 'Prefactor '    5.4215       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    20.984       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    42.916       1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    44.753       1.0000         .10000E-03   10000.    
    16 'norm      '    2.9592       1.0000         .10000E-03   10000.    
    17 'norm      '    1.0883       1.0000         .10000E-03   10000.    
    18 'norm      '    11.304       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .11581       1.0000         .10000E-03   10000.    
    23 'Prefactor '    27.305       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.1262       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .87074       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6130E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6596.655     FROM MIGRAD    STATUS=CONVERGED    129 CALLS     2439 TOTAL
                     EDM=   .55E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.0245        .38852E-06** at limit **
   2  Prefactor     .10000E-03    8.7054       -.19921E-06** at limit **
   3  Prefactor     .10000E-03    16.408        .33565E-05** at limit **
   4  Prefactor     22.654        2.2695        .17942E-06   -.10273E-02
   5  Prefactor     .10001E-03    27.417        .20013E-05** at limit **
   6  norm          4.0981        2.5553       -.90344E-07   -.51427E-02
   7  Prefactor     8.6664        1.9320       -.15497E-06    .12424E-02
   8  Prefactor     5.4211        2.5691       -.56415E-07   -.23844E-03
   9  Prefactor     .10000E-03    4.3327       -.60164E-06** at limit **
  10  Prefactor     .10002E-03    39.547       -.25803E-05** at limit **
  11  Prefactor     20.979        2.4876        .15184E-06   -.11016E-02
  12  Prefactor     .10000E-03    3.7101       -.28603E-06** at limit **
  13  Prefactor     42.909        2.2628        .82675E-07    .15474E-02
  14  norm          .10000E-03    8.2602       -.11312E-05** at limit **
  15  Prefactor     44.751        1.3940        .14204E-07    .11154E-02
  16  norm          2.9590        .45707       -.12710E-07   -.15398E-03
  17  norm          1.0779        1.3693        .19437E-06   -.61058E-04
  18  norm          11.303        6.7201       -.55594E-06    .16164E-02
  19  Prefactor     .10006E-03    27.315        .24598E-06** at limit **
  20  norm          .10000E-03    4.3035        .96569E-06** at limit **
  21  norm          .10000E-03    3.1243        .14699E-06** at limit **
  22  Prefactor     .12477E-03    7446.6        .52130E-04** at limit **
  23  Prefactor     27.326        8.1606       -.36303E-06    .41380E-02
  24  Normalizat    1.1261        .28999        .14262E-05    .24176E-04
  25  Prefactor     .87104        .15965       -.56722E-06   -.26865E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 22.6536
  Prefactor  = 0.000100012
  norm       = 4.09808
  Prefactor  = 8.66636
  Prefactor  = 5.42109
  Prefactor  = 0.0001
  Prefactor  = 0.000100024
  Prefactor  = 20.9788
  Prefactor  = 0.0001
  Prefactor  = 42.9095
  norm       = 0.0001
  Prefactor  = 44.7509
  norm       = 2.95901
  norm       = 1.07787
  norm       = 11.303
  Prefactor  = 0.000100062
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.00012477
  Prefactor  = 27.3258
  Normalizat = 1.12609
  Prefactor  = 0.871038
 **********
 **   18 **HESSE 
 **********

 FCN=   6596.655     FROM HESSE     STATUS=OK           481 CALLS     2920 TOTAL
                     EDM=   .27E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.0159        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    8.6960        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    16.584        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     22.654        20.535        .21036E-02   -1.4756    
   5  Prefactor     .10001E-03    29.050        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          4.0981        4.5954        .49774E-02   -1.5303    
   7  Prefactor     8.6664        8.2990        .34038E-02   -1.5119    
   8  Prefactor     5.4211        2.6991        .43145E-02   -1.5242    
   9  Prefactor     .10000E-03    4.3506        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10002E-03    41.639        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     20.979        16.129        .21859E-02   -1.4792    
  12  Prefactor     .10000E-03    3.7041        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     42.909        61.878        .15299E-02   -1.4397    
  14  norm          .10000E-03    8.2794        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     44.751        66.752        .14983E-02   -1.4369    
  16  norm          2.9590        .48004        .46188E-02   -1.5364    
  17  norm          1.0779        13.770        .11481E-01   -1.5500    
  18  norm          11.303        8.4009        .29789E-02   -1.5035    
  19  Prefactor     .10006E-03    33.849        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    4.3153        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    3.1246        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .12477E-03    5.6866        .95863E-01   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     27.326        13.750        .19167E-02   -1.4662    
  24  Normalizat    1.1261        .26279        .81136E-01   -.88918    
  25  Prefactor     .87104        .13902        .44631E-01   -.97161    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.68882e-06
Minuit parameter uncertainties:
  1  9.66139e-06
  2  8.58485e-06
  3  0.000269189
  4  20.5419
  5  0.00116115
  6  4.59581
  7  8.30006
  8  2.69917
  9  4.18419e-05
  10  0.00201708
  11  16.1319
  12  8.35455e-06
  13  61.9709
  14  6.92791e-05
  15  66.8642
  16  0.480044
  17  7.70695
  18  8.40182
  19  0.00288952
  20  4.92495e-05
  21  4.61066e-06
  22  0.0237387
  23  13.7517
  24  0.263092
  25  0.139077
Done.

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

Extracting fit parameters...

4FGL J1238.5-1201
   Spectrum: PowerLaw
326    Prefactor:  2.098e+01  1.613e+01  1.000e-04  1.000e+04 ( 1.000e-12)
327        Index:  2.660e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
328        Scale:  5.228e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
610    Prefactor:  8.710e-01  1.391e-01  0.000e+00  1.000e+01 ( 1.000e+00)
611        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
612        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
609   Normalization:  1.126e+00  2.631e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.19
Ra Dec: 189.625 -12.028
Photon Index (Fixed Index): 2.66 +/- 0.00
Photon Flux (Fixed Index): 1.03e-07 +/- 7.91e-08
Energy Flux (Fixed Index): 2.56e-05 +/- 1.97e-05

TS (Fixed Index): 3.19
Ra Dec: 189.625 -12.028
Photon Flux Upper Limit: 2.61e-07 ph cm-2 s-1
Energy Flux Upper Limit: 2.05e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/859275/likelihoodResults_414028801_414288001_4FGL_J1238.5-1201_daily_bin674.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) = 6596.19096589
delta logL = 0.463896251726

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6596.18774838
delta logL = 0.467113767261

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    16.985       1.0000         .10000E-03   10000.    
     2 'Index     '    3.3324       1.0000          .0000       10.000    
     3 'Normalizat'    1.0466       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89766       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6130E+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=   6596.188     FROM MIGRAD    STATUS=CONVERGED     79 CALLS      289 TOTAL
                     EDM=   .61E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     16.990        15.362        .97183E-04   -.12862E-02
   2  Index         3.3328        .77518        .64935E-02   -.36681E-03
   3  Normalizat    1.0463        .30246        .37077E-03    .11036E-02
   4  Prefactor     .89766        .16163        .21955E-03    .18122E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 16.9902
  Index      = 3.33282
  Normalizat = 1.04633
  Prefactor  = 0.897663
 **********
 **   18 **HESSE 
 **********

 FCN=   6596.188     FROM HESSE     STATUS=OK            23 CALLS      312 TOTAL
                     EDM=   .63E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     16.990        14.293        .19437E-04   -1.4883    
   2  Index         3.3328        .72019        .25974E-03   -.33995    
   3  Normalizat    1.0463        .30260        .74154E-04   -.91494    
   4  Prefactor     .89766        .16160        .43910E-04   -.96223    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.30139e-09
Minuit parameter uncertainties:
  1  14.2954
  2  0.723023
  3  0.303102
  4  0.161691
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/859275': 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) = 6596.18774652
delta logL = 0.467115624051

Extracting fit parameters...

4FGL J1238.5-1201
   Spectrum: PowerLaw
326    Prefactor:  1.699e+01  1.430e+01  1.000e-04  1.000e+04 ( 1.000e-12)
327        Index:  3.333e+00  7.230e-01  0.000e+00  1.000e+01 (-1.000e+00)
328        Scale:  5.228e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
610    Prefactor:  8.977e-01  1.617e-01  0.000e+00  1.000e+01 ( 1.000e+00)
611        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
612        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
609   Normalization:  1.046e+00  3.031e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.28
Ra Dec: 189.625 -12.028
Photon Index (Free Index): 3.33 +/- 0.72
Photon Flux (Free Index): 1.81e-07 +/- 1.21e-07
Energy Flux (Free Index): 3.16e-05 +/- 1.90e-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/859275/cmap_HighResolution_414028801_414288001_4FGL_J1238.5-1201_daily_bin674.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.05e-02', comment='SUCCESS', photon_flux='1.03e-07', energy_flux2='3.16e-05', photon_flux_error='7.91e-08', dlogl='4.67e-01', energy_flux='2.56e-05', photon_flux2='1.81e-07', job_status='DONE', time_completed='2021-09-06 02:54:31.571657', photon_index_error2='0.72', photon_index2='3.33', ts='3.19', fit_tolerance='1e-08', GAL='0.87', photon_index_error='0.00', photon_flux_upper_limit='2.61e-07', energy_flux_error2='1.90e-05', EG='1.13', time_epoch_completed='1630922071.57', return_code='0', job_id='859275', GAL2='0.90', EG2='1.05', return_code2='0', energy_flux_error='1.97e-05', photon_flux_error2='1.21e-07', ts2='4.28', photon_index='2.66' WHERE bin_id='674' AND source_name='4FGL J1238.5-1201' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 02:54:31 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0101>
Subject: Job 859275: <4FGL_J1238.5-1201_daily_bin674> in cluster <slac> Done

Job <4FGL_J1238.5-1201_daily_bin674> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Mon Sep  6 02:40:36 2021
Job was executed on host(s) <bullet0101>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 02:40:40 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:40:40 2021
Terminated at Mon Sep  6 02:54:31 2021
Results reported at Mon Sep  6 02:54:31 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1238.5-1201_daily_bin674 189.625 -12.028 414028801 414288001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1238.5-1201 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   722.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             285.86 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   832 sec.
    Turnaround time :                            835 sec.

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

