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


Performing analysis on: 4FGL_J2243.9+2021_daily_bin1727
RA = 340.99, Dec = 20.3565
tmin = 686966401, tmax = 687225601
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='214374', job_status='RUN', time_executed='2022-10-12 00:37:54.356857', time_epoch_executed='1665560274.36' WHERE source_name='4FGL J2243.9+2021' and cadence='daily' and bin_id='1727'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/214374

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/214374/ft1_4FGL_J2243.9+2021_daily_bin1727.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/214374/ft2_4FGL_J2243.9+2021_daily_bin1727.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/214374/ft1_4FGL_J2243.9+2021_daily_bin1727.fits outfile=/scratch/kocevski/214374/ft1_filteredMKT_4FGL_J2243.9+2021_daily_bin1727.fits ra=340.99 dec=20.3565 rad=12.0 tmin=686966401.0 tmax=687225601.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 2.91
user 2.69
sys 0.21

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

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

Number of photons that the gtmktime cut: 345

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/214374/ft1_filtered_4FGL_J2243.9+2021_daily_bin1727.fits" evtable="EVENTS" scfile=/scratch/kocevski/214374/ft2_4FGL_J2243.9+2021_daily_bin1727.fits sctable="SC_DATA" outfile=/scratch/kocevski/214374/ltcube_686966401_687225601_4FGL_J2243.9+2021_daily_bin1727.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/214374/ft2_4FGL_J2243.9+2021_daily_bin1727.fits
.....................!
real 13.11
user 12.75
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/214374/ft1_filtered_4FGL_J2243.9+2021_daily_bin1727.fits evtable="EVENTS" scfile=/scratch/kocevski/214374/ft2_4FGL_J2243.9+2021_daily_bin1727.fits sctable="SC_DATA" expcube=/scratch/kocevski/214374/ltcube_686966401_687225601_4FGL_J2243.9+2021_daily_bin1727.fits outfile=/scratch/kocevski/214374/expmap_686966401_687225601_4FGL_J2243.9+2021_daily_bin1727.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/214374/ltcube_686966401_687225601_4FGL_J2243.9+2021_daily_bin1727.fits
.....................!
real 189.90
user 184.92
sys 4.67

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/214374/ft1_filtered_4FGL_J2243.9+2021_daily_bin1727.fits scfile=/scratch/kocevski/214374/ft2_4FGL_J2243.9+2021_daily_bin1727.fits outfile=/scratch/kocevski/214374/cmap_686966401_687225601_4FGL_J2243.9+2021_daily_bin1727.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.54
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/214374/ft1_filtered_4FGL_J2243.9+2021_daily_bin1727.fits scfile=/scratch/kocevski/214374/ft2_4FGL_J2243.9+2021_daily_bin1727.fits outfile=/scratch/kocevski/214374/cmap_HighResolution_686966401_687225601_4FGL_J2243.9+2021_daily_bin1727.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.54
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .72087E-01   1.0000          .0000       .10000E+07
     2 'norm      '    .28366E-07   1.0000          .0000       .10000E+07
     3 'Prefactor '    55.691       1.0000          .0000       .10000E+07
     4 'norm      '    .76835E-05   1.0000          .0000       .10000E+07
     5 'Prefactor '    .11903E-05   1.0000          .0000       .10000E+07
     6 'Prefactor '    .16727E-01   1.0000          .0000       .10000E+07
     7 'Prefactor '    .76199E-01   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .55498E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .23315E-07   1.0000          .0000       .10000E+07
    10 'norm      '    2.7423       1.0000          .0000       .10000E+07
    11 'Prefactor '    .87771E-01   1.0000          .0000       .10000E+07
    12 'Prefactor '    .12473       1.0000          .0000       .10000E+07
    13 'Prefactor '    5.4326       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .54363E-02   1.0000          .0000       .10000E+07
    15 'Prefactor '    154.51       1.0000          .0000       .10000E+07
    16 'Prefactor '    75.664       1.0000          .0000       .10000E+07
    17 'Prefactor '    .29951E-03   1.0000          .0000       .10000E+07
    18 'Prefactor '    12.506       1.0000          .0000       .10000E+07
    19 'Normalizat'    .56100       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.1803       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=   3797.856     FROM MIGRAD    STATUS=CONVERGED    156 CALLS     1583 TOTAL
                     EDM=   .89E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .52736E-08    261.23       -.62788E-06** at limit **
   2  norm           .0000        .40011        .76720E-08** at limit **
   3  Prefactor     56.013        34.879       -.92419E-07    .50523E-01
   4  norm           .0000        2.2943        .22157E-07** at limit **
   5  Prefactor     .11102E-09    5.9357       -.94000E-07** at limit **
   6  Prefactor      .0000        25.280        .11599E-07** at limit **
   7  Prefactor     .76213E-01    .25550       -.16177E-06   -.58804E-03
   8  Prefactor     .10000E-03    6.4223        .66370E-06** at limit **
   9  norm           .0000        .56715       -.68308E-08** at limit **
  10  norm          2.7468        3.4637       -.84546E-08   -.81407E-03
  11  Prefactor     .19156E-03    807.10        .30206E-05** at limit **
  12  Prefactor     .11102E-09    32.274       -.79887E-07** at limit **
  13  Prefactor     5.4329        .72643       -.41106E-07   -.13487E-02
  14  Prefactor     .22204E-09    11.922        .89996E-07** at limit **
  15  Prefactor     152.05        89.608        .22699E-06    .10834    
  16  Prefactor     74.971        27.009        .15287E-06   -.26912    
  17  Prefactor      .0000        14.259        .12590E-07** at limit **
  18  Prefactor     12.175        10.414        .15002E-06   -.32148E-01
  19  Normalizat    .56117        .46186       -.98726E-06   -.66149E-04
  20  Prefactor     1.1807        .23942       -.31330E-06   -.17132E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.27356e-09
  norm       = 0
  Prefactor  = 56.0132
  norm       = 0
  Prefactor  = 1.11022e-10
  Prefactor  = 0
  Prefactor  = 0.0762127
  Prefactor  = 0.0001
  norm       = 0
  norm       = 2.74681
  Prefactor  = 0.000191556
  Prefactor  = 1.11022e-10
  Prefactor  = 5.43286
  Prefactor  = 2.22045e-10
  Prefactor  = 152.045
  Prefactor  = 74.9714
  Prefactor  = 0
  Prefactor  = 12.1749
  Normalizat = 0.561166
  Prefactor  = 1.18072
 **********
 **   18 **HESSE 
 **********

 FCN=   3797.856     FROM HESSE     STATUS=OK           327 CALLS     1910 TOTAL
                     EDM=   .18E-04    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .52736E-08    256.16        .14750E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm           .0000        .39805        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     56.013        35.159        .13401E-03   -1.5558    
   4  norm           .0000        2.2982        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .11102E-09    5.9440        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor      .0000        24.583        .17262E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .76213E-01    .24889        .93971E-02   -1.5653    
   8  Prefactor     .10000E-03    6.4106        .10552E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm           .0000        .56629        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          2.7468        3.4728        .61454E-03   -1.5675    
  11  Prefactor     .19156E-03    794.17        .14270E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .11102E-09    32.016        .13307E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     5.4329        .72708        .40904E-02   -1.5242    
  14  Prefactor     .22204E-09    11.915        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     152.05        105.88        .80455E-04   -1.5461    
  16  Prefactor     74.971        120.17        .11497E-03   -1.5535    
  17  Prefactor      .0000        14.293        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     12.175        120.40        .28300E-03   -1.5638    
  19  Normalizat    .56117        .45388        .12465       -1.0966    
  20  Prefactor     1.1807        .22809        .35115E-01   -.86927    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.80543e-05
Minuit parameter uncertainties:
  1  0.00232067
  2  1.16909e-06
  3  35.1592
  4  8.2467e-06
  5  5.19989e-05
  6  1.17933e-05
  7  0.248893
  8  4.0029e-05
  9  1.20758e-06
  10  3.47279
  11  0.780175
  12  0.00010758
  13  0.727083
  14  0.000100182
  15  105.878
  16  120.174
  17  2.74624e-05
  18  76.5765
  19  0.45693
  20  0.228283
Done.

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

Extracting fit parameters...

4FGL J2243.9+2021
   Spectrum: LogParabola
288         norm:  2.747e+00  3.473e+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.181e+00  2.283e-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.612e-01  4.569e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.08
Ra Dec: 340.990 20.357
Photon Index (Fixed Index): 1.72 +/- 0.00
Photon Flux (Fixed Index): 3.10e-08 +/- 3.92e-08
Energy Flux (Fixed Index): 4.02e-05 +/- 5.09e-05

TS (Fixed Index): 1.08
Ra Dec: 340.990 20.357
Photon Flux Upper Limit: 1.39e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.81e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/214374/likelihoodResults_686966401_687225601_4FGL_J2243.9+2021_daily_bin1727.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) = 3797.7215253
delta logL = 0.134270303001

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3797.71657478
delta logL = 0.139220820981

Fit tolerance = 1e-08

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

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

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.4475        108.81        .65343E-03   -.56494E-03
   2  alpha         2.1715        2.6768        .29226        .27598E-05
   3  Normalizat    .54266        .19807        .12657       -.44319E-05
   4  Prefactor     1.1841        .75093E-01    .35032E-01   -.35272E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.44752
  alpha      = 2.17145
  Normalizat = 0.54266
  Prefactor  = 1.18412
 **********
 **   18 **HESSE 
 **********

 FCN=   3797.717     FROM HESSE     STATUS=OK            31 CALLS      243 TOTAL
                     EDM=   .44E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.4475        3.3861        .10596E-04   -1.5677    
   2  alpha         2.1715        .90638        .15256E-01   -.13180    
   3  Normalizat    .54266        .45173        .56152E-03   -1.1048    
   4  Prefactor     1.1841        .23737        .20359E-03   -.86821    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.44325e-10
Minuit parameter uncertainties:
  1  3.38606
  2  0.927907
  3  0.454833
  4  0.237587
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/214374': 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) = 3797.71656987
delta logL = 0.139225728557

Extracting fit parameters...

4FGL J2243.9+2021
   Spectrum: LogParabola
288         norm:  2.448e+00  3.386e+00  0.000e+00  1.000e+06 ( 1.000e-12)
289        alpha:  2.171e+00  9.279e-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.184e+00  2.376e-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.427e-01  4.548e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.35
Ra Dec: 340.990 20.357
Photon Index (Free Index): 2.17 +/- 0.93
Photon Flux (Free Index): 5.52e-08 +/- 7.75e-08
Energy Flux (Free Index): 2.80e-05 +/- 3.70e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/214374/cmap_HighResolution_686966401_687225601_4FGL_J2243.9+2021_daily_bin1727.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.81e-04', comment='SUCCESS', photon_flux='3.10e-08', energy_flux2='2.80e-05', photon_flux_error='3.92e-08', dlogl='1.39e-01', energy_flux='4.02e-05', photon_flux2='5.52e-08', job_status='DONE', time_completed='2022-10-12 00:45:20.764437', photon_index_error2='0.93', photon_index2='2.17', ts='1.08', fit_tolerance='1e-08', GAL='1.18', photon_index_error='0.00', photon_flux_upper_limit='1.39e-07', energy_flux_error2='3.70e-05', EG='0.56', time_epoch_completed='1665560720.76', return_code='0', job_id='214374', GAL2='1.18', EG2='0.54', return_code2='0', energy_flux_error='5.09e-05', photon_flux_error2='7.75e-08', ts2='1.35', photon_index='1.72' WHERE bin_id='1727' AND source_name='4FGL J2243.9+2021' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Oct 12 00:45:20 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0281>
Subject: Job 214374: <4FGL_J2243.9+2021_daily_bin1727> in cluster <slac> Done

Job <4FGL_J2243.9+2021_daily_bin1727> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Oct 12 00:35:57 2022
Job was executed on host(s) <bullet0281>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Oct 12 00:35:59 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Oct 12 00:35:59 2022
Terminated at Wed Oct 12 00:45:21 2022
Results reported at Wed Oct 12 00:45:21 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2243.9+2021_daily_bin1727 340.99 20.3565 686966401 687225601 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 :                                   448.60 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             328.65 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   562 sec.
    Turnaround time :                            564 sec.

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

