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


Performing analysis on: 4FGL_J1238.3-1959_daily_bin1037
RA = 189.594, Dec = -19.9945
tmin = 508118401, tmax = 508377601
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='851461', job_status='RUN', time_executed='2021-09-06 02:16:56.931686', time_epoch_executed='1630919816.93' WHERE source_name='4FGL J1238.3-1959' and cadence='daily' and bin_id='1037'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/851461

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/851461/ft1_4FGL_J1238.3-1959_daily_bin1037.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/851461/ft2_4FGL_J1238.3-1959_daily_bin1037.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/851461/ft1_4FGL_J1238.3-1959_daily_bin1037.fits outfile=/scratch/kocevski/851461/ft1_filteredMKT_4FGL_J1238.3-1959_daily_bin1037.fits ra=189.594 dec=-19.9945 rad=12.0 tmin=508118401.0 tmax=508377601.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.72
user 3.43
sys 0.23

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/851461/ft2_4FGL_J1238.3-1959_daily_bin1037.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/851461/ft2_4FGL_J1238.3-1959_daily_bin1037.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/851461/ft1_filteredMKT_4FGL_J1238.3-1959_daily_bin1037.fits evtable="EVENTS" outfile="/scratch/kocevski/851461/ft1_filtered_4FGL_J1238.3-1959_daily_bin1037.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.63
user 0.35
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/851461/ft1_filtered_4FGL_J1238.3-1959_daily_bin1037.fits" evtable="EVENTS" scfile=/scratch/kocevski/851461/ft2_4FGL_J1238.3-1959_daily_bin1037.fits sctable="SC_DATA" outfile=/scratch/kocevski/851461/ltcube_508118401_508377601_4FGL_J1238.3-1959_daily_bin1037.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/851461/ft2_4FGL_J1238.3-1959_daily_bin1037.fits
.....................!
real 13.40
user 12.95
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/851461/ft1_filtered_4FGL_J1238.3-1959_daily_bin1037.fits evtable="EVENTS" scfile=/scratch/kocevski/851461/ft2_4FGL_J1238.3-1959_daily_bin1037.fits sctable="SC_DATA" expcube=/scratch/kocevski/851461/ltcube_508118401_508377601_4FGL_J1238.3-1959_daily_bin1037.fits outfile=/scratch/kocevski/851461/expmap_508118401_508377601_4FGL_J1238.3-1959_daily_bin1037.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/851461/ltcube_508118401_508377601_4FGL_J1238.3-1959_daily_bin1037.fits
.....................!
real 191.65
user 186.17
sys 4.91

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 185 point sources and 0 extended sources

Setting source of interest to:
4FGL J1238.3-1959 @ 189.594 -19.9945

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/851461/ft1_filtered_4FGL_J1238.3-1959_daily_bin1037.fits scfile=/scratch/kocevski/851461/ft2_4FGL_J1238.3-1959_daily_bin1037.fits outfile=/scratch/kocevski/851461/cmap_508118401_508377601_4FGL_J1238.3-1959_daily_bin1037.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.594 yref=-19.9945 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.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/851461/ft1_filtered_4FGL_J1238.3-1959_daily_bin1037.fits scfile=/scratch/kocevski/851461/ft2_4FGL_J1238.3-1959_daily_bin1037.fits outfile=/scratch/kocevski/851461/cmap_HighResolution_508118401_508377601_4FGL_J1238.3-1959_daily_bin1037.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.594 yref=-19.9945 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.37
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/851461/ft1_filtered_4FGL_J1238.3-1959_daily_bin1037.fits evtable="EVENTS" scfile=/scratch/kocevski/851461/ft2_4FGL_J1238.3-1959_daily_bin1037.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/851461/Model_4FGL_J1238.3-1959_daily_bin1037.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/851461/ft1_filtered_4FGL_J1238.3-1959_daily_bin1037.fits.....................!
real 71.99
user 69.19
sys 1.18

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/851461/ft1_filtered_4FGL_J1238.3-1959_daily_bin1037.fits', '/scratch/kocevski/851461/ft2_4FGL_J1238.3-1959_daily_bin1037.fits', expMap='/scratch/kocevski/851461/expmap_508118401_508377601_4FGL_J1238.3-1959_daily_bin1037.fits', expCube='/scratch/kocevski/851461/ltcube_508118401_508377601_4FGL_J1238.3-1959_daily_bin1037.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/851461/Model_4FGL_J1238.3-1959_daily_bin1037.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1238.3-1959'

4FGL J1238.3-1959
   Spectrum: PowerLaw
307    Prefactor:  3.073e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
308        Index:  2.151e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
309        Scale:  1.503e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/851461/ft1_filtered_4FGL_J1238.3-1959_daily_bin1037.fits
Spacecraft file(s): /scratch/kocevski/851461/ft2_4FGL_J1238.3-1959_daily_bin1037.fits
Exposure map: /scratch/kocevski/851461/expmap_508118401_508377601_4FGL_J1238.3-1959_daily_bin1037.fits
Exposure cube: /scratch/kocevski/851461/ltcube_508118401_508377601_4FGL_J1238.3-1959_daily_bin1037.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/851461/Model_4FGL_J1238.3-1959_daily_bin1037.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) = 9310.25998769

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    7.7771       1.0000         .10000E-03   10000.    
     3 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .94404       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10086E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    14.111       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    5.3613       1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.7128       1.0000         .10000E-03   10000.    
    13 'Prefactor '    7.8173       1.0000         .10000E-03   10000.    
    14 'norm      '    1.4240       1.0000         .10000E-03   10000.    
    15 'Prefactor '    56.455       1.0000         .10000E-03   10000.    
    16 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    7.8185       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10091E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    7.6609       1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.3163       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .93802       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6030E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   9310.257     FROM MIGRAD    STATUS=CONVERGED    441 CALLS     2162 TOTAL
                     EDM=   .26E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    10.090       -.25828E-06** at limit **
   2  Prefactor     7.7751        9.5691        .16022E-05   -.21541E-03
   3  norm          .10000E-03    1.9508       -.20672E-06** at limit **
   4  Prefactor     .94195        4.0186        .27454E-05   -.32710E-03
   5  Prefactor     .10000E-03    48.941       -.28106E-05** at limit **
   6  Prefactor     .10000E-03    29.540        .37001E-05** at limit **
   7  Prefactor     14.108        12.521       -.17297E-06   -.15754E-04
   8  Prefactor     .10000E-03    11.470        .32752E-06** at limit **
   9  Prefactor     .10000E-03    23.743       -.26073E-05** at limit **
  10  Prefactor     .10000E-03    2.0699        .21793E-07** at limit **
  11  Prefactor     5.3612        2.0758        .85283E-08    .12275E-05
  12  Prefactor     2.7131        8.7483        .74108E-06   -.30730E-04
  13  Prefactor     7.8168        11.034        .39301E-06   -.47874E-05
  14  norm          1.4241        .86050        .50283E-07   -.39988E-04
  15  Prefactor     56.463        60.315        .11508E-05    .41766E-04
  16  norm          .10000E-03    6.4469       -.52016E-07** at limit **
  17  norm          7.8220        5.7077       -.18662E-06   -.32978E-03
  18  Prefactor     .10000E-03    5.7226       -.37193E-06** at limit **
  19  norm          7.6611        2.8953        .49138E-07    .95960E-05
  20  Normalizat    1.3163        .20838       -.73489E-06   -.76862E-04
  21  Prefactor     .93798        .10251       -.23949E-06   -.12727E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 7.77514
  norm       = 0.0001
  Prefactor  = 0.941948
  Prefactor  = 0.000100003
  Prefactor  = 0.000100004
  Prefactor  = 14.1075
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 5.36117
  Prefactor  = 2.71315
  Prefactor  = 7.81679
  norm       = 1.42408
  Prefactor  = 56.4631
  norm       = 0.0001
  norm       = 7.82204
  Prefactor  = 0.0001
  norm       = 7.6611
  Normalizat = 1.31635
  Prefactor  = 0.937981
 **********
 **   18 **HESSE 
 **********

 FCN=   9310.257     FROM HESSE     STATUS=OK           317 CALLS     2479 TOTAL
                     EDM=   .59E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    10.100        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     7.7751        9.6292        .71894E-03   -1.5150    
   3  norm          .10000E-03    1.9889        .13158E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .94195        4.0923        .36821E-03   -1.5514    
   5  Prefactor     .10000E-03    50.455        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    31.203        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     14.108        12.522        .10663E-03   -1.4957    
   8  Prefactor     .10000E-03    11.488        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    24.714        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    2.0840        .13550E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     5.3612        2.0751        .83755E-04   -1.5245    
  12  Prefactor     2.7131        8.7434        .24729E-03   -1.5379    
  13  Prefactor     7.8168        11.063        .14342E-03   -1.5149    
  14  norm          1.4241        .85375        .66383E-04   -1.5469    
  15  Prefactor     56.463        60.551        .53389E-04   -1.4204    
  16  norm          .10000E-03    6.5934        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          7.8220        5.7272        .14341E-03   -1.5149    
  18  Prefactor     .10000E-03    5.8590        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          7.6611        2.8968        .97435E-04   -1.5154    
  20  Normalizat    1.3163        .24820        .32922E-03   -.83080    
  21  Prefactor     .93798        .12255        .19101E-03   -.94826    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.86359e-10
Minuit parameter uncertainties:
  1  3.32011e-05
  2  9.63115
  3  1.26434e-05
  4  3.92696
  5  0.000711757
  6  0.00071848
  7  12.5245
  8  4.31266e-05
  9  0.00047639
  10  9.31199e-07
  11  2.07511
  12  8.74752
  13  11.0664
  14  0.853757
  15  60.6168
  16  1.10646e-06
  17  5.72765
  18  3.53026e-05
  19  2.89687
  20  0.248427
  21  0.122587
Done.

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

Extracting fit parameters...

4FGL J1238.3-1959
   Spectrum: PowerLaw
307    Prefactor:  2.713e+00  8.748e+00  1.000e-04  1.000e+04 ( 1.000e-13)
308        Index:  2.151e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
309        Scale:  1.503e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
600    Prefactor:  9.380e-01  1.226e-01  0.000e+00  1.000e+01 ( 1.000e+00)
601        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
602        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
599   Normalization:  1.316e+00  2.484e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.11
Ra Dec: 189.594 -19.994
Photon Flux Upper Limit: 7.76e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.89e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/851461/likelihoodResults_508118401_508377601_4FGL_J1238.3-1959_daily_bin1037.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) = 9310.2475975
delta logL = 0.00964808686149

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9310.24653379
delta logL = 0.0107118040942

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.1200       1.0000         .10000E-03   10000.    
     2 'Index     '    1.9053       1.0000          .0000       10.000    
     3 'Normalizat'    1.3193       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93712       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6030E+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=   9310.247     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      262 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.1204        9.4541        .22954E-03   -.17899E-03
   2  Index         1.9056        1.5393        .70615E-02   -.16637E-04
   3  Normalizat    1.3193        .24167        .32890E-03    .10328E-03
   4  Prefactor     .93710        .12142        .19108E-03    .20102E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.12038
  Index      = 1.90556
  Normalizat = 1.31931
  Prefactor  = 0.937103
 **********
 **   18 **HESSE 
 **********

 FCN=   9310.247     FROM HESSE     STATUS=OK            23 CALLS      285 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.1204        9.4505        .91817E-05   -1.5355    
   2  Index         1.9056        1.5387        .28246E-03   -.66733    
   3  Normalizat    1.3193        .24185        .13156E-04   -.82992    
   4  Prefactor     .93710        .12152        .38217E-04   -.94856    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.67715e-10
Minuit parameter uncertainties:
  1  9.45505
  2  1.58111
  3  0.242058
  4  0.121556
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/851461': 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) = 9310.24653376
delta logL = 0.01071182954

Extracting fit parameters...

4FGL J1238.3-1959
   Spectrum: PowerLaw
307    Prefactor:  3.120e+00  9.455e+00  1.000e-04  1.000e+04 ( 1.000e-13)
308        Index:  1.906e+00  1.581e+00  0.000e+00  1.000e+01 (-1.000e+00)
309        Scale:  1.503e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
600    Prefactor:  9.371e-01  1.216e-01  0.000e+00  1.000e+01 ( 1.000e+00)
601        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
602        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
599   Normalization:  1.319e+00  2.421e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.11
Ra Dec: 189.594 -19.994

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/851461/cmap_HighResolution_508118401_508377601_4FGL_J1238.3-1959_daily_bin1037.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.89e-03', job_status='DONE', photon_flux_upper_limit='7.76e-08', time_completed='2021-09-06 02:30:14.107003', job_id='851461', GAL2='0.94', fit_tolerance='1e-08', EG2='1.32', EG='1.32', time_epoch_completed='1630920614.11', return_code2='0', ts='0.11', comment='SUCCESS', return_code='0', GAL='0.94', dlogl='1.07e-02', ts2='0.13', photon_index_error='0.00', photon_index='2.15' WHERE bin_id='1037' AND source_name='4FGL J1238.3-1959' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 02:30:14 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0079>
Subject: Job 851461: <4FGL_J1238.3-1959_daily_bin1037> in cluster <slac> Done

Job <4FGL_J1238.3-1959_daily_bin1037> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Mon Sep  6 02:15:38 2021
Job was executed on host(s) <bullet0079>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 02:16:22 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:16:22 2021
Terminated at Mon Sep  6 02:30:14 2021
Results reported at Mon Sep  6 02:30:14 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1238.3-1959_daily_bin1037 189.594 -19.9945 508118401 508377601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1238.3-1959 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   793.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             326.71 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   832 sec.
    Turnaround time :                            876 sec.

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

