/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 153 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 make4FGLDR3xml version 01r09.
The default diffuse model files and names are for P8R3, 4FGL DRs, and the default fermitools directory locations.

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


Performing analysis on: 4FGL_J0231.8+1322_daily_bin1748
RA = 37.9616, Dec = 13.3692
tmin = 692409601, tmax = 692668801
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='875700', job_status='RUN', time_executed='2022-12-14 00:08:02.930531', time_epoch_executed='1671005282.93' WHERE source_name='4FGL J0231.8+1322' and cadence='daily' and bin_id='1748'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/875700

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/875700/ft1_4FGL_J0231.8+1322_daily_bin1748.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/875700/ft2_4FGL_J0231.8+1322_daily_bin1748.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/875700/ft1_4FGL_J0231.8+1322_daily_bin1748.fits outfile=/scratch/kocevski/875700/ft1_filteredMKT_4FGL_J0231.8+1322_daily_bin1748.fits ra=37.9616 dec=13.3692 rad=12.0 tmin=692409601.0 tmax=692668801.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 3.58
user 3.36
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/875700/ft2_4FGL_J0231.8+1322_daily_bin1748.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/875700/ft1_filteredMKT_4FGL_J0231.8+1322_daily_bin1748.fits evtable="EVENTS" outfile="/scratch/kocevski/875700/ft1_filtered_4FGL_J0231.8+1322_daily_bin1748.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 0.61
user 0.33
sys 0.15

Number of photons that the gtmktime cut: 743

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/875700/ft1_filtered_4FGL_J0231.8+1322_daily_bin1748.fits" evtable="EVENTS" scfile=/scratch/kocevski/875700/ft2_4FGL_J0231.8+1322_daily_bin1748.fits sctable="SC_DATA" outfile=/scratch/kocevski/875700/ltcube_692409601_692668801_4FGL_J0231.8+1322_daily_bin1748.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/875700/ft2_4FGL_J0231.8+1322_daily_bin1748.fits
.....................!
real 12.00
user 11.67
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/875700/ft1_filtered_4FGL_J0231.8+1322_daily_bin1748.fits evtable="EVENTS" scfile=/scratch/kocevski/875700/ft2_4FGL_J0231.8+1322_daily_bin1748.fits sctable="SC_DATA" expcube=/scratch/kocevski/875700/ltcube_692409601_692668801_4FGL_J0231.8+1322_daily_bin1748.fits outfile=/scratch/kocevski/875700/expmap_692409601_692668801_4FGL_J0231.8+1322_daily_bin1748.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/875700/ltcube_692409601_692668801_4FGL_J0231.8+1322_daily_bin1748.fits
.....................!
real 190.55
user 185.56
sys 4.65

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/875700/ft1_filtered_4FGL_J0231.8+1322_daily_bin1748.fits scfile=/scratch/kocevski/875700/ft2_4FGL_J0231.8+1322_daily_bin1748.fits outfile=/scratch/kocevski/875700/cmap_692409601_692668801_4FGL_J0231.8+1322_daily_bin1748.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 0.53
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/875700/ft1_filtered_4FGL_J0231.8+1322_daily_bin1748.fits scfile=/scratch/kocevski/875700/ft2_4FGL_J0231.8+1322_daily_bin1748.fits outfile=/scratch/kocevski/875700/cmap_HighResolution_692409601_692668801_4FGL_J0231.8+1322_daily_bin1748.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 0.54
user 0.36
sys 0.17

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/875700/ft1_filtered_4FGL_J0231.8+1322_daily_bin1748.fits', '/scratch/kocevski/875700/ft2_4FGL_J0231.8+1322_daily_bin1748.fits', expMap='/scratch/kocevski/875700/expmap_692409601_692668801_4FGL_J0231.8+1322_daily_bin1748.fits', expCube='/scratch/kocevski/875700/ltcube_692409601_692668801_4FGL_J0231.8+1322_daily_bin1748.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/875700/Model_4FGL_J0231.8+1322_daily_bin1748.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  0.000e+00  1.000e+06 ( 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/875700/ft1_filtered_4FGL_J0231.8+1322_daily_bin1748.fits
Spacecraft file(s): /scratch/kocevski/875700/ft2_4FGL_J0231.8+1322_daily_bin1748.fits
Exposure map: /scratch/kocevski/875700/expmap_692409601_692668801_4FGL_J0231.8+1322_daily_bin1748.fits
Exposure cube: /scratch/kocevski/875700/ltcube_692409601_692668801_4FGL_J0231.8+1322_daily_bin1748.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/875700/Model_4FGL_J0231.8+1322_daily_bin1748.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) = 8291.99836141

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .27319E-03   1.0000          .0000       .10000E+07
     2 'Prefactor '    5.9311       1.0000          .0000       .10000E+07
     3 'Prefactor '    7.3213       1.0000          .0000       .10000E+07
     4 'norm      '    14.515       1.0000          .0000       .10000E+07
     5 'Prefactor '    5.2269       1.0000          .0000       .10000E+07
     6 'Prefactor '    .21644E-01   1.0000          .0000       .10000E+07
     7 'Prefactor '    18.683       1.0000          .0000       .10000E+07
     8 'Prefactor '    .27285E-03   1.0000          .0000       .10000E+07
     9 'Prefactor '    106.40       1.0000          .0000       .10000E+07
    10 'Prefactor '    44.463       1.0000          .0000       .10000E+07
    11 'Prefactor '    .20706E-07   1.0000          .0000       .10000E+07
    12 'Prefactor '    .76533E-02   1.0000          .0000       .10000E+07
    13 'Prefactor '    .14522E-05   1.0000          .0000       .10000E+07
    14 'norm      '    1.0687       1.0000          .0000       .10000E+07
    15 'Prefactor '    55.615       1.0000          .0000       .10000E+07
    16 'Prefactor '    7.0749       1.0000          .0000       .10000E+07
    17 'norm      '    .55067E-07   1.0000          .0000       .10000E+07
    18 'Prefactor '    .20291E-03   1.0000          .0000       .10000E+07
    19 'Prefactor '    86.570       1.0000          .0000       .10000E+07
    20 'Prefactor '    .30255E-05   1.0000          .0000       .10000E+07
    21 'Prefactor '    .17266E-05   1.0000          .0000       .10000E+07
    22 'Prefactor '    .19142E-05   1.0000          .0000       .10000E+07
    23 'norm      '    .68848E-02   1.0000          .0000       .10000E+07
    24 'norm      '    6.7942       1.0000          .0000       .10000E+07
    25 'norm      '    3.5603       1.0000          .0000       .10000E+07
    26 'norm      '    .25851E-04   1.0000          .0000       .10000E+07
    27 'Prefactor '    .35579E-04   1.0000          .0000       .10000E+07
    28 'Normalizat'    .73855       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .98867       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5000E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8291.664     FROM MIGRAD    STATUS=CONVERGED    201 CALLS     2750 TOTAL
                     EDM=   .53E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .81324E-07    11.429       -.68060E-05** at limit **
   2  Prefactor     6.0902        9.4399        .25949E-06   -.89806E-03
   3  Prefactor     7.3169        3.8177       -.34163E-06   -.25740E-02
   4  norm          14.375        7.5677       -.24003E-06   -.10853E-01
   5  Prefactor     5.2044        5.7897       -.11331E-05   -.12195E-04
   6  Prefactor     .85888E-03    9.5691       -.58969E-06** at limit **
   7  Prefactor     18.385        3.6019       -.30165E-06    .34432E-01
   8  Prefactor     .16653E-09    22.165       -.90155E-06** at limit **
   9  Prefactor     111.84        71.716       -.27345E-05   -.18526E-01
  10  Prefactor     44.482        3.1842        .41422E-06   -.40736E-01
  11  Prefactor      .0000        3.0715        .18787E-06** at limit **
  12  Prefactor     .67724E-08    44.185       -.16052E-05** at limit **
  13  Prefactor     .55511E-10    5.8862       -.13470E-05** at limit **
  14  norm          1.0703        .51058        .87171E-07   -.54597E-02
  15  Prefactor     53.730        34.064        .33517E-05   -.45687E-01
  16  Prefactor     6.8910        2.5950        .59590E-06   -.73108E-02
  17  norm          .55511E-10    4.5204       -.66619E-06** at limit **
  18  Prefactor     .55511E-10    7.8904        .23503E-05** at limit **
  19  Prefactor     86.318        28.270        .11460E-05    .68856E-01
  20  Prefactor     .64948E-08    7.8830       -.28813E-05** at limit **
  21  Prefactor     .26540E-06    11.552       -.88835E-06** at limit **
  22  Prefactor     .76827E-06    5.6614       -.48769E-05** at limit **
  23  norm          .78604E-07    12.406        .65321E-05** at limit **
  24  norm          6.7270        6.7387       -.29683E-06    .51573E-03
  25  norm          3.5616        2.7267        .17749E-07    .11515E-02
  26  norm          .55511E-10    2.0413        .19057E-06** at limit **
  27  Prefactor      .0000        2.6227       -.33381E-06** at limit **
  28  Normalizat    .73941        .22720        .36514E-04   -.12930E-03
  29  Prefactor     .98851        .94668E-01   -.13515E-04   -.94283E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 8.13238e-08
  Prefactor  = 6.0902
  Prefactor  = 7.31687
  norm       = 14.3751
  Prefactor  = 5.20437
  Prefactor  = 0.000858883
  Prefactor  = 18.3855
  Prefactor  = 1.66533e-10
  Prefactor  = 111.841
  Prefactor  = 44.482
  Prefactor  = 0
  Prefactor  = 6.77236e-09
  Prefactor  = 5.55112e-11
  norm       = 1.0703
  Prefactor  = 53.7303
  Prefactor  = 6.89101
  norm       = 5.55112e-11
  Prefactor  = 5.55112e-11
  Prefactor  = 86.3185
  Prefactor  = 6.4948e-09
  Prefactor  = 2.65399e-07
  Prefactor  = 7.68274e-07
  norm       = 7.86038e-08
  norm       = 6.72696
  norm       = 3.56164
  norm       = 5.55112e-11
  Prefactor  = 0
  Normalizat = 0.739409
  Prefactor  = 0.988508
 **********
 **   18 **HESSE 
 **********

 FCN=   8291.664     FROM HESSE     STATUS=OK           617 CALLS     3367 TOTAL
                     EDM=   .70E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .81324E-07    12.151        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     6.0902        9.4904        .41209E-03   -1.5659    
   3  Prefactor     7.3169        3.8351        .37045E-03   -1.5654    
   4  norm          14.375        7.8659        .26263E-03   -1.5632    
   5  Prefactor     5.2044        5.8261        .43943E-03   -1.5662    
   6  Prefactor     .85888E-03    1.1504        .73733E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     18.385        23.027        .23144E-03   -1.5622    
   8  Prefactor     .16653E-09    22.268        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     111.84        73.335        .96954E-04   -1.5496    
  10  Prefactor     44.482        48.622        .14998E-03   -1.5575    
  11  Prefactor      .0000        3.0759        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .67724E-08    43.858        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .55511E-10    5.8959        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          1.0703        .51539        .97597E-03   -1.5687    
  15  Prefactor     53.730        55.351        .13410E-03   -1.5561    
  16  Prefactor     6.8910        18.954        .37691E-03   -1.5655    
  17  norm          .55511E-10    4.5248        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .55511E-10    7.8888        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     86.318        55.281        .10748E-03   -1.5522    
  20  Prefactor     .64948E-08    7.9037        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .26540E-06    14.987        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .76827E-06    16.696        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .78604E-07    12.930        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          6.7270        6.7410        .38470E-03   -1.5656    
  25  norm          3.5616        2.7275        .53539E-03   -1.5670    
  26  norm          .55511E-10    2.0408        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor      .0000        2.6190        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .73941        .22298        .94719E-01   -1.0236    
  29  Prefactor     .98851        .86980E-01    .46125E-01   -.93114    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.04472e-07
Minuit parameter uncertainties:
  1  0.00198783
  2  9.49045
  3  3.83508
  4  7.86587
  5  5.82607
  6  0.062866
  7  23.0269
  8  0.000129288
  9  73.3358
  10  48.6226
  11  6.02983e-06
  12  0.00108818
  13  3.64706e-05
  14  0.515393
  15  55.3517
  16  18.9543
  17  2.72643e-05
  18  3.6254e-05
  19  55.2818
  20  0.000452665
  21  0.00398884
  22  0.00716312
  23  0.00201659
  24  6.74098
  25  2.72746
  26  1.59123e-05
  27  2.41712e-06
  28  0.223251
  29  0.0869922
Done.

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

Extracting fit parameters...

4FGL J0231.8+1322
   Spectrum: PowerLaw
241    Prefactor:  0.000e+00  6.030e-06  0.000e+00  1.000e+06 ( 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:  9.885e-01  8.699e-02  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:  7.394e-01  2.233e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 37.962 13.369
Photon Flux Upper Limit: 8.36e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.57e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/875700/likelihoodResults_692409601_692668801_4FGL_J0231.8+1322_daily_bin1748.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) = 8291.66464347
delta logL = -0.00100618069519

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8291.66363766
delta logL = -3.70364432456e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .31253E-07   1.0000          .0000       .10000E+07
     2 'Index     '    .79730       1.0000          .0000       10.000    
     3 'Normalizat'    .73954       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98843       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.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   8291.664     FROM MIGRAD    STATUS=CONVERGED     61 CALLS      275 TOTAL
                     EDM=   .45E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        .52646        .42118E-03** at limit **
   2  Index         4.7824        2.1133       -.19271E-04     .0000    
   3  Normalizat    .73941        1.0791        .10775E-05   -.39026E-04
   4  Prefactor     .98851        1.3283        .20600E-05   -.13992E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 4.78244
  Normalizat = 0.739411
  Prefactor  = 0.988507
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   8291.664     FROM HESSE     STATUS=FAILED         9 CALLS      284 TOTAL
                     EDM=   .45E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        .52646        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3716        2.4313       -.19271E-04   -.43526E-01
   3  Normalizat    .73941        1.0791        .10775E-05   -1.0236    
   4  Prefactor     .98851        1.3283        .20600E-05   -.93114    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 4.47707e-12
Minuit parameter uncertainties:
  1  2.86309e-07
  2  2.18203
  3  1.11279
  4  1.37657
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/875700': 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): 101
logL (Free Index) = 8291.66363729
delta logL = 3.09228198603e-11

Extracting fit parameters...

4FGL J0231.8+1322
   Spectrum: PowerLaw
241    Prefactor:  0.000e+00  2.863e-07  0.000e+00  1.000e+06 ( 1.000e-12)
242        Index:  4.782e+00  2.182e+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:  9.885e-01  1.377e+00  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:  7.394e-01  1.113e+00  1.000e-02  1.000e+01 ( 1.000e+00)


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

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/875700/cmap_HighResolution_692409601_692668801_4FGL_J0231.8+1322_daily_bin1748.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.57e-03', job_status='DONE', photon_flux_upper_limit='8.36e-08', time_completed='2022-12-14 00:21:20.914169', job_id='875700', GAL2='0.99', fit_tolerance='1e-08', EG2='0.74', EG='0.74', time_epoch_completed='1671006080.91', return_code2='101', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.99', dlogl='3.09e-11', ts2='0.00', photon_index_error='0.00', photon_index='2.68' WHERE bin_id='1748' AND source_name='4FGL J0231.8+1322' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Dec 14 00:21:20 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0144>
Subject: Job 875700: <4FGL_J0231.8+1322_daily_bin1748> in cluster <slac> Done

Job <4FGL_J0231.8+1322_daily_bin1748> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Wed Dec 14 00:05:01 2022
Job was executed on host(s) <bullet0144>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Dec 14 00:05:02 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Dec 14 00:05:02 2022
Terminated at Wed Dec 14 00:21:21 2022
Results reported at Wed Dec 14 00:21:21 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0231.8+1322_daily_bin1748 37.9616 13.3692 692409601 692668801 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 :                                   799.28 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             339.74 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   979 sec.
    Turnaround time :                            980 sec.

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

