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


Performing analysis on: 4FGL_J1238.5-1201_daily_bin1358
RA = 189.625, Dec = -12.028
tmin = 591321601, tmax = 591580801
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='862737', job_status='RUN', time_executed='2021-09-06 02:51:54.874803', time_epoch_executed='1630921914.87' WHERE source_name='4FGL J1238.5-1201' and cadence='daily' and bin_id='1358'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/862737

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/862737/ft1_4FGL_J1238.5-1201_daily_bin1358.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/862737/ft2_4FGL_J1238.5-1201_daily_bin1358.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/862737/ft1_4FGL_J1238.5-1201_daily_bin1358.fits outfile=/scratch/kocevski/862737/ft1_filteredMKT_4FGL_J1238.5-1201_daily_bin1358.fits ra=189.625 dec=-12.028 rad=12.0 tmin=591321601.0 tmax=591580801.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 2.94
user 2.72
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/862737/ft1_filtered_4FGL_J1238.5-1201_daily_bin1358.fits" evtable="EVENTS" scfile=/scratch/kocevski/862737/ft2_4FGL_J1238.5-1201_daily_bin1358.fits sctable="SC_DATA" outfile=/scratch/kocevski/862737/ltcube_591321601_591580801_4FGL_J1238.5-1201_daily_bin1358.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/862737/ft2_4FGL_J1238.5-1201_daily_bin1358.fits
.....................!
real 16.36
user 16.00
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/862737/ft1_filtered_4FGL_J1238.5-1201_daily_bin1358.fits evtable="EVENTS" scfile=/scratch/kocevski/862737/ft2_4FGL_J1238.5-1201_daily_bin1358.fits sctable="SC_DATA" expcube=/scratch/kocevski/862737/ltcube_591321601_591580801_4FGL_J1238.5-1201_daily_bin1358.fits outfile=/scratch/kocevski/862737/expmap_591321601_591580801_4FGL_J1238.5-1201_daily_bin1358.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/862737/ltcube_591321601_591580801_4FGL_J1238.5-1201_daily_bin1358.fits
.....................!
real 192.55
user 186.77
sys 5.28

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/862737/ft1_filtered_4FGL_J1238.5-1201_daily_bin1358.fits scfile=/scratch/kocevski/862737/ft2_4FGL_J1238.5-1201_daily_bin1358.fits outfile=/scratch/kocevski/862737/cmap_591321601_591580801_4FGL_J1238.5-1201_daily_bin1358.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.55
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/862737/ft1_filtered_4FGL_J1238.5-1201_daily_bin1358.fits scfile=/scratch/kocevski/862737/ft2_4FGL_J1238.5-1201_daily_bin1358.fits outfile=/scratch/kocevski/862737/cmap_HighResolution_591321601_591580801_4FGL_J1238.5-1201_daily_bin1358.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.39
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/862737/ft1_filtered_4FGL_J1238.5-1201_daily_bin1358.fits evtable="EVENTS" scfile=/scratch/kocevski/862737/ft2_4FGL_J1238.5-1201_daily_bin1358.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/862737/Model_4FGL_J1238.5-1201_daily_bin1358.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/862737/ft1_filtered_4FGL_J1238.5-1201_daily_bin1358.fits.....................!
real 21.11
user 19.77
sys 1.20

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

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 1010.5818587

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    8.1168       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .24011E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .65213E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10715E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    31.569       1.0000         .10000E-03   10000.    
     7 'Prefactor '    10000.       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10069E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    35.649       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10987E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    192.78       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .23222E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    3.3304       1.0000         .10000E-03   10000.    
    17 'norm      '    32.523       1.0000         .10000E-03   10000.    
    18 'norm      '    .10188E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10928E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    25.378       1.0000         .10000E-03   10000.    
    21 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    1.6740       1.0000         .10000E-03   10000.    
    23 'Prefactor '    8.9738       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .34150       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.1556       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=   1008.131     FROM MIGRAD    STATUS=CONVERGED    545 CALLS     3328 TOTAL
                     EDM=   .24E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    52.238        .16228E-07** at limit **
   2  Prefactor     .10457E-03    7221.5        .18827E-04** at limit **
   3  Prefactor     .10000E-03    760.71        .17218E-07** at limit **
   4  Prefactor     .10000E-03    610.72        .69843E-06** at limit **
   5  Prefactor     .10000E-03    663.51        .26519E-07** at limit **
   6  norm          31.569        20.943        .46331E-06   -.36534E-05
   7  Prefactor    10000.0        6615.7        .47607E-07** at limit **
   8  Prefactor     .10000E-03    146.02        .34409E-08** at limit **
   9  Prefactor     35.668        53.113        .23996E-05   -.39013E-04
  10  Prefactor     .10000E-03    143.04        .28659E-07** at limit **
  11  Prefactor     .10000E-03    169.75        .62318E-07** at limit **
  12  Prefactor     .10001E-03    99.806       -.97749E-06** at limit **
  13  Prefactor     .10000E-03    130.22        .13826E-07** at limit **
  14  norm          192.74        113.17        .18769E-05   -.90317E-04
  15  Prefactor     .10000E-03    613.59        .33791E-06** at limit **
  16  norm          3.3312        1.2091        .16470E-06   -.68296E-03
  17  norm          32.507        56.418        .89312E-06    .52697E-04
  18  norm          .10000E-03    30.051        .26295E-06** at limit **
  19  Prefactor     .10000E-03    411.52        .64513E-07** at limit **
  20  norm          25.318        52.212        .58808E-05   -.11852E-03
  21  norm          .10000E-03    17.823        .60625E-08** at limit **
  22  Prefactor     1.6757        40.353        .10723E-05   -.59481E-04
  23  Prefactor     8.9799        26.490        .24155E-05    .17022E-04
  24  Normalizat    .34071        .94055       -.56221E-04   -.34462E-04
  25  Prefactor     1.1561        .56945        .12507E-04   -.64076E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000104571
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 31.5694
  Prefactor  = 10000
  Prefactor  = 0.0001
  Prefactor  = 35.6681
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100012
  Prefactor  = 0.0001
  norm       = 192.737
  Prefactor  = 0.0001
  norm       = 3.33118
  norm       = 32.5068
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 25.3183
  norm       = 0.0001
  Prefactor  = 1.67566
  Prefactor  = 8.97992
  Normalizat = 0.340713
  Prefactor  = 1.15611
 **********
 **   18 **HESSE 
 **********

 FCN=   1008.131     FROM HESSE     STATUS=OK           409 CALLS     3737 TOTAL
                     EDM=   .46E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    52.239        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10457E-03    7234.0        .70363E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    760.71        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    612.07        .21019E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    663.51        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          31.569        21.017        .71313E-04   -1.4584    
   7  Prefactor    10000.0        6615.7        .18142E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    146.02        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     35.668        53.382        .67120E-04   -1.4513    
  10  Prefactor     .10000E-03    143.04        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    169.76        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10001E-03    100.08        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    130.23        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          192.74        113.30        .14545E-03   -1.2922    
  15  Prefactor     .10000E-03    613.84        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          3.3312        1.2182        .18564E-04   -1.5343    
  17  norm          32.507        57.473        .70262E-04   -1.4567    
  18  norm          .10000E-03    30.208        .17010E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    411.61        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          25.318        52.573        .79518E-04   -1.4701    
  21  norm          .10000E-03    17.833        .13095E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     1.6757        41.162        .32574E-03   -1.5449    
  23  Prefactor     8.9799        26.880        .13380E-03   -1.5109    
  24  Normalizat    .34071        .94660        .80532E-03   -1.2049    
  25  Prefactor     1.1561        .58847        .27759E-03   -.87693    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.59951e-10
Minuit parameter uncertainties:
  1  1.09399e-06
  2  1.0303
  3  6.75396e-05
  4  0.000201776
  5  2.82897e-05
  6  21.0221
  7  0.000515702
  8  3.77998e-06
  9  53.454
  10  1.52374e-05
  11  3.07027e-05
  12  0.00217796
  13  3.18679e-05
  14  113.43
  15  0.000252235
  16  1.21818
  17  57.571
  18  4.01654e-05
  19  0.000470593
  20  52.6697
  21  2.50469e-05
  22  16.6225
  23  26.9158
  24  0.9976
  25  0.591841
Done.

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

Extracting fit parameters...

4FGL J1238.5-1201
   Spectrum: PowerLaw
326    Prefactor:  1.000e-04  3.070e-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.156e+00  5.918e-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:  3.407e-01  9.976e-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: 3.82e-06 ph cm-2 s-1
Energy Flux Upper Limit: 3.00e-01 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/862737/likelihoodResults_591321601_591580801_4FGL_J1238.5-1201_daily_bin1358.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) = 1008.13143533
delta logL = -2.46545656637e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 1008.13141141
delta logL = -7.39991151022e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .15874E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.4386       1.0000          .0000       10.000    
     3 'Normalizat'    .34108       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1559       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=   1008.131     FROM MIGRAD    STATUS=CONVERGED     97 CALLS      280 TOTAL
                     EDM=   .84E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .11649E-03    245.25        .18142E-01** at limit **
   2  Index         3.0903        7.9724        .50000        .21060E-05
   3  Normalizat    .34072        .30417E-01    .80528E-03    .17718E-05
   4  Prefactor     1.1561        .18715E-01    .27759E-03    .54419E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000116493
  Index      = 3.09029
  Normalizat = 0.34072
  Prefactor  = 1.15611
 **********
 **   18 **HESSE 
 **********

 FCN=   1008.131     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      309 TOTAL
                     EDM=   .44E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .11649E-03    1220.2        .33371E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         3.0903        6.0730        .50000       -.39190    
   3  Normalizat    .34072        .69636E-01    .32211E-04   -1.2049    
   4  Prefactor     1.1561        .42855E-01    .11104E-04   -.87693    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.38564e-09
Minuit parameter uncertainties:
  1  0.289843
  2  2818.87
  3  0.0696534
  4  0.0428558
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/862737': 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) = 1008.13141088
delta logL = -2.10097823583e-07

Extracting fit parameters...

4FGL J1238.5-1201
   Spectrum: PowerLaw
326    Prefactor:  1.165e-04  2.898e-01  1.000e-04  1.000e+04 ( 1.000e-12)
327        Index:  3.090e+00  2.819e+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:  1.156e+00  4.286e-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:  3.407e-01  6.965e-02  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/862737/cmap_HighResolution_591321601_591580801_4FGL_J1238.5-1201_daily_bin1358.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.00e-01', job_status='DONE', photon_flux_upper_limit='3.82e-06', time_completed='2021-09-06 02:58:33.417770', job_id='862737', GAL2='1.16', fit_tolerance='1e-08', EG2='0.34', EG='0.34', time_epoch_completed='1630922313.42', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.16', dlogl='-2.10e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.66' WHERE bin_id='1358' AND source_name='4FGL J1238.5-1201' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 02:58:33 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0276>
Subject: Job 862737: <4FGL_J1238.5-1201_daily_bin1358> in cluster <slac> Done

Job <4FGL_J1238.5-1201_daily_bin1358> was submitted from host <rhel6-64c> by user <kocevski> in cluster <slac> at Mon Sep  6 02:50:35 2021
Job was executed on host(s) <bullet0276>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 02:51:28 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:51:28 2021
Terminated at Mon Sep  6 02:58:33 2021
Results reported at Mon Sep  6 02:58:33 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1238.5-1201_daily_bin1358 189.625 -12.028 591321601 591580801 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 :                                   396.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             390.47 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   425 sec.
    Turnaround time :                            478 sec.

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

