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


Performing analysis on: 4FGL_J1238.3-1959_daily_bin1548
RA = 189.594, Dec = -19.9945
tmin = 640569601, tmax = 640828801
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='854767', job_status='RUN', time_executed='2021-09-06 02:27:05.692002', time_epoch_executed='1630920425.69' WHERE source_name='4FGL J1238.3-1959' and cadence='daily' and bin_id='1548'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/854767

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/854767/ft1_4FGL_J1238.3-1959_daily_bin1548.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/854767/ft2_4FGL_J1238.3-1959_daily_bin1548.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/854767/ft1_4FGL_J1238.3-1959_daily_bin1548.fits outfile=/scratch/kocevski/854767/ft1_filteredMKT_4FGL_J1238.3-1959_daily_bin1548.fits ra=189.594 dec=-19.9945 rad=12.0 tmin=640569601.0 tmax=640828801.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 2.98
user 2.79
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/854767/ft1_filtered_4FGL_J1238.3-1959_daily_bin1548.fits" evtable="EVENTS" scfile=/scratch/kocevski/854767/ft2_4FGL_J1238.3-1959_daily_bin1548.fits sctable="SC_DATA" outfile=/scratch/kocevski/854767/ltcube_640569601_640828801_4FGL_J1238.3-1959_daily_bin1548.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/854767/ft2_4FGL_J1238.3-1959_daily_bin1548.fits
.....................!
real 17.60
user 14.84
sys 0.40

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/854767/ft1_filtered_4FGL_J1238.3-1959_daily_bin1548.fits evtable="EVENTS" scfile=/scratch/kocevski/854767/ft2_4FGL_J1238.3-1959_daily_bin1548.fits sctable="SC_DATA" expcube=/scratch/kocevski/854767/ltcube_640569601_640828801_4FGL_J1238.3-1959_daily_bin1548.fits outfile=/scratch/kocevski/854767/expmap_640569601_640828801_4FGL_J1238.3-1959_daily_bin1548.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/854767/ltcube_640569601_640828801_4FGL_J1238.3-1959_daily_bin1548.fits
.....................!
real 192.20
user 186.84
sys 4.82

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/854767/ft1_filtered_4FGL_J1238.3-1959_daily_bin1548.fits scfile=/scratch/kocevski/854767/ft2_4FGL_J1238.3-1959_daily_bin1548.fits outfile=/scratch/kocevski/854767/cmap_640569601_640828801_4FGL_J1238.3-1959_daily_bin1548.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.61
user 0.38
sys 0.16

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/854767/ft1_filtered_4FGL_J1238.3-1959_daily_bin1548.fits evtable="EVENTS" scfile=/scratch/kocevski/854767/ft2_4FGL_J1238.3-1959_daily_bin1548.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/854767/Model_4FGL_J1238.3-1959_daily_bin1548.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/854767/ft1_filtered_4FGL_J1238.3-1959_daily_bin1548.fits........................!
real 22.36
user 20.84
sys 1.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    187.80       1.0000         .10000E-03   10000.    
     2 'Prefactor '    29.894       1.0000         .10000E-03   10000.    
     3 'norm      '    17.234       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    330.37       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10184E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .84332E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .15289E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10336E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10144E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    10.105       1.0000         .10000E-03   10000.    
    12 'Prefactor '    74.673       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10772E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10144E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    140.41       1.0000         .10000E-03   10000.    
    17 'norm      '    14.277       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .12567E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    9.3096       1.0000         .10000E-03   10000.    
    20 'Normalizat'    .25518       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.0194       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=   1119.664     FROM MIGRAD    STATUS=CONVERGED    752 CALLS     3238 TOTAL
                     EDM=   .34E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     187.79        142.74        .14733E-03    .11077E-04
   2  Prefactor     29.691        122.19        .73280E-04    .31610E-04
   3  norm          17.330        33.419        .96477E-04    .87053E-04
   4  Prefactor     .10000E-03    6.0426        .80285E-03** at limit **
   5  Prefactor     329.51        296.79        .11190E-03    .24760E-04
   6  Prefactor     .10000E-03    41.759        .18142E-02** at limit **
   7  Prefactor     .10000E-03    408.68        .20870E-02** at limit **
   8  Prefactor     .10000E-03    217.46        .18142E-02** at limit **
   9  Prefactor     .10000E-03    59.253        .18142E-02** at limit **
  10  Prefactor     .10000E-03    18.009        .13822E-02** at limit **
  11  Prefactor     10.106        6.5394        .66684E-04    .17475E-04
  12  Prefactor     74.671        72.184        .46464E-04    .90776E-05
  13  Prefactor     .10000E-03    13.755        .12122E-02** at limit **
  14  norm          .10000E-03    4.5767        .13743E-03** at limit **
  15  Prefactor     .10000E-03    379.64        .18142E-02** at limit **
  16  norm          140.42        109.03        .16998E-03    .82098E-05
  17  norm          14.281        47.084        .10600E-03    .20913E-05
  18  Prefactor     .10000E-03    28.479        .17439E-02** at limit **
  19  norm          9.3093        26.518        .13135E-03    .18825E-05
  20  Normalizat    .25645        .69847        .68966E-03    .18512E-04
  21  Prefactor     1.0185        .35698        .18072E-03    .67467E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 187.792
  Prefactor  = 29.6909
  norm       = 17.3296
  Prefactor  = 0.0001
  Prefactor  = 329.515
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.1065
  Prefactor  = 74.6714
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  norm       = 140.423
  norm       = 14.2814
  Prefactor  = 0.0001
  norm       = 9.30926
  Normalizat = 0.256447
  Prefactor  = 1.01853
 **********
 **   18 **HESSE 
 **********

 FCN=   1119.664     FROM HESSE     STATUS=OK           295 CALLS     3533 TOTAL
                     EDM=   .34E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     187.79        142.72        .29467E-04   -1.2959    
   2  Prefactor     29.691        121.74        .29312E-05   -1.4618    
   3  norm          17.330        33.375        .38591E-05   -1.4875    
   4  Prefactor     .10000E-03    6.0426        .16057E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     329.51        296.73        .22380E-04   -1.2057    
   6  Prefactor     .10000E-03    41.760        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    408.79        .41741E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    217.47        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    59.255        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    18.010        .27644E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     10.106        6.5393        .26674E-05   -1.5072    
  12  Prefactor     74.671        72.184        .92928E-05   -1.3978    
  13  Prefactor     .10000E-03    13.755        .24245E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    4.5767        .27486E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    379.64        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          140.42        109.03        .67993E-05   -1.3332    
  17  norm          14.281        47.084        .42401E-05   -1.4952    
  18  Prefactor     .10000E-03    28.479        .34879E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          9.3093        26.516        .52540E-05   -1.5098    
  20  Normalizat    .25645        .69719        .27586E-04   -1.2554    
  21  Prefactor     1.0185        .35640        .36145E-04   -.92114    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.41571e-11
Minuit parameter uncertainties:
  1  142.988
  2  120.668
  3  33.4114
  4  6.18302e-07
  5  298.109
  6  2.18054e-05
  7  0.00184993
  8  0.000784085
  9  5.24654e-05
  10  1.82215e-05
  11  6.53977
  12  72.2692
  13  3.62403e-06
  14  1.15541e-06
  15  0.000986321
  16  109.188
  17  47.2064
  18  2.64973e-05
  19  26.5492
  20  0.723152
  21  0.357229
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
600    Prefactor:  1.019e+00  3.572e-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:  2.564e-01  7.232e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.19
Ra Dec: 189.594 -19.994
Photon Index (Fixed Index): 2.15 +/- 0.00
Photon Flux (Fixed Index): 2.21e-07 +/- 2.14e-07
Energy Flux (Fixed Index): 1.09e-04 +/- 1.05e-04

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

Saving results to:
/scratch/kocevski/854767/likelihoodResults_640569601_640828801_4FGL_J1238.3-1959_daily_bin1548.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) = 1119.66226029
delta logL = 0.00193035210918

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 1119.66073261
delta logL = 0.00345802463698

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    79.800       1.0000         .10000E-03   10000.    
     2 'Index     '    2.0846       1.0000          .0000       10.000    
     3 'Normalizat'    .26337       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0159       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=   1119.661     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      260 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     79.822        99.195        .22479E-03   -.40536E-04
   2  Index         2.0844        .80914        .45433E-02   -.20805E-04
   3  Normalizat    .26436        .66271        .67975E-03   -.48736E-04
   4  Prefactor     1.0155        .34701        .18096E-03   -.12028E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 79.8219
  Index      = 2.08436
  Normalizat = 0.264356
  Prefactor  = 1.01553
 **********
 **   18 **HESSE 
 **********

 FCN=   1119.661     FROM HESSE     STATUS=OK            25 CALLS      285 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     79.822        96.710        .89916E-05   -1.3919    
   2  Index         2.0844        .78876        .18173E-03   -.62257    
   3  Normalizat    .26436        .66143        .27190E-04   -1.2503    
   4  Prefactor     1.0155        .34635        .36193E-04   -.92214    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.29142e-10
Minuit parameter uncertainties:
  1  96.9009
  2  0.793804
  3  0.682641
  4  0.347117
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/854767': 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) = 1119.66073154
delta logL = 0.00345910345436

Extracting fit parameters...

4FGL J1238.3-1959
   Spectrum: PowerLaw
307    Prefactor:  7.982e+01  9.690e+01  1.000e-04  1.000e+04 ( 1.000e-13)
308        Index:  2.084e+00  7.938e-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:  1.016e+00  3.471e-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:  2.644e-01  6.826e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.19
Ra Dec: 189.594 -19.994
Photon Index (Free Index): 2.08 +/- 0.79
Photon Flux (Free Index): 2.09e-07 +/- 2.47e-07
Energy Flux (Free Index): 1.19e-04 +/- 1.70e-04

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/854767/cmap_HighResolution_640569601_640828801_4FGL_J1238.3-1959_daily_bin1548.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.98e-02', comment='SUCCESS', photon_flux='2.21e-07', energy_flux2='1.19e-04', photon_flux_error='2.14e-07', dlogl='3.46e-03', energy_flux='1.09e-04', photon_flux2='2.09e-07', job_status='DONE', time_completed='2021-09-06 02:33:42.913571', photon_index_error2='0.79', photon_index2='2.08', ts='2.19', fit_tolerance='1e-08', GAL='1.02', photon_index_error='0.00', photon_flux_upper_limit='7.88e-07', energy_flux_error2='1.70e-04', EG='0.26', time_epoch_completed='1630920822.91', return_code='0', job_id='854767', GAL2='1.02', EG2='0.26', return_code2='0', energy_flux_error='1.05e-04', photon_flux_error2='2.47e-07', ts2='2.19', photon_index='2.15' WHERE bin_id='1548' AND source_name='4FGL J1238.3-1959' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 02:33:42 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0260>
Subject: Job 854767: <4FGL_J1238.3-1959_daily_bin1548> in cluster <slac> Done

Job <4FGL_J1238.3-1959_daily_bin1548> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Mon Sep  6 02:25:38 2021
Job was executed on host(s) <bullet0260>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 02:26:47 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:26:47 2021
Terminated at Mon Sep  6 02:33:43 2021
Results reported at Mon Sep  6 02:33:43 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1238.3-1959_daily_bin1548 189.594 -19.9945 640569601 640828801 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 :                                   391.18 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             327.33 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   417 sec.
    Turnaround time :                            485 sec.

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

