/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 = 7420
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1238.3-1959_daily_bin359
RA = 189.594, Dec = -19.9945
tmin = 332380801, tmax = 332640001
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='846862', job_status='RUN', time_executed='2021-09-06 02:05:46.477543', time_epoch_executed='1630919146.48' WHERE source_name='4FGL J1238.3-1959' and cadence='daily' and bin_id='359'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/846862

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/846862/ft1_4FGL_J1238.3-1959_daily_bin359.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/846862/ft2_4FGL_J1238.3-1959_daily_bin359.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/846862/ft1_4FGL_J1238.3-1959_daily_bin359.fits outfile=/scratch/kocevski/846862/ft1_filteredMKT_4FGL_J1238.3-1959_daily_bin359.fits ra=189.594 dec=-19.9945 rad=12.0 tmin=332380801.0 tmax=332640001.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.29
user 3.05
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/846862/ft1_filtered_4FGL_J1238.3-1959_daily_bin359.fits" evtable="EVENTS" scfile=/scratch/kocevski/846862/ft2_4FGL_J1238.3-1959_daily_bin359.fits sctable="SC_DATA" outfile=/scratch/kocevski/846862/ltcube_332380801_332640001_4FGL_J1238.3-1959_daily_bin359.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/846862/ft2_4FGL_J1238.3-1959_daily_bin359.fits
.....................!
real 13.03
user 12.70
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/846862/ft1_filtered_4FGL_J1238.3-1959_daily_bin359.fits evtable="EVENTS" scfile=/scratch/kocevski/846862/ft2_4FGL_J1238.3-1959_daily_bin359.fits sctable="SC_DATA" expcube=/scratch/kocevski/846862/ltcube_332380801_332640001_4FGL_J1238.3-1959_daily_bin359.fits outfile=/scratch/kocevski/846862/expmap_332380801_332640001_4FGL_J1238.3-1959_daily_bin359.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/846862/ltcube_332380801_332640001_4FGL_J1238.3-1959_daily_bin359.fits
.....................!
real 189.97
user 185.65
sys 3.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/846862/ft1_filtered_4FGL_J1238.3-1959_daily_bin359.fits scfile=/scratch/kocevski/846862/ft2_4FGL_J1238.3-1959_daily_bin359.fits outfile=/scratch/kocevski/846862/cmap_332380801_332640001_4FGL_J1238.3-1959_daily_bin359.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.58
user 0.40
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/846862/ft1_filtered_4FGL_J1238.3-1959_daily_bin359.fits scfile=/scratch/kocevski/846862/ft2_4FGL_J1238.3-1959_daily_bin359.fits outfile=/scratch/kocevski/846862/cmap_HighResolution_332380801_332640001_4FGL_J1238.3-1959_daily_bin359.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.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .12828E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    20.885       1.0000         .10000E-03   10000.    
     6 'Prefactor '    6.8800       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10208E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    7.7326       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.3330       1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.1946       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    13.566       1.0000         .10000E-03   10000.    
    14 'norm      '    4.3044       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .21413E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    10.205       1.0000         .10000E-03   10000.    
    19 'norm      '    .10030E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.3845       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .97362       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=   6009.334     FROM MIGRAD    STATUS=CONVERGED    444 CALLS     2220 TOTAL
                     EDM=   .89E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    38.412       -.47213E-07** at limit **
   2  Prefactor     .10001E-03    53.728       -.72698E-05** at limit **
   3  norm          .10000E-03    4.2647       -.12853E-05** at limit **
   4  Prefactor     .10000E-03    4.8755       -.12721E-05** at limit **
   5  Prefactor     20.849        69.239       -.13407E-05   -.37588E-04
   6  Prefactor     6.8680        83.924       -.94670E-06   -.11739E-04
   7  Prefactor     .10000E-03    23.045       -.43035E-05** at limit **
   8  Prefactor     7.6992        168.82       -.96214E-06   -.20845E-04
   9  Prefactor     .10000E-03    25.913       -.36287E-06** at limit **
  10  Prefactor     4.3322        5.5387        .15308E-06    .43687E-04
  11  Prefactor     3.1947        2.0576       -.35877E-07   -.96050E-04
  12  Prefactor     .10000E-03    7.3859        .15729E-06** at limit **
  13  Prefactor     13.565        13.749       -.54015E-07   -.30379E-04
  14  norm          4.3045        1.5799       -.18465E-07   -.24474E-03
  15  Prefactor     .10000E-03    32.008       -.14032E-06** at limit **
  16  norm          .10040E-03    8.7396        .26935E-05** at limit **
  17  norm          .10000E-03    2.9727       -.16293E-06** at limit **
  18  Prefactor     10.205        7.4151       -.60987E-07   -.15901E-03
  19  norm          .10000E-03    1.0842        .16720E-06** at limit **
  20  Normalizat    1.3846        .28159        .27231E-06   -.11244E-03
  21  Prefactor     .97359        .13420       -.34664E-06   -.22931E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100014
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 20.8491
  Prefactor  = 6.86805
  Prefactor  = 0.000100005
  Prefactor  = 7.69924
  Prefactor  = 0.0001
  Prefactor  = 4.33217
  Prefactor  = 3.19469
  Prefactor  = 0.0001
  Prefactor  = 13.5646
  norm       = 4.30453
  Prefactor  = 0.0001
  norm       = 0.000100398
  norm       = 0.0001
  Prefactor  = 10.2054
  norm       = 0.0001
  Normalizat = 1.38458
  Prefactor  = 0.973586
 **********
 **   18 **HESSE 
 **********

 FCN=   6009.334     FROM HESSE     STATUS=OK           317 CALLS     2537 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    38.481        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10001E-03    55.011        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    4.3220        .15591E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    4.9243        .16711E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     20.849        68.490        .87645E-04   -1.4794    
   6  Prefactor     6.8680        83.392        .15296E-03   -1.5184    
   7  Prefactor     .10000E-03    23.617        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     7.6992        166.85        .14421E-03   -1.5153    
   9  Prefactor     .10000E-03    26.013        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     4.3322        5.5293        .19352E-03   -1.5292    
  11  Prefactor     3.1947        2.0602        .85514E-04   -1.5350    
  12  Prefactor     .10000E-03    7.4011        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     13.565        13.787        .10875E-03   -1.4971    
  14  norm          4.3045        1.5792        .56372E-04   -1.5293    
  15  Prefactor     .10000E-03    32.022        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10040E-03    38.341        .32060E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    2.9813        .13039E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     10.205        7.4099        .12543E-03   -1.5069    
  19  norm          .10000E-03    1.9005        .15664E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.3846        .33546        .35204E-03   -.81076    
  21  Prefactor     .97359        .16007        .19774E-03   -.93615    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.01948e-08
Minuit parameter uncertainties:
  1  6.66545e-05
  2  0.00173511
  3  8.05681e-05
  4  9.03622e-05
  5  68.7501
  6  47.9469
  7  0.000667656
  8  71.9115
  9  0.00011228
  10  5.52999
  11  2.06026
  12  1.48314e-05
  13  13.7901
  14  1.57923
  15  6.85176e-05
  16  0.00781847
  17  1.01259e-05
  18  7.41053
  19  2.54419e-06
  20  0.335991
  21  0.160149
Done.

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

Extracting fit parameters...

4FGL J1238.3-1959
   Spectrum: PowerLaw
307    Prefactor:  1.000e-04  1.483e-05  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.736e-01  1.601e-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.385e+00  3.360e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/846862/likelihoodResults_332380801_332640001_4FGL_J1238.3-1959_daily_bin359.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6009.33431826
delta logL = -0.000643405674964

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6009.33367484
delta logL = 1.91530489246e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10064E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1356       1.0000          .0000       10.000    
     3 'Normalizat'    1.3846       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97359       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=   6009.334     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      241 TOTAL
                     EDM=   .95E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10141E-03    103.07        .18142E-02** at limit **
   2  Index         2.0652        6.0264        .50000        .14024E-04
   3  Normalizat    1.3846        .26374E-01    .35203E-03   -.98692E-04
   4  Prefactor     .97359        .12777E-01    .19773E-03   -.38176E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101414
  Index      = 2.06518
  Normalizat = 1.38458
  Prefactor  = 0.973587
 **********
 **   18 **HESSE 
 **********

 FCN=   6009.334     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      270 TOTAL
                     EDM=   .44E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10141E-03    444.91        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0652        6.3288        .50000       -.62730    
   3  Normalizat    1.3846        .58203E-01    .14081E-04   -.81076    
   4  Prefactor     .97359        .28192E-01    .79094E-05   -.93615    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.3662e-08
Minuit parameter uncertainties:
  1  0.0505452
  2  976.474
  3  0.0582056
  4  0.0281924
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/846862': 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) = 6009.33367461
delta logL = 2.41678208113e-07

Extracting fit parameters...

4FGL J1238.3-1959
   Spectrum: PowerLaw
307    Prefactor:  1.014e-04  5.055e-02  1.000e-04  1.000e+04 ( 1.000e-13)
308        Index:  2.065e+00  9.765e+02  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.736e-01  2.819e-02  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.385e+00  5.821e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
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/846862/cmap_HighResolution_332380801_332640001_4FGL_J1238.3-1959_daily_bin359.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.06e-03', job_status='DONE', photon_flux_upper_limit='9.31e-08', time_completed='2021-09-06 02:15:58.921157', job_id='846862', GAL2='0.97', fit_tolerance='1e-08', EG2='1.38', EG='1.38', time_epoch_completed='1630919758.92', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.97', dlogl='2.42e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.15' WHERE bin_id='359' AND source_name='4FGL J1238.3-1959' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 02:15:58 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0022>
Subject: Job 846862: <4FGL_J1238.3-1959_daily_bin359> in cluster <slac> Done

Job <4FGL_J1238.3-1959_daily_bin359> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Mon Sep  6 02:00:44 2021
Job was executed on host(s) <bullet0022>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 02:02:17 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:02:17 2021
Terminated at Mon Sep  6 02:15:59 2021
Results reported at Mon Sep  6 02:15:59 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1238.3-1959_daily_bin359 189.594 -19.9945 332380801 332640001 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 :                                   611.21 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             273.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   822 sec.
    Turnaround time :                            915 sec.

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

