/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 44 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 = 7479
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2243.9+2021_daily_bin69
RA = 340.99, Dec = 20.3565
tmin = 257212801, tmax = 257472001
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='446614', job_status='RUN', time_executed='2021-09-28 19:06:25.054123', time_epoch_executed='1632881185.05' WHERE source_name='4FGL J2243.9+2021' and cadence='daily' and bin_id='69'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/446614

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/446614/ft1_4FGL_J2243.9+2021_daily_bin69.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/446614/ft2_4FGL_J2243.9+2021_daily_bin69.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/446614/ft1_4FGL_J2243.9+2021_daily_bin69.fits outfile=/scratch/kocevski/446614/ft1_filteredMKT_4FGL_J2243.9+2021_daily_bin69.fits ra=340.99 dec=20.3565 rad=12.0 tmin=257212801.0 tmax=257472001.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 2.31
user 2.11
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/446614/ft2_4FGL_J2243.9+2021_daily_bin69.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/446614/ft1_filteredMKT_4FGL_J2243.9+2021_daily_bin69.fits evtable="EVENTS" outfile="/scratch/kocevski/446614/ft1_filtered_4FGL_J2243.9+2021_daily_bin69.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/446614/ft1_filtered_4FGL_J2243.9+2021_daily_bin69.fits" evtable="EVENTS" scfile=/scratch/kocevski/446614/ft2_4FGL_J2243.9+2021_daily_bin69.fits sctable="SC_DATA" outfile=/scratch/kocevski/446614/ltcube_257212801_257472001_4FGL_J2243.9+2021_daily_bin69.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/446614/ft2_4FGL_J2243.9+2021_daily_bin69.fits
.....................!
real 12.40
user 12.05
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/446614/ft1_filtered_4FGL_J2243.9+2021_daily_bin69.fits evtable="EVENTS" scfile=/scratch/kocevski/446614/ft2_4FGL_J2243.9+2021_daily_bin69.fits sctable="SC_DATA" expcube=/scratch/kocevski/446614/ltcube_257212801_257472001_4FGL_J2243.9+2021_daily_bin69.fits outfile=/scratch/kocevski/446614/expmap_257212801_257472001_4FGL_J2243.9+2021_daily_bin69.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/446614/ltcube_257212801_257472001_4FGL_J2243.9+2021_daily_bin69.fits
.....................!
real 188.53
user 183.75
sys 4.36

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/446614/ft1_filtered_4FGL_J2243.9+2021_daily_bin69.fits scfile=/scratch/kocevski/446614/ft2_4FGL_J2243.9+2021_daily_bin69.fits outfile=/scratch/kocevski/446614/cmap_257212801_257472001_4FGL_J2243.9+2021_daily_bin69.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/446614/ft1_filtered_4FGL_J2243.9+2021_daily_bin69.fits scfile=/scratch/kocevski/446614/ft2_4FGL_J2243.9+2021_daily_bin69.fits outfile=/scratch/kocevski/446614/cmap_HighResolution_257212801_257472001_4FGL_J2243.9+2021_daily_bin69.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/446614/ft1_filtered_4FGL_J2243.9+2021_daily_bin69.fits evtable="EVENTS" scfile=/scratch/kocevski/446614/ft2_4FGL_J2243.9+2021_daily_bin69.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/446614/Model_4FGL_J2243.9+2021_daily_bin69.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/446614/ft1_filtered_4FGL_J2243.9+2021_daily_bin69.fits.....................!
real 98.10
user 96.70
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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      '    .86960       1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.8202       1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    12.960       1.0000         .10000E-03   10000.    
     6 'Prefactor '    94.650       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .11529E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.4352       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .64366       1.0000         .10000E-03   10000.    
    10 'norm      '    .87885       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    16.841       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    16.157       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .24415       1.0000         .10000E-03   10000.    
    17 'Prefactor '    5.2936       1.0000         .10000E-03   10000.    
    18 'Prefactor '    9.7476       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10069E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    4.2510       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.3668       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .83549       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   9563.023     FROM MIGRAD    STATUS=CONVERGED    564 CALLS     2907 TOTAL
                     EDM=   .31E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    21.905         .0000    ** at limit **
   2  norm          .86978        .84696         .0000        .10137E-02
   3  Prefactor     3.8173        9.3952         .0000        .36908E-02
   4  norm          .10000E-03    1.0899         .0000    ** at limit **
   5  Prefactor     12.963        14.084         .0000       -.77142E-03
   6  Prefactor     94.651        81.995         .0000       -.14787E-02
   7  Prefactor     .10001E-03    20.316         .0000    ** at limit **
   8  Prefactor     1.4352        .25896         .0000       -.30532E-03
   9  Prefactor     .65634        8.8843         .0000        .41261E-01
  10  norm          .87896        .84235         .0000        .59626E-03
  11  Prefactor     .10000E-03    10.415         .0000    ** at limit **
  12  norm          .10000E-03    .48194         .0000    ** at limit **
  13  Prefactor     16.843        25.727         .0000       -.13181E-02
  14  Prefactor     .10000E-03    3.9812         .0000    ** at limit **
  15  Prefactor     16.158        14.229         .0000       -.46068E-03
  16  Prefactor     .24416        .12072         .0000        .16575E-02
  17  Prefactor     5.2970        10.735         .0000        .31107E-02
  18  Prefactor     9.7497        6.6572         .0000        .36628E-03
  19  Prefactor     .10003E-03    15.161         .0000    ** at limit **
  20  Prefactor     .10009E-03    18.459         .0000    ** at limit **
  21  Prefactor     .10002E-03    21.789         .0000    ** at limit **
  22  Prefactor     4.2533        5.2365         .0000        .44071E-03
  23  Prefactor     .10000E-03    4.5788         .0000    ** at limit **
  24  Normalizat    1.3666        .19865         .0000        .39482E-04
  25  Prefactor     .83544        .10550         .0000        .49459E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100012
  norm       = 0.869778
  Prefactor  = 3.81729
  norm       = 0.0001
  Prefactor  = 12.963
  Prefactor  = 94.6508
  Prefactor  = 0.000100013
  Prefactor  = 1.43519
  Prefactor  = 0.656338
  norm       = 0.878962
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 16.8429
  Prefactor  = 0.0001
  Prefactor  = 16.1583
  Prefactor  = 0.244162
  Prefactor  = 5.29699
  Prefactor  = 9.74968
  Prefactor  = 0.000100032
  Prefactor  = 0.000100092
  Prefactor  = 0.000100022
  Prefactor  = 4.25334
  Prefactor  = 0.0001
  Normalizat = 1.36658
  Prefactor  = 0.835438
 **********
 **   18 **HESSE 
 **********

 FCN=   9563.023     FROM HESSE     STATUS=OK           425 CALLS     3332 TOTAL
                     EDM=   .35E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    21.961        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .86978        .77650        .85317E-03   -1.5521    
   3  Prefactor     3.8173        9.3810        .10325E-02   -1.5317    
   4  norm          .10000E-03    1.0922        .99691E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     12.963        14.111        .11127E-03   -1.4988    
   6  Prefactor     94.651        81.931        .41311E-04   -1.3759    
   7  Prefactor     .10001E-03    21.007        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     1.4352        .25931        .19491E-04   -1.5468    
   9  Prefactor     .65634        9.1351        .23688E-02   -1.5546    
  10  norm          .87896        .82422        .84151E-04   -1.5520    
  11  Prefactor     .10000E-03    10.446        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    .48716        .66285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     16.843        25.687        .97596E-04   -1.4887    
  14  Prefactor     .10000E-03    3.9936        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     16.158        14.218        .99643E-04   -1.4904    
  16  Prefactor     .24416        .11758        .22024E-04   -1.5609    
  17  Prefactor     5.2970        10.733        .87344E-03   -1.5248    
  18  Prefactor     9.7497        6.6497        .12835E-03   -1.5083    
  19  Prefactor     .10003E-03    15.425        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10009E-03    18.596        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10002E-03    22.095        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     4.2533        5.2328        .19542E-03   -1.5295    
  23  Prefactor     .10000E-03    4.5832        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.3666        .23506        .30843E-03   -.81600    
  25  Prefactor     .83544        .12519        .20752E-03   -.98435    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.47004e-08
Minuit parameter uncertainties:
  1  0.00103523
  2  0.776514
  3  9.38458
  4  1.86404e-06
  5  14.115
  6  82.0287
  7  0.00106516
  8  0.259309
  9  4.89775
  10  0.824228
  11  0.000120266
  12  2.3022e-06
  13  25.7037
  14  7.13892e-06
  15  14.2209
  16  0.117582
  17  10.737
  18  6.65022
  19  0.00141475
  20  0.00261894
  21  0.0014054
  22  5.23332
  23  3.17336e-06
  24  0.235245
  25  0.125232
Done.

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

Extracting fit parameters...

4FGL J2243.9+2021
   Spectrum: LogParabola
288         norm:  1.000e-04  2.302e-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.354e-01  1.252e-01  0.000e+00  1.000e+01 ( 1.000e+00)
514        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
515        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
512   Normalization:  1.367e+00  2.352e-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: 2.82e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.66e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/446614/likelihoodResults_257212801_257472001_4FGL_J2243.9+2021_daily_bin69.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) = 9563.02254599
delta logL = -2.13086186704e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9562.95557188
delta logL = 0.066952806319

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .14408E-02   1.0000         .10000E-03   10000.    
     2 'alpha     '    5.0000       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3411       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84407       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=   9562.956     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      303 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .14395E-02    .47899E-02    .77307E-04** at limit **
   2  alpha         5.0000        4.9076        .50000    ** at limit **
   3  Normalizat    1.3414        .24065        .31092E-03    .95844E-03
   4  Prefactor     .84392        .12686        .20660E-03    .75857E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.00143951
  alpha      = 5
  Normalizat = 1.34136
  Prefactor  = 0.843919
 **********
 **   18 **HESSE 
 **********

 FCN=   9562.956     FROM HESSE     STATUS=OK            29 CALLS      332 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .14395E-02    .43819E-02    .30923E-05   -1.5701    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         5.0000        4.7739        .50000        1.5702    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    1.3414        .24166        .62184E-04   -.82340    
   4  Prefactor     .84392        .12716        .41320E-04   -.98129    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.8231e-08
Minuit parameter uncertainties:
  1  0.00438194
  2  0.00389509
  3  0.241865
  4  0.127207
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/446614': 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) = 9562.95557102
delta logL = 0.066953668631

Extracting fit parameters...

4FGL J2243.9+2021
   Spectrum: LogParabola
288         norm:  1.440e-03  4.382e-03  1.000e-04  1.000e+04 ( 1.000e-12)
289        alpha:  5.000e+00  3.895e-03  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:  8.439e-01  1.272e-01  0.000e+00  1.000e+01 ( 1.000e+00)
514        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
515        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
512   Normalization:  1.341e+00  2.419e-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/446614/cmap_HighResolution_257212801_257472001_4FGL_J2243.9+2021_daily_bin69.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.66e-05', job_status='DONE', photon_flux_upper_limit='2.82e-08', time_completed='2021-09-28 19:21:03.444495', job_id='446614', GAL2='0.84', fit_tolerance='1e-08', EG2='1.34', EG='1.37', time_epoch_completed='1632882063.44', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.84', dlogl='6.70e-02', ts2='0.15', photon_index_error='0.00', photon_index='1.72' WHERE bin_id='69' AND source_name='4FGL J2243.9+2021' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 19:21:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0218>
Subject: Job 446614: <4FGL_J2243.9+2021_daily_bin69> in cluster <slac> Done

Job <4FGL_J2243.9+2021_daily_bin69> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Sep 28 19:05:31 2021
Job was executed on host(s) <bullet0218>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 19:05:32 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:05:32 2021
Terminated at Tue Sep 28 19:21:04 2021
Results reported at Tue Sep 28 19:21:04 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2243.9+2021_daily_bin69 340.99 20.3565 257212801 257472001 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 :                                   877.05 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             312.71 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   931 sec.
    Turnaround time :                            933 sec.

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

