/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 70 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 = 7381
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1238.5-1201_daily_bin1222
RA = 189.625, Dec = -12.028
tmin = 556070401, tmax = 556329601
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='862545', job_status='RUN', time_executed='2021-09-06 02:52:26.126155', time_epoch_executed='1630921946.13' WHERE source_name='4FGL J1238.5-1201' and cadence='daily' and bin_id='1222'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/862545

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/862545/ft1_4FGL_J1238.5-1201_daily_bin1222.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/862545/ft2_4FGL_J1238.5-1201_daily_bin1222.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/862545/ft1_4FGL_J1238.5-1201_daily_bin1222.fits outfile=/scratch/kocevski/862545/ft1_filteredMKT_4FGL_J1238.5-1201_daily_bin1222.fits ra=189.625 dec=-12.028 rad=12.0 tmin=556070401.0 tmax=556329601.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.80
user 3.52
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/862545/ft1_filtered_4FGL_J1238.5-1201_daily_bin1222.fits" evtable="EVENTS" scfile=/scratch/kocevski/862545/ft2_4FGL_J1238.5-1201_daily_bin1222.fits sctable="SC_DATA" outfile=/scratch/kocevski/862545/ltcube_556070401_556329601_4FGL_J1238.5-1201_daily_bin1222.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/862545/ft2_4FGL_J1238.5-1201_daily_bin1222.fits
.....................!
real 14.31
user 13.92
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/862545/ft1_filtered_4FGL_J1238.5-1201_daily_bin1222.fits evtable="EVENTS" scfile=/scratch/kocevski/862545/ft2_4FGL_J1238.5-1201_daily_bin1222.fits sctable="SC_DATA" expcube=/scratch/kocevski/862545/ltcube_556070401_556329601_4FGL_J1238.5-1201_daily_bin1222.fits outfile=/scratch/kocevski/862545/expmap_556070401_556329601_4FGL_J1238.5-1201_daily_bin1222.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/862545/ltcube_556070401_556329601_4FGL_J1238.5-1201_daily_bin1222.fits
.....................!
real 193.20
user 187.74
sys 4.59

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/862545/ft1_filtered_4FGL_J1238.5-1201_daily_bin1222.fits scfile=/scratch/kocevski/862545/ft2_4FGL_J1238.5-1201_daily_bin1222.fits outfile=/scratch/kocevski/862545/cmap_556070401_556329601_4FGL_J1238.5-1201_daily_bin1222.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.40
sys 0.13

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/862545/ft1_filtered_4FGL_J1238.5-1201_daily_bin1222.fits evtable="EVENTS" scfile=/scratch/kocevski/862545/ft2_4FGL_J1238.5-1201_daily_bin1222.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/862545/Model_4FGL_J1238.5-1201_daily_bin1222.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/862545/ft1_filtered_4FGL_J1238.5-1201_daily_bin1222.fits.....................!
real 60.48
user 59.02
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.589       1.0000         .10000E-03   10000.    
     2 'Prefactor '    10.105       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10352E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    1.8144       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    5.5714       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    22.448       1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.8790       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10143E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10112E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10089E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .61126E-01   1.0000         .10000E-03   10000.    
    16 'norm      '    4.4439       1.0000         .10000E-03   10000.    
    17 'norm      '    4.0931       1.0000         .10000E-03   10000.    
    18 'norm      '    8.0170       1.0000         .10000E-03   10000.    
    19 'Prefactor '    25.925       1.0000         .10000E-03   10000.    
    20 'norm      '    .10974E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10031E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    8.6553       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10113E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.3177       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .91114       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=   7053.041     FROM MIGRAD    STATUS=CONVERGED    146 CALLS     2445 TOTAL
                     EDM=   .23E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.593        6.9586       -.70453E-06    .13565E-02
   2  Prefactor     10.082        23.756        .45578E-05    .13810E-03
   3  Prefactor     .10000E-03    19.057        .15822E-05** at limit **
   4  Prefactor     .10000E-03    5.9018        .48010E-06** at limit **
   5  Prefactor     .10000E-03    12.177       -.94386E-06** at limit **
   6  norm          1.8165        3.4225        .36198E-06    .20573E-04
   7  Prefactor     .10000E-03    2.8609        .89219E-07** at limit **
   8  Prefactor     5.5718        2.4083        .10764E-06    .30095E-04
   9  Prefactor     .10000E-03    3.8799       -.18845E-06** at limit **
  10  Prefactor     22.435        12.966       -.62939E-06    .99982E-03
  11  Prefactor     1.8778        1.7895       -.41703E-07   -.16931E-03
  12  Prefactor     .10000E-03    4.8770        .39329E-06** at limit **
  13  Prefactor     .10002E-03    8.8959       -.36139E-06** at limit **
  14  norm          .10000E-03    16.274       -.14235E-06** at limit **
  15  Prefactor     .23015E-03    6923.8        .27968E-04** at limit **
  16  norm          4.4440        .68711        .30597E-07   -.77812E-06
  17  norm          4.0941        2.3402        .44485E-06    .34357E-02
  18  norm          8.0228        5.5718        .19578E-05   -.44755E-03
  19  Prefactor     25.656        69.375        .27722E-05    .10142E-02
  20  norm          .10001E-03    17.735       -.32268E-06** at limit **
  21  norm          .10000E-03    7.4300       -.12655E-07** at limit **
  22  Prefactor     8.6425        4.0521       -.10456E-06   -.23094E-02
  23  Prefactor     .10000E-03    8.3427       -.22821E-06** at limit **
  24  Normalizat    1.3177        .30593        .12232E-05    .28124E-05
  25  Prefactor     .91116        .16439       -.18493E-05   -.26493E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.593
  Prefactor  = 10.0818
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.81653
  Prefactor  = 0.0001
  Prefactor  = 5.57183
  Prefactor  = 0.0001
  Prefactor  = 22.435
  Prefactor  = 1.87775
  Prefactor  = 0.0001
  Prefactor  = 0.000100024
  norm       = 0.000100005
  Prefactor  = 0.000230148
  norm       = 4.44396
  norm       = 4.09412
  norm       = 8.02278
  Prefactor  = 25.6555
  norm       = 0.000100009
  norm       = 0.0001
  Prefactor  = 8.64252
  Prefactor  = 0.0001
  Normalizat = 1.31775
  Prefactor  = 0.911163
 **********
 **   18 **HESSE 
 **********

 FCN=   7053.041     FROM HESSE     STATUS=OK           483 CALLS     2928 TOTAL
                     EDM=   .36E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.593        7.4685        .29419E-02   -1.5027    
   2  Prefactor     10.082        23.814        .31513E-02   -1.5073    
   3  Prefactor     .10000E-03    19.286        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    5.8964        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    12.176        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          1.8165        3.4547        .77527E-02   -1.5438    
   7  Prefactor     .10000E-03    2.8120        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     5.5718        2.4272        .42551E-02   -1.5236    
   9  Prefactor     .10000E-03    3.8796        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     22.435        13.377        .21135E-02   -1.4760    
  11  Prefactor     1.8778        16.823        .75930E-02   -1.5434    
  12  Prefactor     .10000E-03    4.8676        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10002E-03    22.200        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    22.736        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .23015E-03    44.564        .16538       -1.5710    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          4.4440        .70225        .47755E-02   -1.5286    
  17  norm          4.0941        5.6159        .49817E-02   -1.5303    
  18  norm          8.0228        5.8834        .35401E-02   -1.5141    
  19  Prefactor     25.656        227.00        .19669E-02   -1.4695    
  20  norm          .10001E-03    20.781        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    7.4230        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     8.6425        11.595        .34063E-02   -1.5120    
  23  Prefactor     .10000E-03    8.3054        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.3177        .25835        .78724E-01   -.83038    
  25  Prefactor     .91116        .13806        .45147E-01   -.95752    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.55263e-07
Minuit parameter uncertainties:
  1  7.46912
  2  23.8364
  3  0.000202722
  4  3.93442e-06
  5  2.07483e-06
  6  3.45504
  7  3.09478e-06
  8  2.4272
  9  4.32688e-07
  10  13.3788
  11  11.2447
  12  9.00538e-07
  13  0.00145557
  14  0.000646866
  15  0.152428
  16  0.702246
  17  5.61661
  18  5.88381
  19  153.41
  20  0.000853802
  21  8.97827e-06
  22  11.5975
  23  7.20895e-06
  24  0.2586
  25  0.138113
Done.

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

Extracting fit parameters...

4FGL J1238.5-1201
   Spectrum: PowerLaw
326    Prefactor:  1.878e+00  1.124e+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.112e-01  1.381e-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.318e+00  2.586e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/862545/likelihoodResults_556070401_556329601_4FGL_J1238.5-1201_daily_bin1222.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) = 7052.94083699
delta logL = 0.100232503853

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7052.91521995
delta logL = 0.12584954269

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.3593       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1282       1.0000          .0000       10.000    
     3 'Normalizat'    1.3210       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90442       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7052.915     FROM MIGRAD    STATUS=CONVERGED     97 CALLS      301 TOTAL
                     EDM=   .12E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.3643        13.249        .79584E-03    .59484E-04
   2  Index         2.1282        .79123        .13079E-01    .84481E-05
   3  Normalizat    1.3210        .29407        .34804E-03    .17084E-04
   4  Prefactor     .90443        .16145        .22369E-03    .17738E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.36432
  Index      = 2.12821
  Normalizat = 1.32102
  Prefactor  = 0.904433
 **********
 **   18 **HESSE 
 **********

 FCN=   7052.915     FROM HESSE     STATUS=OK            27 CALLS      328 TOTAL
                     EDM=   .59E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.3643        13.251        .15917E-03   -1.5203    
   2  Index         2.1282        .79186        .52316E-03   -.61182    
   3  Normalizat    1.3210        .29438        .13921E-04   -.82941    
   4  Prefactor     .90443        .16160        .89474E-05   -.95986    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.91366e-12
Minuit parameter uncertainties:
  1  13.2576
  2  0.796889
  3  0.29476
  4  0.161683
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/862545': 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) = 7052.91521987
delta logL = 0.125849621211

Extracting fit parameters...

4FGL J1238.5-1201
   Spectrum: PowerLaw
326    Prefactor:  6.364e+00  1.326e+01  1.000e-04  1.000e+04 ( 1.000e-12)
327        Index:  2.128e+00  7.969e-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:  9.044e-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.321e+00  2.948e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.03
Ra Dec: 189.625 -12.028

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/862545/cmap_HighResolution_556070401_556329601_4FGL_J1238.5-1201_daily_bin1222.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.16e-02', job_status='DONE', photon_flux_upper_limit='1.48e-07', time_completed='2021-09-06 03:05:20.377561', job_id='862545', GAL2='0.90', fit_tolerance='1e-08', EG2='1.32', EG='1.32', time_epoch_completed='1630922720.38', return_code2='0', ts='0.03', comment='SUCCESS', return_code='0', GAL='0.91', dlogl='1.26e-01', ts2='0.28', photon_index_error='0.00', photon_index='2.66' WHERE bin_id='1222' AND source_name='4FGL J1238.5-1201' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 03:05:20 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0216>
Subject: Job 862545: <4FGL_J1238.5-1201_daily_bin1222> in cluster <slac> Done

Job <4FGL_J1238.5-1201_daily_bin1222> was submitted from host <rhel6-64c> by user <kocevski> in cluster <slac> at Mon Sep  6 02:50:23 2021
Job was executed on host(s) <bullet0216>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 02:50:54 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:50:54 2021
Terminated at Mon Sep  6 03:05:20 2021
Results reported at Mon Sep  6 03:05:20 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1238.5-1201_daily_bin1222 189.625 -12.028 556070401 556329601 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 :                                   758.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             285.59 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   868 sec.
    Turnaround time :                            897 sec.

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

