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


Performing analysis on: 4FGL_J0238.2+1531_daily_bin1200
RA = 39.5617, Dec = 15.5175
tmin = 550368001, tmax = 550627201
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='591341', job_status='RUN', time_executed='2021-08-16 09:02:25.860917', time_epoch_executed='1629129745.86' WHERE source_name='4FGL J0238.2+1531' and cadence='daily' and bin_id='1200'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/591341

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/591341/ft1_4FGL_J0238.2+1531_daily_bin1200.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/591341/ft2_4FGL_J0238.2+1531_daily_bin1200.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/591341/ft1_4FGL_J0238.2+1531_daily_bin1200.fits outfile=/scratch/kocevski/591341/ft1_filteredMKT_4FGL_J0238.2+1531_daily_bin1200.fits ra=39.5617 dec=15.5175 rad=12.0 tmin=550368001.0 tmax=550627201.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 13.05
user 3.77
sys 8.73

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/591341/ft2_4FGL_J0238.2+1531_daily_bin1200.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/591341/ft1_filteredMKT_4FGL_J0238.2+1531_daily_bin1200.fits evtable="EVENTS" outfile="/scratch/kocevski/591341/ft1_filtered_4FGL_J0238.2+1531_daily_bin1200.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 9.18
user 0.33
sys 8.70

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/591341/ft1_filtered_4FGL_J0238.2+1531_daily_bin1200.fits" evtable="EVENTS" scfile=/scratch/kocevski/591341/ft2_4FGL_J0238.2+1531_daily_bin1200.fits sctable="SC_DATA" outfile=/scratch/kocevski/591341/ltcube_550368001_550627201_4FGL_J0238.2+1531_daily_bin1200.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/591341/ft2_4FGL_J0238.2+1531_daily_bin1200.fits
.....................!
real 21.98
user 11.83
sys 9.85

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/591341/ft1_filtered_4FGL_J0238.2+1531_daily_bin1200.fits evtable="EVENTS" scfile=/scratch/kocevski/591341/ft2_4FGL_J0238.2+1531_daily_bin1200.fits sctable="SC_DATA" expcube=/scratch/kocevski/591341/ltcube_550368001_550627201_4FGL_J0238.2+1531_daily_bin1200.fits outfile=/scratch/kocevski/591341/expmap_550368001_550627201_4FGL_J0238.2+1531_daily_bin1200.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/591341/ltcube_550368001_550627201_4FGL_J0238.2+1531_daily_bin1200.fits
.....................!
real 204.08
user 185.74
sys 15.35

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/591341/ft1_filtered_4FGL_J0238.2+1531_daily_bin1200.fits scfile=/scratch/kocevski/591341/ft2_4FGL_J0238.2+1531_daily_bin1200.fits outfile=/scratch/kocevski/591341/cmap_550368001_550627201_4FGL_J0238.2+1531_daily_bin1200.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 9.12
user 0.39
sys 8.57

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/591341/ft1_filtered_4FGL_J0238.2+1531_daily_bin1200.fits scfile=/scratch/kocevski/591341/ft2_4FGL_J0238.2+1531_daily_bin1200.fits outfile=/scratch/kocevski/591341/cmap_HighResolution_550368001_550627201_4FGL_J0238.2+1531_daily_bin1200.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 9.49
user 0.37
sys 8.67

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/591341/ft1_filtered_4FGL_J0238.2+1531_daily_bin1200.fits', '/scratch/kocevski/591341/ft2_4FGL_J0238.2+1531_daily_bin1200.fits', expMap='/scratch/kocevski/591341/expmap_550368001_550627201_4FGL_J0238.2+1531_daily_bin1200.fits', expCube='/scratch/kocevski/591341/ltcube_550368001_550627201_4FGL_J0238.2+1531_daily_bin1200.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/591341/Model_4FGL_J0238.2+1531_daily_bin1200.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/591341/ft1_filtered_4FGL_J0238.2+1531_daily_bin1200.fits
Spacecraft file(s): /scratch/kocevski/591341/ft2_4FGL_J0238.2+1531_daily_bin1200.fits
Exposure map: /scratch/kocevski/591341/expmap_550368001_550627201_4FGL_J0238.2+1531_daily_bin1200.fits
Exposure cube: /scratch/kocevski/591341/ltcube_550368001_550627201_4FGL_J0238.2+1531_daily_bin1200.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/591341/Model_4FGL_J0238.2+1531_daily_bin1200.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) = 585.328754094

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .37522E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    6.3982       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .34381E-02   1.0000         .10000E-03   10000.    
     4 'norm      '    3.6047       1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.1777       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10060E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    4.3723       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .50711E-01   1.0000         .10000E-03   10000.    
     9 'Prefactor '    6.0908       1.0000         .10000E-03   10000.    
    10 'Prefactor '    81.691       1.0000         .10000E-03   10000.    
    11 'Prefactor '    428.04       1.0000         .10000E-03   10000.    
    12 'Prefactor '    5.0540       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .59089E-02   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .11027E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .23710E-02   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .29116E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10039E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    186.08       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10953E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .69102E-02   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .39409E-01   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .11143       1.0000         .10000E-03   10000.    
    23 'Prefactor '    3.1506       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .76548E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .94808E-02   1.0000         .10000E-03   10000.    
    26 'norm      '    .10026E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    37.585       1.0000         .10000E-03   10000.    
    28 'norm      '    51.395       1.0000         .10000E-03   10000.    
    29 'Prefactor '    3.1368       1.0000         .10000E-03   10000.    
    30 'Prefactor '    4.2724       1.0000         .10000E-03   10000.    
    31 'Prefactor '    .19845E-01   1.0000         .10000E-03   10000.    
    32 'Prefactor '    113.75       1.0000         .10000E-03   10000.    
    33 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    34 'Prefactor '    .82677       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5070E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   581.6083     FROM MIGRAD    STATUS=CONVERGED    310 CALLS      599 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10003E-03    42.807       -.57521E-05** at limit **
   2  Prefactor     6.3982        1.0031         .0000         .0000    
   3  Prefactor     .10004E-03    99.002       -.50215E-05** at limit **
   4  norm          .75898        477.45       -.94659E-04   -.96828E-03
   5  Prefactor     1.1777        1.1440         .0000         .0000    
   6  Prefactor     .10000E-03    7.2806       -.22226E-05** at limit **
   7  norm          4.3723        1.0067         .0000         .0000    
   8  Prefactor     .10000E-03    43.113        .23304E-05** at limit **
   9  Prefactor     .55205E-02    1984.8       -.20641E-04    .13973E-02
  10  Prefactor     81.541        19.872       -.29801E-05    .12936E-01
  11  Prefactor     430.24        61.961        .10197E-05   -.34797E-01
  12  Prefactor     5.0540        1.0050         .0000         .0000    
  13  Prefactor     .10002E-03    76.408       -.56022E-05** at limit **
  14  Prefactor     .10000E-03    34.612        .11392E-05** at limit **
  15  Prefactor     .16689E-03    204.40        .14176E-04** at limit **
  16  Prefactor     .10000E-03    55.480       -.40548E-05** at limit **
  17  norm          .10000E-03    3.9114        .30375E-06** at limit **
  18  Prefactor     187.00        19.577        .36944E-06   -.26945E-02
  19  Prefactor     .10000E-03    26.723       -.43232E-06** at limit **
  20  norm          .10001E-03    47.451        .85738E-06** at limit **
  21  Prefactor     .10130E-03    189.57        .73406E-06** at limit **
  22  Prefactor     .14281E-03    371.25        .13823E-04** at limit **
  23  Prefactor     3.1506        1.0132         .0000         .0000    
  24  Prefactor     .10172E-03    154.52        .17642E-05** at limit **
  25  norm          .13778E-03    246.41        .55236E-05** at limit **
  26  norm          .10000E-03    15.701       -.12018E-05** at limit **
  27  norm          37.250        16.844       -.29369E-06    .31221E-03
  28  norm          50.934        47.716        .33219E-05    .16755E-02
  29  Prefactor     .15276E-01    1562.2        .17050E-04   -.27562E-02
  30  Prefactor     4.0983        23.801        .75289E-05    .51732E-04
  31  Prefactor     .10133E-03    126.33       -.15915E-04** at limit **
  32  Prefactor     114.80        83.272        .73179E-07   -.40242E-01
  33  Normalizat    .10000E-01    .21844       -.30706E-05** at limit **
  34  Prefactor     .83137        .24479       -.10360E-04   -.15942E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100025
  Prefactor  = 6.39825
  Prefactor  = 0.000100045
  norm       = 0.758979
  Prefactor  = 1.17765
  Prefactor  = 0.0001
  norm       = 4.37233
  Prefactor  = 0.000100002
  Prefactor  = 0.00552046
  Prefactor  = 81.5406
  Prefactor  = 430.237
  Prefactor  = 5.054
  Prefactor  = 0.000100017
  Prefactor  = 0.000100002
  Prefactor  = 0.000166887
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 186.999
  Prefactor  = 0.0001
  norm       = 0.000100012
  Prefactor  = 0.000101303
  Prefactor  = 0.000142807
  Prefactor  = 3.15065
  Prefactor  = 0.000101721
  norm       = 0.00013778
  norm       = 0.0001
  norm       = 37.2502
  norm       = 50.9341
  Prefactor  = 0.0152758
  Prefactor  = 4.09835
  Prefactor  = 0.000101331
  Prefactor  = 114.804
  Normalizat = 0.01
  Prefactor  = 0.831367
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   581.6083     FROM HESSE     STATUS=FAILED        15 CALLS      614 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10003E-03    42.957        .10646E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     518.42        511.98         .0000       -1.5202    
   3  Prefactor     .10004E-03    .24196       -.50215E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .75898        .46347       -.94659E-04   -1.5882    
   5  Prefactor     1.1777        1.1440         .0000       -1.5491    
   6  Prefactor     .10000E-03    .20571       -.22226E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          4.3723        1.0067         .0000       -1.5290    
   8  Prefactor     .10000E-03    .21500        .23304E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .55205E-02    .41352E-01   -.20641E-04   -1.5693    
  10  Prefactor     81.541        .99911       -.29801E-05   -1.3900    
  11  Prefactor     430.24        1.0024        .10197E-05   -1.1529    
  12  Prefactor     5.0540        1.0050         .0000       -1.5258    
  13  Prefactor     .10002E-03    .22474       -.56022E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    .20571        .11392E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .16689E-03    .25175        .14176E-04   -1.5706    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    .28628       -.40548E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    .20571        .30375E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     187.00        1.0024        .36944E-06   -1.2964    
  19  Prefactor     .10000E-03    .20571       -.43232E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10001E-03    .21903        .85738E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10130E-03    .21244        .73406E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .14281E-03    .22875        .13823E-04   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     3.1506        1.0132         .0000       -1.5353    
  24  Prefactor     .10172E-03    .27374        .17642E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .13778E-03    .20641        .55236E-05   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    .20571       -.12018E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          37.250        .99565       -.29369E-06   -1.4487    
  28  norm          50.934        .99557        .33219E-05   -1.4279    
  29  Prefactor     .15276E-01    .81860E-01    .17050E-04   -1.5733    
  30  Prefactor     4.0983        .98629        .75289E-05   -1.5303    
  31  Prefactor     .10133E-03    .20802       -.15915E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Prefactor     114.80        1.0046        .73179E-07   -1.3561    
  33  Normalizat    .10000E-01    .25505       -.30706E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  34  Prefactor     .83137        1.1776       -.10360E-04   -.98582    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.80107e-09
Minuit parameter uncertainties:
  1  0.00208295
  2  1.00309
  3  0.000208162
  4  0.463469
  5  1.14405
  6  5.53208e-07
  7  1.00669
  8  4.26215e-05
  9  0.029943
  10  0.999107
  11  1.00244
  12  1.00498
  13  0.000121973
  14  3.53351e-05
  15  0.00820705
  16  2.2737e-06
  17  2.31136e-07
  18  1.00241
  19  4.87902e-06
  20  0.000103385
  21  0.00105236
  22  0.00625852
  23  1.01318
  24  0.00137291
  25  0.00558504
  26  1.23692e-06
  27  0.995646
  28  0.995574
  29  0.0704926
  30  0.986298
  31  0.00105225
  32  1.00458
  33  1.9421e-07
  34  1.21658
Done.

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

Extracting fit parameters...

4FGL J0238.2+1531
   Spectrum: PowerLaw
250    Prefactor:  1.000e-04  2.274e-06  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:  8.314e-01  1.217e+00  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.942e-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: 1.49e-06 ph cm-2 s-1
Energy Flux Upper Limit: 1.15e-01 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/591341/likelihoodResults_550368001_550627201_4FGL_J0238.2+1531_daily_bin1200.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) = 581.608337785
delta logL = -8.51432406535e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 581.608253207
delta logL = -5.65224581806e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7205       1.0000          .0000       10.000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .83137       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   581.6083     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      274 TOTAL
                     EDM=   .33E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10505E-03    37.266        .14254E-01** at limit **
   2  Index         2.6182        6.2974        .50000        .90170E-05
   3  Normalizat    .10000E-01    .40639E-03    .69006E-03** at limit **
   4  Prefactor     .83137        .83966E-02    .16688E-03    .28270E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000105052
  Index      = 2.61816
  Normalizat = 0.01
  Prefactor  = 0.83137
 **********
 **   18 **HESSE 
 **********

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

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10505E-03    328.65        .14989E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.6182        5.4083        .50000       -.49652    
   3  Normalizat    .10000E-01    .36725E-02    .13801E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .83137        .25243E-01    .33377E-04   -.98582    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.9473e-09
Minuit parameter uncertainties:
  1  0.0819457
  2  507.431
  3  1.33914e-07
  4  0.0252429
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/591341': 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) = 581.608253041
delta logL = -3.99162445319e-07

Extracting fit parameters...

4FGL J0238.2+1531
   Spectrum: PowerLaw
250    Prefactor:  1.051e-04  8.195e-02  1.000e-04  1.000e+04 ( 1.000e-13)
251        Index:  2.618e+00  5.074e+02  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:  8.314e-01  2.524e-02  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.339e-07  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/591341/cmap_HighResolution_550368001_550627201_4FGL_J0238.2+1531_daily_bin1200.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.15e-01', job_status='DONE', photon_flux_upper_limit='1.49e-06', time_completed='2021-08-16 09:10:14.949865', job_id='591341', GAL2='0.83', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1629130214.95', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='101', GAL='0.83', dlogl='-3.99e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.41' WHERE bin_id='1200' AND source_name='4FGL J0238.2+1531' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 16 09:10:15 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0205>
Subject: Job 591341: <4FGL_J0238.2+1531_daily_bin1200> in cluster <slac> Done

Job <4FGL_J0238.2+1531_daily_bin1200> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Mon Aug 16 08:55:44 2021
Job was executed on host(s) <bullet0205>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Aug 16 08:56:08 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Aug 16 08:56:08 2021
Terminated at Mon Aug 16 09:10:17 2021
Results reported at Mon Aug 16 09:10:17 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0238.2+1531_daily_bin1200 39.5617 15.5175 550368001 550627201 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 :                                   591.38 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             146.11 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   850 sec.
    Turnaround time :                            873 sec.

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

