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


Performing analysis on: 4FGL_J1238.5-1201_daily_bin1418
RA = 189.625, Dec = -12.028
tmin = 606873601, tmax = 607132801
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='862822', job_status='RUN', time_executed='2021-09-06 02:55:28.158629', time_epoch_executed='1630922128.16' WHERE source_name='4FGL J1238.5-1201' and cadence='daily' and bin_id='1418'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/862822

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/862822/ft1_4FGL_J1238.5-1201_daily_bin1418.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/862822/ft2_4FGL_J1238.5-1201_daily_bin1418.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/862822/ft1_4FGL_J1238.5-1201_daily_bin1418.fits outfile=/scratch/kocevski/862822/ft1_filteredMKT_4FGL_J1238.5-1201_daily_bin1418.fits ra=189.625 dec=-12.028 rad=12.0 tmin=606873601.0 tmax=607132801.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.37
user 5.09
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/862822/ft2_4FGL_J1238.5-1201_daily_bin1418.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/862822/ft1_filteredMKT_4FGL_J1238.5-1201_daily_bin1418.fits evtable="EVENTS" outfile="/scratch/kocevski/862822/ft1_filtered_4FGL_J1238.5-1201_daily_bin1418.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.33
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/862822/ft1_filtered_4FGL_J1238.5-1201_daily_bin1418.fits" evtable="EVENTS" scfile=/scratch/kocevski/862822/ft2_4FGL_J1238.5-1201_daily_bin1418.fits sctable="SC_DATA" outfile=/scratch/kocevski/862822/ltcube_606873601_607132801_4FGL_J1238.5-1201_daily_bin1418.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/862822/ft2_4FGL_J1238.5-1201_daily_bin1418.fits
.....................!
real 13.78
user 13.41
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/862822/ft1_filtered_4FGL_J1238.5-1201_daily_bin1418.fits evtable="EVENTS" scfile=/scratch/kocevski/862822/ft2_4FGL_J1238.5-1201_daily_bin1418.fits sctable="SC_DATA" expcube=/scratch/kocevski/862822/ltcube_606873601_607132801_4FGL_J1238.5-1201_daily_bin1418.fits outfile=/scratch/kocevski/862822/expmap_606873601_607132801_4FGL_J1238.5-1201_daily_bin1418.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/862822/ltcube_606873601_607132801_4FGL_J1238.5-1201_daily_bin1418.fits
.....................!
real 191.40
user 186.80
sys 4.02

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/862822/ft1_filtered_4FGL_J1238.5-1201_daily_bin1418.fits scfile=/scratch/kocevski/862822/ft2_4FGL_J1238.5-1201_daily_bin1418.fits outfile=/scratch/kocevski/862822/cmap_606873601_607132801_4FGL_J1238.5-1201_daily_bin1418.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.57
user 0.40
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/862822/ft1_filtered_4FGL_J1238.5-1201_daily_bin1418.fits scfile=/scratch/kocevski/862822/ft2_4FGL_J1238.5-1201_daily_bin1418.fits outfile=/scratch/kocevski/862822/cmap_HighResolution_606873601_607132801_4FGL_J1238.5-1201_daily_bin1418.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.57
user 0.41
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/862822/ft1_filtered_4FGL_J1238.5-1201_daily_bin1418.fits evtable="EVENTS" scfile=/scratch/kocevski/862822/ft2_4FGL_J1238.5-1201_daily_bin1418.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/862822/Model_4FGL_J1238.5-1201_daily_bin1418.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/862822/ft1_filtered_4FGL_J1238.5-1201_daily_bin1418.fits.....................!
real 45.97
user 44.44
sys 1.19

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/862822/ft1_filtered_4FGL_J1238.5-1201_daily_bin1418.fits', '/scratch/kocevski/862822/ft2_4FGL_J1238.5-1201_daily_bin1418.fits', expMap='/scratch/kocevski/862822/expmap_606873601_607132801_4FGL_J1238.5-1201_daily_bin1418.fits', expCube='/scratch/kocevski/862822/ltcube_606873601_607132801_4FGL_J1238.5-1201_daily_bin1418.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/862822/Model_4FGL_J1238.5-1201_daily_bin1418.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/862822/ft1_filtered_4FGL_J1238.5-1201_daily_bin1418.fits
Spacecraft file(s): /scratch/kocevski/862822/ft2_4FGL_J1238.5-1201_daily_bin1418.fits
Exposure map: /scratch/kocevski/862822/expmap_606873601_607132801_4FGL_J1238.5-1201_daily_bin1418.fits
Exposure cube: /scratch/kocevski/862822/ltcube_606873601_607132801_4FGL_J1238.5-1201_daily_bin1418.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/862822/Model_4FGL_J1238.5-1201_daily_bin1418.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) = 4934.72205184

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    25.965       1.0000         .10000E-03   10000.    
     2 'Prefactor '    20.124       1.0000         .10000E-03   10000.    
     3 'Prefactor '    24.733       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    3.5600       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    10.337       1.0000         .10000E-03   10000.    
     9 'Prefactor '    8.9820       1.0000         .10000E-03   10000.    
    10 'Prefactor '    19.116       1.0000         .10000E-03   10000.    
    11 'Prefactor '    22.548       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .12293E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    2.2970       1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    6.6014       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10058E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    25.933       1.0000         .10000E-03   10000.    
    21 'norm      '    10.667       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.3152       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .72026       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.

 FCN=   4934.712     FROM MIGRAD    STATUS=CONVERGED    575 CALLS     2857 TOTAL
                     EDM=   .67E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     25.967        9.7062       -.23156E-06    .48427E-04
   2  Prefactor     20.126        20.231       -.15887E-06    .78161E-05
   3  Prefactor     24.739        40.467        .47585E-05   -.44172E-04
   4  Prefactor     .10000E-03    13.272       -.58472E-05** at limit **
   5  Prefactor     .10000E-03    13.937        .60800E-05** at limit **
   6  norm          3.5602        3.3841       -.49450E-07   -.17255E-03
   7  Prefactor     .10000E-03    3.2870       -.48348E-07** at limit **
   8  Prefactor     10.338        3.5450        .69792E-08    .42410E-04
   9  Prefactor     8.9833        10.169        .69195E-07   -.59576E-04
  10  Prefactor     19.111        18.350        .84016E-06   -.37316E-04
  11  Prefactor     22.550        16.709       -.12474E-06   -.56124E-05
  12  Prefactor     .10000E-03    2.7082        .89978E-08** at limit **
  13  Prefactor     .10000E-03    19.618       -.92060E-06** at limit **
  14  norm          .10000E-03    9.3325        .50907E-06** at limit **
  15  Prefactor     .10000E-03    137.18       -.57049E-07** at limit **
  16  norm          2.2971        .41486        .31087E-08    .12758E-04
  17  norm          .10000E-03    5.6569       -.59458E-07** at limit **
  18  norm          6.5923        6.1398       -.91803E-06   -.13398E-02
  19  Prefactor     .10000E-03    48.771        .91824E-06** at limit **
  20  norm          25.933        16.113       -.83783E-07    .11750E-05
  21  norm          10.667        11.231        .73187E-07    .39659E-05
  22  Prefactor     .10000E-03    7.1569       -.16418E-06** at limit **
  23  Prefactor     .10000E-03    6.4537        .10165E-06** at limit **
  24  Normalizat    1.3152        .28445        .13279E-06    .14635E-04
  25  Prefactor     .72018        .15666       -.14969E-06    .18808E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 25.9669
  Prefactor  = 20.1256
  Prefactor  = 24.7388
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.56023
  Prefactor  = 0.0001
  Prefactor  = 10.3376
  Prefactor  = 8.98328
  Prefactor  = 19.1114
  Prefactor  = 22.5499
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 2.2971
  norm       = 0.0001
  norm       = 6.59228
  Prefactor  = 0.0001
  norm       = 25.9327
  norm       = 10.6673
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.31522
  Prefactor  = 0.720182
 **********
 **   18 **HESSE 
 **********

 FCN=   4934.712     FROM HESSE     STATUS=OK           427 CALLS     3284 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     25.967        9.7130        .78616E-04   -1.4688    
   2  Prefactor     20.126        20.232        .89283E-04   -1.4810    
   3  Prefactor     24.739        40.054        .80548E-04   -1.4713    
   4  Prefactor     .10000E-03    12.849        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    13.371        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          3.5602        3.3811        .12223E-03   -1.5331    
   7  Prefactor     .10000E-03    3.3017        .12433E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     10.338        3.5462        .74868E-04   -1.5065    
   9  Prefactor     8.9833        10.166        .13374E-03   -1.5108    
  10  Prefactor     19.111        18.340        .91608E-04   -1.4833    
  11  Prefactor     22.550        16.787        .84353E-04   -1.4758    
  12  Prefactor     .10000E-03    2.7158        .11289E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    19.611        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    9.3327        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    137.52        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          2.2971        .41825        .18169E-04   -1.5405    
  17  norm          .10000E-03    5.6819        .16315E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          6.5923        6.7372        .78093E-03   -1.5194    
  19  Prefactor     .10000E-03    48.790        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          25.933        16.131        .78665E-04   -1.4689    
  21  norm          10.667        11.231        .12267E-03   -1.5055    
  22  Prefactor     .10000E-03    7.2245        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    6.4767        .17427E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.3152        .33539        .32139E-03   -.83113    
  25  Prefactor     .72018        .18372        .23772E-03   -1.0274    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.34333e-09
Minuit parameter uncertainties:
  1  9.7136
  2  20.2391
  3  40.098
  4  0.000143292
  5  0.000160328
  6  3.38132
  7  9.17468e-07
  8  3.54623
  9  10.1675
  10  18.3458
  11  16.7902
  12  2.00977e-07
  13  2.85017e-05
  14  1.09781e-05
  15  0.000157252
  16  0.418251
  17  3.13963e-06
  18  6.73801
  19  4.34456e-05
  20  16.1336
  21  11.2332
  22  4.03245e-06
  23  1.74272e-06
  24  0.335952
  25  0.183874
Done.

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

Extracting fit parameters...

4FGL J1238.5-1201
   Spectrum: PowerLaw
326    Prefactor:  2.255e+01  1.679e+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:  7.202e-01  1.839e-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.315e+00  3.360e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.61
Ra Dec: 189.625 -12.028
Photon Index (Fixed Index): 2.66 +/- 0.00
Photon Flux (Fixed Index): 1.11e-07 +/- 8.24e-08
Energy Flux (Fixed Index): 2.75e-05 +/- 2.05e-05

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

Saving results to:
/scratch/kocevski/862822/likelihoodResults_606873601_607132801_4FGL_J1238.5-1201_daily_bin1418.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) = 4934.61527465
delta logL = 0.0972118562468

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4934.60874439
delta logL = 0.103742120486

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    15.822       1.0000         .10000E-03   10000.    
     2 'Index     '    3.1332       1.0000          .0000       10.000    
     3 'Normalizat'    1.2787       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .73778       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=   4934.609     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      293 TOTAL
                     EDM=   .38E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     15.816        24.696        .10069E-03   -.32009E-03
   2  Index         3.1344        1.3643        .68873E-02   -.63200E-04
   3  Normalizat    1.2790        .33397        .32523E-03    .17363E-03
   4  Prefactor     .73763        .18606        .23524E-03    .41078E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 15.816
  Index      = 3.13442
  Normalizat = 1.27904
  Prefactor  = 0.737634
 **********
 **   18 **HESSE 
 **********

 FCN=   4934.609     FROM HESSE     STATUS=OK            25 CALLS      318 TOTAL
                     EDM=   .41E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     15.816        20.880        .40277E-05   -1.4912    
   2  Index         3.1344        1.1566        .27549E-03   -.38237    
   3  Normalizat    1.2790        .33260        .65046E-04   -.84194    
   4  Prefactor     .73763        .18496        .94098E-05   -1.0207    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.14282e-10
Minuit parameter uncertainties:
  1  20.8891
  2  1.16894
  3  0.333156
  4  0.185117
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/862822': 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) = 4934.60874162
delta logL = 0.103744888132

Extracting fit parameters...

4FGL J1238.5-1201
   Spectrum: PowerLaw
326    Prefactor:  1.582e+01  2.089e+01  1.000e-04  1.000e+04 ( 1.000e-12)
327        Index:  3.134e+00  1.169e+00  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:  7.376e-01  1.851e-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.279e+00  3.332e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.83
Ra Dec: 189.625 -12.028
Photon Index (Free Index): 3.13 +/- 1.17
Photon Flux (Free Index): 1.32e-07 +/- 1.00e-07
Energy Flux (Free Index): 2.49e-05 +/- 1.83e-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/862822/cmap_HighResolution_606873601_607132801_4FGL_J1238.5-1201_daily_bin1418.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.17e-02', comment='SUCCESS', photon_flux='1.11e-07', energy_flux2='2.49e-05', photon_flux_error='8.24e-08', dlogl='1.04e-01', energy_flux='2.75e-05', photon_flux2='1.32e-07', job_status='DONE', time_completed='2021-09-06 03:06:37.778467', photon_index_error2='1.17', photon_index2='3.13', ts='2.61', fit_tolerance='1e-08', GAL='0.72', photon_index_error='0.00', photon_flux_upper_limit='2.76e-07', energy_flux_error2='1.83e-05', EG='1.32', time_epoch_completed='1630922797.78', return_code='0', job_id='862822', GAL2='0.74', EG2='1.28', return_code2='0', energy_flux_error='2.05e-05', photon_flux_error2='1.00e-07', ts2='2.83', photon_index='2.66' WHERE bin_id='1418' AND source_name='4FGL J1238.5-1201' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 03:06:37 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0205>
Subject: Job 862822: <4FGL_J1238.5-1201_daily_bin1418> in cluster <slac> Done

Job <4FGL_J1238.5-1201_daily_bin1418> was submitted from host <rhel6-64c> by user <kocevski> in cluster <slac> at Mon Sep  6 02:50:41 2021
Job was executed on host(s) <bullet0205>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 02:51:45 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:51:45 2021
Terminated at Mon Sep  6 03:06:38 2021
Results reported at Mon Sep  6 03:06:38 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1238.5-1201_daily_bin1418 189.625 -12.028 606873601 607132801 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 :                                   662.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             292.80 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   893 sec.
    Turnaround time :                            957 sec.

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

