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


Performing analysis on: 4FGL_J0224.2+0700_daily_bin1723
RA = 36.0577, Dec = 7.0126
tmin = 685929601, tmax = 686188801
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='430304', job_status='RUN', time_executed='2022-09-30 00:07:16.571344', time_epoch_executed='1664521636.57' WHERE source_name='4FGL J0224.2+0700' and cadence='daily' and bin_id='1723'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/430304

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

Retrieving the FT1 file...

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

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

Retrieving 45 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/430304/ft1_4FGL_J0224.2+0700_daily_bin1723.fits


Retrieving the FT1 file...

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

Retrieving 45 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/430304/ft2_4FGL_J0224.2+0700_daily_bin1723.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/430304/ft1_4FGL_J0224.2+0700_daily_bin1723.fits outfile=/scratch/kocevski/430304/ft1_filteredMKT_4FGL_J0224.2+0700_daily_bin1723.fits ra=36.0577 dec=7.0126 rad=12.0 tmin=685929601.0 tmax=686188801.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.74
user 3.39
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/430304/ft2_4FGL_J0224.2+0700_daily_bin1723.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/430304/ft1_filteredMKT_4FGL_J0224.2+0700_daily_bin1723.fits evtable="EVENTS" outfile="/scratch/kocevski/430304/ft1_filtered_4FGL_J0224.2+0700_daily_bin1723.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.53
user 0.35
sys 0.15

Number of photons that the gtmktime cut: 594

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/430304/ft1_filtered_4FGL_J0224.2+0700_daily_bin1723.fits" evtable="EVENTS" scfile=/scratch/kocevski/430304/ft2_4FGL_J0224.2+0700_daily_bin1723.fits sctable="SC_DATA" outfile=/scratch/kocevski/430304/ltcube_685929601_686188801_4FGL_J0224.2+0700_daily_bin1723.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/430304/ft2_4FGL_J0224.2+0700_daily_bin1723.fits
.....................!
real 16.90
user 15.57
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/430304/ft1_filtered_4FGL_J0224.2+0700_daily_bin1723.fits evtable="EVENTS" scfile=/scratch/kocevski/430304/ft2_4FGL_J0224.2+0700_daily_bin1723.fits sctable="SC_DATA" expcube=/scratch/kocevski/430304/ltcube_685929601_686188801_4FGL_J0224.2+0700_daily_bin1723.fits outfile=/scratch/kocevski/430304/expmap_685929601_686188801_4FGL_J0224.2+0700_daily_bin1723.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/430304/ltcube_685929601_686188801_4FGL_J0224.2+0700_daily_bin1723.fits
.....................!
real 192.94
user 187.16
sys 4.66

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/430304/ft1_filtered_4FGL_J0224.2+0700_daily_bin1723.fits scfile=/scratch/kocevski/430304/ft2_4FGL_J0224.2+0700_daily_bin1723.fits outfile=/scratch/kocevski/430304/cmap_685929601_686188801_4FGL_J0224.2+0700_daily_bin1723.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.56
user 0.37
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/430304/ft1_filtered_4FGL_J0224.2+0700_daily_bin1723.fits scfile=/scratch/kocevski/430304/ft2_4FGL_J0224.2+0700_daily_bin1723.fits outfile=/scratch/kocevski/430304/cmap_HighResolution_685929601_686188801_4FGL_J0224.2+0700_daily_bin1723.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.56
user 0.40
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.3070       1.0000          .0000       .10000E+07
     2 'norm      '    5.0832       1.0000          .0000       .10000E+07
     3 'Prefactor '    11.494       1.0000          .0000       .10000E+07
     4 'Prefactor '    .66234E-03   1.0000          .0000       .10000E+07
     5 'norm      '    .85455E-05   1.0000          .0000       .10000E+07
     6 'Prefactor '    3.9711       1.0000          .0000       .10000E+07
     7 'norm      '    1.5996       1.0000          .0000       .10000E+07
     8 'Prefactor '    .88581E-03   1.0000          .0000       .10000E+07
     9 'Prefactor '    12.441       1.0000          .0000       .10000E+07
    10 'Prefactor '    .12094E-02   1.0000          .0000       .10000E+07
    11 'Prefactor '    .26727E-03   1.0000          .0000       .10000E+07
    12 'Prefactor '    .22169E-04   1.0000          .0000       .10000E+07
    13 'Prefactor '    .89398E-04   1.0000          .0000       .10000E+07
    14 'norm      '    1.3404       1.0000          .0000       .10000E+07
    15 'Prefactor '    27.878       1.0000          .0000       .10000E+07
    16 'Prefactor '    8.5528       1.0000          .0000       .10000E+07
    17 'norm      '    .19733E-03   1.0000          .0000       .10000E+07
    18 'Prefactor '    .38058E-06   1.0000          .0000       .10000E+07
    19 'Prefactor '    .35075E-03   1.0000          .0000       .10000E+07
    20 'Prefactor '    61.211       1.0000          .0000       .10000E+07
    21 'Prefactor '    .11553E-04   1.0000          .0000       .10000E+07
    22 'norm      '    .24630E-03   1.0000          .0000       .10000E+07
    23 'norm      '    5.6323       1.0000          .0000       .10000E+07
    24 'Prefactor '    .67123E-04   1.0000          .0000       .10000E+07
    25 'norm      '    1.1862       1.0000          .0000       .10000E+07
    26 'Normalizat'    .88147       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.0141       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=   6546.377     FROM MIGRAD    STATUS=CONVERGED    188 CALLS     1906 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.3297        4.7958       -.55957E-06    .31652E-03
   2  norm          5.0666        10.003        .53703E-05    .76450E-02
   3  Prefactor     11.499        7.2591       -.23033E-05    .15219E-02
   4  Prefactor     .22143E-06    1.2914        .23348E-06** at limit **
   5  norm          .27756E-08    7.4264       -.16103E-05** at limit **
   6  Prefactor     3.9696        2.5698        .11981E-05   -.82819E-03
   7  norm          1.5988        .95400       -.10674E-06    .17525E-02
   8  Prefactor     .40906E-06    36.238        .10334E-04** at limit **
   9  Prefactor     11.780        9.7849        .29516E-06   -.13211    
  10  Prefactor     .53013E-07    22.639       -.10935E-04** at limit **
  11  Prefactor     .22204E-09    2.3025       -.11545E-05** at limit **
  12  Prefactor     .74385E-08    10.803       -.54302E-05** at limit **
  13  Prefactor     .72164E-09    3.6242       -.65378E-06** at limit **
  14  norm          1.3406        .52767       -.14502E-06   -.78464E-02
  15  Prefactor     27.900        1.5380       -.25650E-06    .87150E-03
  16  Prefactor     8.8216        2.3191       -.27680E-06    .23162E-01
  17  norm          .72164E-09    2.8634       -.54048E-07** at limit **
  18  Prefactor     .32913E-06    5.6879        .46725E-05** at limit **
  19  Prefactor     .65503E-08    12.804        .67933E-05** at limit **
  20  Prefactor     58.666        54.159       -.59573E-05    .48741E-01
  21  Prefactor     .40079E-06    2.8356        .11930E-05** at limit **
  22  norm          .17208E-08    3.8454       -.37111E-06** at limit **
  23  norm          5.6329        3.5570        .83038E-06    .26206E-03
  24  Prefactor     .55511E-09    2.0644        .12020E-05** at limit **
  25  norm          1.1344        15.483       -.57566E-05   -.12401E-02
  26  Normalizat    .88142        .21386        .69339E-05   -.23783E-04
  27  Prefactor     1.0145        .12433        .60932E-05   -.16111E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.32967
  norm       = 5.06658
  Prefactor  = 11.499
  Prefactor  = 2.21434e-07
  norm       = 2.77556e-09
  Prefactor  = 3.9696
  norm       = 1.5988
  Prefactor  = 4.09062e-07
  Prefactor  = 11.7795
  Prefactor  = 5.30131e-08
  Prefactor  = 2.22045e-10
  Prefactor  = 7.43849e-09
  Prefactor  = 7.21645e-10
  norm       = 1.34061
  Prefactor  = 27.8995
  Prefactor  = 8.82158
  norm       = 7.21645e-10
  Prefactor  = 3.29126e-07
  Prefactor  = 6.55032e-09
  Prefactor  = 58.6664
  Prefactor  = 4.00791e-07
  norm       = 1.72085e-09
  norm       = 5.6329
  Prefactor  = 5.55112e-10
  norm       = 1.13438
  Normalizat = 0.881417
  Prefactor  = 1.01448
 **********
 **   18 **HESSE 
 **********

 FCN=   6546.377     FROM HESSE     STATUS=OK           542 CALLS     2448 TOTAL
                     EDM=   .40E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.3297        4.8146        .96481E-03   -1.5685    
   2  norm          5.0666        10.027        .44572E-03   -1.5663    
   3  Prefactor     11.499        7.2748        .29524E-03   -1.5640    
   4  Prefactor     .22143E-06    1.9842        .42118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .27756E-08    7.4397        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     3.9696        2.5733        .50591E-03   -1.5668    
   7  norm          1.5988        .95856        .83799E-03   -1.5683    
   8  Prefactor     .40906E-06    36.482        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     11.780        40.240        .28374E-03   -1.5639    
  10  Prefactor     .53013E-07    22.802        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .22204E-09    2.3072        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .74385E-08    11.051        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .72164E-09    3.6417        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          1.3406        .52828        .80541E-03   -1.5685    
  15  Prefactor     27.900        28.412        .18943E-03   -1.5602    
  16  Prefactor     8.8216        19.455        .34253E-03   -1.5649    
  17  norm          .72164E-09    2.8721        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .32913E-06    8.4712        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .65503E-08    13.284        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     58.666        55.350        .12782E-03   -1.5555    
  21  Prefactor     .40079E-06    9.2255        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .17208E-08    3.8600        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          5.6329        3.5533        .42305E-03   -1.5660    
  24  Prefactor     .55511E-09    2.0675        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          1.1344        15.089        .10471E-02   -1.5687    
  26  Normalizat    .88142        .19923        .74344E-01   -.97116    
  27  Prefactor     1.0145        .11171        .42789E-01   -.92248    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.0443e-06
Minuit parameter uncertainties:
  1  4.81462
  2  10.0266
  3  7.27478
  4  0.00132572
  5  0.000288684
  6  2.57327
  7  0.958555
  8  0.00772608
  9  40.2412
  10  0.00219888
  11  4.62011e-05
  12  0.000573585
  13  0.000101379
  14  0.528283
  15  28.4124
  16  19.455
  17  9.18524e-05
  18  0.00333962
  19  0.000589308
  20  55.35
  21  0.00384575
  22  0.000163065
  23  3.55331
  24  6.72684e-05
  25  8.27437
  26  0.199397
  27  0.111732
Done.

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

Extracting fit parameters...

4FGL J0224.2+0700
   Spectrum: PowerLaw
251    Prefactor:  4.091e-07  7.726e-03  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.014e+00  1.117e-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:  8.814e-01  1.994e-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: 9.92e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.72e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/430304/likelihoodResults_685929601_686188801_4FGL_J0224.2+0700_daily_bin1723.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) = 6546.39013391
delta logL = -0.0136336101705

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6546.37650905
delta logL = -8.75240766618e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12828E-03   1.0000          .0000       .10000E+07
     2 'Index     '    2.5482       1.0000          .0000       10.000    
     3 'Normalizat'    .88089       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0149       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=   6546.377     FROM MIGRAD    STATUS=CONVERGED     47 CALLS      221 TOTAL
                     EDM=   .97E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        43.720        .42118E-03** at limit **
   2  Index         2.6403        1.0208       -.30262E-05     .0000    
   3  Normalizat    .88142        1.2174        .35865E-05   -.83025E-04
   4  Prefactor     1.0145        1.2500        .15973E-05   -.17780E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 2.64025
  Normalizat = 0.881416
  Prefactor  = 1.01448
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   6546.377     FROM HESSE     STATUS=FAILED         9 CALLS      230 TOTAL
                     EDM=   .97E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        43.720        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .78859        1.9158       -.30262E-05   -.49150    
   3  Normalizat    .88142        1.2174        .35865E-05   -.97116    
   4  Prefactor     1.0145        1.2500        .15973E-05   -.92248    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 9.71522e-12
Minuit parameter uncertainties:
  1  5.57977e-05
  2  1.03015
  3  1.25883
  4  1.28882
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/430304': 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) = 6546.37650029
delta logL = 5.60066837352e-09

Extracting fit parameters...

4FGL J0224.2+0700
   Spectrum: PowerLaw
251    Prefactor:  0.000e+00  5.580e-05  0.000e+00  1.000e+06 ( 1.000e-13)
252        Index:  2.640e+00  1.030e+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.014e+00  1.289e+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:  8.814e-01  1.259e+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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/430304/cmap_HighResolution_685929601_686188801_4FGL_J0224.2+0700_daily_bin1723.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.72e-03', job_status='DONE', photon_flux_upper_limit='9.92e-08', time_completed='2022-09-30 00:18:17.853824', job_id='430304', GAL2='1.01', fit_tolerance='1e-08', EG2='0.88', EG='0.88', time_epoch_completed='1664522297.85', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.01', dlogl='5.60e-09', ts2='0.00', photon_index_error='0.00', photon_index='2.50' WHERE bin_id='1723' AND source_name='4FGL J0224.2+0700' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 30 00:18:17 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0212>
Subject: Job 430304: <4FGL_J0224.2+0700_daily_bin1723> in cluster <slac> Done

Job <4FGL_J0224.2+0700_daily_bin1723> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Fri Sep 30 00:05:09 2022
Job was executed on host(s) <bullet0212>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 30 00:05:28 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep 30 00:05:28 2022
Terminated at Fri Sep 30 00:18:18 2022
Results reported at Fri Sep 30 00:18:18 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0224.2+0700_daily_bin1723 36.0577 7.0126 685929601 686188801 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 :                                   657.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             335.86 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   770 sec.
    Turnaround time :                            789 sec.

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

