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


Performing analysis on: 4FGL_J1238.3-1959_daily_bin1402
RA = 189.594, Dec = -19.9945
tmin = 602726401, tmax = 602985601
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='854555', job_status='RUN', time_executed='2021-09-06 02:26:24.730538', time_epoch_executed='1630920384.73' WHERE source_name='4FGL J1238.3-1959' and cadence='daily' and bin_id='1402'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/854555

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/854555/ft1_4FGL_J1238.3-1959_daily_bin1402.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/854555/ft2_4FGL_J1238.3-1959_daily_bin1402.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/854555/ft1_4FGL_J1238.3-1959_daily_bin1402.fits outfile=/scratch/kocevski/854555/ft1_filteredMKT_4FGL_J1238.3-1959_daily_bin1402.fits ra=189.594 dec=-19.9945 rad=12.0 tmin=602726401.0 tmax=602985601.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.09
user 2.88
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/854555/ft1_filtered_4FGL_J1238.3-1959_daily_bin1402.fits" evtable="EVENTS" scfile=/scratch/kocevski/854555/ft2_4FGL_J1238.3-1959_daily_bin1402.fits sctable="SC_DATA" outfile=/scratch/kocevski/854555/ltcube_602726401_602985601_4FGL_J1238.3-1959_daily_bin1402.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/854555/ft2_4FGL_J1238.3-1959_daily_bin1402.fits
.....................!
real 17.56
user 17.17
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/854555/ft1_filtered_4FGL_J1238.3-1959_daily_bin1402.fits evtable="EVENTS" scfile=/scratch/kocevski/854555/ft2_4FGL_J1238.3-1959_daily_bin1402.fits sctable="SC_DATA" expcube=/scratch/kocevski/854555/ltcube_602726401_602985601_4FGL_J1238.3-1959_daily_bin1402.fits outfile=/scratch/kocevski/854555/expmap_602726401_602985601_4FGL_J1238.3-1959_daily_bin1402.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/854555/ltcube_602726401_602985601_4FGL_J1238.3-1959_daily_bin1402.fits
.....................!
real 193.05
user 187.55
sys 5.10

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/854555/ft1_filtered_4FGL_J1238.3-1959_daily_bin1402.fits scfile=/scratch/kocevski/854555/ft2_4FGL_J1238.3-1959_daily_bin1402.fits outfile=/scratch/kocevski/854555/cmap_602726401_602985601_4FGL_J1238.3-1959_daily_bin1402.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.73
user 0.38
sys 0.18

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/854555/ft1_filtered_4FGL_J1238.3-1959_daily_bin1402.fits scfile=/scratch/kocevski/854555/ft2_4FGL_J1238.3-1959_daily_bin1402.fits outfile=/scratch/kocevski/854555/cmap_HighResolution_602726401_602985601_4FGL_J1238.3-1959_daily_bin1402.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.59
user 0.40
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/854555/ft1_filtered_4FGL_J1238.3-1959_daily_bin1402.fits evtable="EVENTS" scfile=/scratch/kocevski/854555/ft2_4FGL_J1238.3-1959_daily_bin1402.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/854555/Model_4FGL_J1238.3-1959_daily_bin1402.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/854555/ft1_filtered_4FGL_J1238.3-1959_daily_bin1402.fits.....................!
real 57.40
user 55.06
sys 1.26

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    28.203       1.0000         .10000E-03   10000.    
     3 'norm      '    7.9787       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    83.309       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10056E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10339E-03   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 '    5.5682       1.0000         .10000E-03   10000.    
    12 'Prefactor '    20.782       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .38510       1.0000         .10000E-03   10000.    
    15 'Prefactor '    113.03       1.0000         .10000E-03   10000.    
    16 'norm      '    4.4172       1.0000         .10000E-03   10000.    
    17 'norm      '    5.5433       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .11182E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    1.4836       1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.4292       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .79318       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=   6578.021     FROM MIGRAD    STATUS=CONVERGED    453 CALLS     2265 TOTAL
                     EDM=   .43E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    39.328        .12434E-06** at limit **
   2  Prefactor     28.207        28.945       -.25743E-06    .11239E-04
   3  norm          7.9784        8.7563        .94563E-07   -.56905E-05
   4  Prefactor     .10000E-03    5.1873        .17035E-06** at limit **
   5  Prefactor     83.309        75.035       -.11240E-06    .31482E-05
   6  Prefactor     .10000E-03    16.235        .75210E-07** at limit **
   7  Prefactor     .10000E-03    13.301        .10801E-06** at limit **
   8  Prefactor     .10000E-03    59.935        .21999E-06** at limit **
   9  Prefactor     .10000E-03    6.8610        .37443E-07** at limit **
  10  Prefactor     .10000E-03    2.7877        .33736E-07** at limit **
  11  Prefactor     5.5685        2.4737       -.33048E-07    .19619E-04
  12  Prefactor     20.784        14.646       -.58640E-07    .51505E-04
  13  Prefactor     .10000E-03    12.100        .99825E-07** at limit **
  14  norm          .38574        .63377       -.35901E-06   -.11403E-02
  15  Prefactor     112.89        119.59        .18180E-05    .88284E-04
  16  norm          4.4178        10.421       -.26255E-07    .23619E-04
  17  norm          5.5450        7.3289        .98765E-06    .57032E-03
  18  Prefactor     .10002E-03    4.6566       -.20215E-05** at limit **
  19  norm          1.4835        1.5019       -.16667E-07    .82927E-04
  20  Normalizat    1.4290        .25428        .86018E-06    .15655E-03
  21  Prefactor     .79327        .11683        .79526E-07    .34583E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 28.2074
  norm       = 7.9784
  Prefactor  = 0.0001
  Prefactor  = 83.3094
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.56854
  Prefactor  = 20.7838
  Prefactor  = 0.0001
  norm       = 0.385737
  Prefactor  = 112.895
  norm       = 4.41784
  norm       = 5.54504
  Prefactor  = 0.000100017
  norm       = 1.48351
  Normalizat = 1.42901
  Prefactor  = 0.793266
 **********
 **   18 **HESSE 
 **********

 FCN=   6578.021     FROM HESSE     STATUS=OK           319 CALLS     2584 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    39.420        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     28.207        28.836        .75438E-04   -1.4645    
   3  norm          7.9784        8.7101        .14195E-03   -1.5143    
   4  Prefactor     .10000E-03    5.3646        .36028E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     83.309        74.965        .44009E-04   -1.3880    
   6  Prefactor     .10000E-03    16.273        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    13.311        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    60.083        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    6.8710        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    2.7992        .13219E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     5.5685        2.4737        .82728E-04   -1.5236    
  12  Prefactor     20.784        14.660        .87860E-04   -1.4796    
  13  Prefactor     .10000E-03    12.197        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .38574        .56265        .86500E-03   -1.5584    
  15  Prefactor     112.89        118.60        .18920E-03   -1.3579    
  16  norm          4.4178        10.404        .19161E-03   -1.5288    
  17  norm          5.5450        7.2558        .17064E-03   -1.5237    
  18  Prefactor     .10002E-03    10.180        .28819E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          1.4835        1.5135        .97322E-04   -1.5464    
  20  Normalizat    1.4290        .30317        .32429E-03   -.79793    
  21  Prefactor     .79327        .13979        .19632E-03   -.99977    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.93648e-09
Minuit parameter uncertainties:
  1  1.45518e-05
  2  28.8505
  3  8.71145
  4  1.39794e-05
  5  75.0502
  6  1.75045e-05
  7  2.85243e-06
  8  4.68335e-05
  9  3.1114e-06
  10  2.20086e-06
  11  2.47379
  12  14.6622
  13  2.71389e-05
  14  0.562655
  15  118.847
  16  10.4081
  17  7.25694
  18  0.000828654
  19  1.51353
  20  0.303556
  21  0.139851
Done.

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

Extracting fit parameters...

4FGL J1238.3-1959
   Spectrum: PowerLaw
307    Prefactor:  2.078e+01  1.466e+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:  7.933e-01  1.399e-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.429e+00  3.036e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.36
Ra Dec: 189.594 -19.994
Photon Index (Fixed Index): 2.15 +/- 0.00
Photon Flux (Fixed Index): 6.15e-08 +/- 4.33e-08
Energy Flux (Fixed Index): 3.03e-05 +/- 2.14e-05

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) = 6577.86108358
delta logL = 0.16015691155

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6577.85333462
delta logL = 0.167905873232

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    15.967       1.0000         .10000E-03   10000.    
     2 'Index     '    2.4844       1.0000          .0000       10.000    
     3 'Normalizat'    1.3954       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .80175       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=   6577.853     FROM MIGRAD    STATUS=CONVERGED    100 CALLS      308 TOTAL
                     EDM=   .21E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     15.958        15.894        .10023E-03    .33573E-03
   2  Index         2.4834        .62269        .57785E-02    .13665E-03
   3  Normalizat    1.3960        .30514        .32735E-03   -.21081E-04
   4  Prefactor     .80170        .14037        .19533E-03    .62625E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 15.9584
  Index      = 2.48341
  Normalizat = 1.39598
  Prefactor  = 0.801705
 **********
 **   18 **HESSE 
 **********

 FCN=   6577.853     FROM HESSE     STATUS=OK            25 CALLS      333 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     15.958        14.624        .40094E-05   -1.4909    
   2  Index         2.4834        .57237        .23114E-03   -.52743    
   3  Normalizat    1.3960        .30468        .13094E-04   -.80745    
   4  Prefactor     .80170        .14033        .78134E-05   -.99666    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.50711e-10
Minuit parameter uncertainties:
  1  14.6274
  2  0.574053
  3  0.305075
  4  0.140391
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/854555': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6577.8533274
delta logL = 0.167913089613

Extracting fit parameters...

4FGL J1238.3-1959
   Spectrum: PowerLaw
307    Prefactor:  1.596e+01  1.463e+01  1.000e-04  1.000e+04 ( 1.000e-13)
308        Index:  2.483e+00  5.741e-01  0.000e+00  1.000e+01 (-1.000e+00)
309        Scale:  1.503e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
600    Prefactor:  8.017e-01  1.404e-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.396e+00  3.051e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.70
Ra Dec: 189.594 -19.994
Photon Index (Free Index): 2.48 +/- 0.57
Photon Flux (Free Index): 9.02e-08 +/- 7.33e-08
Energy Flux (Free Index): 2.67e-05 +/- 1.74e-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/854555/cmap_HighResolution_602726401_602985601_4FGL_J1238.3-1959_daily_bin1402.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.15e-08', energy_flux2='2.67e-05', photon_flux_error='4.33e-08', dlogl='1.68e-01', energy_flux='3.03e-05', photon_flux2='9.02e-08', job_status='DONE', time_completed='2021-09-06 02:36:39.254774', photon_index_error2='0.57', photon_index2='2.48', ts='4.36', fit_tolerance='1e-08', GAL='0.79', photon_index_error='0.00', energy_flux_error2='1.74e-05', EG='1.43', time_epoch_completed='1630920999.25', return_code='0', job_id='854555', GAL2='0.80', EG2='1.40', return_code2='0', energy_flux_error='2.14e-05', photon_flux_error2='7.33e-08', ts2='4.70', photon_index='2.15' WHERE bin_id='1402' AND source_name='4FGL J1238.3-1959' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 02:36:39 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0202>
Subject: Job 854555: <4FGL_J1238.3-1959_daily_bin1402> in cluster <slac> Done

Job <4FGL_J1238.3-1959_daily_bin1402> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Mon Sep  6 02:25:25 2021
Job was executed on host(s) <bullet0202>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 02:25: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 02:25:48 2021
Terminated at Mon Sep  6 02:36:40 2021
Results reported at Mon Sep  6 02:36:40 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1238.3-1959_daily_bin1402 189.594 -19.9945 602726401 602985601 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 :                                   607.07 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             335.26 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   651 sec.
    Turnaround time :                            675 sec.

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

