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


Performing analysis on: 4FGL_J0224.2+0700_daily_bin1780
RA = 36.0577, Dec = 7.0126
tmin = 700704001, tmax = 700963201
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='49174', job_status='RUN', time_executed='2023-03-20 00:07:55.057213', time_epoch_executed='1679296075.06' WHERE source_name='4FGL J0224.2+0700' and cadence='daily' and bin_id='1780'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/49174

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/49174/ft1_4FGL_J0224.2+0700_daily_bin1780.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/49174/ft2_4FGL_J0224.2+0700_daily_bin1780.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/49174/ft1_4FGL_J0224.2+0700_daily_bin1780.fits outfile=/scratch/kocevski/49174/ft1_filteredMKT_4FGL_J0224.2+0700_daily_bin1780.fits ra=36.0577 dec=7.0126 rad=12.0 tmin=700704001.0 tmax=700963201.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 4.37
user 3.96
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/49174/ft2_4FGL_J0224.2+0700_daily_bin1780.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/49174/ft1_filteredMKT_4FGL_J0224.2+0700_daily_bin1780.fits evtable="EVENTS" outfile="/scratch/kocevski/49174/ft1_filtered_4FGL_J0224.2+0700_daily_bin1780.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.60
user 0.31
sys 0.17

Number of photons that the gtmktime cut: 614

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/49174/ft1_filtered_4FGL_J0224.2+0700_daily_bin1780.fits" evtable="EVENTS" scfile=/scratch/kocevski/49174/ft2_4FGL_J0224.2+0700_daily_bin1780.fits sctable="SC_DATA" outfile=/scratch/kocevski/49174/ltcube_700704001_700963201_4FGL_J0224.2+0700_daily_bin1780.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/49174/ft2_4FGL_J0224.2+0700_daily_bin1780.fits
.....................!
real 18.66
user 18.23
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/49174/ft1_filtered_4FGL_J0224.2+0700_daily_bin1780.fits evtable="EVENTS" scfile=/scratch/kocevski/49174/ft2_4FGL_J0224.2+0700_daily_bin1780.fits sctable="SC_DATA" expcube=/scratch/kocevski/49174/ltcube_700704001_700963201_4FGL_J0224.2+0700_daily_bin1780.fits outfile=/scratch/kocevski/49174/expmap_700704001_700963201_4FGL_J0224.2+0700_daily_bin1780.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/49174/ltcube_700704001_700963201_4FGL_J0224.2+0700_daily_bin1780.fits
.....................!
real 189.35
user 184.95
sys 4.09

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/49174/ft1_filtered_4FGL_J0224.2+0700_daily_bin1780.fits scfile=/scratch/kocevski/49174/ft2_4FGL_J0224.2+0700_daily_bin1780.fits outfile=/scratch/kocevski/49174/cmap_700704001_700963201_4FGL_J0224.2+0700_daily_bin1780.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.53
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/49174/ft1_filtered_4FGL_J0224.2+0700_daily_bin1780.fits scfile=/scratch/kocevski/49174/ft2_4FGL_J0224.2+0700_daily_bin1780.fits outfile=/scratch/kocevski/49174/cmap_HighResolution_700704001_700963201_4FGL_J0224.2+0700_daily_bin1780.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.36
sys 0.17

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/49174/ft1_filtered_4FGL_J0224.2+0700_daily_bin1780.fits', '/scratch/kocevski/49174/ft2_4FGL_J0224.2+0700_daily_bin1780.fits', expMap='/scratch/kocevski/49174/expmap_700704001_700963201_4FGL_J0224.2+0700_daily_bin1780.fits', expCube='/scratch/kocevski/49174/ltcube_700704001_700963201_4FGL_J0224.2+0700_daily_bin1780.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/49174/Model_4FGL_J0224.2+0700_daily_bin1780.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/49174/ft1_filtered_4FGL_J0224.2+0700_daily_bin1780.fits
Spacecraft file(s): /scratch/kocevski/49174/ft2_4FGL_J0224.2+0700_daily_bin1780.fits
Exposure map: /scratch/kocevski/49174/expmap_700704001_700963201_4FGL_J0224.2+0700_daily_bin1780.fits
Exposure cube: /scratch/kocevski/49174/ltcube_700704001_700963201_4FGL_J0224.2+0700_daily_bin1780.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/49174/Model_4FGL_J0224.2+0700_daily_bin1780.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) = 6741.14219737

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .42003E-04   1.0000          .0000       .10000E+07
     2 'norm      '    6.2397       1.0000          .0000       .10000E+07
     3 'Prefactor '    .15462E-05   1.0000          .0000       .10000E+07
     4 'Prefactor '    5.7877       1.0000          .0000       .10000E+07
     5 'norm      '    11.031       1.0000          .0000       .10000E+07
     6 'Prefactor '    4.3688       1.0000          .0000       .10000E+07
     7 'norm      '    1.1905       1.0000          .0000       .10000E+07
     8 'Prefactor '    .20176E-03   1.0000          .0000       .10000E+07
     9 'Prefactor '    .19538E-03   1.0000          .0000       .10000E+07
    10 'Prefactor '    .22466E-03   1.0000          .0000       .10000E+07
    11 'Prefactor '    6.9211       1.0000          .0000       .10000E+07
    12 'Prefactor '    .54823E-03   1.0000          .0000       .10000E+07
    13 'Prefactor '    .15874E-04   1.0000          .0000       .10000E+07
    14 'norm      '    .88876       1.0000          .0000       .10000E+07
    15 'Prefactor '    .14716E-03   1.0000          .0000       .10000E+07
    16 'Prefactor '    14.324       1.0000          .0000       .10000E+07
    17 'norm      '    .38639E-03   1.0000          .0000       .10000E+07
    18 'Prefactor '    8.9279       1.0000          .0000       .10000E+07
    19 'Prefactor '    .54530       1.0000          .0000       .10000E+07
    20 'Prefactor '    .59865E-02   1.0000          .0000       .10000E+07
    21 'Prefactor '    1.9732       1.0000          .0000       .10000E+07
    22 'norm      '    14.714       1.0000          .0000       .10000E+07
    23 'norm      '    16.452       1.0000          .0000       .10000E+07
    24 'Prefactor '    .40850E-03   1.0000          .0000       .10000E+07
    25 'norm      '    .76689E-04   1.0000          .0000       .10000E+07
    26 'Normalizat'    1.0102       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.0213       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=   6741.012     FROM MIGRAD    STATUS=CONVERGED    189 CALLS     1901 TOTAL
                     EDM=   .73E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        2.6483       -.12463E-06** at limit **
   2  norm          6.2336        1.1747       -.32656E-07    .66054E-03
   3  Prefactor     .32380E-06    14.374       -.42366E-05** at limit **
   4  Prefactor     5.7872        3.7268        .39129E-07    .75189E-04
   5  norm          11.039        6.7018       -.19977E-06    .40588E-03
   6  Prefactor     4.3660        2.7851       -.76394E-07   -.11564E-02
   7  norm          1.1917        .84677       -.24603E-08   -.47947E-02
   8  Prefactor     .44409E-09    9.7721       -.14582E-05** at limit **
   9  Prefactor      .0000        8.7371        .10880E-05** at limit **
  10  Prefactor     .36410E-06    13.802        .14200E-06** at limit **
  11  Prefactor     6.9968        8.7794        .43539E-08   -.16819E-02
  12  Prefactor     .37415E-07    18.958        .54810E-05** at limit **
  13  Prefactor      .0000        4.6062        .20604E-06** at limit **
  14  norm          .88827        .47551       -.27460E-07   -.21936E-02
  15  Prefactor     .12768E-08    125.53        .24823E-05** at limit **
  16  Prefactor     14.389        1.0505       -.20530E-07   -.56590E-03
  17  norm           .0000        13.951        .15638E-05** at limit **
  18  Prefactor     9.0864        1.9638       -.39965E-06   -.87700E-02
  19  Prefactor     .28533E-07    212.99       -.45924E-05** at limit **
  20  Prefactor     .16043E-07    16.538       -.44155E-05** at limit **
  21  Prefactor     1.9865        5.0998       -.19381E-06    .52973E-03
  22  norm          14.712        10.160       -.51640E-06    .53181E-03
  23  norm          16.466        5.5321        .63637E-07   -.49239E-03
  24  Prefactor     .59286E-07    2.6254       -.11399E-05** at limit **
  25  norm          .16653E-09    8.6411        .39552E-06** at limit **
  26  Normalizat    1.0099        .22660       -.54757E-05   -.60723E-04
  27  Prefactor     1.0213        .12597        .45594E-05   -.67730E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  norm       = 6.23364
  Prefactor  = 3.23797e-07
  Prefactor  = 5.78723
  norm       = 11.0389
  Prefactor  = 4.36604
  norm       = 1.19166
  Prefactor  = 4.44089e-10
  Prefactor  = 0
  Prefactor  = 3.64098e-07
  Prefactor  = 6.99683
  Prefactor  = 3.74145e-08
  Prefactor  = 0
  norm       = 0.888271
  Prefactor  = 1.27676e-09
  Prefactor  = 14.3889
  norm       = 0
  Prefactor  = 9.0864
  Prefactor  = 2.85327e-08
  Prefactor  = 1.60427e-08
  Prefactor  = 1.98653
  norm       = 14.7125
  norm       = 16.4656
  Prefactor  = 5.92859e-08
  norm       = 1.66533e-10
  Normalizat = 1.00986
  Prefactor  = 1.02135
 **********
 **   18 **HESSE 
 **********

 FCN=   6741.012     FROM HESSE     STATUS=OK           548 CALLS     2449 TOTAL
                     EDM=   .45E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        2.6564        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          6.2336        15.029        .40163E-03   -1.5658    
   3  Prefactor     .32380E-06    27.866        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     5.7872        3.7332        .41724E-03   -1.5660    
   5  norm          11.039        6.7161        .30140E-03   -1.5642    
   6  Prefactor     4.3660        2.7844        .48164E-03   -1.5666    
   7  norm          1.1917        .85425        .10436E-02   -1.5686    
   8  Prefactor     .44409E-09    9.8023        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor      .0000        8.7536        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .36410E-06    25.442        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     6.9968        8.8128        .38111E-03   -1.5655    
  12  Prefactor     .37415E-07    20.437        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor      .0000        4.6188        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .88827        .48672        .46540E-03   -1.5689    
  15  Prefactor     .12768E-08    125.55        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     14.389        15.881        .26439E-03   -1.5632    
  17  norm           .0000        13.984        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     9.0864        16.539        .33521E-03   -1.5648    
  19  Prefactor     .28533E-07    210.51        .74277E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .16043E-07    17.345        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     1.9865        5.1563        .73779E-03   -1.5680    
  22  norm          14.712        10.164        .26085E-03   -1.5631    
  23  norm          16.466        5.5240        .24666E-03   -1.5627    
  24  Prefactor     .59286E-07    4.0672        .58247E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .16653E-09    8.6276        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    1.0099        .20936        .77879E-01   -.92701    
  27  Prefactor     1.0213        .11437        .42011E-01   -.92021    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.46219e-08
Minuit parameter uncertainties:
  1  1.34037e-07
  2  15.0294
  3  0.00600768
  4  3.73323
  5  6.7161
  6  2.7844
  7  0.854245
  8  0.000132887
  9  7.74596e-06
  10  0.00608718
  11  8.81277
  12  0.00174932
  13  2.19209e-05
  14  0.48672
  15  0.000795609
  16  15.8806
  17  2.91102e-05
  18  16.5394
  19  0.00489976
  20  0.00105442
  21  5.15629
  22  10.1637
  23  5.52405
  24  0.000981924
  25  7.31437e-05
  26  0.209532
  27  0.1144
Done.

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

Extracting fit parameters...

4FGL J0224.2+0700
   Spectrum: PowerLaw
251    Prefactor:  4.441e-10  1.329e-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.021e+00  1.144e-01  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:  1.010e+00  2.095e-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: 7.39e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.75e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/49174/likelihoodResults_700704001_700963201_4FGL_J0224.2+0700_daily_bin1780.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6741.01237966
delta logL = -6.27502786301e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6741.01231719
delta logL = -2.84006091533e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .81546E-07   1.0000          .0000       .10000E+07
     2 'Index     '    .88326       1.0000          .0000       10.000    
     3 'Normalizat'    1.0098       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0214       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=   6741.012     FROM MIGRAD    STATUS=CONVERGED     34 CALLS      232 TOTAL
                     EDM=   .94E-13  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        10.729        .72238E-06** at limit **
   2  Index         2.3876        3.5446       -.36867E-04     .0000    
   3  Normalizat    1.0099        .21796       -.22653E-05   -.90804E-05
   4  Prefactor     1.0213        .12313        .22700E-05   -.92946E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 2.38761
  Normalizat = 1.00986
  Prefactor  = 1.02135
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   6741.012     FROM HESSE     STATUS=FAILED        11 CALLS      243 TOTAL
                     EDM=   .94E-13  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        10.726        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .63882        2.0065       -.36867E-04   -.54975    
   3  Normalizat    1.0099        1.3388       -.22653E-05   -.92701    
   4  Prefactor     1.0213        1.2349        .22700E-05   -.92021    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 9.38356e-14
Minuit parameter uncertainties:
  1  3.37717e-08
  2  1.90957
  3  1.38784
  4  1.27195
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/49174': 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) = 6741.01231691
delta logL = 2.63753463514e-11

Extracting fit parameters...

4FGL J0224.2+0700
   Spectrum: PowerLaw
251    Prefactor:  0.000e+00  3.377e-08  0.000e+00  1.000e+06 ( 1.000e-13)
252        Index:  2.388e+00  1.910e+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.021e+00  1.272e+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:  1.010e+00  1.388e+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 -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/49174/cmap_HighResolution_700704001_700963201_4FGL_J0224.2+0700_daily_bin1780.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.75e-03', job_status='DONE', photon_flux_upper_limit='7.39e-08', time_completed='2023-03-20 00:18:47.581363', job_id='49174', GAL2='1.02', fit_tolerance='1e-08', EG2='1.01', EG='1.01', time_epoch_completed='1679296727.58', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.02', dlogl='2.64e-11', ts2='0.00', photon_index_error='0.00', photon_index='2.50' WHERE bin_id='1780' AND source_name='4FGL J0224.2+0700' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Mar 20 00:18:47 PDT 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0246>
Subject: Job 49174: <4FGL_J0224.2+0700_daily_bin1780> in cluster <slac> Done

Job <4FGL_J0224.2+0700_daily_bin1780> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Mon Mar 20 00:05:08 2023
Job was executed on host(s) <bullet0246>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Mar 20 00:05:10 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Mar 20 00:05:10 2023
Terminated at Mon Mar 20 00:18:48 2023
Results reported at Mon Mar 20 00:18:48 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0224.2+0700_daily_bin1780 36.0577 7.0126 700704001 700963201 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 :                                   653.34 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             325.56 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   817 sec.
    Turnaround time :                            820 sec.

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

