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


Performing analysis on: 4FGL_J1238.5-1201_daily_bin1333
RA = 189.625, Dec = -12.028
tmin = 584841601, tmax = 585100801
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='862702', job_status='RUN', time_executed='2021-09-06 02:51:41.731555', time_epoch_executed='1630921901.73' WHERE source_name='4FGL J1238.5-1201' and cadence='daily' and bin_id='1333'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/862702

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/862702/ft1_4FGL_J1238.5-1201_daily_bin1333.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/862702/ft2_4FGL_J1238.5-1201_daily_bin1333.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/862702/ft1_4FGL_J1238.5-1201_daily_bin1333.fits outfile=/scratch/kocevski/862702/ft1_filteredMKT_4FGL_J1238.5-1201_daily_bin1333.fits ra=189.625 dec=-12.028 rad=12.0 tmin=584841601.0 tmax=585100801.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.99
user 2.75
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/862702/ft2_4FGL_J1238.5-1201_daily_bin1333.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/862702/ft1_filteredMKT_4FGL_J1238.5-1201_daily_bin1333.fits evtable="EVENTS" outfile="/scratch/kocevski/862702/ft1_filtered_4FGL_J1238.5-1201_daily_bin1333.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.70
user 0.36
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/862702/ft1_filtered_4FGL_J1238.5-1201_daily_bin1333.fits" evtable="EVENTS" scfile=/scratch/kocevski/862702/ft2_4FGL_J1238.5-1201_daily_bin1333.fits sctable="SC_DATA" outfile=/scratch/kocevski/862702/ltcube_584841601_585100801_4FGL_J1238.5-1201_daily_bin1333.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/862702/ft2_4FGL_J1238.5-1201_daily_bin1333.fits
.....................!
real 16.76
user 16.13
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/862702/ft1_filtered_4FGL_J1238.5-1201_daily_bin1333.fits evtable="EVENTS" scfile=/scratch/kocevski/862702/ft2_4FGL_J1238.5-1201_daily_bin1333.fits sctable="SC_DATA" expcube=/scratch/kocevski/862702/ltcube_584841601_585100801_4FGL_J1238.5-1201_daily_bin1333.fits outfile=/scratch/kocevski/862702/expmap_584841601_585100801_4FGL_J1238.5-1201_daily_bin1333.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/862702/ltcube_584841601_585100801_4FGL_J1238.5-1201_daily_bin1333.fits
.....................!
real 193.08
user 187.46
sys 4.58

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/862702/ft1_filtered_4FGL_J1238.5-1201_daily_bin1333.fits scfile=/scratch/kocevski/862702/ft2_4FGL_J1238.5-1201_daily_bin1333.fits outfile=/scratch/kocevski/862702/cmap_584841601_585100801_4FGL_J1238.5-1201_daily_bin1333.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.40
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/862702/ft1_filtered_4FGL_J1238.5-1201_daily_bin1333.fits scfile=/scratch/kocevski/862702/ft2_4FGL_J1238.5-1201_daily_bin1333.fits outfile=/scratch/kocevski/862702/cmap_HighResolution_584841601_585100801_4FGL_J1238.5-1201_daily_bin1333.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.57
user 0.42
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/862702/ft1_filtered_4FGL_J1238.5-1201_daily_bin1333.fits evtable="EVENTS" scfile=/scratch/kocevski/862702/ft2_4FGL_J1238.5-1201_daily_bin1333.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/862702/Model_4FGL_J1238.5-1201_daily_bin1333.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/862702/ft1_filtered_4FGL_J1238.5-1201_daily_bin1333.fits.....................!
real 72.13
user 70.58
sys 1.17

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    15.268       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10991E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    2.3799       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .16225       1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.3282       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.9667       1.0000         .10000E-03   10000.    
    13 'Prefactor '    66.889       1.0000         .10000E-03   10000.    
    14 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    3.3456       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 '    .10106E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    59.349       1.0000         .10000E-03   10000.    
    21 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .34702E-01   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .71762       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.1496       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=   8968.093     FROM MIGRAD    STATUS=CONVERGED    589 CALLS     2570 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     15.266        5.9070        .25732E-07    .20120E-03
   2  Prefactor     .10000E-03    4.1923        .42326E-07** at limit **
   3  Prefactor     .10000E-03    18.891       -.36403E-05** at limit **
   4  Prefactor     .10000E-03    33.134       -.11709E-04** at limit **
   5  Prefactor     .10000E-03    17.281        .60017E-05** at limit **
   6  norm          2.3797        2.0942        .30009E-07   -.38412E-03
   7  Prefactor     .18012        3.7119        .34341E-06   -.29525E-03
   8  Prefactor     1.3259        1.3958       -.55922E-07   -.25525E-03
   9  Prefactor     .10000E-03    6.4403       -.27202E-05** at limit **
  10  Prefactor     .10000E-03    8.1998        .23022E-05** at limit **
  11  Prefactor     .10000E-03    4.4938       -.60274E-07** at limit **
  12  Prefactor     1.9618        3.2835        .12183E-05   -.19431E-02
  13  Prefactor     66.881        46.850       -.56379E-05   -.39289E-04
  14  norm          .10000E-03    10.405       -.24235E-05** at limit **
  15  Prefactor     .10000E-03    45.126        .27519E-04** at limit **
  16  norm          3.3457        .37926        .46901E-07   -.62045E-03
  17  norm          .10000E-03    1.8900        .27923E-07** at limit **
  18  norm          .10000E-03    3.0120       -.36973E-07** at limit **
  19  Prefactor     .10000E-03    36.601       -.23877E-05** at limit **
  20  norm          59.346        15.767        .14019E-07    .12992E-04
  21  norm          .10000E-03    6.1415        .16335E-05** at limit **
  22  Prefactor     .10025E-03    3.5795       -.48189E-06** at limit **
  23  Prefactor     .10000E-03    2.9733        .29851E-07** at limit **
  24  Normalizat    .71758        .21343        .27955E-06    .84051E-04
  25  Prefactor     1.1497        .12657       -.16502E-06    .10459E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 15.2665
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.37972
  Prefactor  = 0.180124
  Prefactor  = 1.32591
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.96178
  Prefactor  = 66.8814
  norm       = 0.0001
  Prefactor  = 0.000100002
  norm       = 3.34572
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 59.346
  norm       = 0.0001
  Prefactor  = 0.000100253
  Prefactor  = 0.0001
  Normalizat = 0.717581
  Prefactor  = 1.14973
 **********
 **   18 **HESSE 
 **********

 FCN=   8968.093     FROM HESSE     STATUS=OK           425 CALLS     2995 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     15.266        5.9107        .10250E-03   -1.4926    
   2  Prefactor     .10000E-03    4.1945        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    18.912        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    34.284        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    17.323        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          2.3797        2.0944        .62667E-03   -1.5399    
   7  Prefactor     .18012        23.804        .33034E-02   -1.5623    
   8  Prefactor     1.3259        1.3883        .10582E-03   -1.5478    
   9  Prefactor     .10000E-03    6.6056        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    8.2666        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    4.5253        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     1.9618        8.2195        .14786E-02   -1.5428    
  13  Prefactor     66.881        47.073        .49074E-04   -1.4071    
  14  norm          .10000E-03    10.420        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    45.466        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          3.3457        .38218        .17981E-04   -1.5342    
  17  norm          .10000E-03    1.8929        .12714E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    3.0492        .16047E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    36.657        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          59.346        15.768        .52079E-04   -1.4166    
  21  norm          .10000E-03    6.2080        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10025E-03    5.4446        .63553E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    3.0025        .15946E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .71758        .24205        .40625E-03   -1.0320    
  25  Prefactor     1.1497        .14382        .19880E-03   -.87893    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.30074e-08
Minuit parameter uncertainties:
  1  5.91096
  2  2.28766e-07
  3  4.4892e-05
  4  6.60876e-05
  5  9.2845e-05
  6  2.09444
  7  4.14187
  8  1.38838
  9  2.93022e-07
  10  1.40483e-05
  11  1.1798e-06
  12  8.03285
  13  47.0988
  14  2.04798e-05
  15  0.000596885
  16  0.382183
  17  2.17863e-07
  18  4.42448e-06
  19  4.82594e-05
  20  15.7695
  21  8.78734e-06
  22  0.0023495
  23  4.1326e-07
  24  0.242416
  25  0.143872
Done.

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

Extracting fit parameters...

4FGL J1238.5-1201
   Spectrum: PowerLaw
326    Prefactor:  1.000e-04  1.180e-06  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.150e+00  1.439e-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:  7.176e-01  2.424e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 189.625 -12.028
Photon Flux Upper Limit: 7.77e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.10e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/862702/likelihoodResults_584841601_585100801_4FGL_J1238.5-1201_daily_bin1333.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8968.09398042
delta logL = -0.00105303704004

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8968.09292787
delta logL = -4.88073055749e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10278E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6588       1.0000          .0000       10.000    
     3 'Normalizat'    .71746       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1498       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=   8968.093     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      242 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10005E-03    283.34        .18142E-02** at limit **
   2  Index         2.6388        8.6080        .50000        .25322E-05
   3  Normalizat    .71758        .42964E-01    .40625E-03    .18749E-04
   4  Prefactor     1.1497        .26247E-01    .19880E-03    .24362E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100048
  Index      = 2.63881
  Normalizat = 0.71758
  Prefactor  = 1.14973
 **********
 **   18 **HESSE 
 **********

 FCN=   8968.093     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      271 TOTAL
                     EDM=   .82E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10005E-03    929.91        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.6388        8.3473        .50000       -.49183    
   3  Normalizat    .71758        .12545        .16250E-04   -1.0320    
   4  Prefactor     1.1497        .76608E-01    .79519E-05   -.87893    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.19026e-09
Minuit parameter uncertainties:
  1  0.0135873
  2  2568.59
  3  0.125504
  4  0.0766157
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/862702': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8968.09292738
delta logL = 8.17635736894e-09

Extracting fit parameters...

4FGL J1238.5-1201
   Spectrum: PowerLaw
326    Prefactor:  1.000e-04  1.359e-02  1.000e-04  1.000e+04 ( 1.000e-12)
327        Index:  2.639e+00  2.569e+03  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.150e+00  7.662e-02  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:  7.176e-01  1.255e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/862702/cmap_HighResolution_584841601_585100801_4FGL_J1238.5-1201_daily_bin1333.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.10e-03', job_status='DONE', photon_flux_upper_limit='7.77e-08', time_completed='2021-09-06 03:06:38.759577', job_id='862702', GAL2='1.15', fit_tolerance='1e-08', EG2='0.72', EG='0.72', time_epoch_completed='1630922798.76', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.15', dlogl='8.18e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.66' WHERE bin_id='1333' AND source_name='4FGL J1238.5-1201' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 03:06:38 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0171>
Subject: Job 862702: <4FGL_J1238.5-1201_daily_bin1333> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1238.5-1201_daily_bin1333 189.625 -12.028 584841601 585100801 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 :                                   891.11 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             349.57 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   918 sec.
    Turnaround time :                            966 sec.

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

