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


Performing analysis on: 4FGL_J0238.2+1531_daily_bin1550
RA = 39.5617, Dec = 15.5175
tmin = 641088001, tmax = 641347201
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='596399', job_status='RUN', time_executed='2021-08-16 09:10:43.982680', time_epoch_executed='1629130243.98' WHERE source_name='4FGL J0238.2+1531' and cadence='daily' and bin_id='1550'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/596399

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/596399/ft1_4FGL_J0238.2+1531_daily_bin1550.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/596399/ft2_4FGL_J0238.2+1531_daily_bin1550.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/596399/ft1_4FGL_J0238.2+1531_daily_bin1550.fits outfile=/scratch/kocevski/596399/ft1_filteredMKT_4FGL_J0238.2+1531_daily_bin1550.fits ra=39.5617 dec=15.5175 rad=12.0 tmin=641088001.0 tmax=641347201.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 11.12
user 2.74
sys 7.68

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/596399/ft2_4FGL_J0238.2+1531_daily_bin1550.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/596399/ft2_4FGL_J0238.2+1531_daily_bin1550.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/596399/ft1_filteredMKT_4FGL_J0238.2+1531_daily_bin1550.fits evtable="EVENTS" outfile="/scratch/kocevski/596399/ft1_filtered_4FGL_J0238.2+1531_daily_bin1550.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 8.67
user 0.31
sys 7.52

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/596399/ft1_filtered_4FGL_J0238.2+1531_daily_bin1550.fits" evtable="EVENTS" scfile=/scratch/kocevski/596399/ft2_4FGL_J0238.2+1531_daily_bin1550.fits sctable="SC_DATA" outfile=/scratch/kocevski/596399/ltcube_641088001_641347201_4FGL_J0238.2+1531_daily_bin1550.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/596399/ft2_4FGL_J0238.2+1531_daily_bin1550.fits
.....................!
real 23.75
user 14.05
sys 8.83

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/596399/ft1_filtered_4FGL_J0238.2+1531_daily_bin1550.fits evtable="EVENTS" scfile=/scratch/kocevski/596399/ft2_4FGL_J0238.2+1531_daily_bin1550.fits sctable="SC_DATA" expcube=/scratch/kocevski/596399/ltcube_641088001_641347201_4FGL_J0238.2+1531_daily_bin1550.fits outfile=/scratch/kocevski/596399/expmap_641088001_641347201_4FGL_J0238.2+1531_daily_bin1550.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/596399/ltcube_641088001_641347201_4FGL_J0238.2+1531_daily_bin1550.fits
.....................!
real 202.76
user 185.49
sys 14.82

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

Setting source of interest to:
4FGL J0238.2+1531 @ 39.5617 15.5175

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/596399/ft1_filtered_4FGL_J0238.2+1531_daily_bin1550.fits scfile=/scratch/kocevski/596399/ft2_4FGL_J0238.2+1531_daily_bin1550.fits outfile=/scratch/kocevski/596399/cmap_641088001_641347201_4FGL_J0238.2+1531_daily_bin1550.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=39.5617 yref=15.5175 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 8.67
user 0.37
sys 7.51

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/596399/ft1_filtered_4FGL_J0238.2+1531_daily_bin1550.fits scfile=/scratch/kocevski/596399/ft2_4FGL_J0238.2+1531_daily_bin1550.fits outfile=/scratch/kocevski/596399/cmap_HighResolution_641088001_641347201_4FGL_J0238.2+1531_daily_bin1550.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=39.5617 yref=15.5175 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 7.86
user 0.38
sys 6.77

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/596399/ft1_filtered_4FGL_J0238.2+1531_daily_bin1550.fits evtable="EVENTS" scfile=/scratch/kocevski/596399/ft2_4FGL_J0238.2+1531_daily_bin1550.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/596399/Model_4FGL_J0238.2+1531_daily_bin1550.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/596399/ft1_filtered_4FGL_J0238.2+1531_daily_bin1550.fits............................!
real 35.54
user 20.85
sys 10.70

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/596399/ft1_filtered_4FGL_J0238.2+1531_daily_bin1550.fits', '/scratch/kocevski/596399/ft2_4FGL_J0238.2+1531_daily_bin1550.fits', expMap='/scratch/kocevski/596399/expmap_641088001_641347201_4FGL_J0238.2+1531_daily_bin1550.fits', expCube='/scratch/kocevski/596399/ltcube_641088001_641347201_4FGL_J0238.2+1531_daily_bin1550.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/596399/Model_4FGL_J0238.2+1531_daily_bin1550.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0238.2+1531'

4FGL J0238.2+1531
   Spectrum: PowerLaw
250    Prefactor:  1.956e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
251        Index:  2.406e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
252        Scale:  1.467e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/596399/ft1_filtered_4FGL_J0238.2+1531_daily_bin1550.fits
Spacecraft file(s): /scratch/kocevski/596399/ft2_4FGL_J0238.2+1531_daily_bin1550.fits
Exposure map: /scratch/kocevski/596399/expmap_641088001_641347201_4FGL_J0238.2+1531_daily_bin1550.fits
Exposure cube: /scratch/kocevski/596399/ltcube_641088001_641347201_4FGL_J0238.2+1531_daily_bin1550.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/596399/Model_4FGL_J0238.2+1531_daily_bin1550.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) = 663.860643314

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.540       1.0000         .10000E-03   10000.    
     2 'Prefactor '    8.1493       1.0000         .10000E-03   10000.    
     3 'Prefactor '    9997.9       1.0000         .10000E-03   10000.    
     4 'norm      '    41.068       1.0000         .10000E-03   10000.    
     5 'Prefactor '    9997.4       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10081E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    1.5543       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .49877E-01   1.0000         .10000E-03   10000.    
     9 'Prefactor '    161.43       1.0000         .10000E-03   10000.    
    10 'Prefactor '    9994.0       1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.2621       1.0000         .10000E-03   10000.    
    12 'Prefactor '    96.607       1.0000         .10000E-03   10000.    
    13 'Prefactor '    479.12       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10332E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .11386E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .14108       1.0000         .10000E-03   10000.    
    17 'norm      '    .10053E-01   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .20771       1.0000         .10000E-03   10000.    
    19 'Prefactor '    84.452       1.0000         .10000E-03   10000.    
    20 'norm      '    161.94       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .88872E-02   1.0000         .10000E-03   10000.    
    22 'Prefactor '    57.980       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .19304E-01   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10580E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    147.29       1.0000         .10000E-03   10000.    
    26 'norm      '    36.935       1.0000         .10000E-03   10000.    
    27 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    6.4822       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10212E-03   1.0000         .10000E-03   10000.    
    32 'Prefactor '    95.832       1.0000         .10000E-03   10000.    
    33 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    34 'Prefactor '    .53933       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5070E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   644.9061     FROM MIGRAD    STATUS=CONVERGED   1637 CALLS     5090 TOTAL
                     EDM=   .35E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10000.        8568.1        .36676E-03** at limit **
   2  Prefactor    10000.0        7055.6        .74355E-03** at limit **
   3  Prefactor    10000.0        6693.1       -.19687E-06** at limit **
   4  norm         10000.0        8546.3        .21350E-03** at limit **
   5  Prefactor    10000.0        1671.1        .30593E-06** at limit **
   6  Prefactor     .10000E-03    62.010        .12254E-07** at limit **
   7  norm          .10000E-03    9631.0        .11288E-04** at limit **
   8  Prefactor     .10000E-03    268.04       -.10224E-07** at limit **
   9  Prefactor     8083.7        7973.5       -.28781E-03    .17434E-05
  10  Prefactor    10000.0        914.13        .21076E-05** at limit **
  11  Prefactor     .10000E-03    787.51        .81930E-07** at limit **
  12  Prefactor     .10000E-03    7650.7        .65507E-02** at limit **
  13  Prefactor     .10000E-03    1625.9       -.48388E-03** at limit **
  14  Prefactor     .10000E-03    110.90       -.40214E-08** at limit **
  15  Prefactor     .10000E-03    84.334       -.44196E-07** at limit **
  16  Prefactor     .10000E-03    363.86        .46462E-06** at limit **
  17  norm          .10000E-03    12.701        .18855E-06** at limit **
  18  Prefactor     .10000E-03    397.05        .27001E-06** at limit **
  19  Prefactor     83.329        126.85       -.28932E-06    .63254E-07
  20  norm          185.29        167.15        .40407E-06    .13034E-05
  21  Prefactor     .10000E-03    163.43       -.26168E-07** at limit **
  22  Prefactor     .10000E-03    5258.2        .31442E-04** at limit **
  23  Prefactor     .10000E-03    27.518        .46655E-06** at limit **
  24  Prefactor     .10000E-03    75.810        .55880E-07** at limit **
  25  norm          145.35        79.467        .43379E-06    .15183E-04
  26  norm          37.206        45.098       -.17355E-06    .12332E-05
  27  norm          .10000E-03    6.1650        .20486E-09** at limit **
  28  norm          .10000E-03    11.450        .22692E-07** at limit **
  29  Prefactor     .10000E-03    410.56        .42461E-06** at limit **
  30  Prefactor     .10000E-03    14.906       -.53550E-07** at limit **
  31  Prefactor     .10000E-03    23.110       -.34557E-06** at limit **
  32  Prefactor     97.026        57.509       -.11423E-06    .16066E-04
  33  Normalizat    .10000E-01    .14554        .54618E-06** at limit **
  34  Prefactor     .52533        .14631        .91211E-06    .23275E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10000
  Prefactor  = 10000
  Prefactor  = 10000
  norm       = 10000
  Prefactor  = 10000
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8083.75
  Prefactor  = 10000
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 83.3294
  norm       = 185.288
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 145.347
  norm       = 37.2063
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 97.0262
  Normalizat = 0.01
  Prefactor  = 0.525331
 **********
 **   18 **HESSE 
 **********

 FCN=   644.9061     FROM HESSE     STATUS=OK           702 CALLS     5792 TOTAL
                     EDM=   .83E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10000.        8568.2        .61705E-03    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor    10000.0        7055.4        .70222E-03    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor    10000.0        6693.1        .14134E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm         10000.0        8544.4        .31275E-03    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor    10000.0        1671.1        .12598E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    62.009        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    9631.0        .17076E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    268.04        .18539E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     8083.7        7980.0        .15870E-03    .66461    
  10  Prefactor    10000.0        914.12        .82210E-03    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    787.51        .19844E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    7650.6        .20447E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    1625.9        .93641E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    110.91        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    84.344        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    363.92        .19411E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    12.725        .88384E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    397.06        .20026E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     83.329        126.82        .43712E-04   -1.3880    
  20  norm          185.29        167.19        .31690E-04   -1.2977    
  21  Prefactor     .10000E-03    163.45        .18292E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    5253.4        .26343E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    27.523        .13020E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    75.817        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          145.35        79.585        .33204E-04   -1.3291    
  26  norm          37.206        45.174        .65945E-04   -1.4487    
  27  norm          .10000E-03    6.1692        .61596E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          .10000E-03    11.461        .83953E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    410.56        .78816E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    15.185        .95685E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     .10000E-03    84.862        .22906E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Prefactor     97.026        57.194        .41058E-04   -1.3735    
  33  Normalizat    .10000E-01    .14611        .29814E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  34  Prefactor     .52533        .14362        .14360E-03   -1.1083    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.25314e-11
Minuit parameter uncertainties:
  1  0.000375923
  2  0.0210754
  3  0.000394037
  4  0.0944411
  5  0.000347421
  6  6.43478e-07
  7  0.000136023
  8  2.39147e-07
  9  12568.1
  10  9.59958e-05
  11  6.87442e-06
  12  0.00360947
  13  0.000181722
  14  1.50575e-06
  15  1.5571e-06
  16  0.000303958
  17  7.76688e-05
  18  2.65971e-05
  19  127.237
  20  167.618
  21  0.000184146
  22  0.0091193
  23  4.93534e-05
  24  1.70756e-05
  25  79.6433
  26  45.2155
  27  1.01836e-06
  28  7.3784e-06
  29  1.45305e-05
  30  1.13398e-05
  31  0.000631865
  32  57.2267
  33  6.59497e-07
  34  0.143721
Done.

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

Extracting fit parameters...

4FGL J0238.2+1531
   Spectrum: PowerLaw
250    Prefactor:  1.000e-04  3.040e-04  1.000e-04  1.000e+04 ( 1.000e-13)
251        Index:  2.406e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
252        Scale:  1.467e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
504    Prefactor:  5.253e-01  1.437e-01  0.000e+00  1.000e+01 ( 1.000e+00)
505        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
506        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
503   Normalization:  1.000e-02  6.595e-07  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 39.562 15.518
Photon Flux Upper Limit: 5.64e-06 ph cm-2 s-1
Energy Flux Upper Limit: 4.36e-01 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/596399/likelihoodResults_641088001_641347201_4FGL_J0238.2+1531_daily_bin1550.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) = 644.906089649
delta logL = -1.30634616653e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 644.906076592
delta logL = -6.48049081065e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10491E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3825       1.0000          .0000       10.000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .52533       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5070E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   644.9061     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      232 TOTAL
                     EDM=   .20E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    853.86        .90712E-02** at limit **
   2  Index         2.3800        5.7044        .50000        .57321E-07
   3  Normalizat    .10000E-01    .13730        .13605    ** at limit **
   4  Prefactor     .52533        .12957        .40026E-01   -.67338E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.38001
  Normalizat = 0.01
  Prefactor  = 0.525331
 **********
 **   18 **HESSE 
 **********

 FCN=   644.9061     FROM HESSE     STATUS=OK            31 CALLS      263 TOTAL
                     EDM=   .16E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    327.88        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3800        6.1900        .50000       -.55154    
   3  Normalizat    .10000E-01    .13803        .29814E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .52533        .12883        .14360E-03   -1.1083    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.57491e-13
Minuit parameter uncertainties:
  1  0.00012313
  2  4.32232
  3  1.14079e-08
  4  0.128905
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/596399': 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) = 644.906076585
delta logL = 3.5026914702e-10

Extracting fit parameters...

4FGL J0238.2+1531
   Spectrum: PowerLaw
250    Prefactor:  1.000e-04  1.231e-04  1.000e-04  1.000e+04 ( 1.000e-13)
251        Index:  2.380e+00  4.322e+00  0.000e+00  1.000e+01 (-1.000e+00)
252        Scale:  1.467e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
504    Prefactor:  5.253e-01  1.289e-01  0.000e+00  1.000e+01 ( 1.000e+00)
505        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
506        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
503   Normalization:  1.000e-02  1.141e-08  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 39.562 15.518

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/596399/cmap_HighResolution_641088001_641347201_4FGL_J0238.2+1531_daily_bin1550.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.36e-01', job_status='DONE', photon_flux_upper_limit='5.64e-06', time_completed='2021-08-16 09:19:17.156936', job_id='596399', GAL2='0.53', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1629130757.16', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.53', dlogl='3.50e-10', ts2='-0.00', photon_index_error='0.00', photon_index='2.41' WHERE bin_id='1550' AND source_name='4FGL J0238.2+1531' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 16 09:19:17 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0012>
Subject: Job 596399: <4FGL_J0238.2+1531_daily_bin1550> in cluster <slac> Done

Job <4FGL_J0238.2+1531_daily_bin1550> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Mon Aug 16 09:05:28 2021
Job was executed on host(s) <bullet0012>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Aug 16 09:06:10 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Aug 16 09:06:10 2021
Terminated at Mon Aug 16 09:19:19 2021
Results reported at Mon Aug 16 09:19:19 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0238.2+1531_daily_bin1550 39.5617 15.5175 641088001 641347201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0238.2+1531 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   608.34 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             226.74 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   788 sec.
    Turnaround time :                            831 sec.

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

