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


Performing analysis on: 4FGL_J2243.9+2021_daily_bin52
RA = 340.99, Dec = 20.3565
tmin = 252806401, tmax = 253065601
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='446590', job_status='RUN', time_executed='2021-09-28 19:06:12.623633', time_epoch_executed='1632881172.62' WHERE source_name='4FGL J2243.9+2021' and cadence='daily' and bin_id='52'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/446590

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/446590/ft1_4FGL_J2243.9+2021_daily_bin52.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/446590/ft2_4FGL_J2243.9+2021_daily_bin52.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/446590/ft1_4FGL_J2243.9+2021_daily_bin52.fits outfile=/scratch/kocevski/446590/ft1_filteredMKT_4FGL_J2243.9+2021_daily_bin52.fits ra=340.99 dec=20.3565 rad=12.0 tmin=252806401.0 tmax=253065601.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 1.41
user 1.23
sys 0.17

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/446590/ft2_4FGL_J2243.9+2021_daily_bin52.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/446590/ft1_filteredMKT_4FGL_J2243.9+2021_daily_bin52.fits evtable="EVENTS" outfile="/scratch/kocevski/446590/ft1_filtered_4FGL_J2243.9+2021_daily_bin52.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.48
user 0.31
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/446590/ft1_filtered_4FGL_J2243.9+2021_daily_bin52.fits" evtable="EVENTS" scfile=/scratch/kocevski/446590/ft2_4FGL_J2243.9+2021_daily_bin52.fits sctable="SC_DATA" outfile=/scratch/kocevski/446590/ltcube_252806401_253065601_4FGL_J2243.9+2021_daily_bin52.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/446590/ft2_4FGL_J2243.9+2021_daily_bin52.fits
.....................!
real 17.41
user 17.04
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/446590/ft1_filtered_4FGL_J2243.9+2021_daily_bin52.fits evtable="EVENTS" scfile=/scratch/kocevski/446590/ft2_4FGL_J2243.9+2021_daily_bin52.fits sctable="SC_DATA" expcube=/scratch/kocevski/446590/ltcube_252806401_253065601_4FGL_J2243.9+2021_daily_bin52.fits outfile=/scratch/kocevski/446590/expmap_252806401_253065601_4FGL_J2243.9+2021_daily_bin52.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/446590/ltcube_252806401_253065601_4FGL_J2243.9+2021_daily_bin52.fits
.....................!
real 191.47
user 186.51
sys 4.63

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/446590/ft1_filtered_4FGL_J2243.9+2021_daily_bin52.fits scfile=/scratch/kocevski/446590/ft2_4FGL_J2243.9+2021_daily_bin52.fits outfile=/scratch/kocevski/446590/cmap_252806401_253065601_4FGL_J2243.9+2021_daily_bin52.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.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/446590/ft1_filtered_4FGL_J2243.9+2021_daily_bin52.fits scfile=/scratch/kocevski/446590/ft2_4FGL_J2243.9+2021_daily_bin52.fits outfile=/scratch/kocevski/446590/cmap_HighResolution_252806401_253065601_4FGL_J2243.9+2021_daily_bin52.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.55
user 0.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11068E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .98608       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10027E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .30960       1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.0183       1.0000         .10000E-03   10000.    
    10 'norm      '    .25694       1.0000         .10000E-03   10000.    
    11 'Prefactor '    28.790       1.0000         .10000E-03   10000.    
    12 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    20.366       1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.2994       1.0000         .10000E-03   10000.    
    15 'Prefactor '    16.845       1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.6546       1.0000         .10000E-03   10000.    
    17 'Prefactor '    3.6958       1.0000         .10000E-03   10000.    
    18 'Prefactor '    11.213       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.2217       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .86870       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=   10941.86     FROM MIGRAD    STATUS=CONVERGED    573 CALLS     2500 TOTAL
                     EDM=   .20E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10002E-03    51.640       -.78831E-05** at limit **
   2  norm          .98610        .69808        .44604E-07   -.40741E-04
   3  Prefactor     .10000E-03    17.784       -.10748E-06** at limit **
   4  norm          .10000E-03    2.9950        .13469E-06** at limit **
   5  Prefactor     .10000E-03    2.8108        .21126E-07** at limit **
   6  Prefactor     .10003E-03    43.748        .90238E-05** at limit **
   7  Prefactor     .10000E-03    3.9753       -.19841E-06** at limit **
   8  Prefactor     .30963        .14985        .20281E-07   -.13453E-03
   9  Prefactor     3.0184        3.5451        .15491E-06    .15978E-03
  10  norm          .25890        .64814        .24171E-06    .14202E-03
  11  Prefactor     28.745        20.258       -.32247E-05   -.10572E-02
  12  norm          .10000E-03    .49647        .40329E-08** at limit **
  13  Prefactor     20.367        19.823        .95577E-07    .41434E-05
  14  Prefactor     4.2999        7.1790       -.40070E-06   -.89629E-04
  15  Prefactor     16.846        16.145       -.29833E-08   -.14511E-04
  16  Prefactor     2.6547        .25178       -.83789E-08   -.26578E-03
  17  Prefactor     3.6945        10.022        .93293E-05   -.68261E-03
  18  Prefactor     11.214        7.7217        .94372E-06   -.34099E-03
  19  Prefactor     .10000E-03    6.8874       -.28973E-06** at limit **
  20  Prefactor     .10000E-03    4.1826        .26048E-06** at limit **
  21  Prefactor     .10000E-03    9.6979        .19550E-05** at limit **
  22  Prefactor     .10000E-03    2.0378        .25356E-07** at limit **
  23  Prefactor     .10000E-03    10.646       -.16466E-05** at limit **
  24  Normalizat    1.2215        .19207       -.44544E-06   -.13590E-03
  25  Prefactor     .86872        .10160       -.46913E-06   -.13516E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100021
  norm       = 0.986104
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100029
  Prefactor  = 0.0001
  Prefactor  = 0.309632
  Prefactor  = 3.01837
  norm       = 0.258904
  Prefactor  = 28.7446
  norm       = 0.0001
  Prefactor  = 20.3668
  Prefactor  = 4.2999
  Prefactor  = 16.8459
  Prefactor  = 2.65469
  Prefactor  = 3.69446
  Prefactor  = 11.2144
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Normalizat = 1.22148
  Prefactor  = 0.868722
 **********
 **   18 **HESSE 
 **********

 FCN=   10941.86     FROM HESSE     STATUS=OK           431 CALLS     2931 TOTAL
                     EDM=   .47E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10002E-03    53.138        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .98610        .67564        .71241E-03   -1.5509    
   3  Prefactor     .10000E-03    18.052        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    3.0534        .17671E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    2.8143        .17126E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10003E-03    45.389        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    4.0090        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .30963        .14713        .26976E-04   -1.5597    
   9  Prefactor     3.0184        3.5443        .20802E-03   -1.5360    
  10  norm          .25890        .70321        .12154E-02   -1.5606    
  11  Prefactor     28.745        20.897        .74668E-04   -1.4635    
  12  norm          .10000E-03    .77534        .14248E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     20.367        19.837        .88753E-04   -1.4805    
  14  Prefactor     4.2999        7.1139        .19429E-03   -1.5293    
  15  Prefactor     16.846        16.157        .97586E-04   -1.4887    
  16  Prefactor     2.6547        .25295        .14986E-04   -1.5382    
  17  Prefactor     3.6945        10.442        .10504E-02   -1.5324    
  18  Prefactor     11.214        7.7447        .59820E-03   -1.5038    
  19  Prefactor     .10000E-03    6.9531        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    4.1866        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    9.7899        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    2.0508        .14578E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    10.764        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.2215        .22570        .33982E-03   -.85942    
  25  Prefactor     .86872        .12022        .21283E-03   -.97243    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.71514e-09
Minuit parameter uncertainties:
  1  0.00213226
  2  0.675647
  3  4.02663e-05
  4  3.99449e-06
  5  1.07848e-07
  6  0.00230114
  7  1.76485e-05
  8  0.147128
  9  3.54452
  10  0.703236
  11  20.9027
  12  1.11949e-06
  13  19.8431
  14  7.1153
  15  16.1607
  16  0.252951
  17  10.4474
  18  7.74538
  19  3.27137e-05
  20  1.87327e-05
  21  0.000227464
  22  3.55401e-07
  23  0.0002084
  24  0.225885
  25  0.120253
Done.

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

Extracting fit parameters...

4FGL J2243.9+2021
   Spectrum: LogParabola
288         norm:  1.000e-04  1.119e-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.687e-01  1.203e-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.221e+00  2.259e-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.15e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.09e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/446590/likelihoodResults_252806401_253065601_4FGL_J2243.9+2021_daily_bin52.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) = 10941.8685051
delta logL = -0.00611200845742

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 10941.8623898
delta logL = 3.26464396494e-06

Fit tolerance = 1e-08

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

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

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   10941.82     FROM MIGRAD    STATUS=FAILED       162 CALLS      322 TOTAL
                     EDM=   .68E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .53361E-01    .41088        .68718E-03   -.10463E-02
   2  alpha         3.1869        2.0209        .42252E-01    .27225E-03
   3  Normalizat    1.2133        .22356        .34075E-03    .19671E-03
   4  Prefactor     .87024        .11989        .21264E-03    .24038E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   10941.82     FROM SIMPLEX   STATUS=UNCHANGED     72 CALLS      394 TOTAL
                     EDM=   .14E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .53361E-01    .41088        .53469E-04   -1.5754    
   2  alpha         3.1869        2.0209        .34899E-02    .27834    
   3  Normalizat    1.2133        .22356        .24795E-03   -.86194    
   4  Prefactor     .87024        .11989        .19728E-03   -.97189    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   10941.82     FROM MIGRAD    STATUS=CONVERGED     40 CALLS      434 TOTAL
                     EDM=   .39E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .53360E-01    .49671        .27487E-04    .41360E-05
   2  alpha         3.1869        3.7572        .84503E-02    .51124E-06
   3  Normalizat    1.2133        .22342        .13630E-04   -.36700E-05
   4  Prefactor     .87024        .11994        .85056E-05   -.42772E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0533598
  alpha      = 3.18691
  Normalizat = 1.21327
  Prefactor  = 0.870239
 **********
 **   18 **HESSE 
 **********

 FCN=   10941.82     FROM HESSE     STATUS=OK            25 CALLS      459 TOTAL
                     EDM=   .28E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .53360E-01    .43472        .10995E-05   -1.5754    
   2  alpha         3.1869        3.6940        .33801E-03    .27834    
   3  Normalizat    1.2133        .22370        .27260E-05   -.86194    
   4  Prefactor     .87024        .12006        .17011E-05   -.97189    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.81689e-14
Minuit parameter uncertainties:
  1  0.304326
  2  2.4679
  3  0.223877
  4  0.120097
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/446590': 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) = 10941.8247019
delta logL = 0.0376911963795

Extracting fit parameters...

4FGL J2243.9+2021
   Spectrum: LogParabola
288         norm:  5.336e-02  3.043e-01  1.000e-04  1.000e+04 ( 1.000e-12)
289        alpha:  3.187e+00  2.468e+00  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.702e-01  1.201e-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.213e+00  2.239e-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/446590/cmap_HighResolution_252806401_253065601_4FGL_J2243.9+2021_daily_bin52.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.09e-05', job_status='DONE', photon_flux_upper_limit='3.15e-08', time_completed='2021-09-28 19:22:01.790139', job_id='446590', GAL2='0.87', fit_tolerance='1e-08', EG2='1.21', EG='1.22', time_epoch_completed='1632882121.79', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.87', dlogl='3.77e-02', ts2='0.08', photon_index_error='0.00', photon_index='1.72' WHERE bin_id='52' AND source_name='4FGL J2243.9+2021' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 19:22:01 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0206>
Subject: Job 446590: <4FGL_J2243.9+2021_daily_bin52> in cluster <slac> Done

Job <4FGL_J2243.9+2021_daily_bin52> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Sep 28 19:05:30 2021
Job was executed on host(s) <bullet0206>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 19:05:31 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 28 19:05:31 2021
Terminated at Tue Sep 28 19:22:02 2021
Results reported at Tue Sep 28 19:22:02 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2243.9+2021_daily_bin52 340.99 20.3565 252806401 253065601 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 :                                   948.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             349.25 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   991 sec.
    Turnaround time :                            992 sec.

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

