/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 104 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 = 7373
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1238.5-1201_daily_bin273
RA = 189.625, Dec = -12.028
tmin = 310089601, tmax = 310348801
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='856296', job_status='RUN', time_executed='2021-09-06 02:33:48.405549', time_epoch_executed='1630920828.41' WHERE source_name='4FGL J1238.5-1201' and cadence='daily' and bin_id='273'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/856296

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/856296/ft1_4FGL_J1238.5-1201_daily_bin273.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/856296/ft2_4FGL_J1238.5-1201_daily_bin273.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/856296/ft1_4FGL_J1238.5-1201_daily_bin273.fits outfile=/scratch/kocevski/856296/ft1_filteredMKT_4FGL_J1238.5-1201_daily_bin273.fits ra=189.625 dec=-12.028 rad=12.0 tmin=310089601.0 tmax=310348801.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.41
user 3.19
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/856296/ft1_filtered_4FGL_J1238.5-1201_daily_bin273.fits" evtable="EVENTS" scfile=/scratch/kocevski/856296/ft2_4FGL_J1238.5-1201_daily_bin273.fits sctable="SC_DATA" outfile=/scratch/kocevski/856296/ltcube_310089601_310348801_4FGL_J1238.5-1201_daily_bin273.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/856296/ft2_4FGL_J1238.5-1201_daily_bin273.fits
.....................!
real 16.13
user 15.76
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/856296/ft1_filtered_4FGL_J1238.5-1201_daily_bin273.fits evtable="EVENTS" scfile=/scratch/kocevski/856296/ft2_4FGL_J1238.5-1201_daily_bin273.fits sctable="SC_DATA" expcube=/scratch/kocevski/856296/ltcube_310089601_310348801_4FGL_J1238.5-1201_daily_bin273.fits outfile=/scratch/kocevski/856296/expmap_310089601_310348801_4FGL_J1238.5-1201_daily_bin273.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/856296/ltcube_310089601_310348801_4FGL_J1238.5-1201_daily_bin273.fits
.....................!
real 191.46
user 186.47
sys 4.54

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/856296/ft1_filtered_4FGL_J1238.5-1201_daily_bin273.fits scfile=/scratch/kocevski/856296/ft2_4FGL_J1238.5-1201_daily_bin273.fits outfile=/scratch/kocevski/856296/cmap_310089601_310348801_4FGL_J1238.5-1201_daily_bin273.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.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/856296/ft1_filtered_4FGL_J1238.5-1201_daily_bin273.fits scfile=/scratch/kocevski/856296/ft2_4FGL_J1238.5-1201_daily_bin273.fits outfile=/scratch/kocevski/856296/cmap_HighResolution_310089601_310348801_4FGL_J1238.5-1201_daily_bin273.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.42
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/856296/ft1_filtered_4FGL_J1238.5-1201_daily_bin273.fits evtable="EVENTS" scfile=/scratch/kocevski/856296/ft2_4FGL_J1238.5-1201_daily_bin273.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/856296/Model_4FGL_J1238.5-1201_daily_bin273.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/856296/ft1_filtered_4FGL_J1238.5-1201_daily_bin273.fits.....................!
real 58.00
user 56.68
sys 1.16

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10136E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    18.519       1.0000         .10000E-03   10000.    
     5 'Prefactor '    35.331       1.0000         .10000E-03   10000.    
     6 'norm      '    .24537E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.8219       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    8.0752       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    1.6426       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    1.1618       1.0000         .10000E-03   10000.    
    17 'norm      '    8.8840       1.0000         .10000E-03   10000.    
    18 'norm      '    .10034E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    13.462       1.0000         .10000E-03   10000.    
    21 'norm      '    5.4816       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    1.7219       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.4781       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .90337       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=   6759.093     FROM MIGRAD    STATUS=CONVERGED    559 CALLS     2875 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.9206       -.23812E-08** at limit **
   2  Prefactor     .10000E-03    7.4439        .43066E-06** at limit **
   3  Prefactor     .10000E-03    34.339       -.14897E-05** at limit **
   4  Prefactor     18.518        18.821        .85894E-07   -.40196E-04
   5  Prefactor     35.329        33.225       -.32306E-06   -.95732E-04
   6  norm          .10000E-03    2.8766       -.16188E-05** at limit **
   7  Prefactor     .10000E-03    4.0849        .10958E-06** at limit **
   8  Prefactor     3.8220        2.1399        .44690E-07    .10296E-03
   9  Prefactor     .10000E-03    3.9444        .82014E-07** at limit **
  10  Prefactor     .10000E-03    8.7302        .24382E-06** at limit **
  11  Prefactor     8.0743        11.685        .45785E-06    .71701E-04
  12  Prefactor     .10000E-03    3.8551       -.47681E-06** at limit **
  13  Prefactor     .10000E-03    15.305        .88289E-06** at limit **
  14  norm          1.6248        47.597        .11918E-05   -.35059E-04
  15  Prefactor     .10001E-03    31.480        .15413E-05** at limit **
  16  norm          1.1618        .30770        .14109E-08   -.72986E-03
  17  norm          8.8833        8.7422        .98037E-07    .92101E-04
  18  norm          .10001E-03    10.267       -.48535E-05** at limit **
  19  Prefactor     .10000E-03    33.836       -.27532E-06** at limit **
  20  norm          13.461        13.758        .47226E-07   -.17010E-04
  21  norm          5.4815        8.3810        .10331E-06    .61020E-04
  22  Prefactor     .10000E-03    3.4016       -.10648E-07** at limit **
  23  Prefactor     1.7218        8.8534        .38246E-05    .46290E-03
  24  Normalizat    1.4782        .25288       -.68813E-06   -.12573E-04
  25  Prefactor     .90336        .14075       -.38971E-06   -.18540E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100005
  Prefactor  = 18.518
  Prefactor  = 35.3291
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 3.82201
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.07435
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  norm       = 1.6248
  Prefactor  = 0.000100007
  norm       = 1.16178
  norm       = 8.88331
  norm       = 0.000100013
  Prefactor  = 0.0001
  norm       = 13.4607
  norm       = 5.48146
  Prefactor  = 0.0001
  Prefactor  = 1.72185
  Normalizat = 1.47818
  Prefactor  = 0.903365
 **********
 **   18 **HESSE 
 **********

 FCN=   6759.093     FROM HESSE     STATUS=OK           427 CALLS     3302 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.9265        .11126E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    7.5019        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    34.866        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     18.518        18.870        .93072E-04   -1.4847    
   5  Prefactor     35.329        33.249        .67421E-04   -1.4518    
   6  norm          .10000E-03    6.8179        .23725E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    4.1522        .16206E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     3.8220        2.1378        .86853E-04   -1.5317    
   9  Prefactor     .10000E-03    3.9642        .15950E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    8.7874        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     8.0743        11.700        .14109E-03   -1.5140    
  12  Prefactor     .10000E-03    3.8891        .15801E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    15.510        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          1.6248        49.435        .32963E-03   -1.5453    
  15  Prefactor     .10001E-03    32.127        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          1.1618        .30884        .22175E-04   -1.5492    
  17  norm          8.8833        8.7436        .13447E-03   -1.5112    
  18  norm          .10001E-03    13.317        .32437E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    33.860        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          13.461        13.759        .10917E-03   -1.4974    
  21  norm          5.4815        8.3703        .17162E-03   -1.5240    
  22  Prefactor     .10000E-03    3.4105        .14808E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     1.7218        10.233        .32011E-03   -1.5446    
  24  Normalizat    1.4782        .30473        .31761E-03   -.78393    
  25  Prefactor     .90336        .16888        .22349E-03   -.96024    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.71835e-09
Minuit parameter uncertainties:
  1  5.01076e-07
  2  0.000112986
  3  0.00083269
  4  18.8763
  5  33.2662
  6  0.000181721
  7  1.70351e-05
  8  2.1378
  9  1.75431e-05
  10  6.37222e-05
  11  11.703
  12  5.82377e-05
  13  0.000353184
  14  17.9402
  15  0.000923849
  16  0.308836
  17  8.74483
  18  0.000835477
  19  0.000146787
  20  13.7617
  21  8.37204
  22  1.97086e-06
  23  8.39714
  24  0.305112
  25  0.168974
Done.

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

Extracting fit parameters...

4FGL J1238.5-1201
   Spectrum: PowerLaw
326    Prefactor:  8.074e+00  1.170e+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:  9.034e-01  1.690e-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.478e+00  3.051e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/856296/likelihoodResults_310089601_310348801_4FGL_J1238.5-1201_daily_bin273.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) = 6758.56952139
delta logL = 0.523573452914

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6758.50569146
delta logL = 0.587403376719

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    12.437       1.0000         .10000E-03   10000.    
     2 'Index     '    1.8870       1.0000          .0000       10.000    
     3 'Normalizat'    1.5083       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88514       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=   6758.506     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      222 TOTAL
                     EDM=   .25E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 16.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     12.431        13.450       -.73085E-05   -.14318E-03
   2  Index         1.8866        .57040       -.41090E-04    .51153E-04
   3  Normalizat    1.5083        .24436        .19687E-05    .43306E-03
   4  Prefactor     .88512        .13924        .32605E-06    .60188E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 12.4311
  Index      = 1.88661
  Normalizat = 1.50833
  Prefactor  = 0.885118
 **********
 **   18 **HESSE 
 **********

 FCN=   6758.506     FROM HESSE     STATUS=OK            29 CALLS      251 TOTAL
                     EDM=   .37E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     12.431        13.235        .11358E-03   -1.5003    
   2  Index         1.8866        .55997        .83523E-02   -.67216    
   3  Normalizat    1.5083        .29162        .31487E-03   -.77545    
   4  Prefactor     .88512        .16636        .22531E-03   -.96663    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.67479e-10
Minuit parameter uncertainties:
  1  13.2385
  2  0.561897
  3  0.291945
  4  0.166454
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/856296': 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) = 6758.50569125
delta logL = 0.587403590879

Extracting fit parameters...

4FGL J1238.5-1201
   Spectrum: PowerLaw
326    Prefactor:  1.243e+01  1.324e+01  1.000e-04  1.000e+04 ( 1.000e-12)
327        Index:  1.887e+00  5.619e-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.851e-01  1.665e-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.508e+00  2.919e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.75
Ra Dec: 189.625 -12.028
Photon Index (Free Index): 1.89 +/- 0.56
Photon Flux (Free Index): 3.17e-08 +/- 3.86e-08
Energy Flux (Free Index): 2.95e-05 +/- 3.82e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/856296/cmap_HighResolution_310089601_310348801_4FGL_J1238.5-1201_daily_bin273.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.30e-02', comment='SUCCESS', energy_flux2='2.95e-05', dlogl='5.87e-01', photon_flux2='3.17e-08', job_status='DONE', time_completed='2021-09-06 02:46:35.123764', photon_index_error2='0.56', photon_index2='1.89', ts='0.57', fit_tolerance='1e-08', GAL='0.90', photon_index_error='0.00', photon_flux_upper_limit='1.65e-07', energy_flux_error2='3.82e-05', EG='1.48', time_epoch_completed='1630921595.12', return_code='0', job_id='856296', GAL2='0.89', EG2='1.51', return_code2='0', photon_flux_error2='3.86e-08', ts2='1.75', photon_index='2.66' WHERE bin_id='273' AND source_name='4FGL J1238.5-1201' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 02:46:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0161>
Subject: Job 856296: <4FGL_J1238.5-1201_daily_bin273> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1238.5-1201_daily_bin273 189.625 -12.028 310089601 310348801 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 :                                   764.03 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             296.55 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   884 sec.
    Turnaround time :                            941 sec.

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

