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


Performing analysis on: 4FGL_J1238.5-1201_daily_bin958
RA = 189.625, Dec = -12.028
tmin = 487641601, tmax = 487900801
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='861105', job_status='RUN', time_executed='2021-09-06 02:47:01.058769', time_epoch_executed='1630921621.06' WHERE source_name='4FGL J1238.5-1201' and cadence='daily' and bin_id='958'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/861105

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/861105/ft1_4FGL_J1238.5-1201_daily_bin958.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/861105/ft2_4FGL_J1238.5-1201_daily_bin958.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/861105/ft1_4FGL_J1238.5-1201_daily_bin958.fits outfile=/scratch/kocevski/861105/ft1_filteredMKT_4FGL_J1238.5-1201_daily_bin958.fits ra=189.625 dec=-12.028 rad=12.0 tmin=487641601.0 tmax=487900801.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 5.12
user 4.86
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/861105/ft1_filtered_4FGL_J1238.5-1201_daily_bin958.fits" evtable="EVENTS" scfile=/scratch/kocevski/861105/ft2_4FGL_J1238.5-1201_daily_bin958.fits sctable="SC_DATA" outfile=/scratch/kocevski/861105/ltcube_487641601_487900801_4FGL_J1238.5-1201_daily_bin958.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/861105/ft2_4FGL_J1238.5-1201_daily_bin958.fits
.....................!
real 15.25
user 14.69
sys 0.38

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/861105/ft1_filtered_4FGL_J1238.5-1201_daily_bin958.fits evtable="EVENTS" scfile=/scratch/kocevski/861105/ft2_4FGL_J1238.5-1201_daily_bin958.fits sctable="SC_DATA" expcube=/scratch/kocevski/861105/ltcube_487641601_487900801_4FGL_J1238.5-1201_daily_bin958.fits outfile=/scratch/kocevski/861105/expmap_487641601_487900801_4FGL_J1238.5-1201_daily_bin958.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/861105/ltcube_487641601_487900801_4FGL_J1238.5-1201_daily_bin958.fits
.....................!
real 191.56
user 186.13
sys 5.00

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/861105/ft1_filtered_4FGL_J1238.5-1201_daily_bin958.fits scfile=/scratch/kocevski/861105/ft2_4FGL_J1238.5-1201_daily_bin958.fits outfile=/scratch/kocevski/861105/cmap_487641601_487900801_4FGL_J1238.5-1201_daily_bin958.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.56
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/861105/ft1_filtered_4FGL_J1238.5-1201_daily_bin958.fits scfile=/scratch/kocevski/861105/ft2_4FGL_J1238.5-1201_daily_bin958.fits outfile=/scratch/kocevski/861105/cmap_HighResolution_487641601_487900801_4FGL_J1238.5-1201_daily_bin958.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.56
user 0.38
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/861105/ft1_filtered_4FGL_J1238.5-1201_daily_bin958.fits evtable="EVENTS" scfile=/scratch/kocevski/861105/ft2_4FGL_J1238.5-1201_daily_bin958.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/861105/Model_4FGL_J1238.5-1201_daily_bin958.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/861105/ft1_filtered_4FGL_J1238.5-1201_daily_bin958.fits.....................!
real 55.98
user 54.32
sys 1.41

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .35378E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    27.770       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10192E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10049E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    39.459       1.0000         .10000E-03   10000.    
     6 'norm      '    8.6608       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.5151       1.0000         .10000E-03   10000.    
     9 'Prefactor '    7.4821       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10088E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .66958       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10094E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .35539E-02   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10133E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    2.0000       1.0000         .10000E-03   10000.    
    17 'norm      '    4.4650       1.0000         .10000E-03   10000.    
    18 'norm      '    18.136       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10062E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10155E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10021E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.0404       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.1495       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6130E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6402.979     FROM MIGRAD    STATUS=CONVERGED   1014 CALLS     3750 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    20.281        .34971E-02** at limit **
   2  Prefactor     27.754        27.881        .76023E-04   -.26520E-03
   3  Prefactor     .10000E-03    25.441        .18142E-02** at limit **
   4  Prefactor     .10000E-03    23.344        .18142E-02** at limit **
   5  Prefactor     39.478        48.994        .63809E-04   -.16748E-04
   6  norm          8.6619        5.0861        .13401E-03   -.13463E-03
   7  Prefactor     .10000E-03    3.4242        .14406E-02** at limit **
   8  Prefactor     2.5148        2.1711        .10600E-03   -.13911E-03
   9  Prefactor     7.4862        10.021        .14662E-03   -.63660E-04
  10  Prefactor     .10000E-03    5.0579        .17555E-02** at limit **
  11  Prefactor     .10000E-03    6.1807        .18142E-02** at limit **
  12  Prefactor     .61596        44.206        .45176E-02    .12541E-03
  13  Prefactor     .10000E-03    26.008        .18142E-02** at limit **
  14  norm          .10000E-03    223.88        .80517E-02** at limit **
  15  Prefactor     .10000E-03    129.00        .18142E-02** at limit **
  16  norm          2.0001        .40162        .21243E-04   -.19555E-02
  17  norm          4.4646        6.6831        .19056E-03   -.17612E-03
  18  norm          18.132        9.2208        .94048E-04   -.50794E-03
  19  Prefactor     .10000E-03    21.768        .18142E-02** at limit **
  20  norm          .10000E-03    7.8056        .18142E-02** at limit **
  21  norm          .10000E-03    11.021        .18142E-02** at limit **
  22  Prefactor     .10000E-03    23.900        .36285E-03** at limit **
  23  Prefactor     .10000E-03    13.564        .18142E-02** at limit **
  24  Normalizat    1.0403        .31819        .38354E-03   -.28951E-03
  25  Prefactor     1.1496        .18273        .21147E-03   -.71377E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 27.7542
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 39.4776
  norm       = 8.66188
  Prefactor  = 0.0001
  Prefactor  = 2.51482
  Prefactor  = 7.48623
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.61596
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  norm       = 2.00012
  norm       = 4.46459
  norm       = 18.1325
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.000100001
  Normalizat = 1.0403
  Prefactor  = 1.14956
 **********
 **   18 **HESSE 
 **********

 FCN=   6402.979     FROM HESSE     STATUS=OK           403 CALLS     4153 TOTAL
                     EDM=   .91E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    20.551        .69942E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     27.754        27.858        .15205E-04   -1.4654    
   3  Prefactor     .10000E-03    25.442        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    23.352        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     39.478        48.988        .25524E-05   -1.4451    
   6  norm          8.6619        5.0860        .53606E-05   -1.5119    
   7  Prefactor     .10000E-03    3.4245        .28812E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     2.5148        2.1709        .42398E-05   -1.5391    
   9  Prefactor     7.4862        9.9853        .58648E-05   -1.5161    
  10  Prefactor     .10000E-03    5.0583        .35110E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    6.1814        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .61596        44.026        .18070E-03   -1.5551    
  13  Prefactor     .10000E-03    26.008        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    232.51        .32207E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    129.01        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          2.0001        .40151        .42485E-05   -1.5425    
  17  norm          4.4646        6.6826        .76223E-05   -1.5285    
  18  norm          18.132        9.2201        .37619E-05   -1.4856    
  19  Prefactor     .10000E-03    21.768        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    7.8066        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    11.026        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    23.902        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    13.574        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.0403        .31807        .15342E-04   -.91692    
  25  Prefactor     1.1496        .18287        .42295E-04   -.87898    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.12985e-10
Minuit parameter uncertainties:
  1  8.5771e-05
  2  27.8713
  3  0.000185661
  4  0.000227448
  5  49.0376
  6  5.08627
  7  1.50307e-05
  8  2.171
  9  9.98757
  10  7.53179e-06
  11  3.38809e-05
  12  10.4222
  13  2.40869e-05
  14  0.00065929
  15  0.000721698
  16  0.40151
  17  6.68376
  18  9.22078
  19  0.000144265
  20  3.68714e-05
  21  5.41507e-05
  22  0.000387298
  23  0.000169139
  24  0.318654
  25  0.182969
Done.

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

Extracting fit parameters...

4FGL J1238.5-1201
   Spectrum: PowerLaw
326    Prefactor:  1.000e-04  3.388e-05  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:  1.150e+00  1.830e-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.040e+00  3.187e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 189.625 -12.028
Photon Flux Upper Limit: 1.21e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.52e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/861105/likelihoodResults_487641601_487900801_4FGL_J1238.5-1201_daily_bin958.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) = 6402.9799796
delta logL = -0.000769872290221

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6402.97920974
delta logL = -5.82076609135e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6542       1.0000          .0000       10.000    
     3 'Normalizat'    1.0403       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1496       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6130E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   6402.979     FROM MIGRAD    STATUS=FAILED        96 CALLS      248 TOTAL
                     EDM=   .73E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1157.8        .18142E-02** at limit **
   2  Index         2.4013        8.4912        .50000       -.29434E-06
   3  Normalizat    1.0403        .13587        .38354E-03    .15680E-03
   4  Prefactor     1.1496        .78849E-01    .21147E-03    .29530E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6402.979     FROM SIMPLEX   STATUS=UNCHANGED    184 CALLS      432 TOTAL
                     EDM=   .11E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1157.8        .42353E-03** at limit **
   2  Index         2.4013        8.4912        .33175E-06   -.29434E-06
   3  Normalizat    1.0403        .13587        .47040E-07    .15680E-03
   4  Prefactor     1.1496        .78849E-01    .11914E-07    .29530E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6402.979     FROM MIGRAD    STATUS=CONVERGED     34 CALLS      466 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7.1346        .36285E-03** at limit **
   2  Index         2.4036        8.6099        .50000       -.19882E-06
   3  Normalizat    1.0403        .30564        .15342E-04    .15666E-03
   4  Prefactor     1.1496        .17753        .42295E-04    .29503E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.40361
  Normalizat = 1.0403
  Prefactor  = 1.14956
 **********
 **   18 **HESSE 
 **********

 FCN=   6402.979     FROM HESSE     STATUS=OK            29 CALLS      495 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6.4228        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4036        5.7260        .50000       -.54601    
   3  Normalizat    1.0403        .30588        .30683E-05   -.91692    
   4  Prefactor     1.1496        .17764        .84589E-05   -.87898    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.53772e-10
Minuit parameter uncertainties:
  1  7.25587e-05
  2  168.148
  3  0.306396
  4  0.177729
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/861105': 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) = 6402.97920946
delta logL = 2.72348188446e-07

Extracting fit parameters...

4FGL J1238.5-1201
   Spectrum: PowerLaw
326    Prefactor:  1.000e-04  7.256e-05  1.000e-04  1.000e+04 ( 1.000e-12)
327        Index:  2.404e+00  1.681e+02  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:  1.150e+00  1.777e-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.040e+00  3.064e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

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/861105/cmap_HighResolution_487641601_487900801_4FGL_J1238.5-1201_daily_bin958.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.52e-03', job_status='DONE', photon_flux_upper_limit='1.21e-07', time_completed='2021-09-06 03:00:52.804017', job_id='861105', GAL2='1.15', fit_tolerance='1e-08', EG2='1.04', EG='1.04', time_epoch_completed='1630922452.8', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.15', dlogl='2.72e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.66' WHERE bin_id='958' AND source_name='4FGL J1238.5-1201' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 03:00:52 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0231>
Subject: Job 861105: <4FGL_J1238.5-1201_daily_bin958> in cluster <slac> Done

Job <4FGL_J1238.5-1201_daily_bin958> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Mon Sep  6 02:45:57 2021
Job was executed on host(s) <bullet0231>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 02:46:47 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:46:47 2021
Terminated at Mon Sep  6 03:00:53 2021
Results reported at Mon Sep  6 03:00:53 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1238.5-1201_daily_bin958 189.625 -12.028 487641601 487900801 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 :                                   828.05 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             294.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   846 sec.
    Turnaround time :                            896 sec.

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

