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


Performing analysis on: 4FGL_J1238.3-1959_daily_bin786
RA = 189.594, Dec = -19.9945
tmin = 443059201, tmax = 443318401
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='849891', job_status='RUN', time_executed='2021-09-06 02:14:40.560628', time_epoch_executed='1630919680.56' WHERE source_name='4FGL J1238.3-1959' and cadence='daily' and bin_id='786'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/849891

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/849891/ft1_4FGL_J1238.3-1959_daily_bin786.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/849891/ft2_4FGL_J1238.3-1959_daily_bin786.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/849891/ft1_4FGL_J1238.3-1959_daily_bin786.fits outfile=/scratch/kocevski/849891/ft1_filteredMKT_4FGL_J1238.3-1959_daily_bin786.fits ra=189.594 dec=-19.9945 rad=12.0 tmin=443059201.0 tmax=443318401.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.90
user 3.66
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/849891/ft1_filtered_4FGL_J1238.3-1959_daily_bin786.fits" evtable="EVENTS" scfile=/scratch/kocevski/849891/ft2_4FGL_J1238.3-1959_daily_bin786.fits sctable="SC_DATA" outfile=/scratch/kocevski/849891/ltcube_443059201_443318401_4FGL_J1238.3-1959_daily_bin786.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/849891/ft2_4FGL_J1238.3-1959_daily_bin786.fits
.....................!
real 15.31
user 14.92
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/849891/ft1_filtered_4FGL_J1238.3-1959_daily_bin786.fits evtable="EVENTS" scfile=/scratch/kocevski/849891/ft2_4FGL_J1238.3-1959_daily_bin786.fits sctable="SC_DATA" expcube=/scratch/kocevski/849891/ltcube_443059201_443318401_4FGL_J1238.3-1959_daily_bin786.fits outfile=/scratch/kocevski/849891/expmap_443059201_443318401_4FGL_J1238.3-1959_daily_bin786.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/849891/ltcube_443059201_443318401_4FGL_J1238.3-1959_daily_bin786.fits
.....................!
real 193.02
user 187.53
sys 5.04

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/849891/ft1_filtered_4FGL_J1238.3-1959_daily_bin786.fits scfile=/scratch/kocevski/849891/ft2_4FGL_J1238.3-1959_daily_bin786.fits outfile=/scratch/kocevski/849891/cmap_443059201_443318401_4FGL_J1238.3-1959_daily_bin786.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.59
user 0.39
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/849891/ft1_filtered_4FGL_J1238.3-1959_daily_bin786.fits scfile=/scratch/kocevski/849891/ft2_4FGL_J1238.3-1959_daily_bin786.fits outfile=/scratch/kocevski/849891/cmap_HighResolution_443059201_443318401_4FGL_J1238.3-1959_daily_bin786.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.58
user 0.40
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/849891/ft1_filtered_4FGL_J1238.3-1959_daily_bin786.fits evtable="EVENTS" scfile=/scratch/kocevski/849891/ft2_4FGL_J1238.3-1959_daily_bin786.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/849891/Model_4FGL_J1238.3-1959_daily_bin786.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/849891/ft1_filtered_4FGL_J1238.3-1959_daily_bin786.fits.....................!
real 64.59
user 62.27
sys 1.40

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    18.579       1.0000         .10000E-03   10000.    
     3 'norm      '    3.1074       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .28988E-02   1.0000         .10000E-03   10000.    
     8 'Prefactor '    92.801       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    8.9787       1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.9131       1.0000         .10000E-03   10000.    
    13 'Prefactor '    11.775       1.0000         .10000E-03   10000.    
    14 'norm      '    2.2138       1.0000         .10000E-03   10000.    
    15 'Prefactor '    34.678       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    6.8393       1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.3983       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .88690       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=   7699.816     FROM MIGRAD    STATUS=CONVERGED    473 CALLS     2329 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    22.830        .19062E-05** at limit **
   2  Prefactor     18.579        15.931        .33314E-06    .18813E-03
   3  norm          3.1078        4.9154        .24963E-05    .15913E-02
   4  Prefactor     .10000E-03    3.8095       -.90022E-06** at limit **
   5  Prefactor     .10000E-03    21.193       -.26413E-05** at limit **
   6  Prefactor     .10000E-03    26.529       -.23395E-06** at limit **
   7  Prefactor     .13441E-03    57.740        .82182E-05** at limit **
   8  Prefactor     92.940        59.003        .12200E-05   -.51782E-03
   9  Prefactor     .10000E-03    18.777        .52292E-06** at limit **
  10  Prefactor     .10000E-03    2.7811       -.19512E-10** at limit **
  11  Prefactor     8.9786        2.7970       -.13681E-07    .26436E-04
  12  Prefactor     2.9102        18.295       -.32912E-05   -.65496E-04
  13  Prefactor     11.775        10.118       -.84686E-07    .19687E-04
  14  norm          2.2138        1.1109       -.45095E-08    .93445E-04
  15  Prefactor     34.675        45.341       -.98750E-06   -.17221E-04
  16  norm          .10000E-03    1.8841       -.13144E-08** at limit **
  17  norm          .10000E-03    1.6070       -.25004E-08** at limit **
  18  Prefactor     6.8390        4.9059       -.18849E-07    .36487E-04
  19  norm          .10000E-03    .98694       -.18239E-07** at limit **
  20  Normalizat    1.3983        .24099        .52935E-06    .49769E-04
  21  Prefactor     .88691        .11471        .28606E-06    .96337E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 18.5794
  norm       = 3.10777
  Prefactor  = 0.000100001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.000134407
  Prefactor  = 92.9399
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.97863
  Prefactor  = 2.91016
  Prefactor  = 11.7749
  norm       = 2.21381
  Prefactor  = 34.6754
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 6.83899
  norm       = 0.0001
  Normalizat = 1.39827
  Prefactor  = 0.886908
 **********
 **   18 **HESSE 
 **********

 FCN=   7699.816     FROM HESSE     STATUS=OK           323 CALLS     2652 TOTAL
                     EDM=   .45E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    22.801        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     18.579        15.974        .92920E-04   -1.4846    
   3  norm          3.1078        4.9988        .10522E-02   -1.5355    
   4  Prefactor     .10000E-03    10.877        .32757E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    21.235        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    26.621        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .13441E-03    37.996        .11752       -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     92.940        75.697        .41717E-04   -1.3777    
   9  Prefactor     .10000E-03    18.833        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    2.7977        .14283E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     8.9786        2.7964        .79302E-04   -1.5109    
  12  Prefactor     2.9102        18.361        .23804E-03   -1.5367    
  13  Prefactor     11.775        10.139        .11674E-03   -1.5022    
  14  norm          2.2138        1.1085        .62585E-04   -1.5410    
  15  Prefactor     34.675        45.311        .68051E-04   -1.4530    
  16  norm          .10000E-03    1.8868        .11762E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    1.6102        .10856E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     6.8390        4.9028        .15342E-03   -1.5185    
  19  norm          .10000E-03    .99635        .85110E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.3983        .28699        .33688E-03   -.80679    
  21  Prefactor     .88691        .13705        .19942E-03   -.96600    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.47544e-09
Minuit parameter uncertainties:
  1  0.000112245
  2  15.9778
  3  4.99946
  4  0.000245435
  5  0.000235398
  6  5.19587e-05
  7  0.0723599
  8  75.7754
  9  1.39206e-06
  10  3.93148e-06
  11  2.79646
  12  14.626
  13  10.1409
  14  1.1085
  15  45.3557
  16  6.65658e-07
  17  1.23642e-06
  18  4.90305
  19  2.35062e-06
  20  0.287325
  21  0.137102
Done.

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

Extracting fit parameters...

4FGL J1238.3-1959
   Spectrum: PowerLaw
307    Prefactor:  2.910e+00  1.463e+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:  8.869e-01  1.371e-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.398e+00  2.873e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/849891/likelihoodResults_443059201_443318401_4FGL_J1238.3-1959_daily_bin786.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) = 7698.76905906
delta logL = 1.04662349619

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7698.70281008
delta logL = 1.1128724692

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.7440       1.0000         .10000E-03   10000.    
     2 'Index     '    3.5683       1.0000          .0000       10.000    
     3 'Normalizat'    1.2782       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91820       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=   7698.703     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      236 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.7432        22.357        .79405E-02    .82381E-03
   2  Index         3.5685        2.4818        .93735E-01    .23154E-03
   3  Normalizat    1.2782        .72734E-01    .79002E-01    .14579E-04
   4  Prefactor     .91822        .34763E-01    .45237E-01    .45468E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.74321
  Index      = 3.56852
  Normalizat = 1.27823
  Prefactor  = 0.918215
 **********
 **   18 **HESSE 
 **********

 FCN=   7698.703     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      269 TOTAL
                     EDM=   .72E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.7432        43.939        .80220E-04   -1.5444    
   2  Index         3.5685        3.7991        .46128E-02   -.29036    
   3  Normalizat    1.2782        .27996        .34970E-03   -.84219    
   4  Prefactor     .91822        .13480        .19623E-03   -.95507    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.24074e-07
Minuit parameter uncertainties:
  1  17.5176
  2  4.38698
  3  0.280291
  4  0.134853
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/849891': 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) = 7698.70281002
delta logL = 1.11287252878

Extracting fit parameters...

4FGL J1238.3-1959
   Spectrum: PowerLaw
307    Prefactor:  1.743e+00  1.752e+01  1.000e-04  1.000e+04 ( 1.000e-13)
308        Index:  3.569e+00  4.387e+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.182e-01  1.349e-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  2.803e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.42
Ra Dec: 189.594 -19.994
Photon Index (Free Index): 3.57 +/- 4.39
Photon Flux (Free Index): 1.08e-07 +/- 8.15e-08
Energy Flux (Free Index): 1.76e-05 +/- 2.09e-05

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/849891/cmap_HighResolution_443059201_443318401_4FGL_J1238.3-1959_daily_bin786.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.44e-03', comment='SUCCESS', energy_flux2='1.76e-05', dlogl='1.11e+00', photon_flux2='1.08e-07', job_status='DONE', time_completed='2021-09-06 02:27:06.209073', photon_index_error2='4.39', photon_index2='3.57', ts='0.04', fit_tolerance='1e-08', GAL='0.89', photon_index_error='0.00', photon_flux_upper_limit='1.11e-07', energy_flux_error2='2.09e-05', EG='1.40', time_epoch_completed='1630920426.21', return_code='0', job_id='849891', GAL2='0.92', EG2='1.28', return_code2='102', photon_flux_error2='8.15e-08', ts2='2.42', photon_index='2.15' WHERE bin_id='786' AND source_name='4FGL J1238.3-1959' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 02:27:06 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0054>
Subject: Job 849891: <4FGL_J1238.3-1959_daily_bin786> in cluster <slac> Done

Job <4FGL_J1238.3-1959_daily_bin786> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Mon Sep  6 02:10:40 2021
Job was executed on host(s) <bullet0054>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 02:12:18 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:12:18 2021
Terminated at Mon Sep  6 02:27:07 2021
Results reported at Mon Sep  6 02:27:07 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1238.3-1959_daily_bin786 189.594 -19.9945 443059201 443318401 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 :                                   743.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             320.76 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   888 sec.
    Turnaround time :                            987 sec.

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

