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


Performing analysis on: 4FGL_J2243.9+2021_daily_bin388
RA = 340.99, Dec = 20.3565
tmin = 339897601, tmax = 340156801
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='448107', job_status='RUN', time_executed='2021-09-28 19:13:34.384184', time_epoch_executed='1632881614.38' WHERE source_name='4FGL J2243.9+2021' and cadence='daily' and bin_id='388'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/448107

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/448107/ft1_4FGL_J2243.9+2021_daily_bin388.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/448107/ft2_4FGL_J2243.9+2021_daily_bin388.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/448107/ft1_4FGL_J2243.9+2021_daily_bin388.fits outfile=/scratch/kocevski/448107/ft1_filteredMKT_4FGL_J2243.9+2021_daily_bin388.fits ra=340.99 dec=20.3565 rad=12.0 tmin=339897601.0 tmax=340156801.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.39
user 3.18
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/448107/ft1_filtered_4FGL_J2243.9+2021_daily_bin388.fits" evtable="EVENTS" scfile=/scratch/kocevski/448107/ft2_4FGL_J2243.9+2021_daily_bin388.fits sctable="SC_DATA" outfile=/scratch/kocevski/448107/ltcube_339897601_340156801_4FGL_J2243.9+2021_daily_bin388.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/448107/ft2_4FGL_J2243.9+2021_daily_bin388.fits
.....................!
real 12.08
user 11.76
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/448107/ft1_filtered_4FGL_J2243.9+2021_daily_bin388.fits evtable="EVENTS" scfile=/scratch/kocevski/448107/ft2_4FGL_J2243.9+2021_daily_bin388.fits sctable="SC_DATA" expcube=/scratch/kocevski/448107/ltcube_339897601_340156801_4FGL_J2243.9+2021_daily_bin388.fits outfile=/scratch/kocevski/448107/expmap_339897601_340156801_4FGL_J2243.9+2021_daily_bin388.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/448107/ltcube_339897601_340156801_4FGL_J2243.9+2021_daily_bin388.fits
.....................!
real 191.56
user 185.70
sys 5.52

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/448107/ft1_filtered_4FGL_J2243.9+2021_daily_bin388.fits scfile=/scratch/kocevski/448107/ft2_4FGL_J2243.9+2021_daily_bin388.fits outfile=/scratch/kocevski/448107/cmap_339897601_340156801_4FGL_J2243.9+2021_daily_bin388.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.37
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    1.8554       1.0000         .10000E-03   10000.    
     3 'Prefactor '    18.154       1.0000         .10000E-03   10000.    
     4 'norm      '    2.0932       1.0000         .10000E-03   10000.    
     5 'Prefactor '    8.0943       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .27552       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    14.152       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    36.457       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .18622       1.0000         .10000E-03   10000.    
    17 'Prefactor '    3.8957       1.0000         .10000E-03   10000.    
    18 'Prefactor '    4.8506       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    3.3762       1.0000         .10000E-03   10000.    
    22 'Prefactor '    1.7281       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .96531       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .89417       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=   7306.175     FROM MIGRAD    STATUS=CONVERGED    563 CALLS     2970 TOTAL
                     EDM=   .57E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    24.246        .22624E-04** at limit **
   2  norm          1.8554        .99951       -.58931E-08   -.15042E-04
   3  Prefactor     18.153        14.501        .19928E-07    .57186E-04
   4  norm          2.0931        3.8916       -.12461E-05   -.66364E-04
   5  Prefactor     8.0946        11.781       -.90282E-07   -.14950E-03
   6  Prefactor     .10000E-03    29.578       -.18836E-04** at limit **
   7  Prefactor     .10000E-03    16.755       -.46943E-05** at limit **
   8  Prefactor     .27553        .15946        .17471E-07    .16733E-03
   9  Prefactor     .10000E-03    2.5664        .38798E-07** at limit **
  10  norm          .10000E-03    .29502        .14020E-07** at limit **
  11  Prefactor     .10000E-03    6.8149        .46108E-05** at limit **
  12  norm          .10000E-03    .70190       -.86071E-07** at limit **
  13  Prefactor     14.152        14.175        .86593E-07    .38989E-04
  14  Prefactor     .10000E-03    8.0016        .67784E-06** at limit **
  15  Prefactor     36.452        25.490       -.41699E-05   -.26911E-04
  16  Prefactor     .18628        .12876        .74356E-07    .63176E-03
  17  Prefactor     3.8956        7.6613        .31794E-07   -.43307E-03
  18  Prefactor     4.8505        5.5924        .33476E-06   -.11933E-04
  19  Prefactor     .10000E-03    3.1604        .39192E-07** at limit **
  20  Prefactor     .10000E-03    8.0841       -.10313E-05** at limit **
  21  Prefactor     3.3750        18.574       -.13805E-05   -.87254E-05
  22  Prefactor     1.7282        2.1362        .56193E-06   -.22090E-02
  23  Prefactor     .10000E-03    6.6533       -.41054E-05** at limit **
  24  Normalizat    .96524        .19636        .11220E-05    .35446E-04
  25  Prefactor     .89419        .10696       -.23359E-06    .14362E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 1.85544
  Prefactor  = 18.1532
  norm       = 2.09313
  Prefactor  = 8.09456
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.275529
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 14.1517
  Prefactor  = 0.0001
  Prefactor  = 36.4525
  Prefactor  = 0.186284
  Prefactor  = 3.89556
  Prefactor  = 4.85052
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.37498
  Prefactor  = 1.72823
  Prefactor  = 0.0001
  Normalizat = 0.965236
  Prefactor  = 0.894195
 **********
 **   18 **HESSE 
 **********

 FCN=   7306.175     FROM HESSE     STATUS=OK           431 CALLS     3401 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    24.263        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.8554        .99383        .60390E-04   -1.5436    
   3  Prefactor     18.153        14.526        .94002E-04   -1.4856    
   4  norm          2.0931        3.8779        .22175E-03   -1.5419    
   5  Prefactor     8.0946        11.815        .70461E-03   -1.5139    
   6  Prefactor     .10000E-03    29.612        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    17.210        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .27553        .15568        .24375E-04   -1.5603    
   9  Prefactor     .10000E-03    2.5709        .13372E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    .52062        .90112E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    6.8314        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    1.2633        .13944E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     14.152        14.174        .53236E-03   -1.4955    
  14  Prefactor     .10000E-03    8.0675        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     36.452        25.417        .66375E-04   -1.4500    
  16  Prefactor     .18628        .12438        .23095E-04   -1.5622    
  17  Prefactor     3.8956        7.7735        .10221E-02   -1.5313    
  18  Prefactor     4.8505        5.5806        .18265E-03   -1.5267    
  19  Prefactor     .10000E-03    3.1635        .14840E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    8.1264        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     3.3750        18.591        .22022E-03   -1.5341    
  22  Prefactor     1.7282        5.9984        .15970E-02   -1.5445    
  23  Prefactor     .10000E-03    6.6688        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .96524        .24130        .30936E-03   -.94204    
  25  Prefactor     .89419        .12903        .17799E-03   -.96344    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.03714e-08
Minuit parameter uncertainties:
  1  0.000100809
  2  0.993836
  3  14.5291
  4  3.87835
  5  11.8189
  6  0.000111433
  7  4.03848e-05
  8  0.155676
  9  3.1305e-07
  10  4.78411e-06
  11  6.22888e-06
  12  3.88401e-06
  13  14.1773
  14  7.55859e-06
  15  25.4242
  16  0.124382
  17  7.77552
  18  5.58121
  19  5.1984e-07
  20  4.5025e-06
  21  15.8494
  22  6.00044
  23  1.34745e-05
  24  0.24157
  25  0.129074
Done.

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

Extracting fit parameters...

4FGL J2243.9+2021
   Spectrum: LogParabola
288         norm:  1.000e-04  3.884e-06  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:  8.942e-01  1.291e-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:  9.652e-01  2.416e-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.55e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.61e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/448107/likelihoodResults_339897601_340156801_4FGL_J2243.9+2021_daily_bin388.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) = 7306.17855312
delta logL = -0.00377960300648

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7305.71659686
delta logL = 0.458176657851

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .33175E-02   1.0000         .10000E-03   10000.    
     2 'alpha     '    5.0000       1.0000          .0000       5.0000    
     3 'Normalizat'    .90046       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91707       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=   7305.717     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      423 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .33181E-02    .19029        .98583E-03    .59930E-02
   2  alpha         5.0000        2.9649        .46267    ** at limit **
   3  Normalizat    .90028        .95926E-01    .72148E-01   -.11319E-04
   4  Prefactor     .91720        .47754E-01    .45222E-01   -.27802E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.00331812
  alpha      = 5
  Normalizat = 0.900277
  Prefactor  = 0.917197
 **********
 **   18 **HESSE 
 **********

 FCN=   7305.717     FROM HESSE     STATUS=OK            37 CALLS      460 TOTAL
                     EDM=   .65E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .33181E-02    .44486E-02    .57613E-04   -1.5697    
   2  alpha         5.0000        3.1485        .50000        1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .90028        .24072        .31925E-03   -.96450    
   4  Prefactor     .91720        .13098        .17598E-03   -.95543    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.54484e-11
Minuit parameter uncertainties:
  1  0.00444863
  2  1.51087e-06
  3  0.241007
  4  0.131028
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/448107': 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) = 7305.71659639
delta logL = 0.458177130819

Extracting fit parameters...

4FGL J2243.9+2021
   Spectrum: LogParabola
288         norm:  3.318e-03  4.449e-03  1.000e-04  1.000e+04 ( 1.000e-12)
289        alpha:  5.000e+00  1.511e-06  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.172e-01  1.310e-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:  9.003e-01  2.410e-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/448107/cmap_HighResolution_339897601_340156801_4FGL_J2243.9+2021_daily_bin388.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.61e-05', job_status='DONE', photon_flux_upper_limit='3.55e-08', time_completed='2021-09-28 19:26:20.873174', job_id='448107', GAL2='0.92', fit_tolerance='1e-08', EG2='0.90', EG='0.97', time_epoch_completed='1632882380.87', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.89', dlogl='4.58e-01', ts2='0.98', photon_index_error='0.00', photon_index='1.72' WHERE bin_id='388' AND source_name='4FGL J2243.9+2021' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 19:26:20 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0080>
Subject: Job 448107: <4FGL_J2243.9+2021_daily_bin388> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2243.9+2021_daily_bin388 340.99 20.3565 339897601 340156801 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 :                                   766.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             286.17 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   944 sec.
    Turnaround time :                            945 sec.

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

