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


Performing analysis on: 4FGL_J1238.5-1201_daily_bin429
RA = 189.625, Dec = -12.028
tmin = 350524801, tmax = 350784001
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='857735', job_status='RUN', time_executed='2021-09-06 02:36:06.198873', time_epoch_executed='1630920966.2' WHERE source_name='4FGL J1238.5-1201' and cadence='daily' and bin_id='429'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/857735

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/857735/ft1_4FGL_J1238.5-1201_daily_bin429.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/857735/ft2_4FGL_J1238.5-1201_daily_bin429.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/857735/ft1_4FGL_J1238.5-1201_daily_bin429.fits outfile=/scratch/kocevski/857735/ft1_filteredMKT_4FGL_J1238.5-1201_daily_bin429.fits ra=189.625 dec=-12.028 rad=12.0 tmin=350524801.0 tmax=350784001.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.40
user 3.16
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/857735/ft1_filtered_4FGL_J1238.5-1201_daily_bin429.fits" evtable="EVENTS" scfile=/scratch/kocevski/857735/ft2_4FGL_J1238.5-1201_daily_bin429.fits sctable="SC_DATA" outfile=/scratch/kocevski/857735/ltcube_350524801_350784001_4FGL_J1238.5-1201_daily_bin429.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/857735/ft2_4FGL_J1238.5-1201_daily_bin429.fits
.....................!
real 13.74
user 13.36
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/857735/ft1_filtered_4FGL_J1238.5-1201_daily_bin429.fits evtable="EVENTS" scfile=/scratch/kocevski/857735/ft2_4FGL_J1238.5-1201_daily_bin429.fits sctable="SC_DATA" expcube=/scratch/kocevski/857735/ltcube_350524801_350784001_4FGL_J1238.5-1201_daily_bin429.fits outfile=/scratch/kocevski/857735/expmap_350524801_350784001_4FGL_J1238.5-1201_daily_bin429.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/857735/ltcube_350524801_350784001_4FGL_J1238.5-1201_daily_bin429.fits
.....................!
real 192.92
user 187.18
sys 5.09

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/857735/ft1_filtered_4FGL_J1238.5-1201_daily_bin429.fits scfile=/scratch/kocevski/857735/ft2_4FGL_J1238.5-1201_daily_bin429.fits outfile=/scratch/kocevski/857735/cmap_350524801_350784001_4FGL_J1238.5-1201_daily_bin429.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/857735/ft1_filtered_4FGL_J1238.5-1201_daily_bin429.fits scfile=/scratch/kocevski/857735/ft2_4FGL_J1238.5-1201_daily_bin429.fits outfile=/scratch/kocevski/857735/cmap_HighResolution_350524801_350784001_4FGL_J1238.5-1201_daily_bin429.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.72
user 0.39
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/857735/ft1_filtered_4FGL_J1238.5-1201_daily_bin429.fits evtable="EVENTS" scfile=/scratch/kocevski/857735/ft2_4FGL_J1238.5-1201_daily_bin429.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/857735/Model_4FGL_J1238.5-1201_daily_bin429.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/857735/ft1_filtered_4FGL_J1238.5-1201_daily_bin429.fits.....................!
real 62.60
user 59.75
sys 1.37

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10555E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    15.937       1.0000         .10000E-03   10000.    
     5 'Prefactor '    6.0834       1.0000         .10000E-03   10000.    
     6 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    6.1629       1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.6071       1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.9727       1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.2416       1.0000         .10000E-03   10000.    
    11 'Prefactor '    22.711       1.0000         .10000E-03   10000.    
    12 'Prefactor '    14.413       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .11557E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    2.0068       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10092E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .44300       1.0000         .10000E-03   10000.    
    17 'norm      '    21.840       1.0000         .10000E-03   10000.    
    18 'norm      '    4.7661       1.0000         .10000E-03   10000.    
    19 'Prefactor '    55.128       1.0000         .10000E-03   10000.    
    20 'norm      '    9.0473       1.0000         .10000E-03   10000.    
    21 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    23.264       1.0000         .10000E-03   10000.    
    23 'Prefactor '    2.1108       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.8245       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .84274       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=   7263.490     FROM MIGRAD    STATUS=CONVERGED    569 CALLS     2884 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.1733       -.39208E-07** at limit **
   2  Prefactor     .10000E-03    5.1954        .79893E-08** at limit **
   3  Prefactor     .10000E-03    31.684       -.66672E-06** at limit **
   4  Prefactor     15.951        19.342        .53975E-06   -.61167E-04
   5  Prefactor     6.0427        59.295       -.17651E-04   -.24530E-03
   6  norm          .10000E-03    1.6645        .28450E-07** at limit **
   7  Prefactor     6.1637        5.7380       -.78018E-07   -.13583E-03
   8  Prefactor     3.6070        2.1579        .25149E-07   -.16976E-04
   9  Prefactor     4.9733        6.5638        .64400E-06    .23093E-03
  10  Prefactor     4.2414        6.7038       -.21039E-06   -.95829E-04
  11  Prefactor     22.714        12.987        .76761E-07    .10514E-04
  12  Prefactor     14.414        9.6103       -.22002E-06   -.12873E-03
  13  Prefactor     .10000E-03    138.23        .15734E-05** at limit **
  14  norm          2.0050        36.872        .96290E-06   -.20519E-04
  15  Prefactor     .10000E-03    44.690       -.60964E-06** at limit **
  16  norm          .44302        .23027        .12689E-07   -.12152E-03
  17  norm          21.841        12.417       -.29658E-06   -.82021E-05
  18  norm          4.7671        6.9488        .41705E-05   -.11588E-02
  19  Prefactor     55.133        50.572        .12397E-05    .82051E-04
  20  norm          9.0492        9.4250       -.87484E-06   -.32016E-03
  21  norm          .10000E-03    5.7349        .17696E-07** at limit **
  22  Prefactor     23.266        13.041        .16385E-06   -.74765E-04
  23  Prefactor     2.1115        6.0259        .10374E-06   -.21881E-03
  24  Normalizat    1.8237        .25988       -.36450E-06    .44893E-05
  25  Prefactor     .84314        .14345       -.45839E-07   -.15966E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 15.9513
  Prefactor  = 6.04269
  norm       = 0.0001
  Prefactor  = 6.1637
  Prefactor  = 3.60697
  Prefactor  = 4.97334
  Prefactor  = 4.24143
  Prefactor  = 22.7138
  Prefactor  = 14.4141
  Prefactor  = 0.000100001
  norm       = 2.00501
  Prefactor  = 0.0001
  norm       = 0.443025
  norm       = 21.8408
  norm       = 4.76714
  Prefactor  = 55.1335
  norm       = 9.04917
  norm       = 0.0001
  Prefactor  = 23.266
  Prefactor  = 2.11148
  Normalizat = 1.82367
  Prefactor  = 0.843139
 **********
 **   18 **HESSE 
 **********

 FCN=   7263.490     FROM HESSE     STATUS=OK           431 CALLS     3315 TOTAL
                     EDM=   .37E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.1953        .12267E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    5.2000        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    31.704        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     15.951        19.470        .10033E-03   -1.4909    
   5  Prefactor     6.0427        70.066        .16278E-03   -1.5216    
   6  norm          .10000E-03    1.6798        .10736E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     6.1637        5.7535        .16171E-03   -1.5211    
   8  Prefactor     3.6070        2.1621        .90338E-04   -1.5328    
   9  Prefactor     4.9733        6.5683        .18034E-03   -1.5262    
  10  Prefactor     4.2414        6.6978        .19565E-03   -1.5296    
  11  Prefactor     22.714        13.020        .84051E-04   -1.4754    
  12  Prefactor     14.414        9.6017        .10550E-03   -1.4948    
  13  Prefactor     .10000E-03    139.82        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          2.0050        36.805        .29229E-03   -1.5425    
  15  Prefactor     .10000E-03    44.736        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .44302        .22695        .27898E-04   -1.5575    
  17  norm          21.841        12.424        .85708E-04   -1.4773    
  18  norm          4.7671        7.5543        .92148E-03   -1.5271    
  19  Prefactor     55.133        50.651        .27012E-03   -1.4222    
  20  norm          9.0492        9.4827        .13325E-03   -1.5106    
  21  norm          .10000E-03    5.7679        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     23.266        13.054        .41524E-03   -1.4743    
  23  Prefactor     2.1115        6.0258        .28396E-03   -1.5417    
  24  Normalizat    1.8237        .30568        .31448E-03   -.69047    
  25  Prefactor     .84314        .16753        .24913E-03   -.98157    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.69118e-09
Minuit parameter uncertainties:
  1  7.58929e-06
  2  2.34617e-06
  3  0.000250253
  4  19.4782
  5  41.213
  6  4.0605e-07
  7  5.75398
  8  2.16218
  9  6.56923
  10  6.69894
  11  13.022
  12  9.60277
  13  0.000530238
  14  17.1926
  15  0.000172397
  16  0.226949
  17  12.4258
  18  7.55577
  19  50.6904
  20  9.48424
  21  1.19154e-06
  22  13.056
  23  6.02756
  24  0.306004
  25  0.167634
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
610    Prefactor:  8.431e-01  1.676e-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.824e+00  3.060e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.58
Ra Dec: 189.625 -12.028
Photon Index (Fixed Index): 2.66 +/- 0.00
Photon Flux (Fixed Index): 1.12e-07 +/- 6.39e-08
Energy Flux (Fixed Index): 2.77e-05 +/- 1.59e-05

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) = 7262.61616544
delta logL = 0.873409722794

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7262.56401277
delta logL = 0.925562393067

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    27.332       1.0000         .10000E-03   10000.    
     2 'Index     '    1.9965       1.0000          .0000       10.000    
     3 'Normalizat'    1.8819       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .81674       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=   7262.564     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      217 TOTAL
                     EDM=   .63E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     27.361        16.057        .19157E-02    .13791E-03
   2  Index         1.9967        .36591        .18843       -.59600E-04
   3  Normalizat    1.8820        .24863        .70220E-01    .40701E-06
   4  Prefactor     .81667        .14177        .43935E-01    .16731E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 27.3606
  Index      = 1.99669
  Normalizat = 1.88196
  Prefactor  = 0.816671
 **********
 **   18 **HESSE 
 **********

 FCN=   7262.564     FROM HESSE     STATUS=OK            33 CALLS      250 TOTAL
                     EDM=   .12E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     27.361        15.484        .38314E-03   -1.4661    
   2  Index         1.9967        .41233        .71301E-02   -.64433    
   3  Normalizat    1.8820        .28856        .31061E-03   -.67543    
   4  Prefactor     .81667        .16410        .25253E-03   -.99117    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.18413e-12
Minuit parameter uncertainties:
  1  15.4864
  2  0.413061
  3  0.288823
  4  0.164199
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/857735': 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) = 7262.56401096
delta logL = 0.925564202406

Extracting fit parameters...

4FGL J1238.5-1201
   Spectrum: PowerLaw
326    Prefactor:  2.736e+01  1.549e+01  1.000e-04  1.000e+04 ( 1.000e-12)
327        Index:  1.997e+00  4.131e-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.167e-01  1.642e-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.882e+00  2.888e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.43
Ra Dec: 189.625 -12.028
Photon Index (Free Index): 2.00 +/- 0.41
Photon Flux (Free Index): 7.46e-08 +/- 5.05e-08
Energy Flux (Free Index): 5.20e-05 +/- 4.36e-05

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/857735/cmap_HighResolution_350524801_350784001_4FGL_J1238.5-1201_daily_bin429.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.12e-07', energy_flux2='5.20e-05', photon_flux_error='6.39e-08', dlogl='9.26e-01', energy_flux='2.77e-05', photon_flux2='7.46e-08', job_status='DONE', time_completed='2021-09-06 02:48:13.181153', photon_index_error2='0.41', photon_index2='2.00', ts='5.58', fit_tolerance='1e-08', GAL='0.84', photon_index_error='0.00', energy_flux_error2='4.36e-05', EG='1.82', time_epoch_completed='1630921693.18', return_code='0', job_id='857735', GAL2='0.82', EG2='1.88', return_code2='0', energy_flux_error='1.59e-05', photon_flux_error2='5.05e-08', ts2='7.43', photon_index='2.66' WHERE bin_id='429' AND source_name='4FGL J1238.5-1201' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 02:48:13 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0258>
Subject: Job 857735: <4FGL_J1238.5-1201_daily_bin429> in cluster <slac> Done

Job <4FGL_J1238.5-1201_daily_bin429> was submitted from host <rhel6-64c> by user <kocevski> in cluster <slac> at Mon Sep  6 02:35:26 2021
Job was executed on host(s) <bullet0258>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 02:35:53 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:35:53 2021
Terminated at Mon Sep  6 02:48:14 2021
Results reported at Mon Sep  6 02:48:14 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1238.5-1201_daily_bin429 189.625 -12.028 350524801 350784001 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 :                                   720.18 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             315.28 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   740 sec.
    Turnaround time :                            768 sec.

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

