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 64 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 = 7481
number of fields = 31
RA_SUN column already exists. File will not be modified.DDone.


Performing analysis on: 4FGL_J2243.9+2021_daily_bin1717
RA = 340.99, Dec = 20.3565
tmin = 684374401, tmax = 684633601
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='248771', job_status='RUN', time_executed='2022-09-17 00:11:18.464823', time_epoch_executed='1663398678.46' WHERE source_name='4FGL J2243.9+2021' and cadence='daily' and bin_id='1717'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/248771

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/248771/ft1_4FGL_J2243.9+2021_daily_bin1717.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/248771/ft2_4FGL_J2243.9+2021_daily_bin1717.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/248771/ft1_4FGL_J2243.9+2021_daily_bin1717.fits outfile=/scratch/kocevski/248771/ft1_filteredMKT_4FGL_J2243.9+2021_daily_bin1717.fits ra=340.99 dec=20.3565 rad=12.0 tmin=684374401.0 tmax=684633601.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 5.37
user 4.77
sys 0.22

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

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

Number of photons that the gtmktime cut: 734

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/248771/ft1_filtered_4FGL_J2243.9+2021_daily_bin1717.fits" evtable="EVENTS" scfile=/scratch/kocevski/248771/ft2_4FGL_J2243.9+2021_daily_bin1717.fits sctable="SC_DATA" outfile=/scratch/kocevski/248771/ltcube_684374401_684633601_4FGL_J2243.9+2021_daily_bin1717.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/248771/ft2_4FGL_J2243.9+2021_daily_bin1717.fits
.....................!
real 17.45
user 16.14
sys 0.42

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/248771/ft1_filtered_4FGL_J2243.9+2021_daily_bin1717.fits evtable="EVENTS" scfile=/scratch/kocevski/248771/ft2_4FGL_J2243.9+2021_daily_bin1717.fits sctable="SC_DATA" expcube=/scratch/kocevski/248771/ltcube_684374401_684633601_4FGL_J2243.9+2021_daily_bin1717.fits outfile=/scratch/kocevski/248771/expmap_684374401_684633601_4FGL_J2243.9+2021_daily_bin1717.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/248771/ltcube_684374401_684633601_4FGL_J2243.9+2021_daily_bin1717.fits
.....................!
real 194.75
user 187.92
sys 5.26

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/248771/ft1_filtered_4FGL_J2243.9+2021_daily_bin1717.fits scfile=/scratch/kocevski/248771/ft2_4FGL_J2243.9+2021_daily_bin1717.fits outfile=/scratch/kocevski/248771/cmap_684374401_684633601_4FGL_J2243.9+2021_daily_bin1717.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.57
user 0.39
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/248771/ft1_filtered_4FGL_J2243.9+2021_daily_bin1717.fits scfile=/scratch/kocevski/248771/ft2_4FGL_J2243.9+2021_daily_bin1717.fits outfile=/scratch/kocevski/248771/cmap_HighResolution_684374401_684633601_4FGL_J2243.9+2021_daily_bin1717.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.41
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .68034       1.0000          .0000       .10000E+07
     2 'norm      '    .16653E-09   1.0000          .0000       .10000E+07
     3 'Prefactor '    14.397       1.0000          .0000       .10000E+07
     4 'norm      '    13.048       1.0000          .0000       .10000E+07
     5 'Prefactor '    .19746E-01   1.0000          .0000       .10000E+07
     6 'Prefactor '    5.0541       1.0000          .0000       .10000E+07
     7 'Prefactor '    .82576       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .84272       1.0000         .10000E-03   10000.    
     9 'norm      '    1.6911       1.0000          .0000       .10000E+07
    10 'norm      '    .48574       1.0000          .0000       .10000E+07
    11 'Prefactor '    101.22       1.0000          .0000       .10000E+07
    12 'Prefactor '    5.7178       1.0000          .0000       .10000E+07
    13 'Prefactor '    3.2629       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .40524E-01   1.0000          .0000       .10000E+07
    15 'Prefactor '    22.491       1.0000          .0000       .10000E+07
    16 'Prefactor '    48.783       1.0000          .0000       .10000E+07
    17 'Prefactor '    3.7807       1.0000          .0000       .10000E+07
    18 'Prefactor '    .10086       1.0000          .0000       .10000E+07
    19 'Normalizat'    .63217       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.1513       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=   8071.090     FROM MIGRAD    STATUS=CONVERGED    142 CALLS     1622 TOTAL
                     EDM=   .12E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .16798E-06    102.48       -.11752E-05** at limit **
   2  norm           .0000        .41830        .13197E-07** at limit **
   3  Prefactor     14.380        16.406       -.93536E-06   -.49429E-03
   4  norm          13.130        7.5507       -.34226E-06   -.22669E-03
   5  Prefactor      .0000        16.723        .10267E-05** at limit **
   6  Prefactor     5.1198        7.6794        .13040E-06    .10416E-03
   7  Prefactor     .82577        .27223       -.29730E-08   -.34435E-03
   8  Prefactor     .82966        19.293        .12351E-05   -.12034E-04
   9  norm          1.6930        1.5455       -.14040E-06   -.97420E-03
  10  norm          .48487        1.2614       -.25804E-06    .55851E-03
  11  Prefactor     102.56        61.364       -.18732E-07   -.17497E-01
  12  Prefactor     5.6859        13.988       -.25579E-05   -.57598E-03
  13  Prefactor     3.2616        .37375        .14594E-06    .68434E-04
  14  Prefactor      .0000        13.617       -.26778E-05** at limit **
  15  Prefactor     23.415        35.359       -.15752E-05    .16450E-01
  16  Prefactor     49.069        10.806       -.21335E-06   -.10114    
  17  Prefactor     3.7417        7.5240       -.15492E-06    .51155E-04
  18  Prefactor      .0000        22.155        .14406E-05** at limit **
  19  Normalizat    .63075        .31365        .22025E-04   -.19603E-04
  20  Prefactor     1.1513        .15862       -.84313E-05   -.31520E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.67977e-07
  norm       = 0
  Prefactor  = 14.3805
  norm       = 13.1304
  Prefactor  = 0
  Prefactor  = 5.11977
  Prefactor  = 0.825774
  Prefactor  = 0.829664
  norm       = 1.693
  norm       = 0.484872
  Prefactor  = 102.558
  Prefactor  = 5.68591
  Prefactor  = 3.26164
  Prefactor  = 0
  Prefactor  = 23.4147
  Prefactor  = 49.0694
  Prefactor  = 3.74171
  Prefactor  = 0
  Normalizat = 0.630747
  Prefactor  = 1.15129
 **********
 **   18 **HESSE 
 **********

 FCN=   8071.090     FROM HESSE     STATUS=OK           351 CALLS     1973 TOTAL
                     EDM=   .37E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .16798E-06    102.76        .62319E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm           .0000        .41660        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     14.380        16.428        .26371E-03   -1.5632    
   4  norm          13.130        7.5657        .27704E-03   -1.5635    
   5  Prefactor      .0000        16.052        .17053E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     5.1198        7.6925        .44703E-03   -1.5663    
   7  Prefactor     .82577        .27493        .57455E-02   -1.5526    
   8  Prefactor     .82966        18.755        .12598E-01   -1.5526    
   9  norm          1.6930        1.5684        .80913E-03   -1.5682    
  10  norm          .48487        1.4030        .36319E-02   -1.5694    
  11  Prefactor     102.56        61.887        .99403E-04   -1.5505    
  12  Prefactor     5.6859        14.351        .41982E-03   -1.5660    
  13  Prefactor     3.2616        .37381        .37852E-02   -1.5347    
  14  Prefactor      .0000        4.9733        .65268E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     23.415        39.448        .21092E-03   -1.5611    
  16  Prefactor     49.069        42.377        .14319E-03   -1.5568    
  17  Prefactor     3.7417        7.5640        .51894E-03   -1.5669    
  18  Prefactor      .0000        21.641        .13906E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .63075        .30027        .11491       -1.0669    
  20  Prefactor     1.1513        .14729        .35898E-01   -.87844    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.70119e-06
Minuit parameter uncertainties:
  1  0.00830915
  2  2.16663e-07
  3  16.4282
  4  7.56568
  5  1.41698e-05
  6  7.69249
  7  0.274934
  8  7.8916
  9  1.56843
  10  1.40297
  11  61.8877
  12  14.3507
  13  0.37381
  14  1.08332e-05
  15  39.4487
  16  42.3776
  17  7.56399
  18  4.6736e-06
  19  0.301048
  20  0.14734DoDone.

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

Extracting fit parameters...

4FGL J2243.9+2021
   Spectrum: LogParabola
288         norm:  4.849e-01  1.403e+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.151e+00  1.473e-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:  6.307e-01  3.010e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/248771/likelihoodResults_684374401_684633601_4FGL_J2243.9+2021_daily_bin1717.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): 102
logL (Free Index) = 8070.5188987
delta logL = 0.571229686544

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8070.48125372
delta logL = 0.608874673734

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .21792       1.0000          .0000       .10000E+07
     2 'alpha     '    3.6082       1.0000          .0000       5.0000    
     3 'Normalizat'    .53953       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1778       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=   8070.481     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      231 TOTAL
                     EDM=   .48E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .21686        2.5565        .82149E-03** at limit **
   2  alpha         3.6104        3.8707        .27511        .10143E-03
   3  Normalizat    .53945        .50268E-01    .12337        .88491E-04
   4  Prefactor     1.1779        .26568E-01    .35177E-01    .92532E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.21686
  alpha      = 3.61038
  Normalizat = 0.539454
  Prefactor  = 1.17789
 **********
 **   18 **HESSE 
 **********

 FCN=   8070.481     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      264 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .21686        8.3935        .37454E-04   -1.5699    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         3.6104        4.0265        .13713E-01    .46023    
   3  Normalizat    .53945        .23731        .54722E-03   -1.1062    
   4  Prefactor     1.1779        .12018        .20148E-03   -.87014    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.72981e-10
Minuit parameter uncertainties:
  1  2.69831
  2  6.07429
  3  0.237754
  4  0.120212
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/248771': 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) = 8070.48125288
delta logL = 0.608875506387

Extracting fit parameters...

4FGL J2243.9+2021
   Spectrum: LogParabola
288         norm:  2.169e-01  2.698e+00  0.000e+00  1.000e+06 ( 1.000e-12)
289        alpha:  3.610e+00  6.074e+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:  1.178e+00  1.202e-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:  5.395e-01  2.378e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.51
Ra Dec: 340.990 20.357
Photon Index (Free Index): 3.61 +/- 6.07
Photon Flux (Free Index): 9.72e-08 +/- 1.65e-07
Energy Flux (Free Index): 1.69e-05 +/- 1.53e-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/248771/cmap_HighResolution_684374401_684633601_4FGL_J2243.9+2021_daily_bin1717.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.95e-05', comment='SUCCESS', energy_flux2='1.69e-05', dlogl='6.09e-01', photon_flux2='9.72e-08', job_status='DONE', time_completed='2022-09-17 00:21:56.280888', photon_index_error2='6.07', photon_index2='3.61', ts='0.20', fit_tolerance='1e-08', GAL='1.15', photon_index_error='0.00', photon_flux_upper_limit='5.36e-08', energy_flux_error2='1.53e-05', EG='0.63', time_epoch_completed='1663399316.28', return_code='0', job_id='248771', GAL2='1.18', EG2='0.54', return_code2='102', photon_flux_error2='1.65e-07', ts2='1.51', photon_index='1.72' WHERE bin_id='1717' AND source_name='4FGL J2243.9+2021' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 17 00:21:56 PDT 2022

-----------------------------------------------------------
Sender: LSF System <lsf@bullet0236>
Subject: Job 248799: <4FGL_J2243.9+2021_daily_bin1717> in cluster <slac> Done

Job <4FGL_J2243.9+2021_daily_bin1717> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sat Sep 17 00:05:28 2022
Job was executed on host(s) <bullet0236>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 17 00:10:12 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep 17 00:10:12 2022
Terminated at Sat Sep 17 00:21:01 2022
Results reported at Sat Sep 17 00:21:01 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2243.9+2021_daily_bin1717 340.99 20.3565 684374401 684633601 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 :                                   632.37 sec.
    Max Memory :                                 618 MB
    Average Memory :                             304.27 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   648 sec.
    Turnaround time :                            933 sec.

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


------------------------------------------------------------
Sender: LSF System <scs@bullet0116>
Subject: Job 248771: <4FGL_J2243.9+2021_daily_bin1717> in cluster <slac> Done

Job <4FGL_J2243.9+2021_daily_bin1717> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sat Sep 17 00:05:27 2022
Job was executed on host(s) <bullet0116>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 17 00:10:01 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep 17 00:10:01 2022
Terminated at Sat Sep 17 00:21:57 2022
Results reported at Sat Sep 17 00:21:57 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2243.9+2021_daily_bin1717 340.99 20.3565 684374401 684633601 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 :                                   635.33 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             349.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   715 sec.
    Turnaround time :                            990 sec.

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

