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


Performing analysis on: 4FGL_J2243.9+2021_daily_bin1327
RA = 340.99, Dec = 20.3565
tmin = 583286401, tmax = 583545601
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='452832', job_status='RUN', time_executed='2021-09-28 19:25:52.343546', time_epoch_executed='1632882352.34' WHERE source_name='4FGL J2243.9+2021' and cadence='daily' and bin_id='1327'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/452832

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/452832/ft1_4FGL_J2243.9+2021_daily_bin1327.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/452832/ft2_4FGL_J2243.9+2021_daily_bin1327.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/452832/ft1_4FGL_J2243.9+2021_daily_bin1327.fits outfile=/scratch/kocevski/452832/ft1_filteredMKT_4FGL_J2243.9+2021_daily_bin1327.fits ra=340.99 dec=20.3565 rad=12.0 tmin=583286401.0 tmax=583545601.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.54
user 3.30
sys 0.18

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/452832/ft1_filtered_4FGL_J2243.9+2021_daily_bin1327.fits evtable="EVENTS" scfile=/scratch/kocevski/452832/ft2_4FGL_J2243.9+2021_daily_bin1327.fits sctable="SC_DATA" expcube=/scratch/kocevski/452832/ltcube_583286401_583545601_4FGL_J2243.9+2021_daily_bin1327.fits outfile=/scratch/kocevski/452832/expmap_583286401_583545601_4FGL_J2243.9+2021_daily_bin1327.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/452832/ltcube_583286401_583545601_4FGL_J2243.9+2021_daily_bin1327.fits
.....................!
real 190.84
user 185.23
sys 5.23

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/452832/ft1_filtered_4FGL_J2243.9+2021_daily_bin1327.fits scfile=/scratch/kocevski/452832/ft2_4FGL_J2243.9+2021_daily_bin1327.fits outfile=/scratch/kocevski/452832/cmap_583286401_583545601_4FGL_J2243.9+2021_daily_bin1327.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.36
sys 0.16

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .19845E-02   1.0000         .10000E-03   10000.    
     2 'norm      '    .10041E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    1.8912       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10234E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    54.753       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.8544       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    2.9001       1.0000         .10000E-03   10000.    
    11 'Prefactor '    15.115       1.0000         .10000E-03   10000.    
    12 'norm      '    1.0564       1.0000         .10000E-03   10000.    
    13 'Prefactor '    42.209       1.0000         .10000E-03   10000.    
    14 'Prefactor '    104.29       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .48621E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.7166       1.0000         .10000E-03   10000.    
    17 'Prefactor '    5.8892       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10297E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .13289E-01   1.0000         .10000E-03   10000.    
    20 'Prefactor '    24.293       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    13.171       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10344E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .70584       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0083       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=   10344.24     FROM MIGRAD    STATUS=CONVERGED    127 CALLS     2504 TOTAL
                     EDM=   .18E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .20062E-03    136.46       -.23944E-05** at limit **
   2  norm          .10000E-03    .94705       -.41571E-06** at limit **
   3  Prefactor     .10000E-03    17.202        .64110E-06** at limit **
   4  norm          1.8909        2.4062        .11238E-06    .46923E-05
   5  Prefactor     .10000E-03    16.655        .21763E-05** at limit **
   6  Prefactor     54.770        4.2934        .96067E-07   -.13204E-02
   7  Prefactor     .10000E-03    2.0609       -.13281E-06** at limit **
   8  Prefactor     1.8543        .27896        .54170E-07    .41485E-03
   9  Prefactor     .10000E-03    2.0266       -.24747E-06** at limit **
  10  norm          2.9001        1.0793        .14810E-06    .15058E-03
  11  Prefactor     15.109        8.4583        .12502E-06   -.38034E-02
  12  norm          1.0565        1.2746       -.30498E-07   -.15372E-04
  13  Prefactor     42.204        2.6356        .20000E-07   -.33712E-03
  14  Prefactor     104.27        14.512        .15050E-06   -.20854E-03
  15  Prefactor     .10294E-03    172.54        .28290E-05** at limit **
  16  Prefactor     1.7167        .22583        .42501E-07    .41369E-03
  17  Prefactor     5.8888        6.7841        .13901E-06    .16542E-03
  18  Prefactor     .10000E-03    7.0077       -.10209E-06** at limit **
  19  Prefactor     .15495E-03    576.96       -.81136E-05** at limit **
  20  Prefactor     24.285        8.8867        .22616E-06    .14616E-02
  21  Prefactor     .10000E-03    8.3588       -.58463E-06** at limit **
  22  Prefactor     13.167        7.4973       -.16045E-07   -.36926E-03
  23  Prefactor     .10000E-03    19.135       -.26216E-05** at limit **
  24  Normalizat    .70617        .24515       -.16314E-05   -.39456E-04
  25  Prefactor     1.0082        .12894       -.57941E-06   -.88215E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000200618
  norm       = 0.0001
  Prefactor  = 0.000100003
  norm       = 1.89095
  Prefactor  = 0.000100002
  Prefactor  = 54.7698
  Prefactor  = 0.0001
  Prefactor  = 1.8543
  Prefactor  = 0.0001
  norm       = 2.9001
  Prefactor  = 15.1086
  norm       = 1.05647
  Prefactor  = 42.204
  Prefactor  = 104.274
  Prefactor  = 0.000102939
  Prefactor  = 1.71674
  Prefactor  = 5.88884
  Prefactor  = 0.0001
  Prefactor  = 0.000154949
  Prefactor  = 24.2851
  Prefactor  = 0.0001
  Prefactor  = 13.1673
  Prefactor  = 0.0001
  Normalizat = 0.70617
  Prefactor  = 1.00821
 **********
 **   18 **HESSE 
 **********

 FCN=   10344.24     FROM HESSE     STATUS=OK           505 CALLS     3009 TOTAL
                     EDM=   .71E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .20062E-03    27.497        .16209       -1.5710    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    .41316        .22638E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    16.902        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          1.8909        2.4188        .75641E-02   -1.5433    
   5  Prefactor     .10000E-03    16.378        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     54.770        89.572        .13552E-02   -1.4226    
   7  Prefactor     .10000E-03    2.0591        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     1.8543        .27952        .45116E-02   -1.5436    
   9  Prefactor     .10000E-03    2.0254        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          2.9001        1.1059        .59652E-02   -1.5367    
  11  Prefactor     15.109        16.419        .25755E-02   -1.4930    
  12  norm          1.0565        1.3158        .11967E-01   -1.5502    
  13  Prefactor     42.204        29.774        .15426E-02   -1.4408    
  14  Prefactor     104.27        19.007        .98439E-03   -1.3662    
  15  Prefactor     .10294E-03    12.690        .13062       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     1.7167        .23274        .37564E-02   -1.5446    
  17  Prefactor     5.8888        6.7957        .41370E-02   -1.5223    
  18  Prefactor     .10000E-03    6.8451        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .15495E-03    5.4049        .13023       -1.5706    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     24.285        19.530        .20318E-02   -1.4722    
  21  Prefactor     .10000E-03    8.3536        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     13.167        7.5344        .27593E-02   -1.4982    
  23  Prefactor     .10000E-03    19.042        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .70617        .22236        .99036E-01   -1.0365    
  25  Prefactor     1.0082        .11427        .43593E-01   -.92456    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.06967e-08
Minuit parameter uncertainties:
  1  0.105248
  2  1.24809e-06
  3  0.000426812
  4  2.41888
  5  0.000355728
  6  89.7935
  7  9.95597e-07
  8  0.279518
  9  1.83939e-06
  10  1.10595
  11  16.424
  12  1.31588
  13  29.784
  14  19.0085
  15  0.0122163
  16  0.232741
  17  6.79663
  18  1.47698e-06
  19  0.0344702
  20  19.535
  21  7.95133e-06
  22  7.53489
  23  8.26316e-05
  24  0.222641
  25  0.1143
Done.

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

Extracting fit parameters...

4FGL J2243.9+2021
   Spectrum: LogParabola
288         norm:  1.056e+00  1.316e+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.008e+00  1.143e-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:  7.062e-01  2.226e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.59
Ra Dec: 340.990 20.357
Photon Index (Fixed Index): 1.72 +/- 0.00
Photon Flux (Fixed Index): 1.19e-08 +/- 1.49e-08
Energy Flux (Fixed Index): 1.55e-05 +/- 1.93e-05

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

Saving results to:
/scratch/kocevski/452832/likelihoodResults_583286401_583545601_4FGL_J2243.9+2021_daily_bin1327.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) = 10343.4865671
delta logL = 0.756994530369

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10343.4347112
delta logL = 0.808850507736

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .28802       1.0000         .10000E-03   10000.    
     2 'alpha     '    .59793       1.0000          .0000       5.0000    
     3 'Normalizat'    .70687       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0099       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=   10343.43     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      220 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .28780        .40618        .10372E-01   -.10492E-02
   2  alpha         .59748        .61118        .50000       -.39506E-04
   3  Normalizat    .70676        .20713        .99011E-01   -.47562E-03
   4  Prefactor     1.0100        .11364        .43334E-01   -.13012E-02
                               ERR DEF=  .500    
Final values: 
  norm       = 0.287803
  alpha      = 0.597479
  Normalizat = 0.706756
  Prefactor  = 1.01002
 **********
 **   18 **HESSE 
 **********

 FCN=   10343.43     FROM HESSE     STATUS=OK            33 CALLS      253 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .28780        .57529        .59966E-03   -1.5601    
   2  alpha         .59748        .76279        .30595E-01   -.86487    
   3  Normalizat    .70676        .23347        .43882E-03   -1.0363    
   4  Prefactor     1.0100        .12852        .20314E-03   -.92396    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.70944e-08
Minuit parameter uncertainties:
  1  0.575306
  2  0.79415
  3  0.233795
  4  0.128555
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/452832': 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) = 10343.4347108
delta logL = 0.808850833613

Extracting fit parameters...

4FGL J2243.9+2021
   Spectrum: LogParabola
288         norm:  2.878e-01  5.753e-01  1.000e-04  1.000e+04 ( 1.000e-12)
289        alpha:  5.975e-01  7.942e-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.010e+00  1.286e-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:  7.068e-01  2.338e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.21
Ra Dec: 340.990 20.357
Photon Index (Free Index): 0.60 +/- 0.79
Photon Flux (Free Index): 3.28e-09 +/- 3.83e-09
Energy Flux (Free Index): 6.35e-05 +/- 8.78e-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/452832/cmap_HighResolution_583286401_583545601_4FGL_J2243.9+2021_daily_bin1327.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.27e-05', comment='SUCCESS', photon_flux='1.19e-08', energy_flux2='6.35e-05', photon_flux_error='1.49e-08', dlogl='8.09e-01', energy_flux='1.55e-05', photon_flux2='3.28e-09', job_status='DONE', time_completed='2021-09-28 19:41:08.708510', photon_index_error2='0.79', photon_index2='0.60', ts='1.59', fit_tolerance='1e-08', GAL='1.01', photon_index_error='0.00', photon_flux_upper_limit='5.61e-08', energy_flux_error2='8.78e-05', EG='0.71', time_epoch_completed='1632883268.71', return_code='0', job_id='452832', GAL2='1.01', EG2='0.71', return_code2='0', energy_flux_error='1.93e-05', photon_flux_error2='3.83e-09', ts2='3.21', photon_index='1.72' WHERE bin_id='1327' AND source_name='4FGL J2243.9+2021' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 19:41:08 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0208>
Subject: Job 452832: <4FGL_J2243.9+2021_daily_bin1327> in cluster <slac> Done

Job <4FGL_J2243.9+2021_daily_bin1327> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Tue Sep 28 19:25:34 2021
Job was executed on host(s) <bullet0208>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 19:25:36 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:25:36 2021
Terminated at Tue Sep 28 19:41:09 2021
Results reported at Tue Sep 28 19:41:09 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2243.9+2021_daily_bin1327 340.99 20.3565 583286401 583545601 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 :                                   910.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             351.21 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   932 sec.
    Turnaround time :                            935 sec.

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

