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


Performing analysis on: 4FGL_J1238.5-1201_daily_bin1249
RA = 189.625, Dec = -12.028
tmin = 563068801, tmax = 563328001
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='862584', job_status='RUN', time_executed='2021-09-06 02:51:29.342779', time_epoch_executed='1630921889.34' WHERE source_name='4FGL J1238.5-1201' and cadence='daily' and bin_id='1249'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/862584

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/862584/ft1_4FGL_J1238.5-1201_daily_bin1249.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/862584/ft2_4FGL_J1238.5-1201_daily_bin1249.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/862584/ft1_4FGL_J1238.5-1201_daily_bin1249.fits outfile=/scratch/kocevski/862584/ft1_filteredMKT_4FGL_J1238.5-1201_daily_bin1249.fits ra=189.625 dec=-12.028 rad=12.0 tmin=563068801.0 tmax=563328001.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.74
user 3.28
sys 0.19

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/862584/ft2_4FGL_J1238.5-1201_daily_bin1249.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/862584/ft2_4FGL_J1238.5-1201_daily_bin1249.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/862584/ft1_filteredMKT_4FGL_J1238.5-1201_daily_bin1249.fits evtable="EVENTS" outfile="/scratch/kocevski/862584/ft1_filtered_4FGL_J1238.5-1201_daily_bin1249.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.78
user 0.33
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/862584/ft1_filtered_4FGL_J1238.5-1201_daily_bin1249.fits" evtable="EVENTS" scfile=/scratch/kocevski/862584/ft2_4FGL_J1238.5-1201_daily_bin1249.fits sctable="SC_DATA" outfile=/scratch/kocevski/862584/ltcube_563068801_563328001_4FGL_J1238.5-1201_daily_bin1249.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/862584/ft2_4FGL_J1238.5-1201_daily_bin1249.fits
.....................!
real 14.85
user 14.31
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/862584/ft1_filtered_4FGL_J1238.5-1201_daily_bin1249.fits evtable="EVENTS" scfile=/scratch/kocevski/862584/ft2_4FGL_J1238.5-1201_daily_bin1249.fits sctable="SC_DATA" expcube=/scratch/kocevski/862584/ltcube_563068801_563328001_4FGL_J1238.5-1201_daily_bin1249.fits outfile=/scratch/kocevski/862584/expmap_563068801_563328001_4FGL_J1238.5-1201_daily_bin1249.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/862584/ltcube_563068801_563328001_4FGL_J1238.5-1201_daily_bin1249.fits
.....................!
real 191.62
user 186.06
sys 4.94

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 186 point sources and 0 extended sources

Setting source of interest to:
4FGL J1238.5-1201 @ 189.625 -12.028

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/862584/ft1_filtered_4FGL_J1238.5-1201_daily_bin1249.fits scfile=/scratch/kocevski/862584/ft2_4FGL_J1238.5-1201_daily_bin1249.fits outfile=/scratch/kocevski/862584/cmap_563068801_563328001_4FGL_J1238.5-1201_daily_bin1249.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.625 yref=-12.028 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.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/862584/ft1_filtered_4FGL_J1238.5-1201_daily_bin1249.fits scfile=/scratch/kocevski/862584/ft2_4FGL_J1238.5-1201_daily_bin1249.fits outfile=/scratch/kocevski/862584/cmap_HighResolution_563068801_563328001_4FGL_J1238.5-1201_daily_bin1249.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.625 yref=-12.028 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.38
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/862584/ft1_filtered_4FGL_J1238.5-1201_daily_bin1249.fits evtable="EVENTS" scfile=/scratch/kocevski/862584/ft2_4FGL_J1238.5-1201_daily_bin1249.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/862584/Model_4FGL_J1238.5-1201_daily_bin1249.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/862584/ft1_filtered_4FGL_J1238.5-1201_daily_bin1249.fits.....................!
real 49.24
user 47.86
sys 1.19

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/862584/ft1_filtered_4FGL_J1238.5-1201_daily_bin1249.fits', '/scratch/kocevski/862584/ft2_4FGL_J1238.5-1201_daily_bin1249.fits', expMap='/scratch/kocevski/862584/expmap_563068801_563328001_4FGL_J1238.5-1201_daily_bin1249.fits', expCube='/scratch/kocevski/862584/ltcube_563068801_563328001_4FGL_J1238.5-1201_daily_bin1249.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/862584/Model_4FGL_J1238.5-1201_daily_bin1249.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1238.5-1201'

4FGL J1238.5-1201
   Spectrum: PowerLaw
326    Prefactor:  4.386e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
327        Index:  2.660e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
328        Scale:  5.228e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/862584/ft1_filtered_4FGL_J1238.5-1201_daily_bin1249.fits
Spacecraft file(s): /scratch/kocevski/862584/ft2_4FGL_J1238.5-1201_daily_bin1249.fits
Exposure map: /scratch/kocevski/862584/expmap_563068801_563328001_4FGL_J1238.5-1201_daily_bin1249.fits
Exposure cube: /scratch/kocevski/862584/ltcube_563068801_563328001_4FGL_J1238.5-1201_daily_bin1249.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/862584/Model_4FGL_J1238.5-1201_daily_bin1249.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) = 5338.54682343

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.9755       1.0000         .10000E-03   10000.    
     2 'Prefactor '    34.004       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    7.9669       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    3.0092       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.8637       1.0000         .10000E-03   10000.    
     9 'Prefactor '    7.9034       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    14.527       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    21.609       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    2.6352       1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    14.828       1.0000         .10000E-03   10000.    
    21 'norm      '    .10061E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    22.391       1.0000         .10000E-03   10000.    
    23 'Prefactor '    21.017       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.1824       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0779       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6130E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5338.445     FROM MIGRAD    STATUS=CONVERGED    570 CALLS     2462 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.9755        3.7322        .73738E-02    .56668E-03
   2  Prefactor     34.006        21.446        .17180E-02    .94768E-04
   3  Prefactor     .10003E-03    9.8254        .90712E-02** at limit **
   4  Prefactor     7.9683        13.051        .35513E-02    .24152E-03
   5  Prefactor     .10003E-03    11.439        .90712E-02** at limit **
   6  norm          3.0092        2.7189        .58494E-02   -.13023E-03
   7  Prefactor     .10000E-03    1.4368        .90712E-02** at limit **
   8  Prefactor     3.8639        2.1089        .51324E-02   -.14926E-03
   9  Prefactor     7.9048        12.164        .35657E-02    .74973E-03
  10  Prefactor     .10000E-03    8.8017        .90712E-02** at limit **
  11  Prefactor     14.525        15.211        .26272E-02    .10931E-03
  12  Prefactor     .10001E-03    11.574        .90712E-02** at limit **
  13  Prefactor     .10000E-03    68.883        .90712E-02** at limit **
  14  norm          21.610        23.980        .21541E-02    .43430E-04
  15  Prefactor     .10000E-03    38.998        .90712E-02** at limit **
  16  norm          2.6353        .52992        .50726E-02   -.31018E-02
  17  norm          .10002E-03    9.9839        .90712E-02** at limit **
  18  norm          .10000E-03    4.1937        .90712E-02** at limit **
  19  Prefactor     .10001E-03    188.01        .90712E-02** at limit **
  20  norm          14.825        22.897        .26003E-02   -.25657E-03
  21  norm          .10001E-03    10.018        .90712E-02** at limit **
  22  Prefactor     22.391        19.608        .21162E-02    .42204E-04
  23  Prefactor     21.012        23.134        .21842E-02   -.38523E-03
  24  Normalizat    1.1824        .30690        .84161E-01   -.37973E-04
  25  Prefactor     1.0779        .16984        .38496E-01   -.47721E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.97553
  Prefactor  = 34.0055
  Prefactor  = 0.000100032
  Prefactor  = 7.96829
  Prefactor  = 0.000100034
  norm       = 3.00922
  Prefactor  = 0.0001
  Prefactor  = 3.86388
  Prefactor  = 7.90483
  Prefactor  = 0.0001
  Prefactor  = 14.5246
  Prefactor  = 0.000100015
  Prefactor  = 0.0001
  norm       = 21.61
  Prefactor  = 0.000100002
  norm       = 2.63531
  norm       = 0.000100015
  norm       = 0.0001
  Prefactor  = 0.000100006
  norm       = 14.8255
  norm       = 0.000100011
  Prefactor  = 22.391
  Prefactor  = 21.0117
  Normalizat = 1.18236
  Prefactor  = 1.07785
 **********
 **   18 **HESSE 
 **********

 FCN=   5338.445     FROM HESSE     STATUS=OK           417 CALLS     2879 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.9755        3.7025        .18623E-03   -1.5427    
   2  Prefactor     34.006        21.446        .68720E-04   -1.4541    
   3  Prefactor     .10003E-03    9.8256        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     7.9683        13.065        .14205E-03   -1.5143    
   5  Prefactor     .10003E-03    11.442        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          3.0092        2.7253        .11122E-03   -1.5361    
   7  Prefactor     .10000E-03    1.4377        .85527E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     3.8639        2.1103        .76272E-04   -1.5315    
   9  Prefactor     7.9048        12.158        .14263E-03   -1.5146    
  10  Prefactor     .10000E-03    8.8171        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     14.525        15.237        .10509E-03   -1.4946    
  12  Prefactor     .10001E-03    11.779        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    68.968        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          21.610        23.980        .86164E-04   -1.4778    
  15  Prefactor     .10000E-03    39.002        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          2.6353        .53238        .22435E-04   -1.5383    
  17  norm          .10002E-03    10.048        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    4.2053        .14613E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10001E-03    188.30        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          14.825        22.902        .10401E-03   -1.4938    
  21  norm          .10001E-03    10.032        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     22.391        19.605        .84648E-04   -1.4761    
  23  Prefactor     21.012        23.131        .87369E-04   -1.4791    
  24  Normalizat    1.1824        .35614        .37264E-03   -.87150    
  25  Prefactor     1.0779        .19695        .22352E-03   -.90178    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.19406e-08
Minuit parameter uncertainties:
  1  3.70296
  2  21.4506
  3  0.00112107
  4  13.0693
  5  0.00125123
  6  2.72543
  7  1.54743e-05
  8  2.11038
  9  12.1622
  10  8.40416e-05
  11  15.2412
  12  0.000832685
  13  0.000239981
  14  23.9903
  15  0.000571338
  16  0.532381
  17  0.00077865
  18  2.6116e-05
  19  0.00204528
  20  22.9159
  21  0.000673852
  22  19.6107
  23  23.1411
  24  0.356876
  25  0.197087
Done.

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

Extracting fit parameters...

4FGL J1238.5-1201
   Spectrum: PowerLaw
326    Prefactor:  1.452e+01  1.524e+01  1.000e-04  1.000e+04 ( 1.000e-12)
327        Index:  2.660e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
328        Scale:  5.228e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
610    Prefactor:  1.078e+00  1.971e-01  0.000e+00  1.000e+01 ( 1.000e+00)
611        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
612        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
609   Normalization:  1.182e+00  3.569e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.21
Ra Dec: 189.625 -12.028
Photon Index (Fixed Index): 2.66 +/- 0.00
Photon Flux (Fixed Index): 7.13e-08 +/- 7.48e-08
Energy Flux (Fixed Index): 1.77e-05 +/- 1.86e-05

TS (Fixed Index): 1.21
Ra Dec: 189.625 -12.028
Photon Flux Upper Limit: 2.31e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.82e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/862584/likelihoodResults_563068801_563328001_4FGL_J1238.5-1201_daily_bin1249.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) = 5338.44470446
delta logL = 0.000620239497039

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5338.44448466
delta logL = 0.000840044219331

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    14.857       1.0000         .10000E-03   10000.    
     2 'Index     '    2.6226       1.0000          .0000       10.000    
     3 'Normalizat'    1.1842       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0769       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6130E+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=   5338.444     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      261 TOTAL
                     EDM=   .71E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     14.866        17.964        .10391E-03    .52734E-04
   2  Index         2.6226        .93438        .10196E-01    .12730E-03
   3  Normalizat    1.1842        .34320        .37239E-03    .54220E-04
   4  Prefactor     1.0769        .19698        .22360E-03   -.72433E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 14.8658
  Index      = 2.62256
  Normalizat = 1.18419
  Prefactor  = 1.07695
 **********
 **   18 **HESSE 
 **********

 FCN=   5338.444     FROM HESSE     STATUS=OK            25 CALLS      286 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     14.866        17.501        .41565E-05   -1.4937    
   2  Index         2.6226        .91028        .20391E-02   -.49552    
   3  Normalizat    1.1842        .34346        .14896E-04   -.87093    
   4  Prefactor     1.0769        .19705        .44720E-04   -.90207    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.14248e-10
Minuit parameter uncertainties:
  1  17.5072
  2  0.916909
  3  0.344119
  4  0.19718
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/862584': 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) = 5338.44448412
delta logL = 0.000840575054099

Extracting fit parameters...

4FGL J1238.5-1201
   Spectrum: PowerLaw
326    Prefactor:  1.487e+01  1.751e+01  1.000e-04  1.000e+04 ( 1.000e-12)
327        Index:  2.623e+00  9.169e-01  0.000e+00  1.000e+01 (-1.000e+00)
328        Scale:  5.228e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
610    Prefactor:  1.077e+00  1.972e-01  0.000e+00  1.000e+01 ( 1.000e+00)
611        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
612        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
609   Normalization:  1.184e+00  3.441e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.20
Ra Dec: 189.625 -12.028
Photon Index (Free Index): 2.62 +/- 0.92
Photon Flux (Free Index): 7.02e-08 +/- 7.85e-08
Energy Flux (Free Index): 1.80e-05 +/- 2.02e-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/862584/cmap_HighResolution_563068801_563328001_4FGL_J1238.5-1201_daily_bin1249.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.82e-02', comment='SUCCESS', photon_flux='7.13e-08', energy_flux2='1.80e-05', photon_flux_error='7.48e-08', dlogl='8.41e-04', energy_flux='1.77e-05', photon_flux2='7.02e-08', job_status='DONE', time_completed='2021-09-06 03:02:16.467348', photon_index_error2='0.92', photon_index2='2.62', ts='1.21', fit_tolerance='1e-08', GAL='1.08', photon_index_error='0.00', photon_flux_upper_limit='2.31e-07', energy_flux_error2='2.02e-05', EG='1.18', time_epoch_completed='1630922536.47', return_code='0', job_id='862584', GAL2='1.08', EG2='1.18', return_code2='0', energy_flux_error='1.86e-05', photon_flux_error2='7.85e-08', ts2='1.20', photon_index='2.66' WHERE bin_id='1249' AND source_name='4FGL J1238.5-1201' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 03:02:16 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0211>
Subject: Job 862584: <4FGL_J1238.5-1201_daily_bin1249> in cluster <slac> Done

Job <4FGL_J1238.5-1201_daily_bin1249> was submitted from host <rhel6-64c> by user <kocevski> in cluster <slac> at Mon Sep  6 02:50:25 2021
Job was executed on host(s) <bullet0211>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 02:51:02 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:51:02 2021
Terminated at Mon Sep  6 03:02:17 2021
Results reported at Mon Sep  6 03:02:17 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1238.5-1201_daily_bin1249 189.625 -12.028 563068801 563328001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1238.5-1201 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   640.04 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             291.78 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   674 sec.
    Turnaround time :                            712 sec.

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

