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


Performing analysis on: 4FGL_J1238.5-1201_daily_bin1295
RA = 189.625, Dec = -12.028
tmin = 574992001, tmax = 575251201
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='862649', job_status='RUN', time_executed='2021-09-06 02:53:35.382195', time_epoch_executed='1630922015.38' WHERE source_name='4FGL J1238.5-1201' and cadence='daily' and bin_id='1295'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/862649

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/862649/ft1_4FGL_J1238.5-1201_daily_bin1295.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/862649/ft2_4FGL_J1238.5-1201_daily_bin1295.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/862649/ft1_4FGL_J1238.5-1201_daily_bin1295.fits outfile=/scratch/kocevski/862649/ft1_filteredMKT_4FGL_J1238.5-1201_daily_bin1295.fits ra=189.625 dec=-12.028 rad=12.0 tmin=574992001.0 tmax=575251201.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 5.40
user 5.11
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/862649/ft2_4FGL_J1238.5-1201_daily_bin1295.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/862649/ft1_filteredMKT_4FGL_J1238.5-1201_daily_bin1295.fits evtable="EVENTS" outfile="/scratch/kocevski/862649/ft1_filtered_4FGL_J1238.5-1201_daily_bin1295.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.53
user 0.37
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/862649/ft1_filtered_4FGL_J1238.5-1201_daily_bin1295.fits" evtable="EVENTS" scfile=/scratch/kocevski/862649/ft2_4FGL_J1238.5-1201_daily_bin1295.fits sctable="SC_DATA" outfile=/scratch/kocevski/862649/ltcube_574992001_575251201_4FGL_J1238.5-1201_daily_bin1295.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/862649/ft2_4FGL_J1238.5-1201_daily_bin1295.fits
.....................!
real 15.83
user 15.43
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/862649/ft1_filtered_4FGL_J1238.5-1201_daily_bin1295.fits evtable="EVENTS" scfile=/scratch/kocevski/862649/ft2_4FGL_J1238.5-1201_daily_bin1295.fits sctable="SC_DATA" expcube=/scratch/kocevski/862649/ltcube_574992001_575251201_4FGL_J1238.5-1201_daily_bin1295.fits outfile=/scratch/kocevski/862649/expmap_574992001_575251201_4FGL_J1238.5-1201_daily_bin1295.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/862649/ltcube_574992001_575251201_4FGL_J1238.5-1201_daily_bin1295.fits
.....................!
real 193.19
user 187.21
sys 4.43

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/862649/ft1_filtered_4FGL_J1238.5-1201_daily_bin1295.fits scfile=/scratch/kocevski/862649/ft2_4FGL_J1238.5-1201_daily_bin1295.fits outfile=/scratch/kocevski/862649/cmap_574992001_575251201_4FGL_J1238.5-1201_daily_bin1295.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.41
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/862649/ft1_filtered_4FGL_J1238.5-1201_daily_bin1295.fits scfile=/scratch/kocevski/862649/ft2_4FGL_J1238.5-1201_daily_bin1295.fits outfile=/scratch/kocevski/862649/cmap_HighResolution_574992001_575251201_4FGL_J1238.5-1201_daily_bin1295.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.61
user 0.42
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/862649/ft1_filtered_4FGL_J1238.5-1201_daily_bin1295.fits evtable="EVENTS" scfile=/scratch/kocevski/862649/ft2_4FGL_J1238.5-1201_daily_bin1295.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/862649/Model_4FGL_J1238.5-1201_daily_bin1295.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/862649/ft1_filtered_4FGL_J1238.5-1201_daily_bin1295.fits.....................!
real 48.47
user 46.96
sys 1.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12191E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    77.812       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10054E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    7.0065       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    4.1466       1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.6173       1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.6342       1.0000         .10000E-03   10000.    
     9 'Prefactor '    16.880       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10125E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    38.967       1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.4905       1.0000         .10000E-03   10000.    
    16 'norm      '    2.3026       1.0000         .10000E-03   10000.    
    17 'norm      '    21.473       1.0000         .10000E-03   10000.    
    18 'norm      '    10.577       1.0000         .10000E-03   10000.    
    19 'Prefactor '    168.47       1.0000         .10000E-03   10000.    
    20 'norm      '    .14369E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .33308       1.0000         .10000E-03   10000.    
    22 'Prefactor '    9.1961       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.3373       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .84282       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=   5360.382     FROM MIGRAD    STATUS=CONVERGED    553 CALLS     2860 TOTAL
                     EDM=   .38E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.9002        .85029E-06** at limit **
   2  Prefactor     77.824        34.163        .58135E-06    .25452E-05
   3  Prefactor     .10000E-03    27.913        .60547E-06** at limit **
   4  Prefactor     7.0157        17.320        .17863E-05   -.36258E-05
   5  Prefactor     .10000E-03    31.032        .57922E-06** at limit **
   6  norm          4.1467        2.7192        .16866E-07   -.13326E-04
   7  Prefactor     3.6174        4.5020        .11798E-06   -.13570E-05
   8  Prefactor     3.6338        2.3754       -.23624E-07    .14512E-04
   9  Prefactor     16.882        10.526        .24425E-06   -.18277E-04
  10  Prefactor     .10000E-03    18.931       -.10540E-05** at limit **
  11  Prefactor     .10000E-03    5.2433        .11851E-06** at limit **
  12  Prefactor     .10000E-03    2.5572        .62122E-07** at limit **
  13  Prefactor     38.981        54.169        .11840E-05    .15517E-04
  14  norm          .10000E-03    9.1950        .91636E-07** at limit **
  15  Prefactor     2.1864        1217.5       -.36691E-04   -.26197E-05
  16  norm          2.3027        .44484        .18890E-07   -.88257E-03
  17  norm          21.475        14.934       -.97731E-07   -.51321E-04
  18  norm          10.581        10.253       -.50239E-05   -.34211E-03
  19  Prefactor     168.50        91.765       -.99013E-06   -.15684E-04
  20  norm          .10000E-03    36.549        .11438E-05** at limit **
  21  norm          .33354        8.0575        .85903E-07    .27611E-04
  22  Prefactor     9.1946        15.892        .40762E-06   -.52115E-05
  23  Prefactor     .10000E-03    3.7284        .27237E-07** at limit **
  24  Normalizat    1.3364        .30350       -.86999E-05    .23228E-04
  25  Prefactor     .84333        .16772        .42831E-05   -.39583E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 77.8242
  Prefactor  = 0.0001
  Prefactor  = 7.01568
  Prefactor  = 0.0001
  norm       = 4.14669
  Prefactor  = 3.61742
  Prefactor  = 3.63382
  Prefactor  = 16.8822
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 38.9807
  norm       = 0.0001
  Prefactor  = 2.18644
  norm       = 2.3027
  norm       = 21.475
  norm       = 10.5811
  Prefactor  = 168.497
  norm       = 0.0001
  norm       = 0.333539
  Prefactor  = 9.19458
  Prefactor  = 0.0001
  Normalizat = 1.33642
  Prefactor  = 0.843328
 **********
 **   18 **HESSE 
 **********

 FCN=   5360.382     FROM HESSE     STATUS=OK           433 CALLS     3293 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.9649        .17343E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     77.824        34.180        .22762E-03   -1.3941    
   3  Prefactor     .10000E-03    27.957        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     7.0157        17.357        .15156E-03   -1.5178    
   5  Prefactor     .10000E-03    31.083        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          4.1467        2.7214        .95343E-04   -1.5301    
   7  Prefactor     3.6174        4.4986        .16720E-03   -1.5328    
   8  Prefactor     3.6338        2.3754        .87967E-04   -1.5327    
   9  Prefactor     16.882        10.532        .97484E-04   -1.4886    
  10  Prefactor     .10000E-03    19.005        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    5.2549        .16372E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    2.5607        .11434E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     38.981        54.514        .64209E-04   -1.4458    
  14  norm          .10000E-03    9.1978        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     2.1864        1365.3        .25901E-02   -1.5412    
  16  norm          2.3027        .45032        .19343E-04   -1.5404    
  17  norm          21.475        14.946        .86436E-04   -1.4781    
  18  norm          10.581        10.612        .12320E-03   -1.5057    
  19  Prefactor     168.50        91.755        .15540E-03   -1.3104    
  20  norm          .10000E-03    37.760        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .33354        68.363        .40367E-02   -1.5592    
  22  Prefactor     9.1946        15.903        .13216E-03   -1.5101    
  23  Prefactor     .10000E-03    3.7336        .13806E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.3364        .34568        .33795E-03   -.82486    
  25  Prefactor     .84333        .19194        .23591E-03   -.98150    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.15947e-09
Minuit parameter uncertainties:
  1  1.80668e-05
  2  34.1887
  3  0.00013787
  4  17.3691
  5  8.50062e-05
  6  2.7215
  7  4.499
  8  2.37545
  9  10.5331
  10  7.91932e-06
  11  1.59605e-05
  12  3.81187e-06
  13  54.5834
  14  1.00776e-05
  15  111.939
  16  0.450325
  17  14.9485
  18  10.6144
  19  91.8333
  20  9.69969e-05
  21  9.55986
  22  15.9106
  23  5.49005e-06
  24  0.346283
  25  0.192094
Done.

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

Extracting fit parameters...

4FGL J1238.5-1201
   Spectrum: PowerLaw
326    Prefactor:  1.000e-04  1.596e-05  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:  8.433e-01  1.921e-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.336e+00  3.463e-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: 1.15e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.04e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/862649/likelihoodResults_574992001_575251201_4FGL_J1238.5-1201_daily_bin1295.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) = 5360.38338704
delta logL = -0.000903619171368

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5360.38248339
delta logL = 3.41888153343e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6482       1.0000          .0000       10.000    
     3 'Normalizat'    1.3364       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84334       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   5360.382     FROM MIGRAD    STATUS=FAILED        90 CALLS      242 TOTAL
                     EDM=   .28E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10155E-03    165.38        .16468E-02** at limit **
   2  Index         2.5540        5.6960        .50000        .14770E-04
   3  Normalizat    1.3364        .40588E-01    .33796E-03   -.38349E-05
   4  Prefactor     .84333        .23248E-01    .23591E-03    .43373E-06
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5360.382     FROM SIMPLEX   STATUS=UNCHANGED    138 CALLS      380 TOTAL
                     EDM=   .75E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10155E-03    165.38        .34077E-03** at limit **
   2  Index         2.5540        5.6960        .54586E-04    .14770E-04
   3  Normalizat    1.3364        .40588E-01    .18533E-05   -.38349E-05
   4  Prefactor     .84333        .23248E-01    .69180E-06    .43373E-06
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5360.382     FROM MIGRAD    STATUS=CONVERGED     41 CALLS      421 TOTAL
                     EDM=   .62E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    946.77        .32936E-03** at limit **
   2  Index         2.3131        6.0042        .50000       -.22442E-07
   3  Normalizat    1.3364        .12791        .13518E-04    .10260E-04
   4  Prefactor     .84333        .73272E-01    .94362E-05    .20241E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.31314
  Normalizat = 1.33642
  Prefactor  = 0.843334
 **********
 **   18 **HESSE 
 **********

 FCN=   5360.382     FROM HESSE     STATUS=OK            29 CALLS      450 TOTAL
                     EDM=   .11E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6.7914        .65872E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3131        8.8317        .50000       -.56732    
   3  Normalizat    1.3364        .32262        .27037E-05   -.82486    
   4  Prefactor     .84333        .18490        .18872E-05   -.98150    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.07719e-12
Minuit parameter uncertainties:
  1  1.66085e-06
  2  150.36
  3  0.323106
  4  0.185037
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/862649': 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) = 5360.38248259
delta logL = 8.36437720864e-07

Extracting fit parameters...

4FGL J1238.5-1201
   Spectrum: PowerLaw
326    Prefactor:  1.000e-04  1.661e-06  1.000e-04  1.000e+04 ( 1.000e-12)
327        Index:  2.313e+00  1.504e+02  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:  8.433e-01  1.850e-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.336e+00  3.231e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/862649/cmap_HighResolution_574992001_575251201_4FGL_J1238.5-1201_daily_bin1295.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.04e-03', job_status='DONE', photon_flux_upper_limit='1.15e-07', time_completed='2021-09-06 03:05:27.913593', job_id='862649', GAL2='0.84', fit_tolerance='1e-08', EG2='1.34', EG='1.34', time_epoch_completed='1630922727.91', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.84', dlogl='8.36e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.66' WHERE bin_id='1295' AND source_name='4FGL J1238.5-1201' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 03:05:27 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0240>
Subject: Job 862649: <4FGL_J1238.5-1201_daily_bin1295> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1238.5-1201_daily_bin1295 189.625 -12.028 574992001 575251201 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 :                                   698.18 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             249.59 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   857 sec.
    Turnaround time :                            898 sec.

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

