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


Performing analysis on: 4FGL_J2225.6+2120_daily_bin1739
RA = 336.414, Dec = 21.3418
tmin = 690076801, tmax = 690336001
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='654710', job_status='RUN', time_executed='2022-11-17 01:15:11.277068', time_epoch_executed='1668676511.28' WHERE source_name='4FGL J2225.6+2120' and cadence='daily' and bin_id='1739'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/654710

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/654710/ft1_4FGL_J2225.6+2120_daily_bin1739.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/654710/ft2_4FGL_J2225.6+2120_daily_bin1739.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/654710/ft1_4FGL_J2225.6+2120_daily_bin1739.fits outfile=/scratch/kocevski/654710/ft1_filteredMKT_4FGL_J2225.6+2120_daily_bin1739.fits ra=336.414 dec=21.3418 rad=12.0 tmin=690076801.0 tmax=690336001.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.30
user 4.04
sys 0.24

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/654710/ft2_4FGL_J2225.6+2120_daily_bin1739.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/654710/ft2_4FGL_J2225.6+2120_daily_bin1739.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/654710/ft1_filteredMKT_4FGL_J2225.6+2120_daily_bin1739.fits evtable="EVENTS" outfile="/scratch/kocevski/654710/ft1_filtered_4FGL_J2225.6+2120_daily_bin1739.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.34
sys 0.16

Number of photons that the gtmktime cut: 951

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/654710/ft1_filtered_4FGL_J2225.6+2120_daily_bin1739.fits" evtable="EVENTS" scfile=/scratch/kocevski/654710/ft2_4FGL_J2225.6+2120_daily_bin1739.fits sctable="SC_DATA" outfile=/scratch/kocevski/654710/ltcube_690076801_690336001_4FGL_J2225.6+2120_daily_bin1739.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/654710/ft2_4FGL_J2225.6+2120_daily_bin1739.fits
.....................!
real 12.25
user 11.85
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/654710/ft1_filtered_4FGL_J2225.6+2120_daily_bin1739.fits evtable="EVENTS" scfile=/scratch/kocevski/654710/ft2_4FGL_J2225.6+2120_daily_bin1739.fits sctable="SC_DATA" expcube=/scratch/kocevski/654710/ltcube_690076801_690336001_4FGL_J2225.6+2120_daily_bin1739.fits outfile=/scratch/kocevski/654710/expmap_690076801_690336001_4FGL_J2225.6+2120_daily_bin1739.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/654710/ltcube_690076801_690336001_4FGL_J2225.6+2120_daily_bin1739.fits
.....................!
real 191.38
user 185.54
sys 5.08

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

Setting source of interest to:
4FGL J2225.6+2120 @ 336.414 21.3418

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/654710/ft1_filtered_4FGL_J2225.6+2120_daily_bin1739.fits scfile=/scratch/kocevski/654710/ft2_4FGL_J2225.6+2120_daily_bin1739.fits outfile=/scratch/kocevski/654710/cmap_690076801_690336001_4FGL_J2225.6+2120_daily_bin1739.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=336.414 yref=21.3418 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.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/654710/ft1_filtered_4FGL_J2225.6+2120_daily_bin1739.fits scfile=/scratch/kocevski/654710/ft2_4FGL_J2225.6+2120_daily_bin1739.fits outfile=/scratch/kocevski/654710/cmap_HighResolution_690076801_690336001_4FGL_J2225.6+2120_daily_bin1739.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=336.414 yref=21.3418 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.55
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/654710/ft1_filtered_4FGL_J2225.6+2120_daily_bin1739.fits evtable="EVENTS" scfile=/scratch/kocevski/654710/ft2_4FGL_J2225.6+2120_daily_bin1739.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/654710/Model_4FGL_J2225.6+2120_daily_bin1739.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/654710/ft1_filtered_4FGL_J2225.6+2120_daily_bin1739.fits.....................!
real 102.78
user 101.16
sys 1.30

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/654710/ft1_filtered_4FGL_J2225.6+2120_daily_bin1739.fits', '/scratch/kocevski/654710/ft2_4FGL_J2225.6+2120_daily_bin1739.fits', expMap='/scratch/kocevski/654710/expmap_690076801_690336001_4FGL_J2225.6+2120_daily_bin1739.fits', expCube='/scratch/kocevski/654710/ltcube_690076801_690336001_4FGL_J2225.6+2120_daily_bin1739.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/654710/Model_4FGL_J2225.6+2120_daily_bin1739.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2225.6+2120'

4FGL J2225.6+2120
   Spectrum: PowerLaw
273    Prefactor:  3.284e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
274        Index:  2.811e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
275        Scale:  4.626e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/654710/ft1_filtered_4FGL_J2225.6+2120_daily_bin1739.fits
Spacecraft file(s): /scratch/kocevski/654710/ft2_4FGL_J2225.6+2120_daily_bin1739.fits
Exposure map: /scratch/kocevski/654710/expmap_690076801_690336001_4FGL_J2225.6+2120_daily_bin1739.fits
Exposure cube: /scratch/kocevski/654710/ltcube_690076801_690336001_4FGL_J2225.6+2120_daily_bin1739.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/654710/Model_4FGL_J2225.6+2120_daily_bin1739.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) = 10246.7893916

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .18436       1.0000          .0000       .10000E+07
     2 'norm      '    1.6787       1.0000          .0000       .10000E+07
     3 'Prefactor '    19.942       1.0000          .0000       .10000E+07
     4 'norm      '    .19476       1.0000          .0000       .10000E+07
     5 'Prefactor '    17.987       1.0000          .0000       .10000E+07
     6 'norm      '    .51110       1.0000          .0000       .10000E+07
     7 'Prefactor '    12.784       1.0000          .0000       .10000E+07
     8 'norm      '    .95308E-04   1.0000          .0000       .10000E+07
     9 'Prefactor '    9.2884       1.0000          .0000       .10000E+07
    10 'Prefactor '    24.599       1.0000          .0000       .10000E+07
    11 'Prefactor '    1.5111       1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.7703       1.0000         .10000E-03   10000.    
    13 'norm      '    2.9264       1.0000          .0000       .10000E+07
    14 'norm      '    3.6272       1.0000          .0000       .10000E+07
    15 'Prefactor '    .76013       1.0000          .0000       .10000E+07
    16 'Prefactor '    .97810E-03   1.0000          .0000       .10000E+07
    17 'Prefactor '    2.6691       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .66068E-04   1.0000          .0000       .10000E+07
    19 'Prefactor '    59.663       1.0000          .0000       .10000E+07
    20 'Normalizat'    1.1069       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .91790       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5150E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   10246.74     FROM MIGRAD    STATUS=CONVERGED    141 CALLS     1664 TOTAL
                     EDM=   .22E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .21594E-07    100.95       -.20451E-05** at limit **
   2  norm          1.6801        2.3876       -.10343E-06    .74710E-04
   3  Prefactor     20.372        26.374        .66430E-06   -.81561E-02
   4  norm          .20005        1.3369        .23802E-07** at limit **
   5  Prefactor     17.425        23.538        .20248E-06    .25407E-01
   6  norm          .51141        .81292       -.73450E-09   -.30663E-03
   7  Prefactor     12.986        5.4443        .19985E-06    .57363E-01
   8  norm           .0000        3.0611        .97318E-07** at limit **
   9  Prefactor     9.2751        12.271       -.20359E-06    .23248E-02
  10  Prefactor     24.930        14.234        .34674E-06   -.13609E-01
  11  Prefactor     1.5118        .28477        .17852E-06   -.12913E-02
  12  Prefactor     1.7785        10.806        .13127E-05   -.18185E-04
  13  norm          2.9255        1.3805       -.24811E-07    .94736E-03
  14  norm          3.6330        1.8450        .21087E-07   -.98738E-03
  15  Prefactor     1.8444        98.513       -.42937E-05   -.62975E-02
  16  Prefactor     .55511E-10    3.6062        .36934E-06** at limit **
  17  Prefactor     2.6672        .28696        .42388E-07    .18643E-03
  18  Prefactor      .0000        4.4920       -.25041E-07** at limit **
  19  Prefactor     61.396        31.733       -.80513E-06    .42143E-01
  20  Normalizat    1.1042        .27683        .40526E-06   -.49647E-04
  21  Prefactor     .91774        .13104        .94087E-06   -.10565E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.15938e-08
  norm       = 1.6801
  Prefactor  = 20.3725
  norm       = 0.200046
  Prefactor  = 17.4248
  norm       = 0.511406
  Prefactor  = 12.9861
  norm       = 0
  Prefactor  = 9.27511
  Prefactor  = 24.9297
  Prefactor  = 1.5118
  Prefactor  = 1.77846
  norm       = 2.92553
  norm       = 3.63303
  Prefactor  = 1.8444
  Prefactor  = 5.55112e-11
  Prefactor  = 2.66721
  Prefactor  = 0
  Prefactor  = 61.3956
  Normalizat = 1.10419
  Prefactor  = 0.917744
 **********
 **   18 **HESSE 
 **********

 FCN=   10246.74     FROM HESSE     STATUS=OK           373 CALLS     2037 TOTAL
                     EDM=   .58E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .21594E-07    100.64        .12061E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.6801        2.4251        .81284E-03   -1.5682    
   3  Prefactor     20.372        27.159        .22401E-03   -1.5618    
   4  norm          .20005        .75636        .29572E-02   -1.5699    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     17.425        34.058        .23588E-03   -1.5624    
   6  norm          .51141        .83230        .77601E-03   -1.5694    
   7  Prefactor     12.986        18.742        .27990E-03   -1.5636    
   8  norm           .0000        3.0534        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     9.2751        12.286        .32860E-03   -1.5647    
  10  Prefactor     24.930        14.484        .20167E-03   -1.5608    
  11  Prefactor     1.5118        .28497        .48781E-02   -1.5462    
  12  Prefactor     1.7785        10.824        .78684E-02   -1.5441    
  13  norm          2.9255        1.3847        .59356E-03   -1.5674    
  14  norm          3.6330        1.8468        .53023E-03   -1.5670    
  15  Prefactor     1.8444        109.04        .55956E-03   -1.5681    
  16  Prefactor     .55511E-10    3.6045        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     2.6672        .28871        .37381E-02   -1.5381    
  18  Prefactor      .0000        4.4912        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     61.396        40.722        .12947E-03   -1.5551    
  20  Normalizat    1.1042        .23856        .91262E-01   -.89617    
  21  Prefactor     .91774        .11101        .45233E-01   -.95524    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.80229e-07
Minuit parameter uncertainties:
  1  0.00294999
  2  2.42513
  3  27.1596
  4  0.756364
  5  34.0579
  6  0.832303
  7  18.7421
  8  2.40442e-06
  9  12.2857
  10  14.4845
  11  0.284967
  12  8.77715
  13  1.38468
  14  1.84681
  15  28.364
  16  2.28634e-05
  17  0.288711
  18  8.48543e-06
  19  40.7222
  20  0.238791
  21  0.111036
Done.

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

Extracting fit parameters...

4FGL J2225.6+2120
   Spectrum: PowerLaw
273    Prefactor:  2.493e+01  1.448e+01  0.000e+00  1.000e+06 ( 1.000e-12)
274        Index:  2.811e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
275        Scale:  4.626e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
512    Prefactor:  9.177e-01  1.110e-01  0.000e+00  1.000e+01 ( 1.000e+00)
513        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
514        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
511   Normalization:  1.104e+00  2.388e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.66
Ra Dec: 336.414 21.342
Photon Index (Fixed Index): 2.81 +/- 0.00
Photon Flux (Fixed Index): 1.02e-07 +/- 5.93e-08
Energy Flux (Fixed Index): 2.27e-05 +/- 1.32e-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) = 10246.6550412
delta logL = 0.0816713370623

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10246.6521653
delta logL = 0.084547267008

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    28.475       1.0000          .0000       .10000E+07
     2 'Index     '    2.5841       1.0000          .0000       10.000    
     3 'Normalizat'    1.1158       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91276       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5150E+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=   10246.65     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      271 TOTAL
                     EDM=   .21E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     28.480        17.775        .74972E-05    .77336E-03
   2  Index         2.5840        .53345        .88680E-02    .14084E-04
   3  Normalizat    1.1158        .26625        .40233E-03    .12919E-03
   4  Prefactor     .91276        .12872        .21443E-03   -.94055E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 28.4801
  Index      = 2.58401
  Normalizat = 1.11584
  Prefactor  = 0.912757
 **********
 **   18 **HESSE 
 **********

 FCN=   10246.65     FROM HESSE     STATUS=OK            25 CALLS      296 TOTAL
                     EDM=   .21E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     28.480        17.499        .29989E-06   -1.5601    
   2  Index         2.5840        .52498        .35472E-03   -.50430    
   3  Normalizat    1.1158        .26652        .16093E-04   -.89245    
   4  Prefactor     .91276        .12882        .85771E-05   -.95697    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.14875e-10
Minuit parameter uncertainties:
  1  17.4995
  2  0.526245
  3  0.266846
  4  0.128861
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/654710': 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) = 10246.6521652
delta logL = 0.084547307948

Extracting fit parameters...

4FGL J2225.6+2120
   Spectrum: PowerLaw
273    Prefactor:  2.848e+01  1.750e+01  0.000e+00  1.000e+06 ( 1.000e-12)
274        Index:  2.584e+00  5.262e-01  0.000e+00  1.000e+01 (-1.000e+00)
275        Scale:  4.626e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
512    Prefactor:  9.128e-01  1.289e-01  0.000e+00  1.000e+01 ( 1.000e+00)
513        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
514        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
511   Normalization:  1.116e+00  2.668e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.74
Ra Dec: 336.414 21.342
Photon Index (Free Index): 2.58 +/- 0.53
Photon Flux (Free Index): 9.42e-08 +/- 5.88e-08
Energy Flux (Free Index): 2.51e-05 +/- 1.57e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/654710/cmap_HighResolution_690076801_690336001_4FGL_J2225.6+2120_daily_bin1739.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.02e-07', energy_flux2='2.51e-05', photon_flux_error='5.93e-08', dlogl='8.45e-02', energy_flux='2.27e-05', photon_flux2='9.42e-08', job_status='DONE', time_completed='2022-11-17 01:26:18.058314', photon_index_error2='0.53', photon_index2='2.58', ts='4.66', fit_tolerance='1e-08', GAL='0.92', photon_index_error='0.00', energy_flux_error2='1.57e-05', EG='1.10', time_epoch_completed='1668677178.06', return_code='0', job_id='654710', GAL2='0.91', EG2='1.12', return_code2='0', energy_flux_error='1.32e-05', photon_flux_error2='5.88e-08', ts2='4.74', photon_index='2.81' WHERE bin_id='1739' AND source_name='4FGL J2225.6+2120' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Nov 17 01:26:18 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0248>
Subject: Job 654710: <4FGL_J2225.6+2120_daily_bin1739> in cluster <slac> Done

Job <4FGL_J2225.6+2120_daily_bin1739> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Thu Nov 17 01:10:44 2022
Job was executed on host(s) <bullet0248>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Nov 17 01:14:54 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Nov 17 01:14:54 2022
Terminated at Thu Nov 17 01:26:18 2022
Results reported at Thu Nov 17 01:26:18 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2225.6+2120_daily_bin1739 336.414 21.3418 690076801 690336001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2225.6+2120 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   667.83 sec.
    Max Memory :                                 621 MB
    Average Memory :                             329.35 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   2929 MB
    Max Processes :                              6
    Max Threads :                                21
    Run time :                                   684 sec.
    Turnaround time :                            934 sec.

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

