/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 137 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 = 7260
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2243.9+2021_daily_bin338
RA = 340.99, Dec = 20.3565
tmin = 326937601, tmax = 327196801
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='448028', job_status='RUN', time_executed='2021-09-28 19:13:01.243200', time_epoch_executed='1632881581.24' WHERE source_name='4FGL J2243.9+2021' and cadence='daily' and bin_id='338'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/448028

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

Retrieving the FT1 file...

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

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

Retrieving 45 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/448028/ft1_4FGL_J2243.9+2021_daily_bin338.fits


Retrieving the FT1 file...

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

Retrieving 45 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/448028/ft2_4FGL_J2243.9+2021_daily_bin338.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/448028/ft1_4FGL_J2243.9+2021_daily_bin338.fits outfile=/scratch/kocevski/448028/ft1_filteredMKT_4FGL_J2243.9+2021_daily_bin338.fits ra=340.99 dec=20.3565 rad=12.0 tmin=326937601.0 tmax=327196801.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.31
user 3.09
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/448028/ft1_filtered_4FGL_J2243.9+2021_daily_bin338.fits" evtable="EVENTS" scfile=/scratch/kocevski/448028/ft2_4FGL_J2243.9+2021_daily_bin338.fits sctable="SC_DATA" outfile=/scratch/kocevski/448028/ltcube_326937601_327196801_4FGL_J2243.9+2021_daily_bin338.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/448028/ft2_4FGL_J2243.9+2021_daily_bin338.fits
.....................!
real 11.69
user 11.36
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/448028/ft1_filtered_4FGL_J2243.9+2021_daily_bin338.fits evtable="EVENTS" scfile=/scratch/kocevski/448028/ft2_4FGL_J2243.9+2021_daily_bin338.fits sctable="SC_DATA" expcube=/scratch/kocevski/448028/ltcube_326937601_327196801_4FGL_J2243.9+2021_daily_bin338.fits outfile=/scratch/kocevski/448028/expmap_326937601_327196801_4FGL_J2243.9+2021_daily_bin338.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/448028/ltcube_326937601_327196801_4FGL_J2243.9+2021_daily_bin338.fits
.....................!
real 190.09
user 185.36
sys 4.38

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/448028/ft1_filtered_4FGL_J2243.9+2021_daily_bin338.fits scfile=/scratch/kocevski/448028/ft2_4FGL_J2243.9+2021_daily_bin338.fits outfile=/scratch/kocevski/448028/cmap_326937601_327196801_4FGL_J2243.9+2021_daily_bin338.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.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/448028/ft1_filtered_4FGL_J2243.9+2021_daily_bin338.fits scfile=/scratch/kocevski/448028/ft2_4FGL_J2243.9+2021_daily_bin338.fits outfile=/scratch/kocevski/448028/cmap_HighResolution_326937601_327196801_4FGL_J2243.9+2021_daily_bin338.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.53
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    33.836       1.0000         .10000E-03   10000.    
     2 'norm      '    4.4250       1.0000         .10000E-03   10000.    
     3 'Prefactor '    5.7201       1.0000         .10000E-03   10000.    
     4 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .58478       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    1.4394       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    3.4683       1.0000         .10000E-03   10000.    
    13 'Prefactor '    46.577       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10071E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    14.376       1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.0639       1.0000         .10000E-03   10000.    
    17 'Prefactor '    13.994       1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.3846       1.0000         .10000E-03   10000.    
    19 'Prefactor '    17.017       1.0000         .10000E-03   10000.    
    20 'Prefactor '    8.0783       1.0000         .10000E-03   10000.    
    21 'Prefactor '    10.341       1.0000         .10000E-03   10000.    
    22 'Prefactor '    2.9949       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .81126       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0213       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=   9820.892     FROM MIGRAD    STATUS=CONVERGED    558 CALLS     2491 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     33.833        34.676       -.30355E-05    .88043E-04
   2  norm          4.4250        1.2410       -.13356E-07   -.76425E-05
   3  Prefactor     5.7198        11.872       -.39049E-06   -.66308E-04
   4  norm          .10000E-03    1.4990       -.36588E-07** at limit **
   5  Prefactor     .10000E-03    3.7139       -.60925E-07** at limit **
   6  Prefactor     .10000E-03    56.494        .44001E-06** at limit **
   7  Prefactor     .10000E-03    4.8573       -.15100E-05** at limit **
   8  Prefactor     .58477        .20110       -.23683E-07   -.45159E-03
   9  Prefactor     .10000E-03    4.0565        .51491E-07** at limit **
  10  norm          1.4394        .84599       -.37005E-07   -.21011E-03
  11  Prefactor     .10000E-03    4.9834        .16368E-05** at limit **
  12  norm          3.4687        1.6789       -.55830E-07    .27766E-03
  13  Prefactor     46.579        32.452        .17007E-05   -.77019E-04
  14  Prefactor     .10000E-03    14.910        .89800E-07** at limit **
  15  Prefactor     14.376        14.934       -.71275E-07    .14884E-04
  16  Prefactor     2.0638        .25347       -.15008E-07    .18124E-02
  17  Prefactor     13.996        11.899       -.15140E-05    .12511E-03
  18  Prefactor     1.3845        7.3507       -.34103E-05   -.68813E-03
  19  Prefactor     17.013        14.052        .90978E-06   -.57098E-04
  20  Prefactor     8.0784        17.190        .10559E-05   -.27870E-04
  21  Prefactor     10.327        20.998       -.85990E-05    .20421E-03
  22  Prefactor     2.9931        5.4564       -.62534E-06   -.52948E-03
  23  Prefactor     .10000E-03    6.1310       -.24372E-07** at limit **
  24  Normalizat    .81148        .22055        .35570E-06    .66449E-04
  25  Prefactor     1.0212        .11520        .66507E-06    .61763E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 33.8331
  norm       = 4.425
  Prefactor  = 5.71977
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.584773
  Prefactor  = 0.0001
  norm       = 1.43942
  Prefactor  = 0.0001
  norm       = 3.4687
  Prefactor  = 46.5791
  Prefactor  = 0.0001
  Prefactor  = 14.3761
  Prefactor  = 2.0638
  Prefactor  = 13.9961
  Prefactor  = 1.38447
  Prefactor  = 17.0135
  Prefactor  = 8.07841
  Prefactor  = 10.3272
  Prefactor  = 2.99306
  Prefactor  = 0.0001
  Normalizat = 0.811485
  Prefactor  = 1.02122
 **********
 **   18 **HESSE 
 **********

 FCN=   9820.892     FROM HESSE     STATUS=OK           425 CALLS     2916 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     33.833        34.545        .68890E-04   -1.4544    
   2  norm          4.4250        1.2412        .56234E-04   -1.5287    
   3  Prefactor     5.7198        11.880        .16794E-03   -1.5230    
   4  norm          .10000E-03    1.5082        .11847E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    3.7182        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    56.546        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    4.8670        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .58477        .19979        .24811E-04   -1.5555    
   9  Prefactor     .10000E-03    4.0906        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          1.4394        .84398        .67438E-04   -1.5468    
  11  Prefactor     .10000E-03    4.9550        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          3.4687        1.6799        .86806E-04   -1.5335    
  13  Prefactor     46.579        32.391        .58751E-04   -1.4342    
  14  Prefactor     .10000E-03    15.156        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     14.376        14.944        .10564E-03   -1.4949    
  16  Prefactor     2.0638        .25423        .15928E-04   -1.5421    
  17  Prefactor     13.996        11.886        .10707E-03   -1.4960    
  18  Prefactor     1.3845        8.9420        .36965E-03   -1.5473    
  19  Prefactor     17.013        14.051        .97091E-04   -1.4883    
  20  Prefactor     8.0784        17.144        .14106E-03   -1.5139    
  21  Prefactor     10.327        20.379        .12460E-03   -1.5065    
  22  Prefactor     2.9931        5.5164        .23456E-03   -1.5362    
  23  Prefactor     .10000E-03    6.1433        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .81148        .25279        .40732E-03   -.99644    
  25  Prefactor     1.0212        .13386        .19876E-03   -.92026    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.31799e-09
Minuit parameter uncertainties:
  1  34.565
  2  1.24116
  3  11.8854
  4  8.57438e-07
  5  4.04534e-07
  6  5.6067e-05
  7  3.48441e-05
  8  0.19979
  9  3.90175e-06
  10  0.843989
  11  3.97735e-05
  12  1.67997
  13  32.4031
  14  1.53506e-05
  15  14.9482
  16  0.254227
  17  11.888
  18  7.0383
  19  14.0538
  20  17.1543
  21  20.3923
  22  5.51737
  23  5.26007e-06
  24  0.253157
  25  0.133903
Done.

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

Extracting fit parameters...

4FGL J2243.9+2021
   Spectrum: LogParabola
288         norm:  3.469e+00  1.680e+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:  1.021e+00  1.339e-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:  8.115e-01  2.532e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 24.28
Ra Dec: 340.990 20.357
Photon Index (Fixed Index): 1.72 +/- 0.00
Photon Flux (Fixed Index): 3.92e-08 +/- 1.90e-08
Energy Flux (Fixed Index): 5.08e-05 +/- 2.46e-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) = 9819.98494661
delta logL = 0.906786252017

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9819.85270995
delta logL = 1.03902291302

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.4521       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.1087       1.0000          .0000       5.0000    
     3 'Normalizat'    .82946       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0196       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=   9819.853     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      212 TOTAL
                     EDM=   .95E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.4518        1.3080        .65305E-02   -.34275E-03
   2  alpha         1.1087        .30354        .31743       -.53846E-04
   3  Normalizat    .82949        .20917        .91060E-01    .40291E-04
   4  Prefactor     1.0196        .11392        .42181E-01    .13713E-06
                               ERR DEF=  .500    
Final values: 
  norm       = 2.45182
  alpha      = 1.10868
  Normalizat = 0.829491
  Prefactor  = 1.01957
 **********
 **   18 **HESSE 
 **********

 FCN=   9819.853     FROM HESSE     STATUS=OK            33 CALLS      245 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.4518        1.6112        .77327E-04   -1.5395    
   2  alpha         1.1087        .38461        .13566E-01   -.59020    
   3  Normalizat    .82949        .24252        .40336E-03   -.98984    
   4  Prefactor     1.0196        .13254        .19897E-03   -.92080    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.61079e-09
Minuit parameter uncertainties:
  1  1.61125
  2  0.386843
  3  0.242838
  4  0.132586
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/448028': 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) = 9819.8527099
delta logL = 1.03902295555

Extracting fit parameters...

4FGL J2243.9+2021
   Spectrum: LogParabola
288         norm:  2.452e+00  1.611e+00  1.000e-04  1.000e+04 ( 1.000e-12)
289        alpha:  1.109e+00  3.868e-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:  1.020e+00  1.326e-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:  8.295e-01  2.428e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 26.33
Ra Dec: 340.990 20.357
Photon Index (Free Index): 1.11 +/- 0.39
Photon Flux (Free Index): 1.84e-08 +/- 1.19e-08
Energy Flux (Free Index): 1.20e-04 +/- 9.50e-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/448028/cmap_HighResolution_326937601_327196801_4FGL_J2243.9+2021_daily_bin338.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.92e-08', energy_flux2='1.20e-04', photon_flux_error='1.90e-08', dlogl='1.04e+00', energy_flux='5.08e-05', photon_flux2='1.84e-08', job_status='DONE', time_completed='2021-09-28 19:25:23.811355', photon_index_error2='0.39', photon_index2='1.11', ts='24.28', fit_tolerance='1e-08', GAL='1.02', photon_index_error='0.00', energy_flux_error2='9.50e-05', EG='0.81', time_epoch_completed='1632882323.81', return_code='0', job_id='448028', GAL2='1.02', EG2='0.83', return_code2='0', energy_flux_error='2.46e-05', photon_flux_error2='1.19e-08', ts2='26.33', photon_index='1.72' WHERE bin_id='338' AND source_name='4FGL J2243.9+2021' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 19:25:23 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0242>
Subject: Job 448028: <4FGL_J2243.9+2021_daily_bin338> in cluster <slac> Done

Job <4FGL_J2243.9+2021_daily_bin338> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Tue Sep 28 19:10:30 2021
Job was executed on host(s) <bullet0242>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 19:10:31 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:10:31 2021
Terminated at Tue Sep 28 19:25:24 2021
Results reported at Tue Sep 28 19:25:24 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2243.9+2021_daily_bin338 340.99 20.3565 326937601 327196801 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 :                                   742.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             256.32 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   893 sec.
    Turnaround time :                            894 sec.

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

