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


Performing analysis on: 4FGL_J0224.2+0700_daily_bin1721
RA = 36.0577, Dec = 7.0126
tmin = 685411201, tmax = 685670401
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='48866', job_status='RUN', time_executed='2022-09-24 00:07:00.187155', time_epoch_executed='1664003220.19' WHERE source_name='4FGL J0224.2+0700' and cadence='daily' and bin_id='1721'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/48866

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/48866/ft1_4FGL_J0224.2+0700_daily_bin1721.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/48866/ft2_4FGL_J0224.2+0700_daily_bin1721.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/48866/ft1_4FGL_J0224.2+0700_daily_bin1721.fits outfile=/scratch/kocevski/48866/ft1_filteredMKT_4FGL_J0224.2+0700_daily_bin1721.fits ra=36.0577 dec=7.0126 rad=12.0 tmin=685411201.0 tmax=685670401.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 5.33
user 4.93
sys 0.25

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

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

Number of photons that the gtmktime cut: 571

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/48866/ft1_filtered_4FGL_J0224.2+0700_daily_bin1721.fits" evtable="EVENTS" scfile=/scratch/kocevski/48866/ft2_4FGL_J0224.2+0700_daily_bin1721.fits sctable="SC_DATA" outfile=/scratch/kocevski/48866/ltcube_685411201_685670401_4FGL_J0224.2+0700_daily_bin1721.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/48866/ft2_4FGL_J0224.2+0700_daily_bin1721.fits
.....................!
real 12.90
user 12.54
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/48866/ft1_filtered_4FGL_J0224.2+0700_daily_bin1721.fits evtable="EVENTS" scfile=/scratch/kocevski/48866/ft2_4FGL_J0224.2+0700_daily_bin1721.fits sctable="SC_DATA" expcube=/scratch/kocevski/48866/ltcube_685411201_685670401_4FGL_J0224.2+0700_daily_bin1721.fits outfile=/scratch/kocevski/48866/expmap_685411201_685670401_4FGL_J0224.2+0700_daily_bin1721.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/48866/ltcube_685411201_685670401_4FGL_J0224.2+0700_daily_bin1721.fits
.....................!
real 192.42
user 186.61
sys 5.28

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/48866/ft1_filtered_4FGL_J0224.2+0700_daily_bin1721.fits scfile=/scratch/kocevski/48866/ft2_4FGL_J0224.2+0700_daily_bin1721.fits outfile=/scratch/kocevski/48866/cmap_685411201_685670401_4FGL_J0224.2+0700_daily_bin1721.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.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/48866/ft1_filtered_4FGL_J0224.2+0700_daily_bin1721.fits scfile=/scratch/kocevski/48866/ft2_4FGL_J0224.2+0700_daily_bin1721.fits outfile=/scratch/kocevski/48866/cmap_HighResolution_685411201_685670401_4FGL_J0224.2+0700_daily_bin1721.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.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .16583E-04   1.0000          .0000       .10000E+07
     2 'norm      '    .63848E-05   1.0000          .0000       .10000E+07
     3 'Prefactor '    .29828E-05   1.0000          .0000       .10000E+07
     4 'Prefactor '    .73203       1.0000          .0000       .10000E+07
     5 'norm      '    .86847       1.0000          .0000       .10000E+07
     6 'Prefactor '    1.6073       1.0000          .0000       .10000E+07
     7 'norm      '    2.0028       1.0000          .0000       .10000E+07
     8 'Prefactor '    40.357       1.0000          .0000       .10000E+07
     9 'Prefactor '    26.468       1.0000          .0000       .10000E+07
    10 'Prefactor '    .19406E-04   1.0000          .0000       .10000E+07
    11 'Prefactor '    19.631       1.0000          .0000       .10000E+07
    12 'Prefactor '    .10015E-02   1.0000          .0000       .10000E+07
    13 'Prefactor '    .23923E-03   1.0000          .0000       .10000E+07
    14 'norm      '    .94824       1.0000          .0000       .10000E+07
    15 'Prefactor '    15.619       1.0000          .0000       .10000E+07
    16 'Prefactor '    31.197       1.0000          .0000       .10000E+07
    17 'norm      '    .31236E-02   1.0000          .0000       .10000E+07
    18 'Prefactor '    14.183       1.0000          .0000       .10000E+07
    19 'Prefactor '    .12419E-02   1.0000          .0000       .10000E+07
    20 'Prefactor '    46.222       1.0000          .0000       .10000E+07
    21 'Prefactor '    13.850       1.0000          .0000       .10000E+07
    22 'norm      '    .49038E-02   1.0000          .0000       .10000E+07
    23 'norm      '    .48635E-02   1.0000          .0000       .10000E+07
    24 'Prefactor '    4.5478       1.0000          .0000       .10000E+07
    25 'norm      '    .10543E-03   1.0000          .0000       .10000E+07
    26 'Normalizat'    .65010       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.1071       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=   6566.506     FROM MIGRAD    STATUS=CONVERGED    183 CALLS     2389 TOTAL
                     EDM=   .45E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        2.1055        .58521E-06** at limit **
   2  norm          .26812E-06    27.858       -.35794E-05** at limit **
   3  Prefactor     .55511E-10    2.6500       -.37245E-07** at limit **
   4  Prefactor     .74404        3.5172        .12475E-05   -.46949E-03
   5  norm          .82742        4.7590       -.12558E-06    .11735E-03
   6  Prefactor     1.5960        1.8689        .14019E-06   -.55545E-04
   7  norm          2.0031        1.0171       -.12355E-06   -.45784E-03
   8  Prefactor     42.128        17.764       -.51927E-06   -.10985    
   9  Prefactor     28.054        39.517        .15965E-05    .30069E-01
  10  Prefactor     .15621E-06    12.346        .11342E-05** at limit **
  11  Prefactor     19.568        11.504       -.11631E-08    .11094E-03
  12  Prefactor     .11115E-05    9.7411        .10790E-05** at limit **
  13  Prefactor     .29703E-05    49.275        .37348E-05** at limit **
  14  norm          .94494        .59767       -.22657E-06    .13174E-02
  15  Prefactor     14.741        6.7080        .41120E-06   -.12887E-01
  16  Prefactor     31.561        2.3825        .16788E-07   -.11739E-02
  17  norm          .12768E-08    9.5809       -.36120E-06** at limit **
  18  Prefactor     14.658        5.9667        .15374E-06   -.16595E-01
  19  Prefactor     .21716E-06    15.126       -.16410E-05** at limit **
  20  Prefactor     46.845        29.032        .14636E-05   -.97794E-01
  21  Prefactor     13.847        8.1275       -.10289E-06   -.53800E-03
  22  norm          .27756E-09    6.2935        .10677E-05** at limit **
  23  norm          .10431E-06    15.343        .22128E-05** at limit **
  24  Prefactor     4.5626        7.1368       -.33455E-06   -.28374E-03
  25  norm           .0000        2.4234        .22900E-06** at limit **
  26  Normalizat    .64667        .21869       -.79246E-05    .13564E-04
  27  Prefactor     1.1075        .12565        .17099E-04    .59005E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  norm       = 2.68119e-07
  Prefactor  = 5.55112e-11
  Prefactor  = 0.744037
  norm       = 0.827423
  Prefactor  = 1.59604
  norm       = 2.00308
  Prefactor  = 42.1282
  Prefactor  = 28.054
  Prefactor  = 1.56208e-07
  Prefactor  = 19.5684
  Prefactor  = 1.1115e-06
  Prefactor  = 2.97029e-06
  norm       = 0.944945
  Prefactor  = 14.741
  Prefactor  = 31.5615
  norm       = 1.27676e-09
  Prefactor  = 14.658
  Prefactor  = 2.1716e-07
  Prefactor  = 46.8445
  Prefactor  = 13.8466
  norm       = 2.77556e-10
  norm       = 1.04305e-07
  Prefactor  = 4.56264
  norm       = 0
  Normalizat = 0.646673
  Prefactor  = 1.1075
 **********
 **   18 **HESSE 
 **********

 FCN=   6566.506     FROM HESSE     STATUS=OK           544 CALLS     2933 TOTAL
                     EDM=   .22E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        2.1052        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .26812E-06    29.447        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .55511E-10    2.6509        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .74404        3.5561        .58145E-03   -1.5691    
   5  norm          .82742        4.7695        .47965E-03   -1.5690    
   6  Prefactor     1.5960        1.9104        .83541E-03   -1.5683    
   7  norm          2.0031        1.0202        .73147E-03   -1.5680    
   8  Prefactor     42.128        33.825        .15743E-03   -1.5578    
   9  Prefactor     28.054        47.483        .19441E-03   -1.5602    
  10  Prefactor     .15621E-06    21.467        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     19.568        11.926        .22577E-03   -1.5619    
  12  Prefactor     .11115E-05    19.711        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .29703E-05    64.328        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .94494        .64890        .42481E-03   -1.5689    
  15  Prefactor     14.741        40.136        .25316E-03   -1.5631    
  16  Prefactor     31.561        21.275        .17906E-03   -1.5596    
  17  norm          .12768E-08    9.5567        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     14.658        26.826        .26570E-03   -1.5631    
  19  Prefactor     .21716E-06    15.916        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     46.845        57.332        .14710E-03   -1.5571    
  21  Prefactor     13.847        8.1696        .26888E-03   -1.5634    
  22  norm          .27756E-09    6.2789        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10431E-06    14.855        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     4.5626        7.1556        .47182E-03   -1.5665    
  25  norm           .0000        2.4260        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .64667        .21129        .89851E-01   -1.0604    
  27  Prefactor     1.1075        .11647        .37325E-01   -.89227    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.15048e-06
Minuit parameter uncertainties:
  1  9.3344e-06
  2  0.00561946
  3  2.009e-05
  4  3.25323
  5  3.9731
  6  1.91043
  7  1.0202
  8  33.8249
  9  47.4837
  10  0.00366215
  11  11.9256
  12  0.00936135
  13  0.0276463
  14  0.648897
  15  40.1369
  16  21.2748
  17  0.000219841
  18  26.8262
  19  0.00371823
  20  57.3323
  21  8.16964
  22  8.61079e-05
  23  0.00248943
  24  7.15564
  25  1.37533e-05
  26  0.211556
  27  0.116493
Done.

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

Extracting fit parameters...

4FGL J0224.2+0700
   Spectrum: PowerLaw
251    Prefactor:  4.213e+01  3.382e+01  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.107e+00  1.165e-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:  6.467e-01  2.116e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.24
Ra Dec: 36.058 7.013
Photon Index (Fixed Index): 2.50 +/- 0.00
Photon Flux (Fixed Index): 7.36e-08 +/- 5.91e-08
Energy Flux (Fixed Index): 2.13e-05 +/- 1.71e-05

TS (Fixed Index): 2.24
Ra Dec: 36.058 7.013
Photon Flux Upper Limit: 1.91e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.49e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/48866/likelihoodResults_685411201_685670401_4FGL_J0224.2+0700_daily_bin1721.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) = 6566.37697115
delta logL = 0.128597648143

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6566.37227502
delta logL = 0.133293781411

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    32.130       1.0000          .0000       .10000E+07
     2 'Index     '    2.8328       1.0000          .0000       10.000    
     3 'Normalizat'    .62647       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1137       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6566.372     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      298 TOTAL
                     EDM=   .64E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     32.131        36.944        .70577E-05   -.69748E-03
   2  Index         2.8328        .72698        .64897E-02    .46825E-03
   3  Normalizat    .62682        .21892        .40380E-03   -.29393E-04
   4  Prefactor     1.1135        .12323        .17789E-03    .60009E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 32.1306
  Index      = 2.83275
  Normalizat = 0.626816
  Prefactor  = 1.11347
 **********
 **   18 **HESSE 
 **********

 FCN=   6566.372     FROM HESSE     STATUS=OK            25 CALLS      323 TOTAL
                     EDM=   .29E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     32.131        34.215        .28231E-06   -1.5595    
   2  Index         2.8328        .67276        .12979E-02   -.44832    
   3  Normalizat    .62682        .21883        .16152E-04   -1.0686    
   4  Prefactor     1.1135        .12317        .71157E-05   -.89037    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.85065e-11
Minuit parameter uncertainties:
  1  34.2157
  2  0.675284
  3  0.219133
  4  0.123203
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/48866': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6566.37227352
delta logL = 0.133295275218

Extracting fit parameters...

4FGL J0224.2+0700
   Spectrum: PowerLaw
251    Prefactor:  3.213e+01  3.422e+01  0.000e+00  1.000e+06 ( 1.000e-13)
252        Index:  2.833e+00  6.753e-01  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.113e+00  1.232e-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:  6.268e-01  2.191e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.54
Ra Dec: 36.058 7.013
Photon Index (Free Index): 2.83 +/- 0.68
Photon Flux (Free Index): 9.61e-08 +/- 7.81e-08
Energy Flux (Free Index): 2.11e-05 +/- 1.54e-05

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/48866/cmap_HighResolution_685411201_685670401_4FGL_J0224.2+0700_daily_bin1721.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.49e-02', comment='SUCCESS', photon_flux='7.36e-08', energy_flux2='2.11e-05', photon_flux_error='5.91e-08', dlogl='1.33e-01', energy_flux='2.13e-05', photon_flux2='9.61e-08', job_status='DONE', time_completed='2022-09-24 00:18:40.920887', photon_index_error2='0.68', photon_index2='2.83', ts='2.24', fit_tolerance='1e-08', GAL='1.11', photon_index_error='0.00', photon_flux_upper_limit='1.91e-07', energy_flux_error2='1.54e-05', EG='0.65', time_epoch_completed='1664003920.92', return_code='0', job_id='48866', GAL2='1.11', EG2='0.63', return_code2='0', energy_flux_error='1.71e-05', photon_flux_error2='7.81e-08', ts2='2.54', photon_index='2.50' WHERE bin_id='1721' AND source_name='4FGL J0224.2+0700' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 24 00:18:40 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0162>
Subject: Job 48866: <4FGL_J0224.2+0700_daily_bin1721> in cluster <slac> Done

Job <4FGL_J0224.2+0700_daily_bin1721> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Sep 24 00:05:12 2022
Job was executed on host(s) <bullet0162>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 24 00:05:53 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep 24 00:05:53 2022
Terminated at Sat Sep 24 00:18:41 2022
Results reported at Sat Sep 24 00:18:41 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0224.2+0700_daily_bin1721 36.0577 7.0126 685411201 685670401 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 :                                   696.06 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             322.19 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   768 sec.
    Turnaround time :                            809 sec.

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

