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


Performing analysis on: 4FGL_J1238.3-1959_daily_bin170
RA = 189.594, Dec = -19.9945
tmin = 283392001, tmax = 283651201
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='845106', job_status='RUN', time_executed='2021-09-06 01:56:09.870628', time_epoch_executed='1630918569.87' WHERE source_name='4FGL J1238.3-1959' and cadence='daily' and bin_id='170'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/845106

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

Retrieving the FT1 file...

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

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

Retrieving 45 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/845106/ft1_4FGL_J1238.3-1959_daily_bin170.fits


Retrieving the FT1 file...

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

Retrieving 45 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/845106/ft2_4FGL_J1238.3-1959_daily_bin170.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/845106/ft1_4FGL_J1238.3-1959_daily_bin170.fits outfile=/scratch/kocevski/845106/ft1_filteredMKT_4FGL_J1238.3-1959_daily_bin170.fits ra=189.594 dec=-19.9945 rad=12.0 tmin=283392001.0 tmax=283651201.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 4.08
user 3.40
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/845106/ft1_filtered_4FGL_J1238.3-1959_daily_bin170.fits" evtable="EVENTS" scfile=/scratch/kocevski/845106/ft2_4FGL_J1238.3-1959_daily_bin170.fits sctable="SC_DATA" outfile=/scratch/kocevski/845106/ltcube_283392001_283651201_4FGL_J1238.3-1959_daily_bin170.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/845106/ft2_4FGL_J1238.3-1959_daily_bin170.fits
.....................!
real 15.10
user 14.64
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/845106/ft1_filtered_4FGL_J1238.3-1959_daily_bin170.fits evtable="EVENTS" scfile=/scratch/kocevski/845106/ft2_4FGL_J1238.3-1959_daily_bin170.fits sctable="SC_DATA" expcube=/scratch/kocevski/845106/ltcube_283392001_283651201_4FGL_J1238.3-1959_daily_bin170.fits outfile=/scratch/kocevski/845106/expmap_283392001_283651201_4FGL_J1238.3-1959_daily_bin170.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/845106/ltcube_283392001_283651201_4FGL_J1238.3-1959_daily_bin170.fits
.....................!
real 191.65
user 186.26
sys 4.38

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/845106/ft1_filtered_4FGL_J1238.3-1959_daily_bin170.fits scfile=/scratch/kocevski/845106/ft2_4FGL_J1238.3-1959_daily_bin170.fits outfile=/scratch/kocevski/845106/cmap_283392001_283651201_4FGL_J1238.3-1959_daily_bin170.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.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/845106/ft1_filtered_4FGL_J1238.3-1959_daily_bin170.fits scfile=/scratch/kocevski/845106/ft2_4FGL_J1238.3-1959_daily_bin170.fits outfile=/scratch/kocevski/845106/cmap_HighResolution_283392001_283651201_4FGL_J1238.3-1959_daily_bin170.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=189.594 yref=-19.9945 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.55
user 0.40
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/845106/ft1_filtered_4FGL_J1238.3-1959_daily_bin170.fits evtable="EVENTS" scfile=/scratch/kocevski/845106/ft2_4FGL_J1238.3-1959_daily_bin170.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/845106/Model_4FGL_J1238.3-1959_daily_bin170.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/845106/ft1_filtered_4FGL_J1238.3-1959_daily_bin170.fits.....................!
real 80.00
user 78.62
sys 1.15

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.5458       1.0000         .10000E-03   10000.    
     2 'Prefactor '    15.617       1.0000         .10000E-03   10000.    
     3 'norm      '    .14491       1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.2478       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10791E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .13355E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10407E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10908E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    10.422       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    16.105       1.0000         .10000E-03   10000.    
    14 'norm      '    1.2193       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .66488E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    13.435       1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.9983       1.0000         .10000E-03   10000.    
    19 'norm      '    2.2318       1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.0049       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.0234       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=   10662.07     FROM MIGRAD    STATUS=CONVERGED    475 CALLS     2240 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.4206        64.281       -.24064E-04   -.37786E-04
   2  Prefactor     15.663        13.945       -.56149E-05   -.10808E-02
   3  norm          .12664        1.8800        .20329E-05   -.17195E-02
   4  Prefactor     3.2492        5.1298        .35367E-06   -.92400E-03
   5  Prefactor     .10000E-03    8.2593        .36487E-08** at limit **
   6  Prefactor     .10000E-03    25.079        .52891E-05** at limit **
   7  Prefactor     .10000E-03    4.0980       -.44342E-08** at limit **
   8  Prefactor     .10000E-03    36.459        .11590E-04** at limit **
   9  Prefactor     .10000E-03    39.962       -.24851E-04** at limit **
  10  Prefactor     .10000E-03    5.1950        .14772E-06** at limit **
  11  Prefactor     10.423        2.4401        .25300E-06    .14007E-03
  12  Prefactor     .10000E-03    3.2174       -.15290E-06** at limit **
  13  Prefactor     16.083        10.428       -.83863E-05   -.47840E-04
  14  norm          1.2192        .66813       -.11626E-06   -.83614E-03
  15  Prefactor     .10000E-03    80.330        .34873E-04** at limit **
  16  norm          .10000E-03    2.2820       -.12375E-07** at limit **
  17  norm          13.434        5.8158        .81061E-06   -.79741E-03
  18  Prefactor     3.9977        4.3384       -.17213E-05   -.82322E-03
  19  norm          2.2314        1.5853       -.10187E-06   -.10338E-03
  20  Normalizat    1.0050        .19033        .53758E-05   -.36473E-03
  21  Prefactor     1.0234        .93419E-01   -.35653E-06    .34654E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.42065
  Prefactor  = 15.6628
  norm       = 0.12664
  Prefactor  = 3.24916
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.4226
  Prefactor  = 0.0001
  Prefactor  = 16.083
  norm       = 1.21922
  Prefactor  = 0.000100001
  norm       = 0.0001
  norm       = 13.4335
  Prefactor  = 3.99767
  norm       = 2.23139
  Normalizat = 1.00497
  Prefactor  = 1.02342
 **********
 **   18 **HESSE 
 **********

 FCN=   10662.07     FROM HESSE     STATUS=OK           317 CALLS     2557 TOTAL
                     EDM=   .20E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.4206        63.410        .15686E-03   -1.5201    
   2  Prefactor     15.663        17.649        .10135E-03   -1.4916    
   3  norm          .12664        26.701        .22783E-02   -1.5637    
   4  Prefactor     3.2492        5.0924        .22474E-03   -1.5347    
   5  Prefactor     .10000E-03    8.2604        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    25.226        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    4.1003        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    36.745        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    40.873        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    5.3140        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     10.423        2.4375        .75480E-04   -1.5062    
  12  Prefactor     .10000E-03    3.2263        .18087E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     16.083        10.448        .99802E-04   -1.4906    
  14  norm          1.2192        .65944        .60131E-04   -1.5487    
  15  Prefactor     .10000E-03    80.173        .21008E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    2.3282        .15231E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          13.434        5.7698        .10928E-03   -1.4975    
  18  Prefactor     3.9977        4.3249        .19429E-03   -1.5308    
  19  norm          2.2314        1.5847        .10644E-03   -1.5409    
  20  Normalizat    1.0050        .22049        .35425E-03   -.92864    
  21  Prefactor     1.0234        .10922        .17963E-03   -.91953    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.99116e-08
Minuit parameter uncertainties:
  1  40.4105
  2  17.6546
  3  3.67792
  4  5.09309
  5  9.71934e-06
  6  5.15478e-05
  7  5.84399e-08
  8  8.62501e-05
  9  0.000144715
  10  7.70077e-05
  11  2.43747
  12  7.71593e-06
  13  10.4493
  14  0.659442
  15  0.000625608
  16  8.32654e-06
  17  5.77005
  18  4.32527
  19  1.58476
  20  0.22069
  21  0.109246
Done.

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

Extracting fit parameters...

4FGL J1238.3-1959
   Spectrum: PowerLaw
307    Prefactor:  1.000e-04  7.716e-06  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.023e+00  1.092e-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.005e+00  2.207e-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: 4.44e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.37e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/845106/likelihoodResults_283392001_283651201_4FGL_J1238.3-1959_daily_bin170.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) = 10662.0705105
delta logL = -0.00147616808317

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 10662.0690338
delta logL = 5.42961061001e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1211       1.0000          .0000       10.000    
     3 'Normalizat'    1.0050       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0234       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=   10662.07     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      245 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10295E-03    1.6350        .18142E-01** at limit **
   2  Index         2.0343        8.9336        .50000        .59041E-04
   3  Normalizat    1.0050        .31360E-02    .35425E-03   -.30167E-05
   4  Prefactor     1.0234        .16141E-02    .17963E-03    .15999E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000102953
  Index      = 2.03433
  Normalizat = 1.00498
  Prefactor  = 1.02342
 **********
 **   18 **HESSE 
 **********

 FCN=   10662.07     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      274 TOTAL
                     EDM=   .27E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10295E-03    32.312        .19276E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0343        7.0601        .50000       -.63495    
   3  Normalizat    1.0050        .13994E-01    .14170E-04   -.92864    
   4  Prefactor     1.0234        .72028E-02    .35927E-04   -.91953    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.73261e-08
Minuit parameter uncertainties:
  1  0.0195477
  2  188.08
  3  0.0139939
  4  0.00720279
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/845106': 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) = 10662.0690328
delta logL = 1.55447014549e-06

Extracting fit parameters...

4FGL J1238.3-1959
   Spectrum: PowerLaw
307    Prefactor:  1.030e-04  1.955e-02  1.000e-04  1.000e+04 ( 1.000e-13)
308        Index:  2.034e+00  1.881e+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:  1.023e+00  7.203e-03  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.005e+00  1.399e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/845106/cmap_HighResolution_283392001_283651201_4FGL_J1238.3-1959_daily_bin170.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.37e-03', job_status='DONE', photon_flux_upper_limit='4.44e-08', time_completed='2021-09-06 02:11:11.734590', job_id='845106', GAL2='1.02', fit_tolerance='1e-08', EG2='1.00', EG='1.00', time_epoch_completed='1630919471.73', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.02', dlogl='1.55e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.15' WHERE bin_id='170' AND source_name='4FGL J1238.3-1959' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 02:11:11 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0166>
Subject: Job 845106: <4FGL_J1238.3-1959_daily_bin170> in cluster <slac> Done

Job <4FGL_J1238.3-1959_daily_bin170> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Mon Sep  6 01:55:28 2021
Job was executed on host(s) <bullet0166>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 01:55:48 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Sep  6 01:55:48 2021
Terminated at Mon Sep  6 02:11:12 2021
Results reported at Mon Sep  6 02:11:12 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1238.3-1959_daily_bin170 189.594 -19.9945 283392001 283651201 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 :                                   892.36 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             334.27 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   924 sec.
    Turnaround time :                            944 sec.

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

