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


Performing analysis on: 4FGL_J0224.2+0700_daily_bin1742
RA = 36.0577, Dec = 7.0126
tmin = 690854401, tmax = 691113601
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='217423', job_status='RUN', time_executed='2022-11-26 00:15:05.691534', time_epoch_executed='1669450505.69' WHERE source_name='4FGL J0224.2+0700' and cadence='daily' and bin_id='1742'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/217423

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/217423/ft1_4FGL_J0224.2+0700_daily_bin1742.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/217423/ft2_4FGL_J0224.2+0700_daily_bin1742.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/217423/ft1_4FGL_J0224.2+0700_daily_bin1742.fits outfile=/scratch/kocevski/217423/ft1_filteredMKT_4FGL_J0224.2+0700_daily_bin1742.fits ra=36.0577 dec=7.0126 rad=12.0 tmin=690854401.0 tmax=691113601.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 2.97
user 2.68
sys 0.20

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

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

Number of photons that the gtmktime cut: 100

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/217423/ft1_filtered_4FGL_J0224.2+0700_daily_bin1742.fits" evtable="EVENTS" scfile=/scratch/kocevski/217423/ft2_4FGL_J0224.2+0700_daily_bin1742.fits sctable="SC_DATA" outfile=/scratch/kocevski/217423/ltcube_690854401_691113601_4FGL_J0224.2+0700_daily_bin1742.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/217423/ft2_4FGL_J0224.2+0700_daily_bin1742.fits
.....................!
real 16.58
user 16.13
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/217423/ft1_filtered_4FGL_J0224.2+0700_daily_bin1742.fits evtable="EVENTS" scfile=/scratch/kocevski/217423/ft2_4FGL_J0224.2+0700_daily_bin1742.fits sctable="SC_DATA" expcube=/scratch/kocevski/217423/ltcube_690854401_691113601_4FGL_J0224.2+0700_daily_bin1742.fits outfile=/scratch/kocevski/217423/expmap_690854401_691113601_4FGL_J0224.2+0700_daily_bin1742.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/217423/ltcube_690854401_691113601_4FGL_J0224.2+0700_daily_bin1742.fits
.....................!
real 191.46
user 185.92
sys 5.13

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/217423/ft1_filtered_4FGL_J0224.2+0700_daily_bin1742.fits scfile=/scratch/kocevski/217423/ft2_4FGL_J0224.2+0700_daily_bin1742.fits outfile=/scratch/kocevski/217423/cmap_690854401_691113601_4FGL_J0224.2+0700_daily_bin1742.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.57
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/217423/ft1_filtered_4FGL_J0224.2+0700_daily_bin1742.fits scfile=/scratch/kocevski/217423/ft2_4FGL_J0224.2+0700_daily_bin1742.fits outfile=/scratch/kocevski/217423/cmap_HighResolution_690854401_691113601_4FGL_J0224.2+0700_daily_bin1742.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.57
user 0.41
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.3017       1.0000          .0000       .10000E+07
     2 'norm      '    .25480E-06   1.0000          .0000       .10000E+07
     3 'Prefactor '    16.731       1.0000          .0000       .10000E+07
     4 'Prefactor '    10.515       1.0000          .0000       .10000E+07
     5 'norm      '    3.6880       1.0000          .0000       .10000E+07
     6 'Prefactor '    7.4065       1.0000          .0000       .10000E+07
     7 'norm      '    1.2401       1.0000          .0000       .10000E+07
     8 'Prefactor '    73.590       1.0000          .0000       .10000E+07
     9 'Prefactor '    23.626       1.0000          .0000       .10000E+07
    10 'Prefactor '    64.823       1.0000          .0000       .10000E+07
    11 'Prefactor '    92.242       1.0000          .0000       .10000E+07
    12 'Prefactor '    .17531E-01   1.0000          .0000       .10000E+07
    13 'Prefactor '    10.368       1.0000          .0000       .10000E+07
    14 'norm      '    .14208E-05   1.0000          .0000       .10000E+07
    15 'Prefactor '    .19896       1.0000          .0000       .10000E+07
    16 'Prefactor '    1.2541       1.0000          .0000       .10000E+07
    17 'norm      '    .11858E-01   1.0000          .0000       .10000E+07
    18 'Prefactor '    1.0542       1.0000          .0000       .10000E+07
    19 'Prefactor '    .12712E-02   1.0000          .0000       .10000E+07
    20 'Prefactor '    109.89       1.0000          .0000       .10000E+07
    21 'Prefactor '    .18350E-01   1.0000          .0000       .10000E+07
    22 'norm      '    139.26       1.0000          .0000       .10000E+07
    23 'norm      '    .74179E-02   1.0000          .0000       .10000E+07
    24 'Prefactor '    .24759E-01   1.0000          .0000       .10000E+07
    25 'norm      '    .39685E-02   1.0000          .0000       .10000E+07
    26 'Normalizat'    .96949       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .42598       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=   1228.258     FROM MIGRAD    STATUS=CONVERGED    331 CALLS     2563 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.3532        5.8133        .36760E-07    .24933E-03
   2  norm           .0000        12.175        .80802E-08** at limit **
   3  Prefactor     16.858        14.933        .54053E-07   -.38913E-03
   4  Prefactor     10.471        8.1633        .10073E-07    .12333E-02
   5  norm          3.4149        16.643        .65405E-07   -.21900E-03
   6  Prefactor     6.7217        6.8978       -.40431E-07   -.94316E-03
   7  norm          1.2525        1.4657        .31497E-07   -.20860E-02
   8  Prefactor     68.964        67.338       -.33962E-06    .10104E-01
   9  Prefactor     50.224        187.07        .65716E-05   -.62886E-02
  10  Prefactor     189.75        363.91        .10173E-05   -.44657E-03
  11  Prefactor     89.221        47.158        .42063E-06   -.36050E-01
  12  Prefactor     .16653E-09    139.06        .90976E-06** at limit **
  13  Prefactor     7.7842        65.450        .67951E-05   -.50247E-02
  14  norm           .0000        1.5302       -.18407E-07** at limit **
  15  Prefactor     .31086E-08    142.48       -.27076E-06** at limit **
  16  Prefactor     .74188E-05    798.23        .15756E-04** at limit **
  17  norm          .55511E-10    22.149       -.26068E-07** at limit **
  18  Prefactor     .17637E-01    1965.3       -.59613E-04** at limit **
  19  Prefactor     .28483E-06    171.87        .93566E-07** at limit **
  20  Prefactor     98.683        165.67        .62353E-05   -.22507E-01
  21  Prefactor     .40745E-06    393.52        .24802E-05** at limit **
  22  norm          155.64        118.78        .22159E-05   -.15745E-01
  23  norm          .22204E-09    25.656        .85075E-07** at limit **
  24  Prefactor     .55511E-10    52.138       -.45215E-07** at limit **
  25  norm          .16653E-09    88.396        .48814E-07** at limit **
  26  Normalizat    .95851        .40487        .15195E-05   -.46409E-04
  27  Prefactor     .42292        .26520       -.14357E-04   -.76737E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.35324
  norm       = 0
  Prefactor  = 16.8583
  Prefactor  = 10.4715
  norm       = 3.41485
  Prefactor  = 6.72166
  norm       = 1.25249
  Prefactor  = 68.9635
  Prefactor  = 50.224
  Prefactor  = 189.747
  Prefactor  = 89.2209
  Prefactor  = 1.66533e-10
  Prefactor  = 7.78419
  norm       = 0
  Prefactor  = 3.10862e-09
  Prefactor  = 7.41879e-06
  norm       = 5.55112e-11
  Prefactor  = 0.0176369
  Prefactor  = 2.84828e-07
  Prefactor  = 98.6828
  Prefactor  = 4.07452e-07
  norm       = 155.642
  norm       = 2.22045e-10
  Prefactor  = 5.55112e-11
  norm       = 1.66533e-10
  Normalizat = 0.958513
  Prefactor  = 0.422916
 **********
 **   18 **HESSE 
 **********

 FCN=   1228.258     FROM HESSE     STATUS=OK           560 CALLS     3123 TOTAL
                     EDM=   .31E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.3532        5.8172        .43627E-03   -1.5662    
   2  norm           .0000        12.222        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     16.858        14.930        .24459E-03   -1.5626    
   4  Prefactor     10.471        8.1836        .30874E-03   -1.5643    
   5  norm          3.4149        17.302        .52566E-03   -1.5671    
   6  Prefactor     6.7217        6.8421        .36829E-03   -1.5656    
   7  norm          1.2525        1.4845        .10032E-02   -1.5686    
   8  Prefactor     68.964        68.123        .11658E-03   -1.5542    
   9  Prefactor     50.224        191.28        .20578E-03   -1.5566    
  10  Prefactor     189.75        359.49        .12421E-03   -1.5432    
  11  Prefactor     89.221        59.373        .10413E-03   -1.5519    
  12  Prefactor     .16653E-09    137.97        .17205E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     7.7842        186.55        .31093E-03   -1.5652    
  14  norm           .0000        1.5031        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .31086E-08    140.11        .11794E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .74188E-05    153.85        .12582E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .55511E-10    21.807        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .17637E-01    545.42        .15232E-01   -1.5711    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .28483E-06    177.13        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     98.683        176.18        .95400E-04   -1.5509    
  21  Prefactor     .40745E-06    91.460        .10418E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          155.64        124.93        .84747E-04   -1.5458    
  23  norm          .22204E-09    25.959        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .55511E-10    51.326        .16742E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .16653E-09    88.290        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .95851        .37019        .45783E-01   -.94434    
  27  Prefactor     .42292        .24743        .55534E-01   -1.1565    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.05667e-07
Minuit parameter uncertainties:
  1  5.81718
  2  1.40327e-05
  3  14.9301
  4  8.18361
  5  15.3735
  6  6.84209
  7  1.48455
  8  68.1233
  9  191.308
  10  359.533
  11  59.3732
  12  0.000281305
  13  76.2158
  14  1.54022e-06
  15  0.0013162
  16  0.0675709
  17  8.23862e-05
  18  6.20363
  19  0.0142064
  20  176.188
  21  0.0122096
  22  124.936
  23  0.00015736
  24  9.48817e-05
  25  0.000236966
  26  0.371181
  27  0.248059
Done.

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

Extracting fit parameters...

4FGL J0224.2+0700
   Spectrum: PowerLaw
251    Prefactor:  6.896e+01  6.812e+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:  4.229e-01  2.481e-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:  9.585e-01  3.712e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 8.26
Ra Dec: 36.058 7.013
Photon Index (Fixed Index): 2.50 +/- 0.00
Photon Flux (Fixed Index): 1.21e-07 +/- 1.19e-07
Energy Flux (Fixed Index): 3.49e-05 +/- 3.45e-05

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) = 1226.52088179
delta logL = 1.73721937346

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 1226.49944413
delta logL = 1.75865703765

Fit tolerance = 1e-08

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

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

 FCN=   1226.499     FROM MIGRAD    STATUS=CONVERGED     46 CALLS      203 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     52.507        58.360        .13801E-03    .39559E-02
   2  Index         1.1710        .48576        .10774        .61370E-05
   3  Normalizat    .97940        .36380        .45908E-01    .51689E-04
   4  Prefactor     .42319        .22777        .55637E-01   -.37045E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 52.5074
  Index      = 1.171
  Normalizat = 0.979397
  Prefactor  = 0.423194
 **********
 **   18 **HESSE 
 **********

 FCN=   1226.499     FROM HESSE     STATUS=OK            27 CALLS      230 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     52.507        74.424        .55205E-05   -1.5563    
   2  Index         1.1710        .63259        .46622E-03   -.87229    
   3  Normalizat    .97940        .39709        .26778E-03   -.93724    
   4  Prefactor     .42319        .24831        .24614E-03   -1.1564    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.02863e-09
Minuit parameter uncertainties:
  1  74.4249
  2  0.63674
  3  0.398288
  4  0.248945
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/217423': 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) = 1226.49944412
delta logL = 1.75865704748

Extracting fit parameters...

4FGL J0224.2+0700
   Spectrum: PowerLaw
251    Prefactor:  5.251e+01  7.442e+01  0.000e+00  1.000e+06 ( 1.000e-13)
252        Index:  1.171e+00  6.367e-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:  4.232e-01  2.489e-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:  9.794e-01  3.983e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 11.78
Ra Dec: 36.058 7.013
Photon Index (Free Index): 1.17 +/- 0.64
Photon Flux (Free Index): 2.88e-08 +/- 3.43e-08
Energy Flux (Free Index): 2.63e-04 +/- 4.14e-04

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/217423/cmap_HighResolution_690854401_691113601_4FGL_J0224.2+0700_daily_bin1742.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.21e-07', energy_flux2='2.63e-04', photon_flux_error='1.19e-07', dlogl='1.76e+00', energy_flux='3.49e-05', photon_flux2='2.88e-08', job_status='DONE', time_completed='2022-11-26 00:21:27.558548', photon_index_error2='0.64', photon_index2='1.17', ts='8.26', fit_tolerance='1e-08', GAL='0.42', photon_index_error='0.00', energy_flux_error2='4.14e-04', EG='0.96', time_epoch_completed='1669450887.56', return_code='0', job_id='217423', GAL2='0.42', EG2='0.98', return_code2='0', energy_flux_error='3.45e-05', photon_flux_error2='3.43e-08', ts2='11.78', photon_index='2.50' WHERE bin_id='1742' AND source_name='4FGL J0224.2+0700' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Nov 26 00:21:27 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0040>
Subject: Job 217423: <4FGL_J0224.2+0700_daily_bin1742> in cluster <slac> Done

Job <4FGL_J0224.2+0700_daily_bin1742> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sat Nov 26 00:05:00 2022
Job was executed on host(s) <bullet0040>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Nov 26 00:12:03 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Nov 26 00:12:03 2022
Terminated at Sat Nov 26 00:21:28 2022
Results reported at Sat Nov 26 00:21:28 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0224.2+0700_daily_bin1742 36.0577 7.0126 690854401 691113601 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 :                                   380.04 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             272.95 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   564 sec.
    Turnaround time :                            988 sec.

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

