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


Performing analysis on: 4FGL_J0231.8+1322_daily_bin1425
RA = 37.9616, Dec = 13.3692
tmin = 608688001, tmax = 608947201
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='499931', job_status='RUN', time_executed='2021-08-16 03:59:49.517007', time_epoch_executed='1629111589.52' WHERE source_name='4FGL J0231.8+1322' and cadence='daily' and bin_id='1425'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/499931

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/499931/ft1_4FGL_J0231.8+1322_daily_bin1425.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/499931/ft2_4FGL_J0231.8+1322_daily_bin1425.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/499931/ft1_4FGL_J0231.8+1322_daily_bin1425.fits outfile=/scratch/kocevski/499931/ft1_filteredMKT_4FGL_J0231.8+1322_daily_bin1425.fits ra=37.9616 dec=13.3692 rad=12.0 tmin=608688001.0 tmax=608947201.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 5.31
user 2.81
sys 2.33

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/499931/ft2_4FGL_J0231.8+1322_daily_bin1425.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/499931/ft2_4FGL_J0231.8+1322_daily_bin1425.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/499931/ft1_filteredMKT_4FGL_J0231.8+1322_daily_bin1425.fits evtable="EVENTS" outfile="/scratch/kocevski/499931/ft1_filtered_4FGL_J0231.8+1322_daily_bin1425.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 2.66
user 0.31
sys 2.30

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/499931/ft1_filtered_4FGL_J0231.8+1322_daily_bin1425.fits" evtable="EVENTS" scfile=/scratch/kocevski/499931/ft2_4FGL_J0231.8+1322_daily_bin1425.fits sctable="SC_DATA" outfile=/scratch/kocevski/499931/ltcube_608688001_608947201_4FGL_J0231.8+1322_daily_bin1425.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/499931/ft2_4FGL_J0231.8+1322_daily_bin1425.fits
.....................!
real 16.70
user 13.92
sys 2.69

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/499931/ft1_filtered_4FGL_J0231.8+1322_daily_bin1425.fits evtable="EVENTS" scfile=/scratch/kocevski/499931/ft2_4FGL_J0231.8+1322_daily_bin1425.fits sctable="SC_DATA" expcube=/scratch/kocevski/499931/ltcube_608688001_608947201_4FGL_J0231.8+1322_daily_bin1425.fits outfile=/scratch/kocevski/499931/expmap_608688001_608947201_4FGL_J0231.8+1322_daily_bin1425.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/499931/ltcube_608688001_608947201_4FGL_J0231.8+1322_daily_bin1425.fits
.....................!
real 195.23
user 186.49
sys 8.30

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

Setting source of interest to:
4FGL J0231.8+1322 @ 37.9616 13.3692

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/499931/ft1_filtered_4FGL_J0231.8+1322_daily_bin1425.fits scfile=/scratch/kocevski/499931/ft2_4FGL_J0231.8+1322_daily_bin1425.fits outfile=/scratch/kocevski/499931/cmap_608688001_608947201_4FGL_J0231.8+1322_daily_bin1425.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=37.9616 yref=13.3692 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 2.62
user 0.37
sys 2.23

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/499931/ft1_filtered_4FGL_J0231.8+1322_daily_bin1425.fits scfile=/scratch/kocevski/499931/ft2_4FGL_J0231.8+1322_daily_bin1425.fits outfile=/scratch/kocevski/499931/cmap_HighResolution_608688001_608947201_4FGL_J0231.8+1322_daily_bin1425.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=37.9616 yref=13.3692 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 2.62
user 0.38
sys 2.22

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/499931/ft1_filtered_4FGL_J0231.8+1322_daily_bin1425.fits evtable="EVENTS" scfile=/scratch/kocevski/499931/ft2_4FGL_J0231.8+1322_daily_bin1425.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/499931/Model_4FGL_J0231.8+1322_daily_bin1425.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/499931/ft1_filtered_4FGL_J0231.8+1322_daily_bin1425.fits......................!
real 27.68
user 23.45
sys 3.97

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/499931/ft1_filtered_4FGL_J0231.8+1322_daily_bin1425.fits', '/scratch/kocevski/499931/ft2_4FGL_J0231.8+1322_daily_bin1425.fits', expMap='/scratch/kocevski/499931/expmap_608688001_608947201_4FGL_J0231.8+1322_daily_bin1425.fits', expCube='/scratch/kocevski/499931/ltcube_608688001_608947201_4FGL_J0231.8+1322_daily_bin1425.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/499931/Model_4FGL_J0231.8+1322_daily_bin1425.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0231.8+1322'

4FGL J0231.8+1322
   Spectrum: PowerLaw
241    Prefactor:  4.772e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
242        Index:  2.678e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
243        Scale:  5.510e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/499931/ft1_filtered_4FGL_J0231.8+1322_daily_bin1425.fits
Spacecraft file(s): /scratch/kocevski/499931/ft2_4FGL_J0231.8+1322_daily_bin1425.fits
Exposure map: /scratch/kocevski/499931/expmap_608688001_608947201_4FGL_J0231.8+1322_daily_bin1425.fits
Exposure cube: /scratch/kocevski/499931/ltcube_608688001_608947201_4FGL_J0231.8+1322_daily_bin1425.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/499931/Model_4FGL_J0231.8+1322_daily_bin1425.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) = 830.57039851

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    48.852       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10831E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .17413E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
     6 'Prefactor '    8.1382       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .13681       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10590E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .12596E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .16786E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .51382E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    44.685       1.0000         .10000E-03   10000.    
    13 'Prefactor '    112.80       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    119.81       1.0000         .10000E-03   10000.    
    16 'norm      '    3.4449       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10503E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    46.910       1.0000         .10000E-03   10000.    
    19 'norm      '    122.34       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .13095E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10206E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    8.9346       1.0000         .10000E-03   10000.    
    25 'norm      '    31.917       1.0000         .10000E-03   10000.    
    26 'norm      '    .10431E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .22597E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    .13675E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    251.20       1.0000         .10000E-03   10000.    
    30 'Prefactor '    3.8335       1.0000         .10000E-03   10000.    
    31 'Normalizat'    .10001E-01   1.0000         .10000E-01   10.000    
    32 'Prefactor '    .77316       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5000E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   827.7407     FROM MIGRAD    STATUS=CONVERGED    881 CALLS     5094 TOTAL
                     EDM=   .68E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          48.836        85.529        .22059E-06   -.20024E-04
   2  Prefactor     .10000E-03    34.314       -.46558E-07** at limit **
   3  Prefactor     .10000E-03    112.07        .56518E-06** at limit **
   4  norm          .10000E-03    113.05       -.43614E-06** at limit **
   5  Prefactor    10000.0        2096.1        .55180E-05** at limit **
   6  Prefactor     8.1331        12.656        .84163E-06    .41024E-04
   7  Prefactor     .10002E-03    7123.1       -.42973E-04** at limit **
   8  Prefactor     .10001E-03    1708.8       -.10309E-04** at limit **
   9  Prefactor     .10000E-03    341.77        .41050E-06** at limit **
  10  Prefactor     .10000E-03    299.10        .17361E-05** at limit **
  11  Prefactor     .10000E-03    6698.1        .22801E-07** at limit **
  12  Prefactor     44.599        145.27        .10384E-05   -.35199E-04
  13  Prefactor     112.66        150.20        .36887E-05   -.39181E-04
  14  Prefactor     .10000E-03    43.831        .12943E-05** at limit **
  15  Prefactor     119.74        154.55       -.17426E-06   -.33966E-04
  16  norm          3.4478        5.7094        .12498E-06   -.50193E-04
  17  Prefactor     .10000E-03    333.87        .77040E-07** at limit **
  18  Prefactor     46.942        91.376       -.37557E-05   -.11056E-03
  19  norm          122.28        91.389       -.22729E-05   -.12727E-03
  20  Prefactor     .10000E-03    61.284       -.17689E-06** at limit **
  21  Prefactor     .10000E-03    207.06        .43424E-05** at limit **
  22  Prefactor     .10000E-03    50.900        .33566E-06** at limit **
  23  Prefactor     .10000E-03    158.97       -.22709E-05** at limit **
  24  Prefactor     8.9343        17.964        .85132E-06   -.77012E-04
  25  norm          31.942        53.128        .23830E-06   -.13608E-04
  26  norm          .10000E-03    15.157       -.35203E-06** at limit **
  27  norm          .10004E-03    44.593       -.15083E-04** at limit **
  28  norm          .10000E-03    35.116        .39111E-06** at limit **
  29  Prefactor     249.85        883.18        .13099E-04   -.51030E-05
  30  Prefactor     3.8335        7.5771       -.10150E-06   -.70740E-04
  31  Normalizat    .10000E-01    .42831       -.27936E-04** at limit **
  32  Prefactor     .77328        .17084       -.27849E-05   -.16833E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 48.8362
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 10000
  Prefactor  = 8.13313
  Prefactor  = 0.000100019
  Prefactor  = 0.000100007
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 44.5989
  Prefactor  = 112.659
  Prefactor  = 0.0001
  Prefactor  = 119.744
  norm       = 3.4478
  Prefactor  = 0.0001
  Prefactor  = 46.9421
  norm       = 122.275
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.9343
  norm       = 31.9419
  norm       = 0.0001
  norm       = 0.000100037
  norm       = 0.0001
  Prefactor  = 249.853
  Prefactor  = 3.83346
  Normalizat = 0.01
  Prefactor  = 0.77328
 **********
 **   18 **HESSE 
 **********

 FCN=   827.7407     FROM HESSE     STATUS=OK           653 CALLS     5747 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          48.836        85.551        .57372E-04   -1.4309    
   2  Prefactor     .10000E-03    34.317        .16472E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    112.07        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    114.11        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor    10000.0        2095.8        .19391E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     8.1331        13.806        .12160E-03   -1.5138    
   7  Prefactor     .10002E-03    602.60        .14486       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10001E-03    1707.6        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    341.08        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    299.06        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    6698.1        .21144E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     44.599        144.94        .59977E-04   -1.4371    
  13  Prefactor     112.66        168.32        .18939E-03   -1.3581    
  14  Prefactor     .10000E-03    43.891        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     119.74        156.65        .18382E-03   -1.3515    
  16  norm          3.4478        5.7739        .72827E-04   -1.5337    
  17  Prefactor     .10000E-03    333.59        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     46.942        92.186        .58543E-04   -1.4337    
  19  norm          122.28        91.934        .18194E-03   -1.3492    
  20  Prefactor     .10000E-03    61.287        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    207.44        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    50.897        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    159.27        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     8.9343        18.001        .67046E-03   -1.5110    
  25  norm          31.942        53.134        .70924E-04   -1.4577    
  26  norm          .10000E-03    15.169        .10945E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10004E-03    53.044        .19469E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          .10000E-03    36.190        .33311E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     249.85        883.74        .12780E-03   -1.2533    
  30  Prefactor     3.8335        7.5809        .10757E-03   -1.5316    
  31  Normalizat    .10000E-01    .54432        .10984E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Prefactor     .77328        .17381        .15148E-03   -1.0072    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.09392e-09
Minuit parameter uncertainties:
  1  85.7671
  2  1.20278e-05
  3  8.85202e-05
  4  0.000350423
  5  0.00424535
  6  13.8119
  7  0.00675032
  8  0.00700748
  9  0.000568974
  10  0.000476266
  11  0.000164545
  12  146.112
  13  169.038
  14  0.000272212
  15  157.193
  16  5.77485
  17  0.000125745
  18  92.4677
  19  92.0411
  20  4.64282e-05
  21  0.00125298
  22  3.0847e-05
  23  0.000490615
  24  18.0116
  25  53.2132
  26  8.5037e-05
  27  0.00279759
  28  0.000128346
  29  939.448
  30  7.58275
  31  3.68299e-05
  32  0.17393
Done.

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

Extracting fit parameters...

4FGL J0231.8+1322
   Spectrum: PowerLaw
241    Prefactor:  4.460e+01  1.461e+02  1.000e-04  1.000e+04 ( 1.000e-12)
242        Index:  2.678e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
243        Scale:  5.510e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
497    Prefactor:  7.733e-01  1.739e-01  0.000e+00  1.000e+01 ( 1.000e+00)
498        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
499        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
496   Normalization:  1.000e-02  3.683e-05  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.15
Ra Dec: 37.962 13.369
Photon Flux Upper Limit: 2.41e-06 ph cm-2 s-1
Energy Flux Upper Limit: 1.90e-01 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/499931/likelihoodResults_608688001_608947201_4FGL_J0231.8+1322_daily_bin1425.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) = 827.69696317
delta logL = 0.0436954514939

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 827.691433226
delta logL = 0.04922539555

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    58.602       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2271       1.0000          .0000       10.000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .77183       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5000E+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=   827.6914     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      264 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     58.484        135.61        .26204E-03    .88994E-05
   2  Index         2.2283        1.2518        .78108E-02    .13376E-05
   3  Normalizat    .10000E-01    .55661        .11059E-01** at limit **
   4  Prefactor     .77190        .14572        .15149E-03    .15160E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 58.4838
  Index      = 2.22831
  Normalizat = 0.01
  Prefactor  = 0.771895
 **********
 **   18 **HESSE 
 **********

 FCN=   827.6914     FROM HESSE     STATUS=OK            25 CALLS      289 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     58.484        135.91        .10482E-04   -1.4177    
   2  Index         2.2283        1.2547        .31243E-03   -.58757    
   3  Normalizat    .10000E-01    .55679        .22118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .77190        .14568        .30298E-04   -1.0077    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.31857e-10
Minuit parameter uncertainties:
  1  136.644
  2  1.27452
  3  9.18779e-06
  4  0.145752
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/499931': 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) = 827.691432118
delta logL = 0.049226503345

Extracting fit parameters...

4FGL J0231.8+1322
   Spectrum: PowerLaw
241    Prefactor:  5.848e+01  1.366e+02  1.000e-04  1.000e+04 ( 1.000e-12)
242        Index:  2.228e+00  1.275e+00  0.000e+00  1.000e+01 (-1.000e+00)
243        Scale:  5.510e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
497    Prefactor:  7.719e-01  1.458e-01  0.000e+00  1.000e+01 ( 1.000e+00)
498        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
499        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
496   Normalization:  1.000e-02  9.188e-06  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.15
Ra Dec: 37.962 13.369

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/499931/cmap_HighResolution_608688001_608947201_4FGL_J0231.8+1322_daily_bin1425.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.90e-01', job_status='DONE', photon_flux_upper_limit='2.41e-06', time_completed='2021-08-16 04:07:00.790217', job_id='499931', GAL2='0.77', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1629112020.79', return_code2='0', ts='0.15', comment='SUCCESS', return_code='0', GAL='0.77', dlogl='4.92e-02', ts2='0.25', photon_index_error='0.00', photon_index='2.68' WHERE bin_id='1425' AND source_name='4FGL J0231.8+1322' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 16 04:07:00 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0024>
Subject: Job 499931: <4FGL_J0231.8+1322_daily_bin1425> in cluster <slac> Done

Job <4FGL_J0231.8+1322_daily_bin1425> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Mon Aug 16 03:55:37 2021
Job was executed on host(s) <bullet0024>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Aug 16 03:56:19 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Aug 16 03:56:19 2021
Terminated at Mon Aug 16 04:07:01 2021
Results reported at Mon Aug 16 04:07:01 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0231.8+1322_daily_bin1425 37.9616 13.3692 608688001 608947201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0231.8+1322 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   461.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             244.65 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   642 sec.
    Turnaround time :                            684 sec.

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

