aklog: Couldn't determine realm of user:aklog: No credentials cache found  while getting realm
/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 us/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 172 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 = 7460
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0224.2+0700_daily_bin1772
RA = 36.0577, Dec = 7.0126
tmin = 698630401, tmax = 698889601
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='610038', job_status='RUN', time_executed='2023-02-24 06:19:19.132075', time_epoch_executed='1677248359.13' WHERE source_name='4FGL J0224.2+0700' and cadence='daily' and bin_id='1772'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/610038

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/610038/ft1_4FGL_J0224.2+0700_daily_bin1772.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/610038/ft2_4FGL_J0224.2+0700_daily_bin1772.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/610038/ft1_4FGL_J0224.2+0700_daily_bin1772.fits outfile=/scratch/kocevski/610038/ft1_filteredMKT_4FGL_J0224.2+0700_daily_bin1772.fits ra=36.0577 dec=7.0126 rad=12.0 tmin=698630401.0 tmax=698889601.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.00
user 2.79
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/610038/ft2_4FGL_J0224.2+0700_daily_bin1772.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/610038/ft2_4FGL_J0224.2+0700_daily_bin1772.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/610038/ft1_filteredMKT_4FGL_J0224.2+0700_daily_bin1772.fits evtable="EVENTS" outfile="/scratch/kocevski/610038/ft1_filtered_4FGL_J0224.2+0700_daily_bin1772.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.49
user 0.34
sys 0.14

Number of photons that the gtmktime cut: 1016

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/610038/ft1_filtered_4FGL_J0224.2+0700_daily_bin1772.fits" evtable="EVENTS" scfile=/scratch/kocevski/610038/ft2_4FGL_J0224.2+0700_daily_bin1772.fits sctable="SC_DATA" outfile=/scratch/kocevski/610038/ltcube_698630401_698889601_4FGL_J0224.2+0700_daily_bin1772.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/610038/ft2_4FGL_J0224.2+0700_daily_bin1772.fits
.....................!
real 12.23
user 11.91
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/610038/ft1_filtered_4FGL_J0224.2+0700_daily_bin1772.fits evtable="EVENTS" scfile=/scratch/kocevski/610038/ft2_4FGL_J0224.2+0700_daily_bin1772.fits sctable="SC_DATA" expcube=/scratch/kocevski/610038/ltcube_698630401_698889601_4FGL_J0224.2+0700_daily_bin1772.fits outfile=/scratch/kocevski/610038/expmap_698630401_698889601_4FGL_J0224.2+0700_daily_bin1772.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/610038/ltcube_698630401_698889601_4FGL_J0224.2+0700_daily_bin1772.fits
.....................!
real 190.65
user 185.88
sys 4.46

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

Setting source of interest to:
4FGL J0224.2+0700 @ 36.0577 7.0126

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/610038/ft1_filtered_4FGL_J0224.2+0700_daily_bin1772.fits scfile=/scratch/kocevski/610038/ft2_4FGL_J0224.2+0700_daily_bin1772.fits outfile=/scratch/kocevski/610038/cmap_698630401_698889601_4FGL_J0224.2+0700_daily_bin1772.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=36.0577 yref=7.0126 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.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/610038/ft1_filtered_4FGL_J0224.2+0700_daily_bin1772.fits scfile=/scratch/kocevski/610038/ft2_4FGL_J0224.2+0700_daily_bin1772.fits outfile=/scratch/kocevski/610038/cmap_HighResolution_698630401_698889601_4FGL_J0224.2+0700_daily_bin1772.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=36.0577 yref=7.0126 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.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/610038/ft1_filtered_4FGL_J0224.2+0700_daily_bin1772.fits evtable="EVENTS" scfile=/scratch/kocevski/610038/ft2_4FGL_J0224.2+0700_daily_bin1772.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/610038/Model_4FGL_J0224.2+0700_daily_bin1772.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/610038/ft1_filtered_4FGL_J0224.2+0700_daily_bin1772.fits.....................!
real 126.53
user 124.57
sys 1.11

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/610038/ft1_filtered_4FGL_J0224.2+0700_daily_bin1772.fits', '/scratch/kocevski/610038/ft2_4FGL_J0224.2+0700_daily_bin1772.fits', expMap='/scratch/kocevski/610038/expmap_698630401_698889601_4FGL_J0224.2+0700_daily_bin1772.fits', expCube='/scratch/kocevski/610038/ltcube_698630401_698889601_4FGL_J0224.2+0700_daily_bin1772.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/610038/Model_4FGL_J0224.2+0700_daily_bin1772.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0224.2+0700'

4FGL J0224.2+0700
   Spectrum: PowerLaw
251    Prefactor:  3.952e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
252        Index:  2.502e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
253        Scale:  9.262e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/610038/ft1_filtered_4FGL_J0224.2+0700_daily_bin1772.fits
Spacecraft file(s): /scratch/kocevski/610038/ft2_4FGL_J0224.2+0700_daily_bin1772.fits
Exposure map: /scratch/kocevski/610038/expmap_698630401_698889601_4FGL_J0224.2+0700_daily_bin1772.fits
Exposure cube: /scratch/kocevski/610038/ltcube_698630401_698889601_4FGL_J0224.2+0700_daily_bin1772.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/610038/Model_4FGL_J0224.2+0700_daily_bin1772.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) = 10950.9679099

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.6020       1.0000          .0000       .10000E+07
     2 'norm      '    .34506E-05   1.0000          .0000       .10000E+07
     3 'Prefactor '    4.9178       1.0000          .0000       .10000E+07
     4 'Prefactor '    10.347       1.0000          .0000       .10000E+07
     5 'norm      '    11.331       1.0000          .0000       .10000E+07
     6 'Prefactor '    3.1204       1.0000          .0000       .10000E+07
     7 'norm      '    2.5756       1.0000          .0000       .10000E+07
     8 'Prefactor '    .58676E-02   1.0000          .0000       .10000E+07
     9 'Prefactor '    .10236E-01   1.0000          .0000       .10000E+07
    10 'Prefactor '    16.333       1.0000          .0000       .10000E+07
    11 'Prefactor '    .98921E-06   1.0000          .0000       .10000E+07
    12 'Prefactor '    11.110       1.0000          .0000       .10000E+07
    13 'Prefactor '    .11252E-02   1.0000          .0000       .10000E+07
    14 'norm      '    .75487       1.0000          .0000       .10000E+07
    15 'Prefactor '    .18671E-01   1.0000          .0000       .10000E+07
    16 'Prefactor '    .47432E-02   1.0000          .0000       .10000E+07
    17 'norm      '    12.737       1.0000          .0000       .10000E+07
    18 'Prefactor '    3.3684       1.0000          .0000       .10000E+07
    19 'Prefactor '    .39993E-02   1.0000          .0000       .10000E+07
    20 'Prefactor '    18.333       1.0000          .0000       .10000E+07
    21 'Prefactor '    10.678       1.0000          .0000       .10000E+07
    22 'norm      '    10.453       1.0000          .0000       .10000E+07
    23 'norm      '    11.029       1.0000          .0000       .10000E+07
    24 'Prefactor '    3.2778       1.0000          .0000       .10000E+07
    25 'norm      '    .12073E-05   1.0000          .0000       .10000E+07
    26 'Normalizat'    .70453       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.0919       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5330E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   10950.84     FROM MIGRAD    STATUS=CONVERGED    183 CALLS     1915 TOTAL
                     EDM=   .23E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.6100        3.9980       -.21086E-07   -.89196E-03
   2  norm          .55511E-10    7.0275       -.79051E-07** at limit **
   3  Prefactor     4.9413        4.1445        .17084E-07    .21576E-03
   4  Prefactor     10.348        2.9193        .66680E-08    .46619E-03
   5  norm          11.338        4.6209        .42374E-08    .13239E-03
   6  Prefactor     3.1093        2.0909        .44029E-07    .20219E-02
   7  norm          2.5763        .78581       -.10779E-09   -.17184E-03
   8  Prefactor     .17208E-08    8.0781       -.19732E-07** at limit **
   9  Prefactor     .41728E-06    20.769       -.32692E-06** at limit **
  10  Prefactor     18.052        44.846       -.19266E-07   -.45718E-02
  11  Prefactor      .0000        2.0332        .25584E-07** at limit **
  12  Prefactor     11.162        15.448       -.23627E-07   -.12791E-01
  13  Prefactor     .55339E-06    18.592       -.26509E-06** at limit **
  14  norm          .75479        .42351       -.39118E-08   -.19696E-03
  15  Prefactor      .0000        17.111       -.15450E-07** at limit **
  16  Prefactor     .94369E-09    19.141        .84847E-07** at limit **
  17  norm          12.962        10.168        .80838E-07    .23097E-03
  18  Prefactor     3.4023        4.0968        .19745E-07   -.34364E-01
  19  Prefactor     .18724E-06    53.667       -.14622E-06** at limit **
  20  Prefactor     18.247        2.2774       -.58947E-08    .10057E-01
  21  Prefactor     10.604        6.1486        .78599E-08   -.42365E-03
  22  norm          10.405        10.449       -.21500E-07   -.29311E-02
  23  norm          11.021        4.1132       -.58995E-08   -.43326E-03
  24  Prefactor     3.2843        3.1018       -.36882E-07   -.88156E-03
  25  norm           .0000        2.6216        .11489E-06** at limit **
  26  Normalizat    .70452        .17156       -.91141E-06    .33933E-05
  27  Prefactor     1.0913        .10198        .38066E-06    .44774E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.61003
  norm       = 5.55112e-11
  Prefactor  = 4.94134
  Prefactor  = 10.3481
  norm       = 11.3382
  Prefactor  = 3.10931
  norm       = 2.57629
  Prefactor  = 1.72085e-09
  Prefactor  = 4.17277e-07
  Prefactor  = 18.0518
  Prefactor  = 0
  Prefactor  = 11.1617
  Prefactor  = 5.53391e-07
  norm       = 0.754793
  Prefactor  = 0
  Prefactor  = 9.4369e-10
  norm       = 12.9623
  Prefactor  = 3.40233
  Prefactor  = 1.87239e-07
  Prefactor  = 18.2471
  Prefactor  = 10.6042
  norm       = 10.4053
  norm       = 11.0206
  Prefactor  = 3.28428
  norm       = 0
  Normalizat = 0.704523
  Prefactor  = 1.09132
 **********
 **   18 **HESSE 
 **********

 FCN=   10950.84     FROM HESSE     STATUS=OK           548 CALLS     2463 TOTAL
                     EDM=   .13E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.6100        3.9994        .42421E-03   -1.5661    
   2  norm          .55511E-10    7.0286        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     4.9413        4.1477        .45331E-03   -1.5664    
   4  Prefactor     10.348        2.9243        .31124E-03   -1.5644    
   5  norm          11.338        4.6290        .29737E-03   -1.5641    
   6  Prefactor     3.1093        2.1001        .57372E-03   -1.5673    
   7  norm          2.5763        .78707        .63569E-03   -1.5676    
   8  Prefactor     .17208E-08    8.0968        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .41728E-06    36.420        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     18.052        45.246        .24756E-03   -1.5623    
  11  Prefactor      .0000        2.0369        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     11.162        15.857        .30032E-03   -1.5641    
  13  Prefactor     .55339E-06    38.676        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .75479        .45931        .56362E-03   -1.5691    
  15  Prefactor      .0000        17.000        .17126E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .94369E-09    19.288        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          12.962        10.149        .28041E-03   -1.5636    
  18  Prefactor     3.4023        19.013        .55111E-03   -1.5671    
  19  Prefactor     .18724E-06    55.538        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     18.247        28.893        .23364E-03   -1.5623    
  21  Prefactor     10.604        6.1640        .30637E-03   -1.5643    
  22  norm          10.405        10.459        .30966E-03   -1.5643    
  23  norm          11.021        4.1108        .30143E-03   -1.5642    
  24  Prefactor     3.2843        3.1011        .55905E-03   -1.5672    
  25  norm           .0000        2.6094        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .70452        .15989        .85090E-01   -1.0371    
  27  Prefactor     1.0913        .93375E-01    .37904E-01   -.89745    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.34006e-07
Minuit parameter uncertainties:
  1  3.9994
  2  4.78024e-05
  3  4.14771
  4  2.92426
  5  4.62899
  6  2.10009
  7  0.787073
  8  0.000236245
  9  0.00779695
  10  45.2466
  11  4.01512e-06
  12  15.8571
  13  0.00925262
  14  0.459308
  15  6.46098e-06
  16  0.00026951
  17  10.1488
  18  16.0859
  19  0.00644945
  20  28.8936
  21  6.16398
  22  10.4591
  23  4.11076
  24  3.10113
  25  1.02216e-05
  26  0.159993
  27  0.0933889
Done.

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

Extracting fit parameters...

4FGL J0224.2+0700
   Spectrum: PowerLaw
251    Prefactor:  1.721e-09  2.362e-04  0.000e+00  1.000e+06 ( 1.000e-13)
252        Index:  2.502e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
253        Scale:  9.262e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
530    Prefactor:  1.091e+00  9.339e-02  0.000e+00  1.000e+01 ( 1.000e+00)
531        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
532        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
529   Normalization:  7.045e-01  1.600e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 36.058 7.013
Photon Flux Upper Limit: 5.81e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.52e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/610038/likelihoodResults_698630401_698889601_4FGL_J0224.2+0700_daily_bin1772.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) = 10950.8386082
delta logL = -0.000643068397039

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 10950.8379653
delta logL = -1.74573870027e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .61062E-09   1.0000          .0000       .10000E+07
     2 'Index     '    1.3732       1.0000          .0000       10.000    
     3 'Normalizat'    .70450       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0914       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5330E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   10950.84     FROM MIGRAD    STATUS=CONVERGED     39 CALLS      235 TOTAL
                     EDM=   .50E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        7.6898        .42118E-03** at limit **
   2  Index         2.5810        1.3533        .67434E-04     .0000    
   3  Normalizat    .70452        1.0442        .15374E-04   -.11210E-03
   4  Prefactor     1.0913        1.1544       -.15512E-04   -.43690E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 2.58099
  Normalizat = 0.704524
  Prefactor  = 1.09132
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   10950.84     FROM HESSE     STATUS=FAILED         9 CALLS      244 TOTAL
                     EDM=   .50E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        7.6898        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .75261        1.9470        .67434E-04   -.50499    
   3  Normalizat    .70452        1.0442        .15374E-04   -1.0371    
   4  Prefactor     1.0913        1.1544       -.15512E-04   -.89745    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 4.95648e-11
Minuit parameter uncertainties:
  1  1.97863e-05
  2  1.37586
  3  1.07607
  4  1.1825
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/610038': 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) = 10950.8379652
delta logL = 6.91215973347e-11

Extracting fit parameters...

4FGL J0224.2+0700
   Spectrum: PowerLaw
251    Prefactor:  0.000e+00  1.979e-05  0.000e+00  1.000e+06 ( 1.000e-13)
252        Index:  2.581e+00  1.376e+00  0.000e+00  1.000e+01 (-1.000e+00)
253        Scale:  9.262e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
530    Prefactor:  1.091e+00  1.182e+00  0.000e+00  1.000e+01 ( 1.000e+00)
531        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
532        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
529   Normalization:  7.045e-01  1.076e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 36.058 7.013

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/610038/cmap_HighResolution_698630401_698889601_4FGL_J0224.2+0700_daily_bin1772.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.52e-03', job_status='DONE', photon_flux_upper_limit='5.81e-08', time_completed='2023-02-24 06:33:35.940491', job_id='610038', GAL2='1.09', fit_tolerance='1e-08', EG2='0.70', EG='0.70', time_epoch_completed='1677249215.94', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.09', dlogl='6.91e-11', ts2='0.00', photon_index_error='0.00', photon_index='2.50' WHERE bin_id='1772' AND source_name='4FGL J0224.2+0700' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Feb 24 06:33:35 PST 2023

'daily';

Database successfully updated.


Analysis Complete.


Fri Feb 24 00:33:06 PST 2023



------------------------------------------------------------
Sender: LSF System <lsf@bullet0210>
Subject: Job 610011: <4FGL_J0224.2+0700_daily_bin1772> in cluster <slac> Done

Job <4FGL_J0224.2+0700_daily_bin1772> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Fri Feb 24 00:10:21 2023
Job was executed on host(s) <bullet0210>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Feb 24 00:10:29 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Feb 24 00:10:29 2023
Terminated at Fri Feb 24 00:32:16 2023
Results reported at Fri Feb 24 00:32:16 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0224.2+0700_daily_bin1772 36.0577 7.0126 698630401 698889601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0224.2+0700 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   873.00 sec.
    Max Memory :                                 618 MB
    Average Memory :                             243.72 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   1306 sec.
    Turnaround time :                            1315 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0203>
Subject: Job 610009: <4FGL_J0224.2+0700_daily_bin1772> in cluster <slac> Done

Job <4FGL_J0224.2+0700_daily_bin1772> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Fri Feb 24 00:10:21 2023
Job was executed on host(s) <bullet0203>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Feb 24 00:10:29 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Feb 24 00:10:29 2023
Terminated at Fri Feb 24 00:33:06 2023
Results reported at Fri Feb 24 00:33:06 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0224.2+0700_daily_bin1772 36.0577 7.0126 698630401 698889601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0224.2+0700 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   875.08 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             252.71 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   1357 sec.
    Turnaround time :                            1365 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0130>
Subject: Job 610038: <4FGL_J0224.2+0700_daily_bin1772> in cluster <slac> Done

Job <4FGL_J0224.2+0700_daily_bin1772> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Fri Feb 24 00:10:22 2023
Job was executed on host(s) <bullet0130>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Feb 24 00:10:29 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Feb 24 00:10:29 2023
Terminated at Fri Feb 24 06:33:36 2023
Results reported at Fri Feb 24 06:33:36 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0224.2+0700_daily_bin1772 36.0577 7.0126 698630401 698889601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0224.2+0700 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   866.06 sec.
    Max Memory :                                 617 MB
    Average Memory :                             58.78 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   22987 sec.
    Turnaround time :                            22994 sec.

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

