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


Performing analysis on: 4FGL_J0238.2+1531_daily_bin1426
RA = 39.5617, Dec = 15.5175
tmin = 608947201, tmax = 609206401
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='593946', job_status='RUN', time_executed='2021-08-16 09:08:08.748249', time_epoch_executed='1629130088.75' WHERE source_name='4FGL J0238.2+1531' and cadence='daily' and bin_id='1426'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/593946

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/593946/ft1_4FGL_J0238.2+1531_daily_bin1426.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/593946/ft2_4FGL_J0238.2+1531_daily_bin1426.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/593946/ft1_4FGL_J0238.2+1531_daily_bin1426.fits outfile=/scratch/kocevski/593946/ft1_filteredMKT_4FGL_J0238.2+1531_daily_bin1426.fits ra=39.5617 dec=15.5175 rad=12.0 tmin=608947201.0 tmax=609206401.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 6.35
user 2.92
sys 3.14

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/593946/ft1_filtered_4FGL_J0238.2+1531_daily_bin1426.fits" evtable="EVENTS" scfile=/scratch/kocevski/593946/ft2_4FGL_J0238.2+1531_daily_bin1426.fits sctable="SC_DATA" outfile=/scratch/kocevski/593946/ltcube_608947201_609206401_4FGL_J0238.2+1531_daily_bin1426.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/593946/ft2_4FGL_J0238.2+1531_daily_bin1426.fits
.....................!
real 17.34
user 12.87
sys 3.97

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/593946/ft1_filtered_4FGL_J0238.2+1531_daily_bin1426.fits evtable="EVENTS" scfile=/scratch/kocevski/593946/ft2_4FGL_J0238.2+1531_daily_bin1426.fits sctable="SC_DATA" expcube=/scratch/kocevski/593946/ltcube_608947201_609206401_4FGL_J0238.2+1531_daily_bin1426.fits outfile=/scratch/kocevski/593946/expmap_608947201_609206401_4FGL_J0238.2+1531_daily_bin1426.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/593946/ltcube_608947201_609206401_4FGL_J0238.2+1531_daily_bin1426.fits
.....................!
real 197.46
user 185.71
sys 9.19

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/593946/ft1_filtered_4FGL_J0238.2+1531_daily_bin1426.fits scfile=/scratch/kocevski/593946/ft2_4FGL_J0238.2+1531_daily_bin1426.fits outfile=/scratch/kocevski/593946/cmap_608947201_609206401_4FGL_J0238.2+1531_daily_bin1426.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 3.65
user 0.37
sys 3.06

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/593946/ft1_filtered_4FGL_J0238.2+1531_daily_bin1426.fits scfile=/scratch/kocevski/593946/ft2_4FGL_J0238.2+1531_daily_bin1426.fits outfile=/scratch/kocevski/593946/cmap_HighResolution_608947201_609206401_4FGL_J0238.2+1531_daily_bin1426.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 3.89
user 0.40
sys 3.33

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
     3 'Prefactor '    10000.       1.0000         .10000E-03   10000.    
     4 'norm      '    91.128       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10238E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10119E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .12147       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10252E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10199E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10138E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    67.179       1.0000         .10000E-03   10000.    
    17 'norm      '    .12526E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10154E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    120.84       1.0000         .10000E-03   10000.    
    20 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10063E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10187E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .94229       1.0000         .10000E-03   10000.    
    25 'norm      '    .10020E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    41.716       1.0000         .10000E-03   10000.    
    27 'norm      '    21.201       1.0000         .10000E-03   10000.    
    28 'norm      '    21.434       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .96995       1.0000         .10000E-03   10000.    
    31 'Prefactor '    4.1946       1.0000         .10000E-03   10000.    
    32 'Prefactor '    24.479       1.0000         .10000E-03   10000.    
    33 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    34 'Prefactor '    1.0479       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=   1236.489     FROM MIGRAD    STATUS=CONVERGED    248 CALLS     5202 TOTAL
                     EDM=   .49E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  8.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .11490E-03    187.98       -.94570E-04** at limit **
   2  Prefactor    10000.0        .53935        .28310E-05** at limit **
   3  Prefactor    10000.0        116.54        .40097E-04** at limit **
   4  norm          91.138        3.4980        .98248E-06   -.76437E-03
   5  Prefactor     .96902E-03    311.32       -.10480E-03** at limit **
   6  Prefactor     .10000E-03    17.964       -.69393E-05** at limit **
   7  norm          .12086        .39094       -.16171E-05    .19830E-04
   8  Prefactor     .11592E-03    106.72        .23387E-04** at limit **
   9  Prefactor     .10862E-03    111.13       -.47460E-04** at limit **
  10  Prefactor     .10014E-03    54.348        .56283E-04** at limit **
  11  Prefactor     .10809E-03    80.349        .22529E-04** at limit **
  12  Prefactor     .14658E-03    333.71       -.11636E-03** at limit **
  13  Prefactor     .10029E-03    17.910        .39844E-06** at limit **
  14  Prefactor     .10241E-03    51.535       -.39093E-04** at limit **
  15  Prefactor     .10000E-03    19.215        .40167E-05** at limit **
  16  Prefactor     67.181        1.9980       -.33149E-06    .20313E-03
  17  norm          .10000E-03    2.1183        .17997E-06** at limit **
  18  Prefactor     .10003E-03    84.931        .21311E-04** at limit **
  19  Prefactor     120.83        1.5480       -.36632E-06    .17715E-03
  20  norm          .10000E-03    17.034        .43050E-05** at limit **
  21  Prefactor     .10001E-03    44.299       -.21597E-04** at limit **
  22  Prefactor     .10255E-03    40.662       -.29590E-04** at limit **
  23  Prefactor     .10000E-03    15.695       -.12421E-05** at limit **
  24  Prefactor     1.2636        287.07        .83028E-04    .24339E-03
  25  norm          .10030E-03    18.111        .14459E-05** at limit **
  26  norm          41.713        2.1850        .62774E-06    .40849E-03
  27  norm          21.200        1.4601        .78088E-06    .53269E-03
  28  norm          21.444        1.7463        .96754E-06    .34165E-03
  29  Prefactor     .11343E-03    88.642        .22598E-04** at limit **
  30  Prefactor     .95868        23.971       -.18386E-05   -.25572E-04
  31  Prefactor     4.1915        11.239       -.13030E-04   -.12055E-02
  32  Prefactor     24.475        1.6215        .55358E-06   -.43078E-05
  33  Normalizat    .10000E-01    .88818        .53481E-05** at limit **
  34  Prefactor     1.0479        .14564        .73310E-06    .17367E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000114899
  Prefactor  = 10000
  Prefactor  = 10000
  norm       = 91.1382
  Prefactor  = 0.000969017
  Prefactor  = 0.0001
  norm       = 0.120858
  Prefactor  = 0.000115921
  Prefactor  = 0.000108617
  Prefactor  = 0.000100143
  Prefactor  = 0.000108091
  Prefactor  = 0.000146581
  Prefactor  = 0.000100292
  Prefactor  = 0.000102406
  Prefactor  = 0.0001
  Prefactor  = 67.1809
  norm       = 0.0001
  Prefactor  = 0.00010003
  Prefactor  = 120.83
  norm       = 0.0001
  Prefactor  = 0.000100006
  Prefactor  = 0.000102554
  Prefactor  = 0.0001
  Prefactor  = 1.26361
  norm       = 0.0001003
  norm       = 41.7127
  norm       = 21.2004
  norm       = 21.444
  Prefactor  = 0.000113435
  Prefactor  = 0.958678
  Prefactor  = 4.19147
  Prefactor  = 24.4752
  Normalizat = 0.01
  Prefactor  = 1.0479
 **********
 **   18 **HESSE 
 **********

 FCN=   1236.489     FROM HESSE     STATUS=OK           788 CALLS     5990 TOTAL
                     EDM=   .99E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .11490E-03    707.89        .90712E-02   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor    10000.0        9495.7        .10546E-01    1.5704    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor    10000.0        460.92        .90712E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          91.138        125.73        .10524E-02   -1.3796    
   5  Prefactor     .96902E-03    1812.9        .90712E-02   -1.5702    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    17.967        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .12086        5145.0        .96131E-02   -1.5638    
   8  Prefactor     .11592E-03    161.31        .90712E-02   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10862E-03    484.78        .90712E-02   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10014E-03    55.163        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10809E-03    212.17        .90712E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .14658E-03    1079.3        .90712E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10029E-03    32.443        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10241E-03    71.555        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    19.203        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     67.181        73.242        .12242E-02   -1.4067    
  17  norm          .10000E-03    2.1164        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10003E-03    103.70        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     120.83        101.15        .91525E-03   -1.3505    
  20  norm          .10000E-03    17.033        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10001E-03    44.372        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10255E-03    80.864        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    15.677        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     1.2636        144.11        .12960       -1.5483    
  25  norm          .10030E-03    32.232        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          41.713        43.452        .15516E-02   -1.4415    
  27  norm          21.200        16.222        .21747E-02   -1.4787    
  28  norm          21.444        27.750        .21629E-02   -1.4781    
  29  Prefactor     .11343E-03    220.44        .90712E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .95868        25.806        .13059E-01   -1.5512    
  31  Prefactor     4.1915        11.784        .49193E-02   -1.5298    
  32  Prefactor     24.475        29.744        .20241E-02   -1.4718    
  33  Normalizat    .10000E-01    .62558        .32094       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  34  Prefactor     1.0479        .18518        .40035E-01   -.91149    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.88319e-07
Minuit parameter uncertainties:
  1  0.207898
  2  7.61053
  3  0.0922926
  4  126.101
  5  2.5931
  6  8.37423e-05
  7  643.37
  8  0.10163
  9  0.130332
  10  0.0056211
  11  0.0831598
  12  0.456933
  13  0.00616144
  14  0.0262758
  15  5.29066e-05
  16  73.3402
  17  6.71313e-07
  18  0.00356196
  19  101.297
  20  4.87982e-05
  21  0.00103869
  22  0.0287814
  23  1.35469e-05
  24  27.0547
  25  0.00622584
  26  43.4845
  27  16.2251
  28  27.7664
  29  0.109243
  30  9.952
  31  11.7909
  32  29.7618
  33  3.53437e-07
  34  0.185291
Done.

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

Extracting fit parameters...

4FGL J0238.2+1531
   Spectrum: PowerLaw
250    Prefactor:  6.718e+01  7.334e+01  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:  1.048e+00  1.853e-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  3.534e-07  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.75
Ra Dec: 39.562 15.518
Photon Index (Fixed Index): 2.41 +/- 0.00
Photon Flux (Fixed Index): 3.06e-07 +/- 3.34e-07
Energy Flux (Fixed Index): 9.96e-05 +/- 1.09e-04

TS (Fixed Index): 1.75
Ra Dec: 39.562 15.518
Photon Flux Upper Limit: 1.26e-06 ph cm-2 s-1
Energy Flux Upper Limit: 9.71e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/593946/likelihoodResults_608947201_609206401_4FGL_J0238.2+1531_daily_bin1426.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) = 1236.48896332
delta logL = 6.61903800392e-06

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 1236.48894795
delta logL = 2.19886662762e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    67.781       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3983       1.0000          .0000       10.000    
     3 'Normalizat'    .10008E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0480       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=   1236.489     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      248 TOTAL
                     EDM=   .73E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     67.822        120.22        .24376E-03   -.81182E-03
   2  Index         2.3987        1.0544        .47246E-02   -.52840E-03
   3  Normalizat    .10000E-01    .88770        .14041E-01** at limit **
   4  Prefactor     1.0479        .13938        .15507E-03    .28382E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 67.8223
  Index      = 2.39874
  Normalizat = 0.01
  Prefactor  = 1.04793
 **********
 **   18 **HESSE 
 **********

 FCN=   1236.489     FROM HESSE     STATUS=OK            23 CALLS      271 TOTAL
                     EDM=   .74E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     67.822        114.01        .48752E-04   -1.4059    
   2  Index         2.3987        1.0006        .18898E-03   -.54715    
   3  Normalizat    .10000E-01    .88831        .28081E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.0479        .13928        .31015E-04   -.91148    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.40729e-09
Minuit parameter uncertainties:
  1  114.378
  2  1.01004
  3  2.37175e-05
  4  0.139326
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/593946': 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) = 1236.48894268
delta logL = 2.726780599e-05

Extracting fit parameters...

4FGL J0238.2+1531
   Spectrum: PowerLaw
250    Prefactor:  6.782e+01  1.144e+02  1.000e-04  1.000e+04 ( 1.000e-13)
251        Index:  2.399e+00  1.010e+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:  1.048e+00  1.393e-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  2.372e-05  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.75
Ra Dec: 39.562 15.518
Photon Index (Free Index): 2.40 +/- 1.01
Photon Flux (Free Index): 3.05e-07 +/- 3.93e-07
Energy Flux (Free Index): 1.00e-04 +/- 1.26e-04

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/593946/cmap_HighResolution_608947201_609206401_4FGL_J0238.2+1531_daily_bin1426.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.71e-02', comment='SUCCESS', photon_flux='3.06e-07', energy_flux2='1.00e-04', photon_flux_error='3.34e-07', dlogl='2.73e-05', energy_flux='9.96e-05', photon_flux2='3.05e-07', job_status='DONE', time_completed='2021-08-16 09:16:40.810767', photon_index_error2='1.01', photon_index2='2.40', ts='1.75', fit_tolerance='1e-08', GAL='1.05', photon_index_error='0.00', photon_flux_upper_limit='1.26e-06', energy_flux_error2='1.26e-04', EG='0.01', time_epoch_completed='1629130600.81', return_code='0', job_id='593946', GAL2='1.05', EG2='0.01', return_code2='0', energy_flux_error='1.09e-04', photon_flux_error2='3.93e-07', ts2='1.75', photon_index='2.41' WHERE bin_id='1426' AND source_name='4FGL J0238.2+1531' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 16 09:16:40 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0179>
Subject: Job 593946: <4FGL_J0238.2+1531_daily_bin1426> in cluster <slac> Done

Job <4FGL_J0238.2+1531_daily_bin1426> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Mon Aug 16 09:01:03 2021
Job was executed on host(s) <bullet0179>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Aug 16 09:03:43 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:03:43 2021
Terminated at Mon Aug 16 09:16:42 2021
Results reported at Mon Aug 16 09:16:42 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0238.2+1531_daily_bin1426 39.5617 15.5175 608947201 609206401 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 :                                   545.25 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             236.19 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   779 sec.
    Turnaround time :                            939 sec.

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

