/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 193 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.5-1201_daily_bin1192
RA = 189.625, Dec = -12.028
tmin = 548294401, tmax = 548553601
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='862502', job_status='RUN', time_executed='2021-09-06 02:54:13.561734', time_epoch_executed='1630922053.56' WHERE source_name='4FGL J1238.5-1201' and cadence='daily' and bin_id='1192'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/862502

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/862502/ft1_4FGL_J1238.5-1201_daily_bin1192.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/862502/ft2_4FGL_J1238.5-1201_daily_bin1192.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/862502/ft1_4FGL_J1238.5-1201_daily_bin1192.fits outfile=/scratch/kocevski/862502/ft1_filteredMKT_4FGL_J1238.5-1201_daily_bin1192.fits ra=189.625 dec=-12.028 rad=12.0 tmin=548294401.0 tmax=548553601.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.01
user 3.70
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/862502/ft1_filtered_4FGL_J1238.5-1201_daily_bin1192.fits" evtable="EVENTS" scfile=/scratch/kocevski/862502/ft2_4FGL_J1238.5-1201_daily_bin1192.fits sctable="SC_DATA" outfile=/scratch/kocevski/862502/ltcube_548294401_548553601_4FGL_J1238.5-1201_daily_bin1192.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/862502/ft2_4FGL_J1238.5-1201_daily_bin1192.fits
.....................!
real 14.31
user 13.91
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/862502/ft1_filtered_4FGL_J1238.5-1201_daily_bin1192.fits evtable="EVENTS" scfile=/scratch/kocevski/862502/ft2_4FGL_J1238.5-1201_daily_bin1192.fits sctable="SC_DATA" expcube=/scratch/kocevski/862502/ltcube_548294401_548553601_4FGL_J1238.5-1201_daily_bin1192.fits outfile=/scratch/kocevski/862502/expmap_548294401_548553601_4FGL_J1238.5-1201_daily_bin1192.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/862502/ltcube_548294401_548553601_4FGL_J1238.5-1201_daily_bin1192.fits
.....................!
real 192.36
user 186.10
sys 5.68

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/862502/ft1_filtered_4FGL_J1238.5-1201_daily_bin1192.fits scfile=/scratch/kocevski/862502/ft2_4FGL_J1238.5-1201_daily_bin1192.fits outfile=/scratch/kocevski/862502/cmap_548294401_548553601_4FGL_J1238.5-1201_daily_bin1192.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.58
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/862502/ft1_filtered_4FGL_J1238.5-1201_daily_bin1192.fits scfile=/scratch/kocevski/862502/ft2_4FGL_J1238.5-1201_daily_bin1192.fits outfile=/scratch/kocevski/862502/cmap_HighResolution_548294401_548553601_4FGL_J1238.5-1201_daily_bin1192.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.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/862502/ft1_filtered_4FGL_J1238.5-1201_daily_bin1192.fits evtable="EVENTS" scfile=/scratch/kocevski/862502/ft2_4FGL_J1238.5-1201_daily_bin1192.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/862502/Model_4FGL_J1238.5-1201_daily_bin1192.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/862502/ft1_filtered_4FGL_J1238.5-1201_daily_bin1192.fits.....................!
real 51.28
user 48.96
sys 1.43

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/862502/ft1_filtered_4FGL_J1238.5-1201_daily_bin1192.fits', '/scratch/kocevski/862502/ft2_4FGL_J1238.5-1201_daily_bin1192.fits', expMap='/scratch/kocevski/862502/expmap_548294401_548553601_4FGL_J1238.5-1201_daily_bin1192.fits', expCube='/scratch/kocevski/862502/ltcube_548294401_548553601_4FGL_J1238.5-1201_daily_bin1192.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/862502/Model_4FGL_J1238.5-1201_daily_bin1192.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/862502/ft1_filtered_4FGL_J1238.5-1201_daily_bin1192.fits
Spacecraft file(s): /scratch/kocevski/862502/ft2_4FGL_J1238.5-1201_daily_bin1192.fits
Exposure map: /scratch/kocevski/862502/expmap_548294401_548553601_4FGL_J1238.5-1201_daily_bin1192.fits
Exposure cube: /scratch/kocevski/862502/ltcube_548294401_548553601_4FGL_J1238.5-1201_daily_bin1192.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/862502/Model_4FGL_J1238.5-1201_daily_bin1192.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) = 5543.24481403

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    14.461       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.5137       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    7.1188       1.0000         .10000E-03   10000.    
     7 'Prefactor '    15.303       1.0000         .10000E-03   10000.    
     8 'Prefactor '    5.0070       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    18.466       1.0000         .10000E-03   10000.    
    11 'Prefactor '    11.540       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10546E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    13.601       1.0000         .10000E-03   10000.    
    17 'norm      '    12.934       1.0000         .10000E-03   10000.    
    18 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    72.309       1.0000         .10000E-03   10000.    
    20 'norm      '    16.505       1.0000         .10000E-03   10000.    
    21 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    8.0528       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .99985       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .93817       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.

 FCN=   5543.203     FROM MIGRAD    STATUS=CONVERGED    575 CALLS     2852 TOTAL
                     EDM=   .21E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     14.460        13.496        .40225E-08   -.20283E-04
   2  Prefactor     .10000E-03    18.144        .65515E-07** at limit **
   3  Prefactor     .10001E-03    82.908        .56708E-05** at limit **
   4  Prefactor     2.5192        228.36        .21086E-05    .62351E-05
   5  Prefactor     .10001E-03    69.072       -.44437E-05** at limit **
   6  norm          7.1184        13.500        .25778E-05   -.16273E-03
   7  Prefactor     15.303        14.299        .14341E-06   -.43124E-05
   8  Prefactor     5.0070        3.0292       -.12736E-07   -.53911E-05
   9  Prefactor     .10000E-03    10.864       -.77782E-08** at limit **
  10  Prefactor     18.466        14.426        .11367E-06    .43786E-06
  11  Prefactor     11.541        20.614        .21372E-06   -.49798E-06
  12  Prefactor     .10000E-03    5.8681       -.25058E-07** at limit **
  13  Prefactor     .10000E-03    197.74       -.26961E-05** at limit **
  14  norm          .10000E-03    40.501        .65456E-06** at limit **
  15  Prefactor     .10000E-03    32.679       -.24229E-06** at limit **
  16  norm          13.601        1.2263        .57339E-08    .43809E-03
  17  norm          12.933        10.645        .13207E-06    .19708E-05
  18  norm          .10000E-03    3.4147        .52257E-07** at limit **
  19  Prefactor     72.310        114.15        .17963E-06    .36980E-05
  20  norm          16.505        19.103        .17004E-07    .21376E-05
  21  norm          .10000E-03    4.7297       -.22576E-07** at limit **
  22  Prefactor     8.0523        11.332        .18525E-05   -.18242E-03
  23  Prefactor     .10000E-03    10.833       -.69604E-07** at limit **
  24  Normalizat    .99989        .33710       -.11066E-05    .14531E-04
  25  Prefactor     .93815        .16913        .24871E-07    .14199E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 14.4599
  Prefactor  = 0.0001
  Prefactor  = 0.000100015
  Prefactor  = 2.51918
  Prefactor  = 0.00010001
  norm       = 7.11844
  Prefactor  = 15.3029
  Prefactor  = 5.00698
  Prefactor  = 0.0001
  Prefactor  = 18.4663
  Prefactor  = 11.5407
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 13.6013
  norm       = 12.9335
  norm       = 0.0001
  Prefactor  = 72.3099
  norm       = 16.5046
  norm       = 0.0001
  Prefactor  = 8.05227
  Prefactor  = 0.0001
  Normalizat = 0.999892
  Prefactor  = 0.938153
 **********
 **   18 **HESSE 
 **********

 FCN=   5543.203     FROM HESSE     STATUS=OK           427 CALLS     3279 TOTAL
                     EDM=   .47E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     14.460        13.402        .10533E-03   -1.4947    
   2  Prefactor     .10000E-03    18.186        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10001E-03    88.987        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     2.5192        226.75        .25770E-03   -1.5391    
   5  Prefactor     .10001E-03    73.457        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          7.1184        13.711        .75173E-03   -1.5174    
   7  Prefactor     15.303        14.315        .10238E-03   -1.4925    
   8  Prefactor     5.0070        3.0359        .91616E-04   -1.5260    
   9  Prefactor     .10000E-03    10.866        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     18.466        14.438        .93204E-04   -1.4848    
  11  Prefactor     11.541        20.603        .11793E-03   -1.5028    
  12  Prefactor     .10000E-03    5.8686        .17616E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    200.34        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    40.606        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    32.711        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          13.601        1.2282        .23726E-04   -1.4970    
  17  norm          12.933        10.653        .11138E-03   -1.4989    
  18  norm          .10000E-03    3.4747        .13431E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     72.310        114.17        .47212E-04   -1.4005    
  20  norm          16.505        19.101        .98584E-04   -1.4895    
  21  norm          .10000E-03    4.7303        .15815E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     8.0523        11.481        .70644E-03   -1.5140    
  23  Prefactor     .10000E-03    10.914        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .99989        .39548        .43747E-03   -.93034    
  25  Prefactor     .93815        .19993        .23646E-03   -.94820    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.69995e-10
Minuit parameter uncertainties:
  1  13.4043
  2  1.0805e-05
  3  0.00228527
  4  47.9883
  5  0.00174804
  6  13.7168
  7  14.3186
  8  3.03595
  9  1.81875e-06
  10  14.4408
  11  20.616
  12  3.04869e-06
  13  0.00168504
  14  0.000180764
  15  6.29782e-05
  16  1.22823
  17  10.6547
  18  3.43217e-06
  19  114.52
  20  19.108
  21  2.30879e-06
  22  11.484
  23  1.22622e-05
  24  0.396649
  25  0.200085
Done.

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

Extracting fit parameters...

4FGL J1238.5-1201
   Spectrum: PowerLaw
326    Prefactor:  1.154e+01  2.062e+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:  9.382e-01  2.001e-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:  9.999e-01  3.966e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/862502/likelihoodResults_548294401_548553601_4FGL_J1238.5-1201_daily_bin1192.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) = 5543.20066485
delta logL = 0.00279917103762

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5543.20008392
delta logL = 0.00338010770247

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.951       1.0000         .10000E-03   10000.    
     2 'Index     '    2.7799       1.0000          .0000       10.000    
     3 'Normalizat'    .99402       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94060       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=   5543.200     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      272 TOTAL
                     EDM=   .30E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.950        22.118        .12107E-03    .20104E-03
   2  Index         2.7798        1.5600        .15196E-01    .45343E-04
   3  Normalizat    .99432        .38406        .43854E-03   -.10204E-03
   4  Prefactor     .94044        .19981        .23621E-03   -.21224E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.9498
  Index      = 2.77982
  Normalizat = 0.994323
  Prefactor  = 0.940444
 **********
 **   18 **HESSE 
 **********

 FCN=   5543.200     FROM HESSE     STATUS=OK            25 CALLS      297 TOTAL
                     EDM=   .29E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.950        20.947        .48428E-05   -1.5046    
   2  Index         2.7798        1.4780        .60784E-03   -.46010    
   3  Normalizat    .99432        .38423        .17542E-04   -.93221    
   4  Prefactor     .94044        .19968        .47242E-04   -.94742    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.89966e-10
Minuit parameter uncertainties:
  1  20.9612
  2  1.50626
  3  0.385304
  4  0.199831
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/862502': 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) = 5543.20008358
delta logL = 0.00338044986984

Extracting fit parameters...

4FGL J1238.5-1201
   Spectrum: PowerLaw
326    Prefactor:  1.095e+01  2.096e+01  1.000e-04  1.000e+04 ( 1.000e-12)
327        Index:  2.780e+00  1.506e+00  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:  9.404e-01  1.998e-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:  9.943e-01  3.853e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.40
Ra Dec: 189.625 -12.028

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/862502/cmap_HighResolution_548294401_548553601_4FGL_J1238.5-1201_daily_bin1192.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.16e-02', job_status='DONE', photon_flux_upper_limit='2.75e-07', time_completed='2021-09-06 03:05:44.998136', job_id='862502', GAL2='0.94', fit_tolerance='1e-08', EG2='0.99', EG='1.00', time_epoch_completed='1630922745.0', return_code2='0', ts='0.40', comment='SUCCESS', return_code='0', GAL='0.94', dlogl='3.38e-03', ts2='0.40', photon_index_error='0.00', photon_index='2.66' WHERE bin_id='1192' AND source_name='4FGL J1238.5-1201' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 03:05:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0288>
Subject: Job 862502: <4FGL_J1238.5-1201_daily_bin1192> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1238.5-1201_daily_bin1192 189.625 -12.028 548294401 548553601 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 :                                   687.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             282.07 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   900 sec.
    Turnaround time :                            925 sec.

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

