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


Performing analysis on: 4FGL_J1238.3-1959_daily_bin1030
RA = 189.594, Dec = -19.9945
tmin = 506304001, tmax = 506563201
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='851452', job_status='RUN', time_executed='2021-09-06 02:19:46.896164', time_epoch_executed='1630919986.9' WHERE source_name='4FGL J1238.3-1959' and cadence='daily' and bin_id='1030'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/851452

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/851452/ft1_4FGL_J1238.3-1959_daily_bin1030.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/851452/ft2_4FGL_J1238.3-1959_daily_bin1030.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/851452/ft1_4FGL_J1238.3-1959_daily_bin1030.fits outfile=/scratch/kocevski/851452/ft1_filteredMKT_4FGL_J1238.3-1959_daily_bin1030.fits ra=189.594 dec=-19.9945 rad=12.0 tmin=506304001.0 tmax=506563201.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.50
user 3.25
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/851452/ft1_filtered_4FGL_J1238.3-1959_daily_bin1030.fits" evtable="EVENTS" scfile=/scratch/kocevski/851452/ft2_4FGL_J1238.3-1959_daily_bin1030.fits sctable="SC_DATA" outfile=/scratch/kocevski/851452/ltcube_506304001_506563201_4FGL_J1238.3-1959_daily_bin1030.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/851452/ft2_4FGL_J1238.3-1959_daily_bin1030.fits
.....................!
real 14.79
user 14.29
sys 0.43

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/851452/ft1_filtered_4FGL_J1238.3-1959_daily_bin1030.fits evtable="EVENTS" scfile=/scratch/kocevski/851452/ft2_4FGL_J1238.3-1959_daily_bin1030.fits sctable="SC_DATA" expcube=/scratch/kocevski/851452/ltcube_506304001_506563201_4FGL_J1238.3-1959_daily_bin1030.fits outfile=/scratch/kocevski/851452/expmap_506304001_506563201_4FGL_J1238.3-1959_daily_bin1030.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/851452/ltcube_506304001_506563201_4FGL_J1238.3-1959_daily_bin1030.fits
.....................!
real 193.12
user 187.47
sys 5.13

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/851452/ft1_filtered_4FGL_J1238.3-1959_daily_bin1030.fits scfile=/scratch/kocevski/851452/ft2_4FGL_J1238.3-1959_daily_bin1030.fits outfile=/scratch/kocevski/851452/cmap_506304001_506563201_4FGL_J1238.3-1959_daily_bin1030.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.64
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/851452/ft1_filtered_4FGL_J1238.3-1959_daily_bin1030.fits scfile=/scratch/kocevski/851452/ft2_4FGL_J1238.3-1959_daily_bin1030.fits outfile=/scratch/kocevski/851452/cmap_HighResolution_506304001_506563201_4FGL_J1238.3-1959_daily_bin1030.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.56
user 0.39
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/851452/ft1_filtered_4FGL_J1238.3-1959_daily_bin1030.fits evtable="EVENTS" scfile=/scratch/kocevski/851452/ft2_4FGL_J1238.3-1959_daily_bin1030.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/851452/Model_4FGL_J1238.3-1959_daily_bin1030.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/851452/ft1_filtered_4FGL_J1238.3-1959_daily_bin1030.fits.....................!
real 54.22
user 52.75
sys 1.25

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/851452/ft1_filtered_4FGL_J1238.3-1959_daily_bin1030.fits', '/scratch/kocevski/851452/ft2_4FGL_J1238.3-1959_daily_bin1030.fits', expMap='/scratch/kocevski/851452/expmap_506304001_506563201_4FGL_J1238.3-1959_daily_bin1030.fits', expCube='/scratch/kocevski/851452/ltcube_506304001_506563201_4FGL_J1238.3-1959_daily_bin1030.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/851452/Model_4FGL_J1238.3-1959_daily_bin1030.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/851452/ft1_filtered_4FGL_J1238.3-1959_daily_bin1030.fits
Spacecraft file(s): /scratch/kocevski/851452/ft2_4FGL_J1238.3-1959_daily_bin1030.fits
Exposure map: /scratch/kocevski/851452/expmap_506304001_506563201_4FGL_J1238.3-1959_daily_bin1030.fits
Exposure cube: /scratch/kocevski/851452/ltcube_506304001_506563201_4FGL_J1238.3-1959_daily_bin1030.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/851452/Model_4FGL_J1238.3-1959_daily_bin1030.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) = 6163.98426061

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .25116E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10249E-02   1.0000         .10000E-03   10000.    
     3 'norm      '    10.291       1.0000         .10000E-03   10000.    
     4 'Prefactor '    6.0464       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .11478E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .41984E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    20.442       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .16207E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    48.041       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .34980       1.0000         .10000E-03   10000.    
    11 'Prefactor '    6.1552       1.0000         .10000E-03   10000.    
    12 'Prefactor '    9.0412       1.0000         .10000E-03   10000.    
    13 'Prefactor '    8.9570       1.0000         .10000E-03   10000.    
    14 'norm      '    3.2688       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .25783E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .32561E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10206E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    7.9270       1.0000         .10000E-03   10000.    
    19 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.2741       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .92833       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=   6163.976     FROM MIGRAD    STATUS=CONVERGED    450 CALLS     2208 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    31.745       -.17348E-06** at limit **
   2  Prefactor     .10115E-03    15.190       -.19690E-05** at limit **
   3  norm          10.256        6.8436        .18775E-05   -.69652E-03
   4  Prefactor     6.0375        6.6928        .26551E-06   -.18245E-03
   5  Prefactor     .10000E-03    32.600       -.22502E-06** at limit **
   6  Prefactor     .10000E-03    25.587        .64925E-06** at limit **
   7  Prefactor     20.646        19.677        .16453E-06   -.48629E-04
   8  Prefactor     .10000E-03    33.627        .44915E-07** at limit **
   9  Prefactor     48.091        37.974        .65436E-06    .19662E-03
  10  Prefactor     .36356        6.1707       -.37949E-06    .15605E-03
  11  Prefactor     6.1559        2.7746       -.96386E-08    .23908E-03
  12  Prefactor     9.0477        13.502        .78596E-07   -.14554E-04
  13  Prefactor     8.9457        12.145        .39347E-07   -.61927E-06
  14  norm          3.2685        1.5958        .21955E-07   -.19668E-03
  15  Prefactor     .10000E-03    27.853       -.72367E-07** at limit **
  16  norm          .10000E-03    7.6800       -.17254E-06** at limit **
  17  norm          .10000E-03    3.5249       -.10167E-06** at limit **
  18  Prefactor     7.9320        6.4933        .87207E-08   -.45348E-04
  19  norm          .10000E-03    1.2221       -.49679E-07** at limit **
  20  Normalizat    1.2742        .27019        .37945E-06   -.51649E-04
  21  Prefactor     .92823        .12989       -.18948E-06   -.22565E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000101152
  norm       = 10.2558
  Prefactor  = 6.03752
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 20.6461
  Prefactor  = 0.0001
  Prefactor  = 48.0906
  Prefactor  = 0.363558
  Prefactor  = 6.15589
  Prefactor  = 9.04774
  Prefactor  = 8.94568
  norm       = 3.26848
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 7.93201
  norm       = 0.0001
  Normalizat = 1.27423
  Prefactor  = 0.928231
 **********
 **   18 **HESSE 
 **********

 FCN=   6163.976     FROM HESSE     STATUS=OK           317 CALLS     2525 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    31.786        .21463E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10115E-03    78.484        .58548E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          10.256        6.9329        .12490E-03   -1.5067    
   4  Prefactor     6.0375        6.6827        .16329E-03   -1.5216    
   5  Prefactor     .10000E-03    32.633        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    25.534        .21241E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     20.646        19.671        .88588E-04   -1.4799    
   8  Prefactor     .10000E-03    33.666        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     48.091        38.006        .57853E-04   -1.4320    
  10  Prefactor     .36356        24.047        .35697E-02   -1.5587    
  11  Prefactor     6.1559        2.7465        .82366E-04   -1.5212    
  12  Prefactor     9.0477        13.502        .13329E-03   -1.5106    
  13  Prefactor     8.9457        12.134        .13392E-03   -1.5110    
  14  norm          3.2685        1.5928        .65256E-04   -1.5346    
  15  Prefactor     .10000E-03    27.859        .21453E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    7.8845        .42472E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    3.5429        .14373E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     7.9320        6.4848        .14241E-03   -1.5145    
  19  norm          .10000E-03    1.2312        .84729E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.2742        .31516        .35651E-03   -.84339    
  21  Prefactor     .92823        .15282        .19759E-03   -.95161    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.50739e-08
Minuit parameter uncertainties:
  1  8.20862e-05
  2  0.0190385
  3  6.9334
  4  6.68353
  5  0.000124307
  6  0.000120897
  7  19.6777
  8  1.38564e-05
  9  38.0256
  10  5.91515
  11  2.74658
  12  13.5067
  13  12.1377
  14  1.59285
  15  8.52225e-07
  16  2.06569e-05
  17  7.29733e-06
  18  6.48533
  19  2.31775e-06
  20  0.315635
  21  0.152893
Done.

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

Extracting fit parameters...

4FGL J1238.3-1959
   Spectrum: PowerLaw
307    Prefactor:  9.048e+00  1.351e+01  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.282e-01  1.529e-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.274e+00  3.156e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.62
Ra Dec: 189.594 -19.994
Photon Flux Upper Limit: 1.27e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.68e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/851452/likelihoodResults_506304001_506563201_4FGL_J1238.3-1959_daily_bin1030.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) = 6163.95948275
delta logL = 0.016712972304

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6163.95447583
delta logL = 0.0217198946721

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.600       1.0000         .10000E-03   10000.    
     2 'Index     '    1.9972       1.0000          .0000       10.000    
     3 'Normalizat'    1.2781       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92689       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=   6163.954     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      240 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.601        16.654        .12306E-03   -.74171E-03
   2  Index         1.9968        .73204        .10259E-01   -.28151E-03
   3  Normalizat    1.2780        .30988        .35605E-03    .17351E-03
   4  Prefactor     .92691        .15059        .19771E-03    .40963E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.6014
  Index      = 1.9968
  Normalizat = 1.27803
  Prefactor  = 0.92691
 **********
 **   18 **HESSE 
 **********

 FCN=   6163.954     FROM HESSE     STATUS=OK            23 CALLS      263 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.601        16.274        .24613E-04   -1.5057    
   2  Index         1.9968        .71569        .41036E-03   -.64430    
   3  Normalizat    1.2780        .31007        .14242E-04   -.84225    
   4  Prefactor     .92691        .15069        .39542E-04   -.95207    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.1011e-09
Minuit parameter uncertainties:
  1  16.2808
  2  0.719568
  3  0.31052
  4  0.150757
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/851452': 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) = 6163.95447568
delta logL = 0.021720040605

Extracting fit parameters...

4FGL J1238.3-1959
   Spectrum: PowerLaw
307    Prefactor:  1.060e+01  1.628e+01  1.000e-04  1.000e+04 ( 1.000e-13)
308        Index:  1.997e+00  7.196e-01  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.269e-01  1.508e-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.278e+00  3.105e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

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/851452/cmap_HighResolution_506304001_506563201_4FGL_J1238.3-1959_daily_bin1030.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.68e-03', job_status='DONE', photon_flux_upper_limit='1.27e-07', time_completed='2021-09-06 02:30:21.187835', job_id='851452', GAL2='0.93', fit_tolerance='1e-08', EG2='1.28', EG='1.27', time_epoch_completed='1630920621.19', return_code2='0', ts='0.62', comment='SUCCESS', return_code='0', GAL='0.93', dlogl='2.17e-02', ts2='0.66', photon_index_error='0.00', photon_index='2.15' WHERE bin_id='1030' AND source_name='4FGL J1238.3-1959' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 02:30:21 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0077>
Subject: Job 851452: <4FGL_J1238.3-1959_daily_bin1030> in cluster <slac> Done

Job <4FGL_J1238.3-1959_daily_bin1030> 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) <bullet0077>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 02:16:20 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:20 2021
Terminated at Mon Sep  6 02:30:21 2021
Results reported at Mon Sep  6 02:30:21 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1238.3-1959_daily_bin1030 189.594 -19.9945 506304001 506563201 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 :                                   632.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             268.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   841 sec.
    Turnaround time :                            883 sec.

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

