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


Performing analysis on: 4FGL_J1238.5-1201_daily_bin195
RA = 189.625, Dec = -12.028
tmin = 289872001, tmax = 290131201
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='856149', job_status='RUN', time_executed='2021-09-06 02:33:51.957471', time_epoch_executed='1630920831.96' WHERE source_name='4FGL J1238.5-1201' and cadence='daily' and bin_id='195'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/856149

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/856149/ft1_4FGL_J1238.5-1201_daily_bin195.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/856149/ft2_4FGL_J1238.5-1201_daily_bin195.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/856149/ft1_4FGL_J1238.5-1201_daily_bin195.fits outfile=/scratch/kocevski/856149/ft1_filteredMKT_4FGL_J1238.5-1201_daily_bin195.fits ra=189.625 dec=-12.028 rad=12.0 tmin=289872001.0 tmax=290131201.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.59
user 3.30
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/856149/ft1_filtered_4FGL_J1238.5-1201_daily_bin195.fits" evtable="EVENTS" scfile=/scratch/kocevski/856149/ft2_4FGL_J1238.5-1201_daily_bin195.fits sctable="SC_DATA" outfile=/scratch/kocevski/856149/ltcube_289872001_290131201_4FGL_J1238.5-1201_daily_bin195.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/856149/ft2_4FGL_J1238.5-1201_daily_bin195.fits
.....................!
real 15.46
user 15.03
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/856149/ft1_filtered_4FGL_J1238.5-1201_daily_bin195.fits evtable="EVENTS" scfile=/scratch/kocevski/856149/ft2_4FGL_J1238.5-1201_daily_bin195.fits sctable="SC_DATA" expcube=/scratch/kocevski/856149/ltcube_289872001_290131201_4FGL_J1238.5-1201_daily_bin195.fits outfile=/scratch/kocevski/856149/expmap_289872001_290131201_4FGL_J1238.5-1201_daily_bin195.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/856149/ltcube_289872001_290131201_4FGL_J1238.5-1201_daily_bin195.fits
.....................!
real 192.28
user 186.50
sys 5.17

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/856149/ft1_filtered_4FGL_J1238.5-1201_daily_bin195.fits scfile=/scratch/kocevski/856149/ft2_4FGL_J1238.5-1201_daily_bin195.fits outfile=/scratch/kocevski/856149/cmap_289872001_290131201_4FGL_J1238.5-1201_daily_bin195.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/856149/ft1_filtered_4FGL_J1238.5-1201_daily_bin195.fits scfile=/scratch/kocevski/856149/ft2_4FGL_J1238.5-1201_daily_bin195.fits outfile=/scratch/kocevski/856149/cmap_HighResolution_289872001_290131201_4FGL_J1238.5-1201_daily_bin195.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.39
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/856149/ft1_filtered_4FGL_J1238.5-1201_daily_bin195.fits evtable="EVENTS" scfile=/scratch/kocevski/856149/ft2_4FGL_J1238.5-1201_daily_bin195.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/856149/Model_4FGL_J1238.5-1201_daily_bin195.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/856149/ft1_filtered_4FGL_J1238.5-1201_daily_bin195.fits.....................!
real 55.84
user 54.49
sys 1.15

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.2737       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    5.7543       1.0000         .10000E-03   10000.    
     7 'Prefactor '    8.1557       1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.7471       1.0000         .10000E-03   10000.    
     9 'Prefactor '    13.467       1.0000         .10000E-03   10000.    
    10 'Prefactor '    15.677       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10135E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10286E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    14.855       1.0000         .10000E-03   10000.    
    14 'norm      '    24.030       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .86793       1.0000         .10000E-03   10000.    
    17 'norm      '    .98784E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    9.0918       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    1.5461       1.0000         .10000E-03   10000.    
    21 'norm      '    7.7431       1.0000         .10000E-03   10000.    
    22 'Prefactor '    8.0474       1.0000         .10000E-03   10000.    
    23 'Prefactor '    5.4198       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.4677       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .86959       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=   6600.328     FROM MIGRAD    STATUS=CONVERGED    584 CALLS     2894 TOTAL
                     EDM=   .18E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.2714        5.6189       -.14100E-07   -.81867E-05
   2  Prefactor     .10000E-03    11.934       -.24543E-05** at limit **
   3  Prefactor     .10000E-03    12.519        .28124E-05** at limit **
   4  Prefactor     .10000E-03    12.199        .11054E-05** at limit **
   5  Prefactor     .10000E-03    13.870       -.16553E-05** at limit **
   6  norm          5.7538        3.8365       -.17395E-07   -.14224E-04
   7  Prefactor     8.1521        7.0959        .23549E-06   -.69927E-03
   8  Prefactor     2.7470        1.9043       -.51026E-07    .34847E-05
   9  Prefactor     13.470        14.705        .15657E-06   -.17535E-03
  10  Prefactor     15.678        11.088       -.38517E-07    .47578E-05
  11  Prefactor     .10000E-03    19.269        .78142E-06** at limit **
  12  Prefactor     .10000E-03    6.9463       -.22308E-06** at limit **
  13  Prefactor     14.773        33.947       -.84834E-06   -.67389E-05
  14  norm          24.035        21.820       -.16022E-05   -.45014E-04
  15  Prefactor     .10000E-03    46.170        .32692E-06** at limit **
  16  norm          .86787        .27683        .59653E-08   -.51241E-04
  17  norm          .10000E-03    5.6993       -.12394E-06** at limit **
  18  norm          9.0934        6.6606       -.98290E-06   -.11168E-03
  19  Prefactor     .10000E-03    26.091       -.26915E-06** at limit **
  20  norm          1.5405        12.532       -.33727E-08   -.83293E-04
  21  norm          7.7420        11.180        .18643E-06   -.27349E-03
  22  Prefactor     8.0458        11.499        .36704E-07   -.58647E-05
  23  Prefactor     5.4171        10.429        .38018E-06   -.46373E-03
  24  Normalizat    1.4677        .25273       -.90887E-07    .22233E-04
  25  Prefactor     .86974        .14119        .23842E-06    .17973E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.27137
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.75379
  Prefactor  = 8.15211
  Prefactor  = 2.74696
  Prefactor  = 13.4699
  Prefactor  = 15.6776
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 14.7727
  norm       = 24.0347
  Prefactor  = 0.0001
  norm       = 0.867867
  norm       = 0.000100005
  norm       = 9.0934
  Prefactor  = 0.0001
  norm       = 1.54052
  norm       = 7.74195
  Prefactor  = 8.04583
  Prefactor  = 5.41707
  Normalizat = 1.46767
  Prefactor  = 0.869741
 **********
 **   18 **HESSE 
 **********

 FCN=   6600.328     FROM HESSE     STATUS=OK           433 CALLS     3327 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.2714        5.6356        .14872E-03   -1.5169    
   2  Prefactor     .10000E-03    11.997        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    12.560        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    12.312        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    13.894        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          5.7538        3.8353        .12581E-03   -1.5228    
   7  Prefactor     8.1521        8.3226        .70194E-03   -1.5137    
   8  Prefactor     2.7470        1.9158        .88853E-04   -1.5376    
   9  Prefactor     13.470        15.149        .54574E-03   -1.4974    
  10  Prefactor     15.678        11.093        .10116E-03   -1.4916    
  11  Prefactor     .10000E-03    19.791        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    6.9917        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     14.773        34.064        .10392E-03   -1.4939    
  14  norm          24.035        21.855        .81715E-04   -1.4727    
  15  Prefactor     .10000E-03    46.218        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .86787        .27802        .22520E-04   -1.5522    
  17  norm          .10000E-03    34.675        .36865E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          9.0934        6.6915        .13292E-03   -1.5105    
  19  Prefactor     .10000E-03    26.105        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          1.5405        12.825        .34270E-03   -1.5460    
  21  norm          7.7420        11.428        .72053E-03   -1.5151    
  22  Prefactor     8.0458        11.534        .14134E-03   -1.5141    
  23  Prefactor     5.4171        13.352        .86304E-03   -1.5242    
  24  Normalizat    1.4677        .30425        .31946E-03   -.78691    
  25  Prefactor     .86974        .16639        .22743E-03   -.97207    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.53122e-09
Minuit parameter uncertainties:
  1  5.63604
  2  4.92873e-05
  3  5.7863e-05
  4  1.57332e-05
  5  3.74273e-05
  6  3.83547
  7  8.32375
  8  1.91582
  9  15.1536
  10  11.0949
  11  2.67852e-06
  12  1.27905e-06
  13  34.1087
  14  21.8619
  15  4.97073e-05
  16  0.27802
  17  0.000803107
  18  6.69206
  19  6.82307e-06
  20  8.89201
  21  11.4313
  22  11.5374
  23  13.359
  24  0.304629
  25  0.166489
Done.

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

Extracting fit parameters...

4FGL J1238.5-1201
   Spectrum: PowerLaw
326    Prefactor:  1.000e-04  2.679e-06  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.697e-01  1.665e-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.468e+00  3.046e-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.25e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.85e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/856149/likelihoodResults_289872001_290131201_4FGL_J1238.5-1201_daily_bin195.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6600.32839246
delta logL = -0.000241076567363

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6600.3281514
delta logL = -1.58179318532e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6524       1.0000          .0000       10.000    
     3 'Normalizat'    1.4676       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86977       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=   6600.328     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      250 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10013E-03    1305.1        .36285E-03** at limit **
   2  Index         2.6331        7.0069        .50000        .23277E-05
   3  Normalizat    1.4677        .56977E-01    .31946E-03   -.36904E-04
   4  Prefactor     .86974        .32436E-01    .22743E-03   -.51786E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00010013
  Index      = 2.63308
  Normalizat = 1.46767
  Prefactor  = 0.869741
 **********
 **   18 **HESSE 
 **********

 FCN=   6600.328     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      279 TOTAL
                     EDM=   .48E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10013E-03    6773.1        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.6331        6.3184        .50000       -.49313    
   3  Normalizat    1.4677        .14643        .12778E-04   -.78691    
   4  Prefactor     .86974        .83356E-01    .90973E-05   -.97207    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.78477e-09
Minuit parameter uncertainties:
  1  0.0459674
  2  2142.72
  3  0.146472
  4  0.0833685
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/856149': 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): 102
logL (Free Index) = 6600.32815137
delta logL = 1.50339474203e-08

Extracting fit parameters...

4FGL J1238.5-1201
   Spectrum: PowerLaw
326    Prefactor:  1.001e-04  4.597e-02  1.000e-04  1.000e+04 ( 1.000e-12)
327        Index:  2.633e+00  2.143e+03  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.697e-01  8.337e-02  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.468e+00  1.465e-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/856149/cmap_HighResolution_289872001_290131201_4FGL_J1238.5-1201_daily_bin195.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.85e-03', job_status='DONE', photon_flux_upper_limit='1.25e-07', time_completed='2021-09-06 02:46:26.774303', job_id='856149', GAL2='0.87', fit_tolerance='1e-08', EG2='1.47', EG='1.47', time_epoch_completed='1630921586.77', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.87', dlogl='1.50e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.66' WHERE bin_id='195' AND source_name='4FGL J1238.5-1201' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 02:46:26 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0238>
Subject: Job 856149: <4FGL_J1238.5-1201_daily_bin195> in cluster <slac> Done

Job <4FGL_J1238.5-1201_daily_bin195> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Mon Sep  6 02:30:45 2021
Job was executed on host(s) <bullet0238>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 02:31:17 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:31:17 2021
Terminated at Mon Sep  6 02:46:27 2021
Results reported at Mon Sep  6 02:46:27 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1238.5-1201_daily_bin195 189.625 -12.028 289872001 290131201 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 :                                   751.37 sec.
    Max Memory :                                 1115 MB
    Average Memory :                             308.97 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   910 sec.
    Turnaround time :                            942 sec.

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

