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


Performing analysis on: 4FGL_J1238.3-1959_daily_bin1347
RA = 189.594, Dec = -19.9945
tmin = 588470401, tmax = 588729601
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='853255', job_status='RUN', time_executed='2021-09-06 02:24:39.116616', time_epoch_executed='1630920279.12' WHERE source_name='4FGL J1238.3-1959' and cadence='daily' and bin_id='1347'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/853255

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/853255/ft1_4FGL_J1238.3-1959_daily_bin1347.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/853255/ft2_4FGL_J1238.3-1959_daily_bin1347.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/853255/ft1_4FGL_J1238.3-1959_daily_bin1347.fits outfile=/scratch/kocevski/853255/ft1_filteredMKT_4FGL_J1238.3-1959_daily_bin1347.fits ra=189.594 dec=-19.9945 rad=12.0 tmin=588470401.0 tmax=588729601.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 5.03
user 4.56
sys 0.40

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/853255/ft2_4FGL_J1238.3-1959_daily_bin1347.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/853255/ft1_filteredMKT_4FGL_J1238.3-1959_daily_bin1347.fits evtable="EVENTS" outfile="/scratch/kocevski/853255/ft1_filtered_4FGL_J1238.3-1959_daily_bin1347.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.56
user 0.33
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/853255/ft1_filtered_4FGL_J1238.3-1959_daily_bin1347.fits" evtable="EVENTS" scfile=/scratch/kocevski/853255/ft2_4FGL_J1238.3-1959_daily_bin1347.fits sctable="SC_DATA" outfile=/scratch/kocevski/853255/ltcube_588470401_588729601_4FGL_J1238.3-1959_daily_bin1347.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/853255/ft2_4FGL_J1238.3-1959_daily_bin1347.fits
.....................!
real 12.99
user 12.49
sys 0.41

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/853255/ft1_filtered_4FGL_J1238.3-1959_daily_bin1347.fits evtable="EVENTS" scfile=/scratch/kocevski/853255/ft2_4FGL_J1238.3-1959_daily_bin1347.fits sctable="SC_DATA" expcube=/scratch/kocevski/853255/ltcube_588470401_588729601_4FGL_J1238.3-1959_daily_bin1347.fits outfile=/scratch/kocevski/853255/expmap_588470401_588729601_4FGL_J1238.3-1959_daily_bin1347.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/853255/ltcube_588470401_588729601_4FGL_J1238.3-1959_daily_bin1347.fits
.....................!
real 194.80
user 188.06
sys 6.02

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/853255/ft1_filtered_4FGL_J1238.3-1959_daily_bin1347.fits scfile=/scratch/kocevski/853255/ft2_4FGL_J1238.3-1959_daily_bin1347.fits outfile=/scratch/kocevski/853255/cmap_588470401_588729601_4FGL_J1238.3-1959_daily_bin1347.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.55
user 0.37
sys 0.16

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/853255/ft1_filtered_4FGL_J1238.3-1959_daily_bin1347.fits evtable="EVENTS" scfile=/scratch/kocevski/853255/ft2_4FGL_J1238.3-1959_daily_bin1347.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/853255/Model_4FGL_J1238.3-1959_daily_bin1347.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/853255/ft1_filtered_4FGL_J1238.3-1959_daily_bin1347.fits.....................!
real 50.61
user 48.61
sys 1.36

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    20.971       1.0000         .10000E-03   10000.    
     3 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10060E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .11688E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    22.517       1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.4294       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10373E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .88725       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    8.9043       1.0000         .10000E-03   10000.    
    12 'Prefactor '    9.2998       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    4.0627       1.0000         .10000E-03   10000.    
    15 'Prefactor '    20.685       1.0000         .10000E-03   10000.    
    16 'norm      '    4.3056       1.0000         .10000E-03   10000.    
    17 'norm      '    13.144       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    .93779       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.1753       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=   5481.339     FROM MIGRAD    STATUS=CONVERGED    782 CALLS     2523 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    49.278        .18142E-02** at limit **
   2  Prefactor     20.961        18.770        .87465E-04   -.64600E-04
   3  norm          .10000E-03    3.2478        .12984E-02** at limit **
   4  Prefactor     .10000E-03    6.3636        .18096E-02** at limit **
   5  Prefactor     .10000E-03    84.840        .18142E-02** at limit **
   6  Prefactor     22.523        39.442        .84412E-04   -.29899E-04
   7  Prefactor     1.4129        65.866        .18069E-02   -.10042E-04
   8  Prefactor     .10000E-03    48.105        .18142E-02** at limit **
   9  Prefactor     .77625        501.83        .81645E-02    .37036E-04
  10  Prefactor     .10000E-03    3.9116        .14266E-02** at limit **
  11  Prefactor     8.9045        3.3673        .80966E-04   -.14603E-03
  12  Prefactor     9.2955        18.823        .13142E-03   -.33392E-04
  13  Prefactor     .10000E-03    8.1254        .18142E-02** at limit **
  14  norm          4.0626        1.8106        .63040E-04   -.32047E-03
  15  Prefactor     20.856        214.50        .88066E-04   -.87783E-05
  16  norm          4.3049        10.291        .19415E-03   -.25062E-04
  17  norm          13.139        11.077        .11048E-03   -.20775E-03
  18  Prefactor     .10000E-03    5.6113        .17028E-02** at limit **
  19  norm          .10000E-03    1.6999        .93699E-03** at limit **
  20  Normalizat    .93770        .35685        .42617E-03   -.41935E-04
  21  Prefactor     1.1754        .17388        .18822E-03   -.37148E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 20.961
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 22.5227
  Prefactor  = 1.41294
  Prefactor  = 0.000100001
  Prefactor  = 0.776247
  Prefactor  = 0.0001
  Prefactor  = 8.90447
  Prefactor  = 9.2955
  Prefactor  = 0.0001
  norm       = 4.06259
  Prefactor  = 20.8563
  norm       = 4.30494
  norm       = 13.1389
  Prefactor  = 0.000100002
  norm       = 0.0001
  Normalizat = 0.937697
  Prefactor  = 1.17539
 **********
 **   18 **HESSE 
 **********

 FCN=   5481.339     FROM HESSE     STATUS=OK           301 CALLS     2824 TOTAL
                     EDM=   .87E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    49.282        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     20.961        18.764        .34986E-05   -1.4792    
   3  norm          .10000E-03    3.2481        .25968E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    6.3662        .36192E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    84.848        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     22.523        39.248        .33765E-05   -1.4758    
   7  Prefactor     1.4129        65.804        .72276E-04   -1.5470    
   8  Prefactor     .10000E-03    48.105        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .77625        504.86        .32658E-02   -1.5532    
  10  Prefactor     .10000E-03    3.9120        .28532E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     8.9045        3.3668        .32387E-05   -1.5111    
  12  Prefactor     9.2955        18.817        .52568E-05   -1.5098    
  13  Prefactor     .10000E-03    8.1280        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          4.0626        1.8104        .25216E-05   -1.5305    
  15  Prefactor     20.856        214.10        .35227E-05   -1.4794    
  16  norm          4.3049        10.288        .77659E-05   -1.5293    
  17  norm          13.139        11.069        .44194E-05   -1.4983    
  18  Prefactor     .10000E-03    5.6123        .34057E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    1.7001        .18740E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    .93770        .35654        .17047E-04   -.95148    
  21  Prefactor     1.1754        .17389        .37643E-04   -.87092    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.67351e-10
Minuit parameter uncertainties:
  1  8.01687e-05
  2  18.7695
  3  3.7597e-05
  4  2.63895e-05
  5  0.000695378
  6  39.2934
  7  19.3068
  8  0.000509513
  9  39.9327
  10  1.01711e-05
  11  3.36688
  12  18.8287
  13  4.38931e-05
  14  1.81047
  15  134.269
  16  10.2922
  17  11.0708
  18  0.000193804
  19  2.63552e-05
  20  0.357441
  21  0.173972
Done.

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

Extracting fit parameters...

4FGL J1238.3-1959
   Spectrum: PowerLaw
307    Prefactor:  9.295e+00  1.883e+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:  1.175e+00  1.740e-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:  9.377e-01  3.574e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.29
Ra Dec: 189.594 -19.994
Photon Flux Upper Limit: 1.60e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.22e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/853255/likelihoodResults_588470401_588729601_4FGL_J1238.3-1959_daily_bin1347.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) = 5480.65914219
delta logL = 0.679815894162

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5480.64130238
delta logL = 0.697655700464

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.0603       1.0000         .10000E-03   10000.    
     2 'Index     '    3.3807       1.0000          .0000       10.000    
     3 'Normalizat'    .83747       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2019       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.

 FCN=   5480.641     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      261 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.0566        61.139        .57974E-02    .50840E-03
   2  Index         3.3812        3.1501        .98504E-01    .17351E-03
   3  Normalizat    .83755        .10439        .10112        .50373E-04
   4  Prefactor     1.2019        .48152E-01    .34586E-01   -.18649E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.05657
  Index      = 3.38121
  Normalizat = 0.83755
  Prefactor  = 1.20185
 **********
 **   18 **HESSE 
 **********

 FCN=   5480.641     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      294 TOTAL
                     EDM=   .88E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.0566        106.99        .10598E-03   -1.5358    
   2  Index         3.3812        6.6831        .49210E-02   -.32970    
   3  Normalizat    .83755        .38670        .44813E-03   -.98691    
   4  Prefactor     1.2019        .18618        .18625E-03   -.86274    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.83877e-10
Minuit parameter uncertainties:
  1  36.2374
  2  5.50351
  3  0.387979
  4  0.186287
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/853255': 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) = 5480.64130223
delta logL = 0.697655853206

Extracting fit parameters...

4FGL J1238.3-1959
   Spectrum: PowerLaw
307    Prefactor:  3.057e+00  3.624e+01  1.000e-04  1.000e+04 ( 1.000e-13)
308        Index:  3.381e+00  5.504e+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:  1.202e+00  1.863e-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:  8.375e-01  3.880e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.78
Ra Dec: 189.594 -19.994
Photon Index (Free Index): 3.38 +/- 5.50
Photon Flux (Free Index): 1.23e-07 +/- 1.44e-07
Energy Flux (Free Index): 2.11e-05 +/- 2.64e-05

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/853255/cmap_HighResolution_588470401_588729601_4FGL_J1238.3-1959_daily_bin1347.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.22e-02', comment='SUCCESS', energy_flux2='2.11e-05', dlogl='6.98e-01', photon_flux2='1.23e-07', job_status='DONE', time_completed='2021-09-06 02:35:09.094376', photon_index_error2='5.50', photon_index2='3.38', ts='0.29', fit_tolerance='1e-08', GAL='1.18', photon_index_error='0.00', photon_flux_upper_limit='1.60e-07', energy_flux_error2='2.64e-05', EG='0.94', time_epoch_completed='1630920909.09', return_code='0', job_id='853255', GAL2='1.20', EG2='0.84', return_code2='102', photon_flux_error2='1.44e-07', ts2='1.78', photon_index='2.15' WHERE bin_id='1347' AND source_name='4FGL J1238.3-1959' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 02:35:09 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0024>
Subject: Job 853255: <4FGL_J1238.3-1959_daily_bin1347> in cluster <slac> Done

Job <4FGL_J1238.3-1959_daily_bin1347> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Mon Sep  6 02:21:06 2021
Job was executed on host(s) <bullet0024>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 02:23:42 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:23:42 2021
Terminated at Mon Sep  6 02:35:09 2021
Results reported at Mon Sep  6 02:35:09 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1238.3-1959_daily_bin1347 189.594 -19.9945 588470401 588729601 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 :                                   623.08 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             317.91 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   687 sec.
    Turnaround time :                            843 sec.

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

