/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 6 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 make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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


Performing analysis on: 4FGL_J2243.9+2021_daily_bin887
RA = 340.99, Dec = 20.3565
tmin = 469238401, tmax = 469497601
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='449828', job_status='RUN', time_executed='2021-09-28 19:15:56.846956', time_epoch_executed='1632881756.85' WHERE source_name='4FGL J2243.9+2021' and cadence='daily' and bin_id='887'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/449828

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/449828/ft1_4FGL_J2243.9+2021_daily_bin887.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/449828/ft2_4FGL_J2243.9+2021_daily_bin887.fits


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

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

Done.
real 3.43
user 3.22
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/449828/ft1_filtered_4FGL_J2243.9+2021_daily_bin887.fits evtable="EVENTS" scfile=/scratch/kocevski/449828/ft2_4FGL_J2243.9+2021_daily_bin887.fits sctable="SC_DATA" expcube=/scratch/kocevski/449828/ltcube_469238401_469497601_4FGL_J2243.9+2021_daily_bin887.fits outfile=/scratch/kocevski/449828/expmap_469238401_469497601_4FGL_J2243.9+2021_daily_bin887.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/449828/ltcube_469238401_469497601_4FGL_J2243.9+2021_daily_bin887.fits
.....................!
real 190.77
user 185.68
sys 4.69

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/449828/ft1_filtered_4FGL_J2243.9+2021_daily_bin887.fits scfile=/scratch/kocevski/449828/ft2_4FGL_J2243.9+2021_daily_bin887.fits outfile=/scratch/kocevski/449828/cmap_469238401_469497601_4FGL_J2243.9+2021_daily_bin887.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.53
user 0.35
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/449828/ft1_filtered_4FGL_J2243.9+2021_daily_bin887.fits scfile=/scratch/kocevski/449828/ft2_4FGL_J2243.9+2021_daily_bin887.fits outfile=/scratch/kocevski/449828/cmap_HighResolution_469238401_469497601_4FGL_J2243.9+2021_daily_bin887.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.38
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/449828/ft1_filtered_4FGL_J2243.9+2021_daily_bin887.fits', '/scratch/kocevski/449828/ft2_4FGL_J2243.9+2021_daily_bin887.fits', expMap='/scratch/kocevski/449828/expmap_469238401_469497601_4FGL_J2243.9+2021_daily_bin887.fits', expCube='/scratch/kocevski/449828/ltcube_469238401_469497601_4FGL_J2243.9+2021_daily_bin887.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/449828/Model_4FGL_J2243.9+2021_daily_bin887.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  1.000e-04  1.000e+04 ( 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  0.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/449828/ft1_filtered_4FGL_J2243.9+2021_daily_bin887.fits
Spacecraft file(s): /scratch/kocevski/449828/ft2_4FGL_J2243.9+2021_daily_bin887.fits
Exposure map: /scratch/kocevski/449828/expmap_469238401_469497601_4FGL_J2243.9+2021_daily_bin887.fits
Exposure cube: /scratch/kocevski/449828/ltcube_469238401_469497601_4FGL_J2243.9+2021_daily_bin887.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/449828/Model_4FGL_J2243.9+2021_daily_bin887.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) = 11939.9809845

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    1.0054       1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.1698       1.0000         .10000E-03   10000.    
     4 'norm      '    21.227       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10106E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10577E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.3109       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10334E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    22.622       1.0000         .10000E-03   10000.    
    12 'norm      '    3.0440       1.0000         .10000E-03   10000.    
    13 'Prefactor '    34.528       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10117E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.1081       1.0000         .10000E-03   10000.    
    16 'Prefactor '    9.0136       1.0000         .10000E-03   10000.    
    17 'Prefactor '    4.3070       1.0000         .10000E-03   10000.    
    18 'Prefactor '    15.519       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10117E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    13.921       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10049E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    8.1964       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10059E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.0062       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .98070       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   11939.98     FROM MIGRAD    STATUS=CONVERGED    576 CALLS     2884 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    21.902        .84372E-06** at limit **
   2  norm          1.0054        .71527        .19509E-07   -.74609E-04
   3  Prefactor     3.1630        20.518        .14594E-04   -.29148E-03
   4  norm          21.227        7.0295        .31278E-07   -.11322E-03
   5  Prefactor     .10000E-03    7.0844        .67845E-07** at limit **
   6  Prefactor     .10001E-03    39.062        .48984E-05** at limit **
   7  Prefactor     .10000E-03    18.699        .24272E-05** at limit **
   8  Prefactor     1.3108        .28821        .18648E-07   -.10568E-03
   9  Prefactor     .10000E-03    4.2285        .23694E-07** at limit **
  10  norm          .10000E-03    .29549        .39860E-07** at limit **
  11  Prefactor     22.609        16.855        .37557E-06    .76975E-04
  12  norm          3.0436        1.8535       -.25163E-08    .57339E-04
  13  Prefactor     34.513        42.232       -.19343E-05   -.16200E-03
  14  Prefactor     .10000E-03    17.191       -.15484E-05** at limit **
  15  Prefactor     3.0346        54.703       -.80040E-05   -.16769E-03
  16  Prefactor     9.0138        .50448        .35108E-07    .17146E-03
  17  Prefactor     4.3064        7.0865        .85698E-07   -.67102E-04
  18  Prefactor     15.521        10.591        .82858E-07    .27276E-04
  19  Prefactor     .10000E-03    5.6991       -.96457E-08** at limit **
  20  Prefactor     13.904        23.365        .14032E-06   -.60989E-04
  21  Prefactor     .10000E-03    5.6059        .27992E-07** at limit **
  22  Prefactor     8.1941        8.8189       -.16148E-06    .42419E-04
  23  Prefactor     .10001E-03    28.231       -.54372E-05** at limit **
  24  Normalizat    1.0063        .25407       -.17466E-05   -.19173E-04
  25  Prefactor     .98064        .12631       -.24489E-06   -.76104E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 1.00544
  Prefactor  = 3.16304
  norm       = 21.2267
  Prefactor  = 0.0001
  Prefactor  = 0.000100012
  Prefactor  = 0.000100001
  Prefactor  = 1.31083
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 22.6086
  norm       = 3.04362
  Prefactor  = 34.5131
  Prefactor  = 0.000100001
  Prefactor  = 3.03457
  Prefactor  = 9.01382
  Prefactor  = 4.30644
  Prefactor  = 15.521
  Prefactor  = 0.0001
  Prefactor  = 13.9037
  Prefactor  = 0.0001
  Prefactor  = 8.1941
  Prefactor  = 0.000100011
  Normalizat = 1.00634
  Prefactor  = 0.980635
 **********
 **   18 **HESSE 
 **********

 FCN=   11939.98     FROM HESSE     STATUS=OK           427 CALLS     3311 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    21.953        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.0054        .71983        .75556E-04   -1.5507    
   3  Prefactor     3.1630        21.700        .11382E-02   -1.5352    
   4  norm          21.227        7.0294        .86935E-04   -1.4786    
   5  Prefactor     .10000E-03    7.1068        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10001E-03    40.015        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    19.312        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     1.3108        .28762        .26342E-04   -1.5479    
   9  Prefactor     .10000E-03    4.2531        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    .30526        .11577E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     22.609        16.840        .84215E-04   -1.4757    
  12  norm          3.0436        1.8527        .11283E-03   -1.5359    
  13  Prefactor     34.513        42.530        .68198E-04   -1.4532    
  14  Prefactor     .10000E-03    17.552        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     3.0346        58.043        .23000E-03   -1.5360    
  16  Prefactor     9.0138        .50733        .16654E-04   -1.5107    
  17  Prefactor     4.3064        7.0834        .19411E-03   -1.5293    
  18  Prefactor     15.521        10.596        .10167E-03   -1.4920    
  19  Prefactor     .10000E-03    5.7137        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     13.904        23.468        .10735E-03   -1.4962    
  21  Prefactor     .10000E-03    5.6072        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     8.1941        8.8147        .14004E-03   -1.5135    
  23  Prefactor     .10001E-03    29.394        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.0063        .29762        .47804E-03   -.92818    
  25  Prefactor     .98064        .14898        .25311E-03   -.93378    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.37613e-09
Minuit parameter uncertainties:
  1  0.000167716
  2  0.719836
  3  16.5781
  4  7.02965
  5  5.70788e-06
  6  0.00136504
  7  0.000335277
  8  0.287618
  9  1.54394e-06
  10  3.8224e-07
  11  16.8437
  12  1.85276
  13  42.5675
  14  0.000270265
  15  26.5725
  16  0.507331
  17  7.08482
  18  10.597
  19  1.09213e-06
  20  23.484
  21  4.30594e-06
  22  8.81606
  23  0.00114263
  24  0.298117
  25  0.14904
Done.

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

Extracting fit parameters...

4FGL J2243.9+2021
   Spectrum: LogParabola
288         norm:  3.044e+00  1.853e+00  1.000e-04  1.000e+04 ( 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  0.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:  9.806e-01  1.490e-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.006e+00  2.981e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 10.17
Ra Dec: 340.990 20.357
Photon Index (Fixed Index): 1.72 +/- 0.00
Photon Flux (Fixed Index): 3.44e-08 +/- 2.09e-08
Energy Flux (Fixed Index): 4.46e-05 +/- 2.71e-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) = 11939.7902836
delta logL = 0.188217693252

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 11939.7887682
delta logL = 0.189733038664

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.0153       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.4606       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0094       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98109       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=   11939.79     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      209 TOTAL
                     EDM=   .75E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.0153        4.2924        .58431E-02   -.58853E-03
   2  alpha         1.4606        .76156        .42442       -.24668E-04
   3  Normalizat    1.0094        .24175        .10771        .53728E-04
   4  Prefactor     .98109        .12686        .46030E-01   -.12611E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 3.01528
  alpha      = 1.46059
  Normalizat = 1.00944
  Prefactor  = 0.981087
 **********
 **   18 **HESSE 
 **********

 FCN=   11939.79     FROM HESSE     STATUS=OK            31 CALLS      240 TOTAL
                     EDM=   .59E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.0153        1.9272        .11551E-03   -1.5361    
   2  alpha         1.4606        .40739        .15932E-01   -.42878    
   3  Normalizat    1.0094        .27990        .47751E-03   -.92715    
   4  Prefactor     .98109        .14812        .25313E-03   -.93363    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.93808e-11
Minuit parameter uncertainties:
  1  1.92722
  2  0.409601
  3  0.280312
  4  0.148185
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/449828': 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) = 11939.7887682
delta logL = 0.189733038676

Extracting fit parameters...

4FGL J2243.9+2021
   Spectrum: LogParabola
288         norm:  3.015e+00  1.927e+00  1.000e-04  1.000e+04 ( 1.000e-12)
289        alpha:  1.461e+00  4.096e-01  0.000e+00  5.000e+00 ( 1.000e+00)
290         beta:  8.229e-02  0.000e+00  0.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:  9.811e-01  1.482e-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.009e+00  2.803e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 10.52
Ra Dec: 340.990 20.357
Photon Index (Free Index): 1.46 +/- 0.41
Photon Flux (Free Index): 2.61e-08 +/- 2.03e-08
Energy Flux (Free Index): 6.61e-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/449828/cmap_HighResolution_469238401_469497601_4FGL_J2243.9+2021_daily_bin887.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.44e-08', energy_flux2='6.61e-05', photon_flux_error='2.09e-08', dlogl='1.90e-01', energy_flux='4.46e-05', photon_flux2='2.61e-08', job_status='DONE', time_completed='2021-09-28 19:31:38.291740', photon_index_error2='0.41', photon_index2='1.46', ts='10.17', fit_tolerance='1e-08', GAL='0.98', photon_index_error='0.00', energy_flux_error2='5.97e-05', EG='1.01', time_epoch_completed='1632882698.29', return_code='0', job_id='449828', GAL2='0.98', EG2='1.01', return_code2='0', energy_flux_error='2.71e-05', photon_flux_error2='2.03e-08', ts2='10.52', photon_index='1.72' WHERE bin_id='887' AND source_name='4FGL J2243.9+2021' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 19:31:38 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0231>
Subject: Job 449828: <4FGL_J2243.9+2021_daily_bin887> in cluster <slac> Done

Job <4FGL_J2243.9+2021_daily_bin887> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Tue Sep 28 19:15:41 2021
Job was executed on host(s) <bullet0231>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 19:15:43 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 28 19:15:43 2021
Terminated at Tue Sep 28 19:31:39 2021
Results reported at Tue Sep 28 19:31:39 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2243.9+2021_daily_bin887 340.99 20.3565 469238401 469497601 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 :                                   937.13 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             366.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   955 sec.
    Turnaround time :                            958 sec.

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

