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


Performing analysis on: 4FGL_J2243.9+2021_weekly_bin741
RA = 340.99, Dec = 20.3565
tmin = 687139201, tmax = 687744001
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='396654', job_status='RUN', time_executed='2022-10-18 01:41:05.525440', time_epoch_executed='1666082465.53' WHERE source_name='4FGL J2243.9+2021' and cadence='weekly' and bin_id='741'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/396654

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/396654/ft1_4FGL_J2243.9+2021_weekly_bin741.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/396654/ft2_4FGL_J2243.9+2021_weekly_bin741.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/396654/ft1_4FGL_J2243.9+2021_weekly_bin741.fits outfile=/scratch/kocevski/396654/ft1_filteredMKT_4FGL_J2243.9+2021_weekly_bin741.fits ra=340.99 dec=20.3565 rad=12.0 tmin=687139201.0 tmax=687744001.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 6.66
user 6.37
sys 0.27

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

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

Number of photons that the gtmktime cut: 1032

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/396654/ft1_filtered_4FGL_J2243.9+2021_weekly_bin741.fits" evtable="EVENTS" scfile=/scratch/kocevski/396654/ft2_4FGL_J2243.9+2021_weekly_bin741.fits sctable="SC_DATA" outfile=/scratch/kocevski/396654/ltcube_687139201_687744001_4FGL_J2243.9+2021_weekly_bin741.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/396654/ft2_4FGL_J2243.9+2021_weekly_bin741.fits
.....................!
real 27.44
user 27.03
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/396654/ft1_filtered_4FGL_J2243.9+2021_weekly_bin741.fits evtable="EVENTS" scfile=/scratch/kocevski/396654/ft2_4FGL_J2243.9+2021_weekly_bin741.fits sctable="SC_DATA" expcube=/scratch/kocevski/396654/ltcube_687139201_687744001_4FGL_J2243.9+2021_weekly_bin741.fits outfile=/scratch/kocevski/396654/expmap_687139201_687744001_4FGL_J2243.9+2021_weekly_bin741.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/396654/ltcube_687139201_687744001_4FGL_J2243.9+2021_weekly_bin741.fits
.....................!
real 190.62
user 185.18
sys 5.10

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/396654/ft1_filtered_4FGL_J2243.9+2021_weekly_bin741.fits scfile=/scratch/kocevski/396654/ft2_4FGL_J2243.9+2021_weekly_bin741.fits outfile=/scratch/kocevski/396654/cmap_687139201_687744001_4FGL_J2243.9+2021_weekly_bin741.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.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/396654/ft1_filtered_4FGL_J2243.9+2021_weekly_bin741.fits scfile=/scratch/kocevski/396654/ft2_4FGL_J2243.9+2021_weekly_bin741.fits outfile=/scratch/kocevski/396654/cmap_HighResolution_687139201_687744001_4FGL_J2243.9+2021_weekly_bin741.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.58
user 0.42
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/396654/ft1_filtered_4FGL_J2243.9+2021_weekly_bin741.fits', '/scratch/kocevski/396654/ft2_4FGL_J2243.9+2021_weekly_bin741.fits', expMap='/scratch/kocevski/396654/expmap_687139201_687744001_4FGL_J2243.9+2021_weekly_bin741.fits', expCube='/scratch/kocevski/396654/ltcube_687139201_687744001_4FGL_J2243.9+2021_weekly_bin741.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/396654/Model_4FGL_J2243.9+2021_weekly_bin741.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/396654/ft1_filtered_4FGL_J2243.9+2021_weekly_bin741.fits
Spacecraft file(s): /scratch/kocevski/396654/ft2_4FGL_J2243.9+2021_weekly_bin741.fits
Exposure map: /scratch/kocevski/396654/expmap_687139201_687744001_4FGL_J2243.9+2021_weekly_bin741.fits
Exposure cube: /scratch/kocevski/396654/ltcube_687139201_687744001_4FGL_J2243.9+2021_weekly_bin741.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/396654/Model_4FGL_J2243.9+2021_weekly_bin741.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 10615.0338155

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .50212E-03   1.0000          .0000       .10000E+07
     2 'norm      '    .17264E-07   1.0000          .0000       .10000E+07
     3 'Prefactor '    34.190       1.0000          .0000       .10000E+07
     4 'norm      '    5.2622       1.0000          .0000       .10000E+07
     5 'Prefactor '    1.1946       1.0000          .0000       .10000E+07
     6 'Prefactor '    .34388E-04   1.0000          .0000       .10000E+07
     7 'Prefactor '    .73990       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .16210E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    2.9426       1.0000          .0000       .10000E+07
    10 'norm      '    1.6425       1.0000          .0000       .10000E+07
    11 'Prefactor '    13.264       1.0000          .0000       .10000E+07
    12 'Prefactor '    .42754E-05   1.0000          .0000       .10000E+07
    13 'Prefactor '    5.6126       1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.1290       1.0000          .0000       .10000E+07
    15 'Prefactor '    60.753       1.0000          .0000       .10000E+07
    16 'Prefactor '    123.90       1.0000          .0000       .10000E+07
    17 'Prefactor '    11.275       1.0000          .0000       .10000E+07
    18 'Prefactor '    .38774E-03   1.0000          .0000       .10000E+07
    19 'Normalizat'    .65046       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0229       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=   10614.87     FROM MIGRAD    STATUS=CONVERGED    114 CALLS     1603 TOTAL
                     EDM=   .15E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .61062E-09    11.276       -.13668E-05** at limit **
   2  norm           .0000        .37484        .13364E-06** at limit **
   3  Prefactor     34.003        2.0307        .79836E-07    .17558E-02
   4  norm          5.2593        4.4908        .14290E-06    .20277E-02
   5  Prefactor     1.4123        17.313       -.40149E-05   -.32574E-03
   6  Prefactor      .0000        8.4034       -.11698E-05** at limit **
   7  Prefactor     .73905        .20937        .66052E-06   -.57411E-03
   8  Prefactor     .10000E-03    2.5759        .71482E-05** at limit **
   9  norm          2.9444        1.2887        .51552E-07   -.53160E-03
  10  norm          1.6429        1.2005        .25345E-06    .20855E-02
  11  Prefactor     13.230        2.0704        .35313E-07   -.32292E-01
  12  Prefactor      .0000        5.6659        .73501E-06** at limit **
  13  Prefactor     5.6123        .38841       -.32998E-06    .53605E-03
  14  Prefactor     3.2242        9.5726        .23318E-05   -.48831E-03
  15  Prefactor     61.546        33.109        .89494E-06    .27432E-01
  16  Prefactor     124.18        11.727        .28043E-06   -.12284    
  17  Prefactor     11.269        9.0258       -.21313E-05   -.39361E-02
  18  Prefactor     .19984E-08    4.5372       -.13052E-05** at limit **
  19  Normalizat    .64995        .26476        .23982E-04    .56074E-04
  20  Prefactor     1.0227        .13497       -.69170E-05    .13397E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.10623e-10
  norm       = 0
  Prefactor  = 34.003
  norm       = 5.25933
  Prefactor  = 1.41225
  Prefactor  = 0
  Prefactor  = 0.739053
  Prefactor  = 0.0001
  norm       = 2.94436
  norm       = 1.64289
  Prefactor  = 13.2298
  Prefactor  = 0
  Prefactor  = 5.61235
  Prefactor  = 3.22416
  Prefactor  = 61.546
  Prefactor  = 124.182
  Prefactor  = 11.2686
  Prefactor  = 1.9984e-09
  Normalizat = 0.649952
  Prefactor  = 1.02266
 **********
 **   18 **HESSE 
 **********

 FCN=   10614.87     FROM HESSE     STATUS=OK           335 CALLS     1938 TOTAL
                     EDM=   .18E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .61062E-09    12.270        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm           .0000        .36884        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     34.003        18.124        .17104E-03   -1.5591    
   4  norm          5.2593        4.4818        .43793E-03   -1.5662    
   5  Prefactor     1.4123        17.545        .10403E-02   -1.5684    
   6  Prefactor      .0000        12.070        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .73905        .21204        .53269E-02   -1.5536    
   8  Prefactor     .10000E-03    2.5650        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          2.9444        1.2938        .59183E-03   -1.5674    
  10  norm          1.6429        1.1965        .82400E-03   -1.5682    
  11  Prefactor     13.230        30.343        .27477E-03   -1.5635    
  12  Prefactor      .0000        5.6801        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     5.6123        .39360        .36021E-02   -1.5234    
  14  Prefactor     3.2242        9.6122        .57288E-03   -1.5672    
  15  Prefactor     61.546        37.994        .12831E-03   -1.5551    
  16  Prefactor     124.18        61.077        .89845E-04   -1.5485    
  17  Prefactor     11.269        9.0712        .29811E-03   -1.5641    
  18  Prefactor     .19984E-08    11.593        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .64995        .24802        .11206       -1.0590    
  20  Prefactor     1.0227        .12222        .41866E-01   -.91978    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.82788e-06
Minuit parameter uncertainties:
  1  0.000171382
  2  4.19539e-07
  3  18.1244
  4  4.4818
  5  9.9554
  6  2.59539e-05
  7  0.212037
  8  9.28487e-06
  9  1.29381
  10  1.19649
  11  30.3432
  12  1.29989e-05
  13  0.393599
  14  9.61225
  15  37.9945
  16  61.0773
  17  9.07119
  18  0.000303986
  19  0.248443
  20  0.12225
Done.

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

Extracting fit parameters...

4FGL J2243.9+2021
   Spectrum: LogParabola
288         norm:  1.643e+00  1.196e+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.023e+00  1.223e-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.500e-01  2.484e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.86
Ra Dec: 340.990 20.357
Photon Index (Fixed Index): 1.72 +/- 0.00
Photon Flux (Fixed Index): 1.85e-08 +/- 1.35e-08
Energy Flux (Fixed Index): 2.41e-05 +/- 1.75e-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) = 10614.5158217
delta logL = 0.356401878233

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10614.4861771
delta logL = 0.386046443

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.3436       1.0000          .0000       .10000E+07
     2 'alpha     '    1.2065       1.0000          .0000       5.0000    
     3 'Normalizat'    .65519       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0227       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=   10614.49     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      206 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.3434        1.0140        .94472E-03   -.49292E-02
   2  alpha         1.2063        .42776        .49670       -.47372E-04
   3  Normalizat    .65521        .22961        .11165        .61234E-04
   4  Prefactor     1.0227        .12143        .41880E-01    .10848E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 1.3434
  alpha      = 1.20633
  Normalizat = 0.655215
  Prefactor  = 1.02271
 **********
 **   18 **HESSE 
 **********

 FCN=   10614.49     FROM HESSE     STATUS=OK            33 CALLS      239 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.3434        1.1696        .85707E-05   -1.5685    
   2  alpha         1.2063        .54130        .19693E-01   -.54389    
   3  Normalizat    .65521        .25268        .49518E-03   -1.0569    
   4  Prefactor     1.0227        .13428        .21212E-03   -.91976    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.35176e-09
Minuit parameter uncertainties:
  1  1.16962
  2  0.547249
  3  0.253126
  4  0.134319
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/396654': 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) = 10614.486177
delta logL = 0.386046513951

Extracting fit parameters...

4FGL J2243.9+2021
   Spectrum: LogParabola
288         norm:  1.343e+00  1.170e+00  0.000e+00  1.000e+06 ( 1.000e-12)
289        alpha:  1.206e+00  5.472e-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.023e+00  1.343e-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.552e-01  2.531e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.62
Ra Dec: 340.990 20.357
Photon Index (Free Index): 1.21 +/- 0.55
Photon Flux (Free Index): 1.02e-08 +/- 9.54e-09
Energy Flux (Free Index): 5.15e-05 +/- 5.97e-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/396654/cmap_HighResolution_687139201_687744001_4FGL_J2243.9+2021_weekly_bin741.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.85e-08', energy_flux2='5.15e-05', photon_flux_error='1.35e-08', dlogl='3.86e-01', energy_flux='2.41e-05', photon_flux2='1.02e-08', job_status='DONE', time_completed='2022-10-18 01:52:51.201409', photon_index_error2='0.55', photon_index2='1.21', ts='6.86', fit_tolerance='1e-08', GAL='1.02', photon_index_error='0.00', energy_flux_error2='5.97e-05', EG='0.65', time_epoch_completed='1666083171.2', return_code='0', job_id='396654', GAL2='1.02', EG2='0.66', return_code2='0', energy_flux_error='1.75e-05', photon_flux_error2='9.54e-09', ts2='7.62', photon_index='1.72' WHERE bin_id='741' AND source_name='4FGL J2243.9+2021' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Oct 18 01:52:51 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0174>
Subject: Job 396654: <4FGL_J2243.9+2021_weekly_bin741> in cluster <slac> Done

Job <4FGL_J2243.9+2021_weekly_bin741> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Oct 18 01:40:23 2022
Job was executed on host(s) <bullet0174>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Oct 18 01:40:24 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Oct 18 01:40:24 2022
Terminated at Tue Oct 18 01:52:52 2022
Results reported at Tue Oct 18 01:52:52 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2243.9+2021_weekly_bin741 340.99 20.3565 687139201 687744001 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 :                                   707.01 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             345.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   747 sec.
    Turnaround time :                            749 sec.

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

