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


Performing analysis on: 4FGL_J0238.2+1531_daily_bin1552
RA = 39.5617, Dec = 15.5175
tmin = 641606401, tmax = 641865601
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='596402', job_status='RUN', time_executed='2021-08-16 09:09:07.035772', time_epoch_executed='1629130147.04' WHERE source_name='4FGL J0238.2+1531' and cadence='daily' and bin_id='1552'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/596402

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/596402/ft1_4FGL_J0238.2+1531_daily_bin1552.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/596402/ft2_4FGL_J0238.2+1531_daily_bin1552.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/596402/ft1_4FGL_J0238.2+1531_daily_bin1552.fits outfile=/scratch/kocevski/596402/ft1_filteredMKT_4FGL_J0238.2+1531_daily_bin1552.fits ra=39.5617 dec=15.5175 rad=12.0 tmin=641606401.0 tmax=641865601.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 12.43
user 2.34
sys 9.78

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/596402/ft2_4FGL_J0238.2+1531_daily_bin1552.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/596402/ft1_filteredMKT_4FGL_J0238.2+1531_daily_bin1552.fits evtable="EVENTS" outfile="/scratch/kocevski/596402/ft1_filtered_4FGL_J0238.2+1531_daily_bin1552.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 10.07
user 0.34
sys 9.32

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/596402/ft1_filtered_4FGL_J0238.2+1531_daily_bin1552.fits" evtable="EVENTS" scfile=/scratch/kocevski/596402/ft2_4FGL_J0238.2+1531_daily_bin1552.fits sctable="SC_DATA" outfile=/scratch/kocevski/596402/ltcube_641606401_641865601_4FGL_J0238.2+1531_daily_bin1552.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/596402/ft2_4FGL_J0238.2+1531_daily_bin1552.fits
.....................!
real 24.81
user 13.78
sys 10.74

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/596402/ft1_filtered_4FGL_J0238.2+1531_daily_bin1552.fits evtable="EVENTS" scfile=/scratch/kocevski/596402/ft2_4FGL_J0238.2+1531_daily_bin1552.fits sctable="SC_DATA" expcube=/scratch/kocevski/596402/ltcube_641606401_641865601_4FGL_J0238.2+1531_daily_bin1552.fits outfile=/scratch/kocevski/596402/expmap_641606401_641865601_4FGL_J0238.2+1531_daily_bin1552.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/596402/ltcube_641606401_641865601_4FGL_J0238.2+1531_daily_bin1552.fits
.....................!
real 206.13
user 188.25
sys 16.70

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/596402/ft1_filtered_4FGL_J0238.2+1531_daily_bin1552.fits scfile=/scratch/kocevski/596402/ft2_4FGL_J0238.2+1531_daily_bin1552.fits outfile=/scratch/kocevski/596402/cmap_641606401_641865601_4FGL_J0238.2+1531_daily_bin1552.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.76
user 0.38
sys 9.05

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/596402/ft1_filtered_4FGL_J0238.2+1531_daily_bin1552.fits scfile=/scratch/kocevski/596402/ft2_4FGL_J0238.2+1531_daily_bin1552.fits outfile=/scratch/kocevski/596402/cmap_HighResolution_641606401_641865601_4FGL_J0238.2+1531_daily_bin1552.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.94
user 0.38
sys 9.09

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    56.548       1.0000         .10000E-03   10000.    
     2 'Prefactor '    6.6648       1.0000         .10000E-03   10000.    
     3 'Prefactor '    31.185       1.0000         .10000E-03   10000.    
     4 'norm      '    18.938       1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.3957       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    4.6061       1.0000         .10000E-03   10000.    
     8 'Prefactor '    80.309       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .54757E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10093E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    5.8384       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10445E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10339E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    57.803       1.0000         .10000E-03   10000.    
    20 'norm      '    .10044E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    7.3112       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .13264E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    180.88       1.0000         .10000E-03   10000.    
    26 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    6.0510       1.0000         .10000E-03   10000.    
    28 'norm      '    18.751       1.0000         .10000E-03   10000.    
    29 'Prefactor '    871.11       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    .31272E-03   1.0000         .10000E-03   10000.    
    32 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    33 'Normalizat'    .13517       1.0000         .10000E-01   10.000    
    34 'Prefactor '    1.0382       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=   1163.488     FROM MIGRAD    STATUS=CONVERGED    441 CALLS     4317 TOTAL
                     EDM=   .86E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     54.327        66.228        .57855E-05    .79275E-02
   2  Prefactor     42.609        46.271       -.99777E-05   -.70676E-03
   3  Prefactor     30.824        44.714       -.39045E-04   -.16051E-02
   4  norm          19.181        25.646        .13574E-04   -.26909E-03
   5  Prefactor     9999.9        9710.6       -.66317E-03    .81344E-03
   6  Prefactor     .10000E-03    5.0842        .88283E-07** at limit **
   7  norm          68.348        99.045       -.10220E-04   -.13845E-02
   8  Prefactor     81.416        78.885        .12021E-05    .45697E-02
   9  Prefactor     .35794E-02    2144.3       -.14521E-04    .12739E-02
  10  Prefactor     .10000E-03    26.602        .57463E-06** at limit **
  11  Prefactor     .10000E-03    105.12       -.21170E-04** at limit **
  12  Prefactor     303.81        601.92       -.41925E-05   -.75751E-02
  13  Prefactor     .10000E-03    31.038       -.15334E-05** at limit **
  14  Prefactor     .10000E-03    38.556        .87571E-05** at limit **
  15  Prefactor     .10000E-03    21.649        .28586E-07** at limit **
  16  Prefactor     .10000E-03    31.171        .50196E-05** at limit **
  17  norm          .10000E-03    2.0669       -.29392E-06** at limit **
  18  Prefactor     .10000E-03    191.24        .25778E-04** at limit **
  19  Prefactor     58.786        54.842        .21906E-05    .16542E-02
  20  norm          .10000E-03    23.516        .48925E-06** at limit **
  21  Prefactor     .10000E-03    92.185        .17821E-04** at limit **
  22  Prefactor     7.9130        586.66        .34818E-03    .80822E-03
  23  Prefactor     .10000E-03    187.66        .12522E-03** at limit **
  24  Prefactor     .10000E-03    75.972       -.11127E-04** at limit **
  25  norm          180.92        156.32        .11230E-04    .10378E-01
  26  norm          .10000E-03    11.437       -.19017E-05** at limit **
  27  norm          6.1147        11.020       -.59677E-05   -.11035E-04
  28  norm          19.030        30.479        .38771E-05    .33031E-03
  29  Prefactor     872.63        12.026        .53482E-06   -.11083E-01
  30  Prefactor     .10000E-03    4.2097        .23990E-06** at limit **
  31  Prefactor     .10000E-03    92.162        .47011E-04** at limit **
  32  Prefactor     .10000E-03    37.828        .33414E-05** at limit **
  33  Normalizat    .10257        1.5974        .19302E-03   -.15905E-04
  34  Prefactor     1.0430        .28894       -.14173E-04   -.73957E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 54.327
  Prefactor  = 42.6086
  Prefactor  = 30.824
  norm       = 19.181
  Prefactor  = 9999.92
  Prefactor  = 0.0001
  norm       = 68.3484
  Prefactor  = 81.4163
  Prefactor  = 0.00357943
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 303.812
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 58.7863
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.91302
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 180.921
  norm       = 0.0001
  norm       = 6.11475
  norm       = 19.0304
  Prefactor  = 872.625
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Normalizat = 0.102569
  Prefactor  = 1.04297
 **********
 **   18 **HESSE 
 **********

 FCN=   1163.488     FROM HESSE     STATUS=NOT POSDEF   780 CALLS     5097 TOTAL
                     EDM=   .13E-03    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     54.327        143.74        .13336E-02   -1.4232    
   2  Prefactor     42.609        2226.6        .38859E-02   -1.4402    
   3  Prefactor     30.824        54.832        .17938E-02   -1.4597    
   4  norm          19.181        28.664        .23009E-02   -1.4832    
   5  Prefactor     9999.9        1981.9        .54889E-02    1.5765    
   6  Prefactor     .10000E-03    5.2081        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          68.348        2220.8        .46886E-02   -1.4053    
   8  Prefactor     81.416        161.20        .11204E-02   -1.3901    
   9  Prefactor     .35794E-02    1132.6        .10556E-01   -1.5696    
  10  Prefactor     .10000E-03    26.122        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    99.810        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     303.81        2138.8        .41552E-02   -1.2204    
  13  Prefactor     .10000E-03    30.548        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    37.851        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    21.441        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    30.359        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    2.0450        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    174.75        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     58.786        180.23        .13192E-02   -1.4173    
  20  norm          .10000E-03    23.098        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    87.963        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     7.9130        467.04        .37084E-02   -1.5145    
  23  Prefactor     .10000E-03    173.41        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    72.884        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          180.92        186.02        .75036E-03   -1.3010    
  26  norm          .10000E-03    11.256        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          6.1147        13.137        .40806E-02   -1.5213    
  28  norm          19.030        45.415        .23123E-02   -1.4835    
  29  Prefactor     872.63        2141.3        .35461E-03   -.97104    
  30  Prefactor     .10000E-03    4.1750        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     .10000E-03    88.931        .10686E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Prefactor     .10000E-03    36.844        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  33  Normalizat    .10257        7.8200        .31577       -1.3780    
  34  Prefactor     1.0430        1.5285        .40655E-01   -.91310    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 0.000133665
Minuit parameter uncertainties:
  1  144.672
  2  643.153
  3  54.9214
  4  28.6841
  5  26.4569
  6  2.14378e-08
  7  814.686
  8  162.077
  9  4.04936
  10  2.26351e-06
  11  0.000320604
  12  1707.64
  13  6.89335e-06
  14  2.28914e-05
  15  2.6785e-07
  16  1.62502e-05
  17  1.84686e-07
  18  0.000484933
  19  181.941
  20  1.06518e-06
  21  0.000409847
  22  122.601
  23  0.000663455
  24  0.000189062
  25  186.634
  26  3.24658e-06
  27  13.1433
  28  45.4972
  29  2431.02
  30  1.22282e-07
  31  0.000429421
  32  2.05379e-05
  33  4.55138
  34  1.60063
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 1163.48807553

Extracting fit parameters...

4FGL J0238.2+1531
   Spectrum: PowerLaw
250    Prefactor:  1.000e-04  1.625e-05  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.043e+00  1.601e+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.026e-01  4.551e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 39.562 15.518
Photon Flux Upper Limit: 8.45e-07 ph cm-2 s-1
Energy Flux Upper Limit: 6.53e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/596402/likelihoodResults_641606401_641865601_4FGL_J0238.2+1531_daily_bin1552.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) = 1163.4881284
delta logL = -5.28694226887e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 1163.48809469
delta logL = -1.9157715542e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .13222E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3868       1.0000          .0000       10.000    
     3 'Normalizat'    .10264       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0430       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=   1163.488     FROM MIGRAD    STATUS=CONVERGED     95 CALLS      253 TOTAL
                     EDM=   .32E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10420E-03    31.468        .18838E-01** at limit **
   2  Index         2.3139        5.4228        .50000        .73786E-05
   3  Normalizat    .10257        .17115E-01    .11695E-01    .34217E-05
   4  Prefactor     1.0430        .61856E-02    .15831E-03    .12872E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000104204
  Index      = 2.31388
  Normalizat = 0.102574
  Prefactor  = 1.04297
 **********
 **   18 **HESSE 
 **********

 FCN=   1163.488     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      284 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     .10420E-03    284.99        .19637E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3139        6.0163        .50000       -.56714    
   3  Normalizat    .10257        .52112E-01    .46781E-03   -1.3780    
   4  Prefactor     1.0430        .18836E-01    .63324E-05   -.91310    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.91376e-09
Minuit parameter uncertainties:
  1  0.0695575
  2  588.597
  3  0.0521373
  4  0.0188361
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/596402': 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) = 1163.48807543
delta logL = 1.08398580778e-07

Extracting fit parameters...

4FGL J0238.2+1531
   Spectrum: PowerLaw
250    Prefactor:  1.042e-04  6.956e-02  1.000e-04  1.000e+04 ( 1.000e-13)
251        Index:  2.314e+00  5.886e+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:  1.043e+00  1.884e-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.026e-01  5.214e-02  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/596402/cmap_HighResolution_641606401_641865601_4FGL_J0238.2+1531_daily_bin1552.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.53e-02', job_status='DONE', photon_flux_upper_limit='8.45e-07', time_completed='2021-08-16 09:18:53.173926', job_id='596402', GAL2='1.04', fit_tolerance='1e-08', EG2='0.10', EG='0.10', time_epoch_completed='1629130733.17', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='102', GAL='1.04', dlogl='1.08e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.41' WHERE bin_id='1552' AND source_name='4FGL J0238.2+1531' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 16 09:18:53 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0054>
Subject: Job 596402: <4FGL_J0238.2+1531_daily_bin1552> in cluster <slac> Done

Job <4FGL_J0238.2+1531_daily_bin1552> 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) <bullet0054>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Aug 16 09:06:16 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:16 2021
Terminated at Mon Aug 16 09:18:55 2021
Results reported at Mon Aug 16 09:18:55 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0238.2+1531_daily_bin1552 39.5617 15.5175 641606401 641865601 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 :                                   710.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             227.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   758 sec.
    Turnaround time :                            807 sec.

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

