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


Performing analysis on: 4FGL_J1238.5-1201_daily_bin1480
RA = 189.625, Dec = -12.028
tmin = 622944001, tmax = 623203201
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='864166', job_status='RUN', time_executed='2021-09-06 02:56:11.516216', time_epoch_executed='1630922171.52' WHERE source_name='4FGL J1238.5-1201' and cadence='daily' and bin_id='1480'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/864166

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/864166/ft1_4FGL_J1238.5-1201_daily_bin1480.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/864166/ft2_4FGL_J1238.5-1201_daily_bin1480.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/864166/ft1_4FGL_J1238.5-1201_daily_bin1480.fits outfile=/scratch/kocevski/864166/ft1_filteredMKT_4FGL_J1238.5-1201_daily_bin1480.fits ra=189.625 dec=-12.028 rad=12.0 tmin=622944001.0 tmax=623203201.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.01
user 2.79
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/864166/ft1_filtered_4FGL_J1238.5-1201_daily_bin1480.fits" evtable="EVENTS" scfile=/scratch/kocevski/864166/ft2_4FGL_J1238.5-1201_daily_bin1480.fits sctable="SC_DATA" outfile=/scratch/kocevski/864166/ltcube_622944001_623203201_4FGL_J1238.5-1201_daily_bin1480.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/864166/ft2_4FGL_J1238.5-1201_daily_bin1480.fits
.....................!
real 12.89
user 12.54
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/864166/ft1_filtered_4FGL_J1238.5-1201_daily_bin1480.fits evtable="EVENTS" scfile=/scratch/kocevski/864166/ft2_4FGL_J1238.5-1201_daily_bin1480.fits sctable="SC_DATA" expcube=/scratch/kocevski/864166/ltcube_622944001_623203201_4FGL_J1238.5-1201_daily_bin1480.fits outfile=/scratch/kocevski/864166/expmap_622944001_623203201_4FGL_J1238.5-1201_daily_bin1480.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/864166/ltcube_622944001_623203201_4FGL_J1238.5-1201_daily_bin1480.fits
.....................!
real 190.90
user 186.46
sys 4.01

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/864166/ft1_filtered_4FGL_J1238.5-1201_daily_bin1480.fits scfile=/scratch/kocevski/864166/ft2_4FGL_J1238.5-1201_daily_bin1480.fits outfile=/scratch/kocevski/864166/cmap_622944001_623203201_4FGL_J1238.5-1201_daily_bin1480.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.58
user 0.37
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/864166/ft1_filtered_4FGL_J1238.5-1201_daily_bin1480.fits scfile=/scratch/kocevski/864166/ft2_4FGL_J1238.5-1201_daily_bin1480.fits outfile=/scratch/kocevski/864166/cmap_HighResolution_622944001_623203201_4FGL_J1238.5-1201_daily_bin1480.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.64
user 0.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/864166/ft1_filtered_4FGL_J1238.5-1201_daily_bin1480.fits evtable="EVENTS" scfile=/scratch/kocevski/864166/ft2_4FGL_J1238.5-1201_daily_bin1480.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/864166/Model_4FGL_J1238.5-1201_daily_bin1480.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/864166/ft1_filtered_4FGL_J1238.5-1201_daily_bin1480.fits................................!
real 17.08
user 15.69
sys 1.18

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/864166/ft1_filtered_4FGL_J1238.5-1201_daily_bin1480.fits', '/scratch/kocevski/864166/ft2_4FGL_J1238.5-1201_daily_bin1480.fits', expMap='/scratch/kocevski/864166/expmap_622944001_623203201_4FGL_J1238.5-1201_daily_bin1480.fits', expCube='/scratch/kocevski/864166/ltcube_622944001_623203201_4FGL_J1238.5-1201_daily_bin1480.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/864166/Model_4FGL_J1238.5-1201_daily_bin1480.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/864166/ft1_filtered_4FGL_J1238.5-1201_daily_bin1480.fits
Spacecraft file(s): /scratch/kocevski/864166/ft2_4FGL_J1238.5-1201_daily_bin1480.fits
Exposure map: /scratch/kocevski/864166/expmap_622944001_623203201_4FGL_J1238.5-1201_daily_bin1480.fits
Exposure cube: /scratch/kocevski/864166/ltcube_622944001_623203201_4FGL_J1238.5-1201_daily_bin1480.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/864166/Model_4FGL_J1238.5-1201_daily_bin1480.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 419.333488039

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 412.867044872

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    95.457       1.0000         .10000E-03   10000.    
     3 'Prefactor '    96.753       1.0000         .10000E-03   10000.    
     4 'Prefactor '    353.15       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .17466E-01   1.0000         .10000E-03   10000.    
     6 'norm      '    26.626       1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.1637       1.0000         .10000E-03   10000.    
     8 'Prefactor '    7.5025       1.0000         .10000E-03   10000.    
     9 'Prefactor '    70.768       1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.7704       1.0000         .10000E-03   10000.    
    11 'Prefactor '    5.1904       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    42.409       1.0000         .10000E-03   10000.    
    14 'norm      '    .80366E-01   1.0000         .10000E-03   10000.    
    15 'Prefactor '    9.2001       1.0000         .10000E-03   10000.    
    16 'norm      '    3.1777       1.0000         .10000E-03   10000.    
    17 'norm      '    997.68       1.0000         .10000E-03   10000.    
    18 'norm      '    .20259E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    157.12       1.0000         .10000E-03   10000.    
    20 'norm      '    .16031E-01   1.0000         .10000E-03   10000.    
    21 'norm      '    .10092E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    5.0176       1.0000         .10000E-03   10000.    
    23 'Prefactor '    71.759       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    25 'Prefactor '    .47506E-07   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=   412.1027     FROM MIGRAD    STATUS=CONVERGED    443 CALLS      976 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    12.262       -.60311E-08** at limit **
   2  Prefactor     95.475        97.611       -.25249E-05   -.72347E-05
   3  Prefactor     106.84        376.10       -.22171E-04    .12523E-04
   4  Prefactor     349.84        202.53        .23335E-05    .62530E-04
   5  Prefactor     .10002E-03    389.48       -.18404E-04** at limit **
   6  norm          26.770        21.350       -.31781E-05    .21893E-04
   7  Prefactor     1.1637        8677.9         .0000         .0000    
   8  Prefactor    10000.0        9857.1       -.16013E-03** at limit **
   9  Prefactor     70.169        61.010       -.12569E-05   -.63917E-04
  10  Prefactor    10000.0        9738.0        .70002E-04** at limit **
  11  Prefactor    10000.0        9827.4        .16230E-03** at limit **
  12  Prefactor     .10000E-03    17.140        .26381E-06** at limit **
  13  Prefactor     183.31        533.21        .80967E-04   -.37413E-04
  14  norm          .10000E-03    95.594       -.31687E-05** at limit **
  15  Prefactor     .15412E-03    8666.0       -.63441E-04** at limit **
  16  norm          2.7384        2.5773       -.28660E-05   -.10435E-02
  17  norm          844.05        856.65       -.47032E-04    .44539E-04
  18  norm          .10001E-03    395.61        .29897E-04** at limit **
  19  Prefactor     179.60        347.18        .42567E-04   -.39006E-04
  20  norm          .10000E-03    45.472        .42046E-05** at limit **
  21  norm          .10000E-03    23.038        .16333E-04** at limit **
  22  Prefactor     .10000E-03    90.657       -.25496E-04** at limit **
  23  Prefactor     64.798        48.480        .67146E-05    .17100E-03
  24  Normalizat    .10000E-01    .49324       -.27618E-04** at limit **
  25  Prefactor     .15733E-10    .57304        .23660E-04** at limit **
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 95.4752
  Prefactor  = 106.839
  Prefactor  = 349.839
  Prefactor  = 0.000100025
  norm       = 26.7696
  Prefactor  = 1.1637
  Prefactor  = 10000
  Prefactor  = 70.169
  Prefactor  = 10000
  Prefactor  = 10000
  Prefactor  = 0.0001
  Prefactor  = 183.308
  norm       = 0.0001
  Prefactor  = 0.000154119
  norm       = 2.73839
  norm       = 844.052
  norm       = 0.000100006
  Prefactor  = 179.602
  norm       = 0.0001
  norm       = 0.000100002
  Prefactor  = 0.000100003
  Prefactor  = 64.7981
  Normalizat = 0.01
  Prefactor  = 1.5733e-11
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   412.1027     FROM HESSE     STATUS=FAILED        33 CALLS     1009 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    12.272        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     95.475        97.750        .10285E-02   -1.3751    
   3  Prefactor     106.84        311.99        .10216E-02   -1.3637    
   4  Prefactor     349.84        159.27        .54178E-03   -1.1945    
   5  Prefactor     .10002E-03    359.08        .91101E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          26.770        17.167        .19409E-02   -1.4673    
   7  Prefactor     584.64        583.19         .0000       -1.5492    
   8  Prefactor    10000.0        .33497E-01   -.16013E-03    1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     70.169        .99581       -.12569E-05   -1.4031    
  10  Prefactor    10000.0        .53022E-01    .70002E-04   -4.7124    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor    10000.0        .48647E-01    .16230E-03    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    .20571        .26381E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     183.31        2.0644        .80967E-04   -1.2992    
  14  norm          .10000E-03    .22171       -.31687E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .15412E-03    .27280E-01   -.63441E-04   -14.137    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          2.7384        .94034       -.28660E-05   -1.5377    
  17  norm          844.05        .92761       -.47032E-04   -.98124    
  18  norm          .10001E-03    .20571        .29897E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     179.60        1.0679        .42567E-04   -1.3020    
  20  norm          .10000E-03    .20716        .42046E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    .20571        .16333E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    .50356E-01   -.25496E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     64.798        .95062        .67146E-05   -1.4096    
  24  Normalizat    .10000E-01    .25505       -.27618E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .15733E-10    .25504        .23660E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.14003e-09
Minuit parameter uncertainties:
  1  1.61154e-06
  2  97.9157
  3  316.993
  4  159.471
  5  0.00599013
  6  17.1704
  7  1.15036
  8  0.0017534
  9  0.995812
  10  0.000445489
  11  0.000171259
  12  4.33139e-07
  13  2.06442
  14  2.01903e-05
  15  0.0024301
  16  0.94034
  17  0.927606
  18  7.1301e-05
  19  1.06794
  20  4.00956e-06
  21  4.22362e-05
  22  2.54574e-05
  23  0.950617
  24  7.09342e-06
  25  4.02352e-06
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 412.102747964

Extracting fit parameters...

4FGL J1238.5-1201
   Spectrum: PowerLaw
326    Prefactor:  1.000e+04  1.713e-04  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.573e-11  4.024e-06  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.000e-02  7.093e-06  1.000e-02  1.000e+01 ( 1.000e+00)

calc_int error: parameter max 10000.0 is not large enough
delta logLike = 1.65233473126e-07

TS (Fixed Index): 0.38
Ra Dec: 189.625 -12.028
Photon Flux Upper Limit: -1.00e+00 ph cm-2 s-1
Energy Flux Upper Limit: -7.85e+04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/864166/likelihoodResults_622944001_623203201_4FGL_J1238.5-1201_daily_bin1480.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) = 409.886338583
delta logL = 2.21640938149

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 409.885939282
delta logL = 2.21680868266

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Index     '    10.000       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=   409.8859     FROM MIGRAD    STATUS=CONVERGED     11 CALLS       52 TOTAL
                     EDM=   .24E-16    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1    Index       10.000        1.0011        .28650    ** at limit **
                               ERR DEF=  .500    
Final values: 
  Index      = 10
 **********
 **   18 **HESSE 
 **********

 FCN=   409.8859     FROM HESSE     STATUS=OK             5 CALLS       57 TOTAL
                     EDM=   .23E-16    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1    Index       10.000        .98945        .63689E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.32955e-17
Minuit parameter uncertainties:
  1  9.88414e-09
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/864166': 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) = 409.885939282
delta logL = 2.21680868266

Extracting fit parameters...

4FGL J1238.5-1201
   Spectrum: PowerLaw
326    Prefactor:  1.000e+04  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12) fixed
327        Index:  1.000e+01  9.884e-09  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.353e-05  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
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.002e-02  0.000e+00  1.000e-02  1.000e+01 ( 1.000e+00) fixed


TS (Free Index): 4.81
Ra Dec: 189.625 -12.028
Photon Index (Free Index): 10.00 +/- 0.00
Photon Flux (Free Index): 1.75e+00 +/- 2.58e-08
Energy Flux (Free Index): 1.95e+02 +/- 2.88e-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/864166/cmap_HighResolution_622944001_623203201_4FGL_J1238.5-1201_daily_bin1480.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='-7.85e+04', comment='SUCCESS', energy_flux2='1.95e+02', dlogl='2.22e+00', photon_flux2='1.75e+00', job_status='DONE', time_completed='2021-09-06 03:01:45.659514', photon_index_error2='0.00', photon_index2='10.00', ts='0.38', fit_tolerance='1e-08', GAL='0.00', photon_index_error='0.00', photon_flux_upper_limit='-1.00e+00', energy_flux_error2='2.88e-06', EG='0.01', time_epoch_completed='1630922505.66', return_code='101', job_id='864166', GAL2='0.00', EG2='0.01', return_code2='0', photon_flux_error2='2.58e-08', ts2='4.81', photon_index='2.66' WHERE bin_id='1480' AND source_name='4FGL J1238.5-1201' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 03:01:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0252>
Subject: Job 864166: <4FGL_J1238.5-1201_daily_bin1480> in cluster <slac> Done

Job <4FGL_J1238.5-1201_daily_bin1480> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Mon Sep  6 02:55:30 2021
Job was executed on host(s) <bullet0252>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 02:56:03 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:56:03 2021
Terminated at Mon Sep  6 03:01:46 2021
Results reported at Mon Sep  6 03:01:46 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1238.5-1201_daily_bin1480 189.625 -12.028 622944001 623203201 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 :                                   330.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             424.92 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   342 sec.
    Turnaround time :                            376 sec.

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

