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


Performing analysis on: 4FGL_J1238.5-1201_daily_bin553
RA = 189.625, Dec = -12.028
tmin = 382665601, tmax = 382924801
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='857911', job_status='RUN', time_executed='2021-09-06 02:40:22.175018', time_epoch_executed='1630921222.18' WHERE source_name='4FGL J1238.5-1201' and cadence='daily' and bin_id='553'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/857911

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/857911/ft1_4FGL_J1238.5-1201_daily_bin553.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/857911/ft2_4FGL_J1238.5-1201_daily_bin553.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/857911/ft1_4FGL_J1238.5-1201_daily_bin553.fits outfile=/scratch/kocevski/857911/ft1_filteredMKT_4FGL_J1238.5-1201_daily_bin553.fits ra=189.625 dec=-12.028 rad=12.0 tmin=382665601.0 tmax=382924801.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.34
user 3.12
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/857911/ft1_filtered_4FGL_J1238.5-1201_daily_bin553.fits" evtable="EVENTS" scfile=/scratch/kocevski/857911/ft2_4FGL_J1238.5-1201_daily_bin553.fits sctable="SC_DATA" outfile=/scratch/kocevski/857911/ltcube_382665601_382924801_4FGL_J1238.5-1201_daily_bin553.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/857911/ft2_4FGL_J1238.5-1201_daily_bin553.fits
.....................!
real 11.85
user 11.44
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/857911/ft1_filtered_4FGL_J1238.5-1201_daily_bin553.fits evtable="EVENTS" scfile=/scratch/kocevski/857911/ft2_4FGL_J1238.5-1201_daily_bin553.fits sctable="SC_DATA" expcube=/scratch/kocevski/857911/ltcube_382665601_382924801_4FGL_J1238.5-1201_daily_bin553.fits outfile=/scratch/kocevski/857911/expmap_382665601_382924801_4FGL_J1238.5-1201_daily_bin553.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/857911/ltcube_382665601_382924801_4FGL_J1238.5-1201_daily_bin553.fits
.....................!
real 190.93
user 185.38
sys 5.04

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/857911/ft1_filtered_4FGL_J1238.5-1201_daily_bin553.fits scfile=/scratch/kocevski/857911/ft2_4FGL_J1238.5-1201_daily_bin553.fits outfile=/scratch/kocevski/857911/cmap_382665601_382924801_4FGL_J1238.5-1201_daily_bin553.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.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/857911/ft1_filtered_4FGL_J1238.5-1201_daily_bin553.fits scfile=/scratch/kocevski/857911/ft2_4FGL_J1238.5-1201_daily_bin553.fits outfile=/scratch/kocevski/857911/cmap_HighResolution_382665601_382924801_4FGL_J1238.5-1201_daily_bin553.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.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10583E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    36.998       1.0000         .10000E-03   10000.    
     4 'Prefactor '    10.988       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .35339E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    6.0970       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    10.710       1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.8136       1.0000         .10000E-03   10000.    
    10 'Prefactor '    11.134       1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.1505       1.0000         .10000E-03   10000.    
    12 'Prefactor '    12.505       1.0000         .10000E-03   10000.    
    13 'Prefactor '    37.429       1.0000         .10000E-03   10000.    
    14 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    106.28       1.0000         .10000E-03   10000.    
    16 'norm      '    .67570       1.0000         .10000E-03   10000.    
    17 'norm      '    3.8906       1.0000         .10000E-03   10000.    
    18 'norm      '    .14722E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10027E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10024E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    21.604       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.7159       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .47840       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=   5661.611     FROM MIGRAD    STATUS=CONVERGED    579 CALLS     2919 TOTAL
                     EDM=   .19E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6.7172        .55252E-06** at limit **
   2  Prefactor     .10000E-03    7.5258        .47551E-07** at limit **
   3  Prefactor     37.009        55.470        .81370E-05   -.23185E-04
   4  Prefactor     11.025        20.425       -.84884E-07   -.42836E-04
   5  Prefactor     .10000E-03    96.017        .38495E-05** at limit **
   6  norm          6.0978        3.4678        .42104E-07   -.18609E-04
   7  Prefactor     .10000E-03    2.0411       -.25242E-07** at limit **
   8  Prefactor     10.709        3.2362       -.17825E-06   -.45233E-03
   9  Prefactor     1.8141        2.3129       -.31954E-06   -.91085E-03
  10  Prefactor     11.142        18.009        .14679E-05   -.26701E-04
  11  Prefactor     1.1721        32.603        .11624E-04   -.42581E-04
  12  Prefactor     12.508        8.3416        .19088E-06   -.21020E-04
  13  Prefactor     37.435        35.831        .56367E-05   -.95950E-05
  14  norm          .10000E-03    9.1002       -.29715E-06** at limit **
  15  Prefactor     106.27        91.730       -.48699E-05   -.36191E-04
  16  norm          .67578        .23443       -.29641E-07   -.26495E-03
  17  norm          3.8928        7.3415        .35997E-06   -.35370E-03
  18  norm          .10000E-03    11.886        .97909E-06** at limit **
  19  Prefactor     .10000E-03    34.287        .96138E-06** at limit **
  20  norm          .10000E-03    6.6803       -.71751E-06** at limit **
  21  norm          .10000E-03    4.3719        .12682E-07** at limit **
  22  Prefactor     .10000E-03    3.7531        .19837E-07** at limit **
  23  Prefactor     21.609        11.776        .12960E-06   -.27385E-04
  24  Normalizat    1.7151        .24663       -.20501E-05   -.13981E-03
  25  Prefactor     .47872        .12952       -.71408E-07   -.26180E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 37.0087
  Prefactor  = 11.0254
  Prefactor  = 0.000100001
  norm       = 6.09775
  Prefactor  = 0.0001
  Prefactor  = 10.7089
  Prefactor  = 1.81411
  Prefactor  = 11.142
  Prefactor  = 1.1721
  Prefactor  = 12.5079
  Prefactor  = 37.4353
  norm       = 0.0001
  Prefactor  = 106.27
  norm       = 0.675779
  norm       = 3.89284
  norm       = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 21.6088
  Normalizat = 1.71506
  Prefactor  = 0.47872
 **********
 **   18 **HESSE 
 **********

 FCN=   5661.611     FROM HESSE     STATUS=OK           425 CALLS     3344 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6.8376        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    7.5350        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     37.009        55.166        .65890E-04   -1.4491    
   4  Prefactor     11.025        20.499        .12086E-03   -1.5044    
   5  Prefactor     .10000E-03    96.336        .21319E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          6.0978        3.4705        .10282E-03   -1.5214    
   7  Prefactor     .10000E-03    2.0440        .10495E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     10.709        3.2270        .70858E-04   -1.5053    
   9  Prefactor     1.8141        6.5192        .15509E-02   -1.5439    
  10  Prefactor     11.142        18.026        .12006E-03   -1.5040    
  11  Prefactor     1.1721        33.144        .43148E-03   -1.5491    
  12  Prefactor     12.508        8.3655        .11328E-03   -1.5000    
  13  Prefactor     37.435        35.813        .65510E-04   -1.4484    
  14  norm          .10000E-03    9.1030        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     106.27        91.058        .39009E-04   -1.3643    
  16  norm          .67578        .23528        .20382E-04   -1.5544    
  17  norm          3.8928        7.6677        .10228E-02   -1.5313    
  18  norm          .10000E-03    12.180        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    34.325        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    6.7179        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    4.3824        .15365E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    3.7658        .14235E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     21.609        11.816        .86175E-04   -1.4778    
  24  Normalizat    1.7151        .28779        .26554E-03   -.71902    
  25  Prefactor     .47872        .15061        .25749E-03   -1.1296    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.24788e-09
Minuit parameter uncertainties:
  1  8.18142e-05
  2  3.12336e-06
  3  55.2423
  4  20.5121
  5  0.000749924
  6  3.4706
  7  4.4492e-06
  8  3.22707
  9  6.5218
  10  18.035
  11  12.4726
  12  8.36631
  13  35.8334
  14  7.6793e-08
  15  91.1786
  16  0.235281
  17  7.66964
  18  0.000237431
  19  1.74207e-05
  20  8.65147e-06
  21  2.00106e-06
  22  3.43201e-06
  23  11.8177
  24  0.28807
  25  0.150735
Done.

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

Extracting fit parameters...

4FGL J1238.5-1201
   Spectrum: PowerLaw
326    Prefactor:  1.172e+00  1.247e+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:  4.787e-01  1.507e-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.715e+00  2.881e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/857911/likelihoodResults_382665601_382924801_4FGL_J1238.5-1201_daily_bin553.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) = 5661.35904906
delta logL = 0.251819037062

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5661.07738276
delta logL = 0.533485340889

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .30995E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    9.9990       1.0000          .0000       10.000    
     3 'Normalizat'    1.6613       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .49953       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.

 FCN=   5661.077     FROM MIGRAD    STATUS=CONVERGED     67 CALLS      423 TOTAL
                     EDM=   .71E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .30942E-03    .28176E-01    .37649E-03** at limit **
   2  Index        10.0000        9.1564        .50000    ** at limit **
   3  Normalizat    1.6610        .10721        .60801E-01    .73946E-04
   4  Prefactor     .49964        .54074E-01    .57084E-01    .11685E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000309417
  Index      = 10
  Normalizat = 1.66098
  Prefactor  = 0.499636
 **********
 **   18 **HESSE 
 **********

 FCN=   5661.077     FROM HESSE     STATUS=OK            35 CALLS      458 TOTAL
                     EDM=   .58E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .30942E-03    .43913E-03    .19961E-04   -1.5705    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index        10.0000        2.2981        .50000        1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    1.6610        .27565        .26887E-03   -.73350    
   4  Prefactor     .49964        .14958        .25252E-03   -1.1199    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.8462e-10
Minuit parameter uncertainties:
  1  0.000439134
  2  0.000115978
  3  0.275907
  4  0.149701
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/857911': 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) = 5661.07737574
delta logL = 0.533492359934

Extracting fit parameters...

4FGL J1238.5-1201
   Spectrum: PowerLaw
326    Prefactor:  3.094e-04  4.391e-04  1.000e-04  1.000e+04 ( 1.000e-12)
327        Index:  1.000e+01  1.160e-04  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:  4.996e-01  1.497e-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.661e+00  2.759e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.11
Ra Dec: 189.625 -12.028
Photon Index (Free Index): 10.00 +/- 0.00
Photon Flux (Free Index): 5.41e-08 +/- 7.44e-08
Energy Flux (Free Index): 6.05e-06 +/- 8.37e-06

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/857911/cmap_HighResolution_382665601_382924801_4FGL_J1238.5-1201_daily_bin553.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.15e-02', comment='SUCCESS', energy_flux2='6.05e-06', dlogl='5.33e-01', photon_flux2='5.41e-08', job_status='DONE', time_completed='2021-09-06 02:52:01.355633', photon_index_error2='0.00', photon_index2='10.00', ts='0.01', fit_tolerance='1e-08', GAL='0.48', photon_index_error='0.00', photon_flux_upper_limit='1.47e-07', energy_flux_error2='8.37e-06', EG='1.72', time_epoch_completed='1630921921.36', return_code='0', job_id='857911', GAL2='0.50', EG2='1.66', return_code2='0', photon_flux_error2='7.44e-08', ts2='1.11', photon_index='2.66' WHERE bin_id='553' AND source_name='4FGL J1238.5-1201' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 02:52:01 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0140>
Subject: Job 857911: <4FGL_J1238.5-1201_daily_bin553> in cluster <slac> Done

Job <4FGL_J1238.5-1201_daily_bin553> was submitted from host <rhel6-64c> by user <kocevski> in cluster <slac> at Mon Sep  6 02:35:39 2021
Job was executed on host(s) <bullet0140>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 02:36:29 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:36:29 2021
Terminated at Mon Sep  6 02:52:02 2021
Results reported at Mon Sep  6 02:52:02 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1238.5-1201_daily_bin553 189.625 -12.028 382665601 382924801 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 :                                   697.12 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             260.34 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   932 sec.
    Turnaround time :                            983 sec.

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

