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


Performing analysis on: 4FGL_J2243.9+2021_daily_bin1765
RA = 340.99, Dec = 20.3565
tmin = 696816001, tmax = 697075201
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='648367', job_status='RUN', time_executed='2023-02-03 01:50:42.711571', time_epoch_executed='1675417842.71' WHERE source_name='4FGL J2243.9+2021' and cadence='daily' and bin_id='1765'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/648367

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/648367/ft1_4FGL_J2243.9+2021_daily_bin1765.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/648367/ft2_4FGL_J2243.9+2021_daily_bin1765.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/648367/ft1_4FGL_J2243.9+2021_daily_bin1765.fits outfile=/scratch/kocevski/648367/ft1_filteredMKT_4FGL_J2243.9+2021_daily_bin1765.fits ra=340.99 dec=20.3565 rad=12.0 tmin=696816001.0 tmax=697075201.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.71
user 3.46
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/648367/ft2_4FGL_J2243.9+2021_daily_bin1765.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/648367/ft2_4FGL_J2243.9+2021_daily_bin1765.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/648367/ft1_filteredMKT_4FGL_J2243.9+2021_daily_bin1765.fits evtable="EVENTS" outfile="/scratch/kocevski/648367/ft1_filtered_4FGL_J2243.9+2021_daily_bin1765.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.37
sys 0.15

Number of photons that the gtmktime cut: 1024

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/648367/ft1_filtered_4FGL_J2243.9+2021_daily_bin1765.fits" evtable="EVENTS" scfile=/scratch/kocevski/648367/ft2_4FGL_J2243.9+2021_daily_bin1765.fits sctable="SC_DATA" outfile=/scratch/kocevski/648367/ltcube_696816001_697075201_4FGL_J2243.9+2021_daily_bin1765.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/648367/ft2_4FGL_J2243.9+2021_daily_bin1765.fits
.....................!
real 16.08
user 15.62
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/648367/ft1_filtered_4FGL_J2243.9+2021_daily_bin1765.fits evtable="EVENTS" scfile=/scratch/kocevski/648367/ft2_4FGL_J2243.9+2021_daily_bin1765.fits sctable="SC_DATA" expcube=/scratch/kocevski/648367/ltcube_696816001_697075201_4FGL_J2243.9+2021_daily_bin1765.fits outfile=/scratch/kocevski/648367/expmap_696816001_697075201_4FGL_J2243.9+2021_daily_bin1765.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/648367/ltcube_696816001_697075201_4FGL_J2243.9+2021_daily_bin1765.fits
.....................!
real 193.86
user 187.99
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 158 point sources and 0 extended sources

Setting source of interest to:
4FGL J2243.9+2021 @ 340.99 20.3565

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/648367/ft1_filtered_4FGL_J2243.9+2021_daily_bin1765.fits scfile=/scratch/kocevski/648367/ft2_4FGL_J2243.9+2021_daily_bin1765.fits outfile=/scratch/kocevski/648367/cmap_696816001_697075201_4FGL_J2243.9+2021_daily_bin1765.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=340.99 yref=20.3565 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.59
user 0.40
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/648367/ft1_filtered_4FGL_J2243.9+2021_daily_bin1765.fits scfile=/scratch/kocevski/648367/ft2_4FGL_J2243.9+2021_daily_bin1765.fits outfile=/scratch/kocevski/648367/cmap_HighResolution_696816001_697075201_4FGL_J2243.9+2021_daily_bin1765.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=340.99 yref=20.3565 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.59
user 0.42
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/648367/ft1_filtered_4FGL_J2243.9+2021_daily_bin1765.fits evtable="EVENTS" scfile=/scratch/kocevski/648367/ft2_4FGL_J2243.9+2021_daily_bin1765.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/648367/Model_4FGL_J2243.9+2021_daily_bin1765.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/648367/ft1_filtered_4FGL_J2243.9+2021_daily_bin1765.fits.....................!
real 103.82
user 102.34
sys 1.21

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/648367/ft1_filtered_4FGL_J2243.9+2021_daily_bin1765.fits', '/scratch/kocevski/648367/ft2_4FGL_J2243.9+2021_daily_bin1765.fits', expMap='/scratch/kocevski/648367/expmap_696816001_697075201_4FGL_J2243.9+2021_daily_bin1765.fits', expCube='/scratch/kocevski/648367/ltcube_696816001_697075201_4FGL_J2243.9+2021_daily_bin1765.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/648367/Model_4FGL_J2243.9+2021_daily_bin1765.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2243.9+2021'

4FGL J2243.9+2021
   Spectrum: LogParabola
288         norm:  1.733e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
289        alpha:  1.716e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
290         beta:  8.229e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
291           Eb:  1.517e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/648367/ft1_filtered_4FGL_J2243.9+2021_daily_bin1765.fits
Spacecraft file(s): /scratch/kocevski/648367/ft2_4FGL_J2243.9+2021_daily_bin1765.fits
Exposure map: /scratch/kocevski/648367/expmap_696816001_697075201_4FGL_J2243.9+2021_daily_bin1765.fits
Exposure cube: /scratch/kocevski/648367/ltcube_696816001_697075201_4FGL_J2243.9+2021_daily_bin1765.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/648367/Model_4FGL_J2243.9+2021_daily_bin1765.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) = 10232.4534073

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    15.201       1.0000          .0000       .10000E+07
     2 'norm      '    .70447       1.0000          .0000       .10000E+07
     3 'Prefactor '    3.2895       1.0000          .0000       .10000E+07
     4 'norm      '    .13239E-06   1.0000          .0000       .10000E+07
     5 'Prefactor '    .36289E-05   1.0000          .0000       .10000E+07
     6 'Prefactor '    .58918E-05   1.0000          .0000       .10000E+07
     7 'Prefactor '    6.3981       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    3.1103       1.0000          .0000       .10000E+07
    10 'norm      '    1.5724       1.0000          .0000       .10000E+07
    11 'Prefactor '    14.956       1.0000          .0000       .10000E+07
    12 'Prefactor '    10.569       1.0000          .0000       .10000E+07
    13 'Prefactor '    1.3936       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .33712       1.0000          .0000       .10000E+07
    15 'Prefactor '    1.5672       1.0000          .0000       .10000E+07
    16 'Prefactor '    .34439E-03   1.0000          .0000       .10000E+07
    17 'Prefactor '    2.3239       1.0000          .0000       .10000E+07
    18 'Prefactor '    9.1696       1.0000          .0000       .10000E+07
    19 'Normalizat'    .71283       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.1722       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5160E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   10232.37     FROM MIGRAD    STATUS=CONVERGED    110 CALLS     1186 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     13.031        33.970        .66725E-07    .49001E-02
   2  norm          .70477        .66986       -.40590E-07   -.13123E-01
   3  Prefactor     3.3602        2.2515        .19754E-07   -.11383E-01
   4  norm          .22204E-09    3.2073       -.76401E-07** at limit **
   5  Prefactor      .0000        4.8705       -.83322E-08** at limit **
   6  Prefactor     .11102E-09    3.9976        .59640E-08** at limit **
   7  Prefactor     6.3974        .48536        .14532E-06    .70852E-02
   8  Prefactor     .10000E-03    3.1604       -.59502E-06** at limit **
   9  norm          3.1072        1.1633        .24789E-07    .94679E-02
  10  norm          1.5734        1.2379        .21498E-07    .40405E-02
  11  Prefactor     14.588        14.962       -.21466E-07    .58187E-01
  12  Prefactor     10.552        3.2511       -.30846E-09   -.88719E-01
  13  Prefactor     1.3938        .22318        .65173E-08   -.28847E-03
  14  Prefactor     .29644        4.7798       -.22971E-07    .36068E-02
  15  Prefactor     1.6229        17.044        .11131E-06    .24422E-01
  16  Prefactor     .17208E-08    10.284        .17654E-06** at limit **
  17  Prefactor     2.3073        6.4486       -.13204E-06    .22029E-02
  18  Prefactor     9.0329        12.913        .40913E-07   -.80008E-01
  19  Normalizat    .71406        .26635       -.27247E-07   -.11356E-03
  20  Prefactor     1.1723        .14183       -.91391E-06   -.31012E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 13.0308
  norm       = 0.704771
  Prefactor  = 3.36023
  norm       = 2.22045e-10
  Prefactor  = 0
  Prefactor  = 1.11022e-10
  Prefactor  = 6.39737
  Prefactor  = 0.0001
  norm       = 3.10724
  norm       = 1.57336
  Prefactor  = 14.5877
  Prefactor  = 10.5525
  Prefactor  = 1.39381
  Prefactor  = 0.29644
  Prefactor  = 1.62287
  Prefactor  = 1.72085e-09
  Prefactor  = 2.30725
  Prefactor  = 9.03288
  Normalizat = 0.714064
  Prefactor  = 1.1723
 **********
 **   18 **HESSE 
 **********

 FCN=   10232.37     FROM HESSE     STATUS=OK           341 CALLS     1527 TOTAL
                     EDM=   .61E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     13.031        34.039        .25662E-03   -1.5636    
   2  norm          .70477        .67722        .60346E-03   -1.5691    
   3  Prefactor     3.3602        22.037        .55800E-03   -1.5671    
   4  norm          .22204E-09    3.2005        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor      .0000        4.8734        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .11102E-09    3.9963        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     6.3974        .48630        .39669E-02   -1.5202    
   8  Prefactor     .10000E-03    3.1551        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          3.1072        1.1656        .57470E-03   -1.5673    
  10  norm          1.5734        1.2436        .84728E-03   -1.5683    
  11  Prefactor     14.588        16.838        .25872E-03   -1.5632    
  12  Prefactor     10.552        8.8221        .30795E-03   -1.5643    
  13  Prefactor     1.3938        .22614        .40595E-02   -1.5472    
  14  Prefactor     .29644        4.6986        .97166E-02   -1.5697    
  15  Prefactor     1.6229        24.232        .84913E-03   -1.5682    
  16  Prefactor     .17208E-08    10.287        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     2.3073        7.1732        .67255E-03   -1.5678    
  18  Prefactor     9.0329        23.157        .33073E-03   -1.5648    
  19  Normalizat    .71406        .25132        .10598       -1.0334    
  20  Prefactor     1.1723        .12801        .35324E-01   -.87188    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.06149e-07
Minuit parameter uncertainties:
  1  34.0395
  2  0.677224
  3  17.2106
  4  5.13409e-05
  5  1.71719e-05
  6  4.64367e-05
  7  0.486302
  8  1.90645e-05
  9  1.16562
  10  1.24355
  11  16.8382
  12  8.82215
  13  0.226143
  14  2.36038
  15  12.5421
  16  0.000265297
  17  7.17321
  18  23.1573
  19  0.251731
  20  0.128047
Done.

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

Extracting fit parameters...

4FGL J2243.9+2021
   Spectrum: LogParabola
288         norm:  1.573e+00  1.244e+00  0.000e+00  1.000e+06 ( 1.000e-12)
289        alpha:  1.716e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
290         beta:  8.229e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
291           Eb:  1.517e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
513    Prefactor:  1.172e+00  1.280e-01  0.000e+00  1.000e+01 ( 1.000e+00)
514        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
515        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
512   Normalization:  7.141e-01  2.517e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.00
Ra Dec: 340.990 20.357
Photon Index (Fixed Index): 1.72 +/- 0.00
Photon Flux (Fixed Index): 1.78e-08 +/- 1.40e-08
Energy Flux (Fixed Index): 2.30e-05 +/- 1.82e-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) = 10232.1155522
delta logL = 0.250299203441

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10232.1104154
delta logL = 0.255436035506

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.4476       1.0000          .0000       .10000E+07
     2 'alpha     '    1.3002       1.0000          .0000       5.0000    
     3 'Normalizat'    .72020       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1712       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5160E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   10232.11     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      204 TOTAL
                     EDM=   .95E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.4481        1.4136        .89543E-03   -.30198E-02
   2  alpha         1.3003        .54705        .49783       -.38092E-04
   3  Normalizat    .72008        .22811        .10558        .53310E-04
   4  Prefactor     1.1712        .12665        .35350E-01   -.50332E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 1.4481
  alpha      = 1.30033
  Normalizat = 0.720081
  Prefactor  = 1.17124
 **********
 **   18 **HESSE 
 **********

 FCN=   10232.11     FROM HESSE     STATUS=OK            33 CALLS      237 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.4481        1.2286        .93511E-05   -1.5684    
   2  alpha         1.3003        .54099        .19987E-01   -.50051    
   3  Normalizat    .72008        .25066        .46811E-03   -1.0311    
   4  Prefactor     1.1712        .14009        .20780E-03   -.87221    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.44395e-09
Minuit parameter uncertainties:
  1  1.2286
  2  0.546636
  3  0.251055
  4  0.140134
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/648367': 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) = 10232.1104152
delta logL = 0.255436262214

Extracting fit parameters...

4FGL J2243.9+2021
   Spectrum: LogParabola
288         norm:  1.448e+00  1.229e+00  0.000e+00  1.000e+06 ( 1.000e-12)
289        alpha:  1.300e+00  5.466e-01  0.000e+00  5.000e+00 ( 1.000e+00)
290         beta:  8.229e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
291           Eb:  1.517e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
513    Prefactor:  1.171e+00  1.401e-01  0.000e+00  1.000e+01 ( 1.000e+00)
514        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
515        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
512   Normalization:  7.201e-01  2.511e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.51
Ra Dec: 340.990 20.357
Photon Index (Free Index): 1.30 +/- 0.55
Photon Flux (Free Index): 1.13e-08 +/- 1.09e-08
Energy Flux (Free Index): 4.44e-05 +/- 5.43e-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/648367/cmap_HighResolution_696816001_697075201_4FGL_J2243.9+2021_daily_bin1765.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.78e-08', energy_flux2='4.44e-05', photon_flux_error='1.40e-08', dlogl='2.55e-01', energy_flux='2.30e-05', photon_flux2='1.13e-08', job_status='DONE', time_completed='2023-02-03 02:01:07.890251', photon_index_error2='0.55', photon_index2='1.30', ts='5.00', fit_tolerance='1e-08', GAL='1.17', photon_index_error='0.00', energy_flux_error2='5.43e-05', EG='0.71', time_epoch_completed='1675418467.89', return_code='0', job_id='648367', GAL2='1.17', EG2='0.72', return_code2='0', energy_flux_error='1.82e-05', photon_flux_error2='1.09e-08', ts2='5.51', photon_index='1.72' WHERE bin_id='1765' AND source_name='4FGL J2243.9+2021' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Feb  3 02:01:07 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0264>
Subject: Job 648367: <4FGL_J2243.9+2021_daily_bin1765> in cluster <slac> Done

Job <4FGL_J2243.9+2021_daily_bin1765> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Fri Feb  3 01:45:17 2023
Job was executed on host(s) <bullet0264>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Feb  3 01:46:39 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Feb  3 01:46:39 2023
Terminated at Fri Feb  3 02:01:08 2023
Results reported at Fri Feb  3 02:01:08 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2243.9+2021_daily_bin1765 340.99 20.3565 696816001 697075201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2243.9+2021 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   627.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             273.61 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   869 sec.
    Turnaround time :                            951 sec.

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

