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


Performing analysis on: 4FGL_J1238.5-1201_daily_bin1429
RA = 189.625, Dec = -12.028
tmin = 609724801, tmax = 609984001
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='862837', job_status='RUN', time_executed='2021-09-06 02:53:52.290081', time_epoch_executed='1630922032.29' WHERE source_name='4FGL J1238.5-1201' and cadence='daily' and bin_id='1429'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/862837

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/862837/ft1_4FGL_J1238.5-1201_daily_bin1429.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/862837/ft2_4FGL_J1238.5-1201_daily_bin1429.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/862837/ft1_4FGL_J1238.5-1201_daily_bin1429.fits outfile=/scratch/kocevski/862837/ft1_filteredMKT_4FGL_J1238.5-1201_daily_bin1429.fits ra=189.625 dec=-12.028 rad=12.0 tmin=609724801.0 tmax=609984001.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.62
user 2.38
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/862837/ft1_filtered_4FGL_J1238.5-1201_daily_bin1429.fits" evtable="EVENTS" scfile=/scratch/kocevski/862837/ft2_4FGL_J1238.5-1201_daily_bin1429.fits sctable="SC_DATA" outfile=/scratch/kocevski/862837/ltcube_609724801_609984001_4FGL_J1238.5-1201_daily_bin1429.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/862837/ft2_4FGL_J1238.5-1201_daily_bin1429.fits
.....................!
real 15.36
user 14.98
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/862837/ft1_filtered_4FGL_J1238.5-1201_daily_bin1429.fits evtable="EVENTS" scfile=/scratch/kocevski/862837/ft2_4FGL_J1238.5-1201_daily_bin1429.fits sctable="SC_DATA" expcube=/scratch/kocevski/862837/ltcube_609724801_609984001_4FGL_J1238.5-1201_daily_bin1429.fits outfile=/scratch/kocevski/862837/expmap_609724801_609984001_4FGL_J1238.5-1201_daily_bin1429.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/862837/ltcube_609724801_609984001_4FGL_J1238.5-1201_daily_bin1429.fits
.....................!
real 191.45
user 186.54
sys 3.96

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/862837/ft1_filtered_4FGL_J1238.5-1201_daily_bin1429.fits scfile=/scratch/kocevski/862837/ft2_4FGL_J1238.5-1201_daily_bin1429.fits outfile=/scratch/kocevski/862837/cmap_609724801_609984001_4FGL_J1238.5-1201_daily_bin1429.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.55
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/862837/ft1_filtered_4FGL_J1238.5-1201_daily_bin1429.fits scfile=/scratch/kocevski/862837/ft2_4FGL_J1238.5-1201_daily_bin1429.fits outfile=/scratch/kocevski/862837/cmap_HighResolution_609724801_609984001_4FGL_J1238.5-1201_daily_bin1429.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.40
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/862837/ft1_filtered_4FGL_J1238.5-1201_daily_bin1429.fits evtable="EVENTS" scfile=/scratch/kocevski/862837/ft2_4FGL_J1238.5-1201_daily_bin1429.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/862837/Model_4FGL_J1238.5-1201_daily_bin1429.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/862837/ft1_filtered_4FGL_J1238.5-1201_daily_bin1429.fits................................!
real 16.70
user 15.45
sys 1.12

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/862837/ft1_filtered_4FGL_J1238.5-1201_daily_bin1429.fits', '/scratch/kocevski/862837/ft2_4FGL_J1238.5-1201_daily_bin1429.fits', expMap='/scratch/kocevski/862837/expmap_609724801_609984001_4FGL_J1238.5-1201_daily_bin1429.fits', expCube='/scratch/kocevski/862837/ltcube_609724801_609984001_4FGL_J1238.5-1201_daily_bin1429.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/862837/Model_4FGL_J1238.5-1201_daily_bin1429.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/862837/ft1_filtered_4FGL_J1238.5-1201_daily_bin1429.fits
Spacecraft file(s): /scratch/kocevski/862837/ft2_4FGL_J1238.5-1201_daily_bin1429.fits
Exposure map: /scratch/kocevski/862837/expmap_609724801_609984001_4FGL_J1238.5-1201_daily_bin1429.fits
Exposure cube: /scratch/kocevski/862837/ltcube_609724801_609984001_4FGL_J1238.5-1201_daily_bin1429.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/862837/Model_4FGL_J1238.5-1201_daily_bin1429.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 412.875773741

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 407.344725708

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.7385       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .11900E-01   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .97129E-01   1.0000         .10000E-03   10000.    
     4 'Prefactor '    109.07       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .45107       1.0000         .10000E-03   10000.    
     6 'norm      '    4.5847       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .11131E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10091E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .14948E-02   1.0000         .10000E-03   10000.    
    10 'Prefactor '    6.2251       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .33226E-02   1.0000         .10000E-03   10000.    
    12 'Prefactor '    73.066       1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.0861       1.0000         .10000E-03   10000.    
    14 'norm      '    10.334       1.0000         .10000E-03   10000.    
    15 'Prefactor '    8.8029       1.0000         .10000E-03   10000.    
    16 'norm      '    .96037       1.0000         .10000E-03   10000.    
    17 'norm      '    3.4479       1.0000         .10000E-03   10000.    
    18 'norm      '    4.7776       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .12152E-01   1.0000         .10000E-03   10000.    
    20 'norm      '    .14765       1.0000         .10000E-03   10000.    
    21 'norm      '    .20842       1.0000         .10000E-03   10000.    
    22 'Prefactor '    1.9408       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .91411       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    25 'Prefactor '    .76686       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.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   407.3114     FROM MIGRAD    STATUS=CONVERGED    277 CALLS      615 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.9138        10.073        .41918E-02    .44727E-01
   2  Prefactor     .10015E-03    43.142        .90824E-02** at limit **
   3  Prefactor     .10000E-03    58.525        .94975E-02** at limit **
   4  Prefactor     109.88        58.813        .96280E-03    .30391E-01
   5  Prefactor     .10000E-03    73.873        .11069E-01** at limit **
   6  norm          4.7976        10.090        .46998E-02    .72115E-01
   7  Prefactor     .10000E-03    15.401        .90712E-02** at limit **
   8  Prefactor     .10000E-03    6.9785        .90712E-02** at limit **
   9  Prefactor     .10211E-03    54.259        .10237E-01** at limit **
  10  Prefactor     50.658        265.23        .40223E-02    .68401E-03
  11  Prefactor     .10000E-03    37.592        .98575E-02** at limit **
  12  Prefactor     74.410        53.642        .11742E-02   -.25006E-01
  13  Prefactor     .10005E-03    322.93        .57717E-02** at limit **
  14  norm          8.9839        350.25        .31161E-02   -.30440E-02
  15  Prefactor     8.8029        1.0016         .0000         .0000    
  16  norm          .96928        1.2822       -.20033E-05   -.16129E-03
  17  norm          .12320E-02    .74127E-01    .43058E-03** at limit **
  18  norm          4.7776        1.0056         .0000         .0000    
  19  Prefactor     .10000E-03    .20628        .26719E-05** at limit **
  20  norm          .10000E-03    .23697       -.23360E-05** at limit **
  21  norm          .10000E-03    .25080        .17355E-04** at limit **
  22  Prefactor     1.9408        1.0378         .0000         .0000    
  23  Prefactor     .10000E-03    .41336        .12527E-04** at limit **
  24  Normalizat    .10000E-01    .25505        .61789E-05** at limit **
  25  Prefactor     .74895        1.1041        .28938E-04    .13902E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.91378
  Prefactor  = 0.000100152
  Prefactor  = 0.0001
  Prefactor  = 109.881
  Prefactor  = 0.0001
  norm       = 4.7976
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000102115
  Prefactor  = 50.6577
  Prefactor  = 0.0001
  Prefactor  = 74.4101
  Prefactor  = 0.000100049
  norm       = 8.98392
  Prefactor  = 8.80289
  norm       = 0.969279
  norm       = 0.00123204
  norm       = 4.77765
  Prefactor  = 0.000100001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 1.94084
  Prefactor  = 0.000100003
  Normalizat = 0.01
  Prefactor  = 0.748951
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   407.3114     FROM HESSE     STATUS=FAILED        39 CALLS      654 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.9138        10.073        .41918E-02   -1.5222    
   2  Prefactor     .10015E-03    43.142        .90824E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    58.525        .94975E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     109.88        58.813        .96280E-03   -1.3608    
   5  Prefactor     .10000E-03    73.873        .11069E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          4.7976        10.090        .46998E-02   -1.5270    
   7  Prefactor     .10000E-03    15.401        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    6.9785        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10211E-03    54.259        .10237E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     50.658        265.23        .40223E-02   -1.4283    
  11  Prefactor     .10000E-03    37.592        .98575E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     74.410        53.642        .11742E-02   -1.3981    
  13  Prefactor     .10005E-03    322.93        .57717E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          8.9839        350.25        .31161E-02   -1.5108    
  15  Prefactor     499.18        490.35         .0000       -1.5114    
  16  norm          .96928        1.2822       -.20033E-05   -1.5511    
  17  norm          .12320E-02    .74127E-01    .43058E-03   -1.5701    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          4.7776        1.0056         .0000       -1.5271    
  19  Prefactor     .10000E-03    .20628        .26719E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    .23697       -.23360E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    .25080        .17355E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     1.9408        1.0378         .0000       -1.5429    
  23  Prefactor     .10000E-03    .41336        .12527E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .10000E-01    .25505        .61789E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .74895        1.1041        .28938E-04   -1.0164    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.50389e-09
Minuit parameter uncertainties:
  1  10.076
  2  0.0051195
  3  0.000114412
  4  58.8441
  5  0.000324207
  6  10.0935
  7  3.95337e-06
  8  4.63253e-05
  9  0.0214441
  10  233.472
  11  8.67444e-07
  12  53.6766
  13  0.00797558
  14  112.906
  15  1.00162
  16  1.2822
  17  0.0183211
  18  1.00558
  19  3.14589e-05
  20  5.45021e-07
  21  3.13374e-06
  22  1.03778
  23  6.46832e-05
  24  2.50682e-07
  25  1.13934
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 407.311408934

Extracting fit parameters...

4FGL J1238.5-1201
   Spectrum: PowerLaw
326    Prefactor:  1.000e-04  8.674e-07  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:  7.490e-01  1.139e+00  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.000e-02  2.507e-07  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.08e-06 ph cm-2 s-1
Energy Flux Upper Limit: 8.46e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/862837/likelihoodResults_609724801_609984001_4FGL_J1238.5-1201_daily_bin1429.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) = 407.311534557
delta logL = -0.000125623225074

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 407.311410317
delta logL = -1.38290710083e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.5603       1.0000          .0000       10.000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .74895       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=   407.3114     FROM MIGRAD    STATUS=CONVERGED    111 CALLS      297 TOTAL
                     EDM=   .49E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    731.43        .85839E-02** at limit **
   2  Index         2.0007        8.6092        .50000       -.11215E-07
   3  Normalizat    .10000E-01    .75684E-02    .58317E-03** at limit **
   4  Prefactor     .74895        .41619E-01    .17133E-03    .67940E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.00073
  Normalizat = 0.01
  Prefactor  = 0.748951
 **********
 **   18 **HESSE 
 **********

 FCN=   407.3114     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      326 TOTAL
                     EDM=   .27E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6775.3        .13476E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0007        8.5770        .50000       -.64332    
   3  Normalizat    .10000E-01    .48126E-01    .11663E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .74895        .10500        .34266E-04   -1.0164    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.68461e-10
Minuit parameter uncertainties:
  1  0.000450953
  2  4085.98
  3  8.42297e-07
  4  0.10503
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/862837': 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) = 407.311408677
delta logL = 2.57651720403e-07

Extracting fit parameters...

4FGL J1238.5-1201
   Spectrum: PowerLaw
326    Prefactor:  1.000e-04  4.510e-04  1.000e-04  1.000e+04 ( 1.000e-12)
327        Index:  2.001e+00  4.086e+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:  7.490e-01  1.050e-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.000e-02  8.423e-07  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/862837/cmap_HighResolution_609724801_609984001_4FGL_J1238.5-1201_daily_bin1429.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.46e-02', job_status='DONE', photon_flux_upper_limit='1.08e-06', time_completed='2021-09-06 02:59:32.327477', job_id='862837', GAL2='0.75', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1630922372.33', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='101', GAL='0.75', dlogl='2.58e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.66' WHERE bin_id='1429' AND source_name='4FGL J1238.5-1201' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 02:59:32 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0291>
Subject: Job 862837: <4FGL_J1238.5-1201_daily_bin1429> in cluster <slac> Done

Job <4FGL_J1238.5-1201_daily_bin1429> was submitted from host <rhel6-64c> by user <kocevski> in cluster <slac> at Mon Sep  6 02:50:42 2021
Job was executed on host(s) <bullet0291>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 02:51:47 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Sep  6 02:51:47 2021
Terminated at Mon Sep  6 02:59:33 2021
Results reported at Mon Sep  6 02:59:33 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1238.5-1201_daily_bin1429 189.625 -12.028 609724801 609984001 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 :                                   330.34 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             259.76 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   466 sec.
    Turnaround time :                            531 sec.

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

