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


Performing analysis on: 4FGL_J2243.9+2021_daily_bin1753
RA = 340.99, Dec = 20.3565
tmin = 693705601, tmax = 693964801
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='467590', job_status='RUN', time_executed='2022-12-29 01:40:58.894768', time_epoch_executed='1672306858.89' WHERE source_name='4FGL J2243.9+2021' and cadence='daily' and bin_id='1753'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/467590

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/467590/ft1_4FGL_J2243.9+2021_daily_bin1753.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/467590/ft2_4FGL_J2243.9+2021_daily_bin1753.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/467590/ft1_4FGL_J2243.9+2021_daily_bin1753.fits outfile=/scratch/kocevski/467590/ft1_filteredMKT_4FGL_J2243.9+2021_daily_bin1753.fits ra=340.99 dec=20.3565 rad=12.0 tmin=693705601.0 tmax=693964801.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.62
user 4.40
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/467590/ft2_4FGL_J2243.9+2021_daily_bin1753.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/467590/ft1_filteredMKT_4FGL_J2243.9+2021_daily_bin1753.fits evtable="EVENTS" outfile="/scratch/kocevski/467590/ft1_filtered_4FGL_J2243.9+2021_daily_bin1753.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.53
user 0.35
sys 0.16

Number of photons that the gtmktime cut: 755

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/467590/ft1_filtered_4FGL_J2243.9+2021_daily_bin1753.fits evtable="EVENTS" scfile=/scratch/kocevski/467590/ft2_4FGL_J2243.9+2021_daily_bin1753.fits sctable="SC_DATA" expcube=/scratch/kocevski/467590/ltcube_693705601_693964801_4FGL_J2243.9+2021_daily_bin1753.fits outfile=/scratch/kocevski/467590/expmap_693705601_693964801_4FGL_J2243.9+2021_daily_bin1753.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/467590/ltcube_693705601_693964801_4FGL_J2243.9+2021_daily_bin1753.fits
.....................!
real 193.55
user 187.58
sys 4.78

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/467590/ft1_filtered_4FGL_J2243.9+2021_daily_bin1753.fits scfile=/scratch/kocevski/467590/ft2_4FGL_J2243.9+2021_daily_bin1753.fits outfile=/scratch/kocevski/467590/cmap_693705601_693964801_4FGL_J2243.9+2021_daily_bin1753.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.58
user 0.39
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/467590/ft1_filtered_4FGL_J2243.9+2021_daily_bin1753.fits scfile=/scratch/kocevski/467590/ft2_4FGL_J2243.9+2021_daily_bin1753.fits outfile=/scratch/kocevski/467590/cmap_HighResolution_693705601_693964801_4FGL_J2243.9+2021_daily_bin1753.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.56
user 0.40
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/467590/ft1_filtered_4FGL_J2243.9+2021_daily_bin1753.fits', '/scratch/kocevski/467590/ft2_4FGL_J2243.9+2021_daily_bin1753.fits', expMap='/scratch/kocevski/467590/expmap_693705601_693964801_4FGL_J2243.9+2021_daily_bin1753.fits', expCube='/scratch/kocevski/467590/ltcube_693705601_693964801_4FGL_J2243.9+2021_daily_bin1753.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/467590/Model_4FGL_J2243.9+2021_daily_bin1753.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/467590/ft1_filtered_4FGL_J2243.9+2021_daily_bin1753.fits
Spacecraft file(s): /scratch/kocevski/467590/ft2_4FGL_J2243.9+2021_daily_bin1753.fits
Exposure map: /scratch/kocevski/467590/expmap_693705601_693964801_4FGL_J2243.9+2021_daily_bin1753.fits
Exposure cube: /scratch/kocevski/467590/ltcube_693705601_693964801_4FGL_J2243.9+2021_daily_bin1753.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/467590/Model_4FGL_J2243.9+2021_daily_bin1753.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) = 8349.81966332

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    33.223       1.0000          .0000       .10000E+07
     2 'norm      '    1.1941       1.0000          .0000       .10000E+07
     3 'Prefactor '    18.498       1.0000          .0000       .10000E+07
     4 'norm      '    .74996E-07   1.0000          .0000       .10000E+07
     5 'Prefactor '    .16615E-01   1.0000          .0000       .10000E+07
     6 'Prefactor '    9.4079       1.0000          .0000       .10000E+07
     7 'Prefactor '    1.7035       1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.2742       1.0000         .10000E-03   10000.    
     9 'norm      '    1.8616       1.0000          .0000       .10000E+07
    10 'norm      '    .15121E-06   1.0000          .0000       .10000E+07
    11 'Prefactor '    .87412E-03   1.0000          .0000       .10000E+07
    12 'Prefactor '    .37004E-03   1.0000          .0000       .10000E+07
    13 'Prefactor '    1.0780       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .19318E-02   1.0000          .0000       .10000E+07
    15 'Prefactor '    .74855E-03   1.0000          .0000       .10000E+07
    16 'Prefactor '    11.794       1.0000          .0000       .10000E+07
    17 'Prefactor '    .47710       1.0000          .0000       .10000E+07
    18 'Prefactor '    .29181E-03   1.0000          .0000       .10000E+07
    19 'Normalizat'    1.5769       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .81411       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=   8349.814     FROM MIGRAD    STATUS=CONVERGED    136 CALLS     1516 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     33.799        19.567       -.39493E-05    .81734E-01
   2  norm          1.1937        .96289        .15223E-06   -.17020E-01
   3  Prefactor     18.479        7.0596        .67615E-06    .30742E-01
   4  norm          .11102E-09    2.3607       -.70829E-07** at limit **
   5  Prefactor     .27756E-09    22.203       -.17796E-05** at limit **
   6  Prefactor     9.4123        3.9051       -.10123E-05   -.21605E-01
   7  Prefactor     1.7039        .32383       -.31655E-06    .54452E-02
   8  Prefactor     3.2115        7.5953        .65137E-05    .10931E-03
   9  norm          1.8613        1.2295        .66917E-07   -.27337E-03
  10  norm          .11102E-09    1.7645        .30546E-06** at limit **
  11  Prefactor     .14433E-07    13.361       -.21609E-05** at limit **
  12  Prefactor     .55511E-10    9.0446       -.95379E-06** at limit **
  13  Prefactor     1.0780        .23460        .25743E-06    .26540E-02
  14  Prefactor     .23648E-07    12.587        .15690E-05** at limit **
  15  Prefactor     .45003E-06    78.751        .43026E-05** at limit **
  16  Prefactor     11.711        21.518        .68672E-05    .35740E-01
  17  Prefactor     .40060        16.025        .34856E-05   -.30737E-02
  18  Prefactor     .55511E-10    8.2921        .43470E-06** at limit **
  19  Normalizat    1.5765        .29435       -.23928E-04   -.57371E-03
  20  Prefactor     .81422        .14637        .11866E-05   -.46960E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 33.7992
  norm       = 1.19372
  Prefactor  = 18.4787
  norm       = 1.11022e-10
  Prefactor  = 2.77556e-10
  Prefactor  = 9.41228
  Prefactor  = 1.70387
  Prefactor  = 3.21152
  norm       = 1.86128
  norm       = 1.11022e-10
  Prefactor  = 1.44329e-08
  Prefactor  = 5.55112e-11
  Prefactor  = 1.07796
  Prefactor  = 2.36478e-08
  Prefactor  = 4.50029e-07
  Prefactor  = 11.711
  Prefactor  = 0.400602
  Prefactor  = 5.55112e-11
  Normalizat = 1.57652
  Prefactor  = 0.814219
 **********
 **   18 **HESSE 
 **********

 FCN=   8349.814     FROM HESSE     STATUS=OK           335 CALLS     1851 TOTAL
                     EDM=   .40E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     33.799        36.633        .17352E-03   -1.5592    
   2  norm          1.1937        .98278        .10407E-02   -1.5686    
   3  Prefactor     18.479        19.465        .23260E-03   -1.5622    
   4  norm          .11102E-09    2.3711        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .27756E-09    21.261        .17270E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     9.4123        18.373        .32649E-03   -1.5647    
   7  Prefactor     1.7039        .32506        .48401E-02   -1.5447    
   8  Prefactor     3.2115        7.6170        .55947E-02   -1.5350    
   9  norm          1.8613        1.2337        .76340E-03   -1.5681    
  10  norm          .11102E-09    1.7289        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .14433E-07    14.151        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .55511E-10    9.0526        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     1.0780        .23507        .43771E-02   -1.5500    
  14  Prefactor     .23648E-07    13.620        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .45003E-06    79.479        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     11.711        26.272        .29145E-03   -1.5640    
  17  Prefactor     .40060        3.4134        .81048E-02   -1.5695    
  18  Prefactor     .55511E-10    8.2887        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.5765        .25452        .76809E-01   -.75650    
  20  Prefactor     .81422        .12343        .43901E-01   -.99206    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.95436e-07
Minuit parameter uncertainties:
  1  36.6328
  2  0.982781
  3  19.4649
  4  2.94497e-05
  5  0.000155753
  6  18.3727
  7  0.32506
  8  7.6193
  9  1.23373
  10  2.79406e-05
  11  0.000903141
  12  4.0221e-05
  13  0.235074
  14  0.00113539
  15  0.0119615
  16  26.2727
  17  2.33874
  18  4.17401e-05
  19  0.254732
  20  0.123467
Done.

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

Extracting fit parameters...

4FGL J2243.9+2021
   Spectrum: LogParabola
288         norm:  1.110e-10  2.794e-05  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:  8.142e-01  1.235e-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:  1.577e+00  2.547e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 340.990 20.357
Photon Flux Upper Limit: 4.85e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.29e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/467590/likelihoodResults_693705601_693964801_4FGL_J2243.9+2021_daily_bin1753.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) = 8349.15699821
delta logL = 0.656986339611

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8349.14307332
delta logL = 0.670911233608

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .30229       1.0000          .0000       .10000E+07
     2 'alpha     '    3.4135       1.0000          .0000       5.0000    
     3 'Normalizat'    1.4916       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .83288       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=   8349.143     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      256 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .30169        3.6429        .10048E-02    .82961E-01
   2  alpha         3.4160        3.8012        .26150        .25750E-03
   3  Normalizat    1.4911        .49448E-01    .78487E-01   -.15944E-03
   4  Prefactor     .83310        .25209E-01    .44144E-01   -.21467E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.301693
  alpha      = 3.41597
  Normalizat = 1.49108
  Prefactor  = 0.833097
 **********
 **   18 **HESSE 
 **********

 FCN=   8349.143     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      291 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .30169        12.337        .45608E-04   -1.5697    
   2  alpha         3.4160        3.9431        .13327E-01    .37512    
   3  Normalizat    1.4911        .27197        .34737E-03   -.78029    
   4  Prefactor     .83310        .13772        .22765E-03   -.98520    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.5558e-09
Minuit parameter uncertainties:
  1  3.8585
  2  6.06889
  3  0.272237
  4  0.137779
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/467590': 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): 102
logL (Free Index) = 8349.14306603
delta logL = 0.670918519176

Extracting fit parameters...

4FGL J2243.9+2021
   Spectrum: LogParabola
288         norm:  3.017e-01  3.858e+00  0.000e+00  1.000e+06 ( 1.000e-12)
289        alpha:  3.416e+00  6.069e+00  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:  8.331e-01  1.378e-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:  1.491e+00  2.722e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.40
Ra Dec: 340.990 20.357
Photon Index (Free Index): 3.42 +/- 6.07
Photon Flux (Free Index): 8.70e-08 +/- 1.11e-07
Energy Flux (Free Index): 1.61e-05 +/- 2.49e-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/467590/cmap_HighResolution_693705601_693964801_4FGL_J2243.9+2021_daily_bin1753.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.29e-05', comment='SUCCESS', energy_flux2='1.61e-05', dlogl='6.71e-01', photon_flux2='8.70e-08', job_status='DONE', time_completed='2022-12-29 01:51:33.454298', photon_index_error2='6.07', photon_index2='3.42', ts='-0.00', fit_tolerance='1e-08', GAL='0.81', photon_index_error='0.00', photon_flux_upper_limit='4.85e-08', energy_flux_error2='2.49e-05', EG='1.58', time_epoch_completed='1672307493.45', return_code='0', job_id='467590', GAL2='0.83', EG2='1.49', return_code2='102', photon_flux_error2='1.11e-07', ts2='1.40', photon_index='1.72' WHERE bin_id='1753' AND source_name='4FGL J2243.9+2021' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Dec 29 01:51:33 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0113>
Subject: Job 467590: <4FGL_J2243.9+2021_daily_bin1753> in cluster <slac> Done

Job <4FGL_J2243.9+2021_daily_bin1753> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Thu Dec 29 01:40:24 2022
Job was executed on host(s) <bullet0113>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Dec 29 01:40:49 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Dec 29 01:40:49 2022
Terminated at Thu Dec 29 01:51:33 2022
Results reported at Thu Dec 29 01:51:33 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2243.9+2021_daily_bin1753 340.99 20.3565 693705601 693964801 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 :                                   634.17 sec.
    Max Memory :                                 1275 MB
    Average Memory :                             394.41 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   2929 MB
    Max Processes :                              6
    Max Threads :                                21
    Run time :                                   644 sec.
    Turnaround time :                            669 sec.

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

