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


Performing analysis on: 4FGL_J2243.9+2021_daily_bin434
RA = 340.99, Dec = 20.3565
tmin = 351820801, tmax = 352080001
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='448182', job_status='RUN', time_executed='2021-09-28 19:13:06.533658', time_epoch_executed='1632881586.53' WHERE source_name='4FGL J2243.9+2021' and cadence='daily' and bin_id='434'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/448182

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/448182/ft1_4FGL_J2243.9+2021_daily_bin434.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/448182/ft2_4FGL_J2243.9+2021_daily_bin434.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/448182/ft1_4FGL_J2243.9+2021_daily_bin434.fits outfile=/scratch/kocevski/448182/ft1_filteredMKT_4FGL_J2243.9+2021_daily_bin434.fits ra=340.99 dec=20.3565 rad=12.0 tmin=351820801.0 tmax=352080001.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.62
user 3.41
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/448182/ft1_filtered_4FGL_J2243.9+2021_daily_bin434.fits" evtable="EVENTS" scfile=/scratch/kocevski/448182/ft2_4FGL_J2243.9+2021_daily_bin434.fits sctable="SC_DATA" outfile=/scratch/kocevski/448182/ltcube_351820801_352080001_4FGL_J2243.9+2021_daily_bin434.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/448182/ft2_4FGL_J2243.9+2021_daily_bin434.fits
.....................!
real 11.55
user 11.23
sys 0.28

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/448182/ft1_filtered_4FGL_J2243.9+2021_daily_bin434.fits evtable="EVENTS" scfile=/scratch/kocevski/448182/ft2_4FGL_J2243.9+2021_daily_bin434.fits sctable="SC_DATA" expcube=/scratch/kocevski/448182/ltcube_351820801_352080001_4FGL_J2243.9+2021_daily_bin434.fits outfile=/scratch/kocevski/448182/expmap_351820801_352080001_4FGL_J2243.9+2021_daily_bin434.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/448182/ltcube_351820801_352080001_4FGL_J2243.9+2021_daily_bin434.fits
.....................!
real 190.08
user 185.80
sys 3.98

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/448182/ft1_filtered_4FGL_J2243.9+2021_daily_bin434.fits scfile=/scratch/kocevski/448182/ft2_4FGL_J2243.9+2021_daily_bin434.fits outfile=/scratch/kocevski/448182/cmap_351820801_352080001_4FGL_J2243.9+2021_daily_bin434.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.52
user 0.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/448182/ft1_filtered_4FGL_J2243.9+2021_daily_bin434.fits scfile=/scratch/kocevski/448182/ft2_4FGL_J2243.9+2021_daily_bin434.fits outfile=/scratch/kocevski/448182/cmap_HighResolution_351820801_352080001_4FGL_J2243.9+2021_daily_bin434.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.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .54830E-02   1.0000         .10000E-03   10000.    
     2 'norm      '    .43150       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10064E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    4.5062       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .22653E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .45025       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    1.2188       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10181E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    44.242       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    18.936       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .17782       1.0000         .10000E-03   10000.    
    17 'Prefactor '    15.344       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    39.061       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10106E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    6.7542       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .88577       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.1085       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=   8563.701     FROM MIGRAD    STATUS=CONVERGED    580 CALLS     2952 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    235.37        .27971E-05** at limit **
   2  norm          .43073        1.0801       -.32944E-07   -.81148E-03
   3  Prefactor     .10000E-03    7.6241        .18109E-05** at limit **
   4  norm          4.5066        4.2156        .15400E-05   -.27788E-02
   5  Prefactor     .10000E-03    10.749        .91774E-06** at limit **
   6  Prefactor     .10000E-03    57.471       -.10675E-06** at limit **
   7  Prefactor     .10000E-03    12.027       -.48879E-06** at limit **
   8  Prefactor     .45032        .20188        .14401E-07   -.36163E-03
   9  Prefactor     .10000E-03    4.6219        .49153E-07** at limit **
  10  norm          1.2194        1.1243        .61638E-07   -.34692E-03
  11  Prefactor     .10000E-03    6.0109        .19001E-05** at limit **
  12  norm          .10000E-03    .76010        .27786E-08** at limit **
  13  Prefactor     44.202        37.325       -.57410E-05   -.27848E-03
  14  Prefactor     .10000E-03    5.8419       -.11363E-05** at limit **
  15  Prefactor     18.935        26.234        .25568E-05    .99326E-04
  16  Prefactor     .17803        .17527        .72535E-07   -.29218E-03
  17  Prefactor     15.348        8.9390        .12821E-05    .38875E-03
  18  Prefactor     .10000E-03    6.5886       -.16710E-05** at limit **
  19  Prefactor     39.056        20.433        .12179E-05    .19531E-03
  20  Prefactor     .10000E-03    8.4453       -.25465E-05** at limit **
  21  Prefactor     6.7643        18.020       -.28015E-05   -.10379E-03
  22  Prefactor     .10000E-03    1.2623        .15772E-07** at limit **
  23  Prefactor     .10000E-03    7.9199        .11442E-05** at limit **
  24  Normalizat    .88561        .21989       -.96905E-06   -.15212E-04
  25  Prefactor     1.1085        .11513       -.12932E-07   -.62076E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.430726
  Prefactor  = 0.0001
  norm       = 4.50664
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.450319
  Prefactor  = 0.0001
  norm       = 1.21938
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 44.2022
  Prefactor  = 0.0001
  Prefactor  = 18.9348
  Prefactor  = 0.178027
  Prefactor  = 15.3482
  Prefactor  = 0.0001
  Prefactor  = 39.0556
  Prefactor  = 0.0001
  Prefactor  = 6.76435
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.885615
  Prefactor  = 1.10849
 **********
 **   18 **HESSE 
 **********

 FCN=   8563.701     FROM HESSE     STATUS=OK           419 CALLS     3371 TOTAL
                     EDM=   .98E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    242.90        .38145E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .43073        1.0721        .14096E-03   -1.5577    
   3  Prefactor     .10000E-03    7.6890        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          4.5066        6.4309        .94831E-03   -1.5283    
   5  Prefactor     .10000E-03    10.839        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    57.527        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    12.159        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .45032        .19955        .26486E-04   -1.5574    
   9  Prefactor     .10000E-03    4.6584        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          1.2194        1.1040        .89566E-04   -1.5487    
  11  Prefactor     .10000E-03    6.0364        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    .79600        .15752E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     44.202        37.688        .60274E-04   -1.4377    
  14  Prefactor     .10000E-03    5.8943        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     18.935        25.909        .92040E-04   -1.4837    
  16  Prefactor     .17803        .16440        .32314E-03   -1.5624    
  17  Prefactor     15.348        8.9626        .10225E-03   -1.4924    
  18  Prefactor     .10000E-03    6.6995        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     39.056        20.446        .64132E-04   -1.4457    
  20  Prefactor     .10000E-03    8.4996        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     6.7643        18.087        .15439E-03   -1.5188    
  22  Prefactor     .10000E-03    1.2636        .10153E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    7.9450        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .88561        .24981        .37591E-03   -.96967    
  25  Prefactor     1.1085        .13271        .18426E-03   -.89196    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.78483e-09
Minuit parameter uncertainties:
  1  0.000624909
  2  1.0721
  3  7.74273e-05
  4  6.43187
  5  5.04655e-05
  6  1.07205e-05
  7  1.67172e-05
  8  0.199549
  9  1.40185e-06
  10  1.10406
  11  7.3638e-05
  12  9.0931e-07
  13  37.708
  14  4.17774e-05
  15  25.9241
  16  0.1644
  17  8.96343
  18  8.27135e-05
  19  20.4499
  20  0.000110739
  21  18.1014
  22  1.81975e-07
  23  5.06053e-05
  24  0.250138
  25  0.132753
Done.

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

Extracting fit parameters...

4FGL J2243.9+2021
   Spectrum: LogParabola
288         norm:  1.000e-04  9.093e-07  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.108e+00  1.328e-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.856e-01  2.501e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/448182/likelihoodResults_351820801_352080001_4FGL_J2243.9+2021_daily_bin434.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): 102
logL (Free Index) = 8563.70731265
delta logL = -0.00594080275732

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8563.70137231
delta logL = -4.57539499621e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10090E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.7070       1.0000          .0000       5.0000    
     3 'Normalizat'    .88561       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1085       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8563.701     FROM MIGRAD    STATUS=CONVERGED     97 CALLS      247 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    94.435        .15788E-02** at limit **
   2  alpha         1.5214        3.1999        .50000       -.27958E-06
   3  Normalizat    .88561        .66286E-01    .37591E-03   -.21225E-03
   4  Prefactor     1.1085        .36200E-01    .18426E-03   -.38207E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.5214
  Normalizat = 0.885614
  Prefactor  = 1.10849
 **********
 **   18 **HESSE 
 **********

 FCN=   8563.701     FROM HESSE     STATUS=OK            29 CALLS      276 TOTAL
                     EDM=   .24E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.4880        .31577E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.5214        3.6728        .50000       -.40220    
   3  Normalizat    .88561        .24036        .15036E-04   -.96967    
   4  Prefactor     1.1085        .13136        .36852E-04   -.89196    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.37162e-10
Minuit parameter uncertainties:
  1  2.76395e-06
  2  94.36
  3  0.240654
  4  0.131399
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/448182': 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) = 8563.70136964
delta logL = 2.2078584152e-06

Extracting fit parameters...

4FGL J2243.9+2021
   Spectrum: LogParabola
288         norm:  1.000e-04  2.764e-06  1.000e-04  1.000e+04 ( 1.000e-12)
289        alpha:  1.521e+00  9.436e+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.108e+00  1.314e-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.856e-01  2.407e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 340.990 20.357

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/448182/cmap_HighResolution_351820801_352080001_4FGL_J2243.9+2021_daily_bin434.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.39e-05', job_status='DONE', photon_flux_upper_limit='3.39e-08', time_completed='2021-09-28 19:26:28.357990', job_id='448182', GAL2='1.11', fit_tolerance='1e-08', EG2='0.89', EG='0.89', time_epoch_completed='1632882388.36', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.11', dlogl='2.21e-06', ts2='-0.00', photon_index_error='0.00', photon_index='1.72' WHERE bin_id='434' AND source_name='4FGL J2243.9+2021' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 19:26:28 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0245>
Subject: Job 448182: <4FGL_J2243.9+2021_daily_bin434> in cluster <slac> Done

Job <4FGL_J2243.9+2021_daily_bin434> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Tue Sep 28 19:10:42 2021
Job was executed on host(s) <bullet0245>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 19:10:44 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:44 2021
Terminated at Tue Sep 28 19:26:29 2021
Results reported at Tue Sep 28 19:26:29 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2243.9+2021_daily_bin434 340.99 20.3565 351820801 352080001 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 :                                   802.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             318.73 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   944 sec.
    Turnaround time :                            947 sec.

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

