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


Performing analysis on: 4FGL_J2243.9+2021_daily_bin447
RA = 340.99, Dec = 20.3565
tmin = 355190401, tmax = 355449601
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='448203', job_status='RUN', time_executed='2021-09-28 19:12:44.769101', time_epoch_executed='1632881564.77' WHERE source_name='4FGL J2243.9+2021' and cadence='daily' and bin_id='447'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/448203

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/448203/ft1_4FGL_J2243.9+2021_daily_bin447.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/448203/ft2_4FGL_J2243.9+2021_daily_bin447.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/448203/ft1_4FGL_J2243.9+2021_daily_bin447.fits outfile=/scratch/kocevski/448203/ft1_filteredMKT_4FGL_J2243.9+2021_daily_bin447.fits ra=340.99 dec=20.3565 rad=12.0 tmin=355190401.0 tmax=355449601.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.37
user 3.14
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/448203/ft2_4FGL_J2243.9+2021_daily_bin447.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/448203/ft1_filteredMKT_4FGL_J2243.9+2021_daily_bin447.fits evtable="EVENTS" outfile="/scratch/kocevski/448203/ft1_filtered_4FGL_J2243.9+2021_daily_bin447.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.52
user 0.33
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/448203/ft1_filtered_4FGL_J2243.9+2021_daily_bin447.fits" evtable="EVENTS" scfile=/scratch/kocevski/448203/ft2_4FGL_J2243.9+2021_daily_bin447.fits sctable="SC_DATA" outfile=/scratch/kocevski/448203/ltcube_355190401_355449601_4FGL_J2243.9+2021_daily_bin447.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/448203/ft2_4FGL_J2243.9+2021_daily_bin447.fits
.....................!
real 16.96
user 16.60
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/448203/ft1_filtered_4FGL_J2243.9+2021_daily_bin447.fits evtable="EVENTS" scfile=/scratch/kocevski/448203/ft2_4FGL_J2243.9+2021_daily_bin447.fits sctable="SC_DATA" expcube=/scratch/kocevski/448203/ltcube_355190401_355449601_4FGL_J2243.9+2021_daily_bin447.fits outfile=/scratch/kocevski/448203/expmap_355190401_355449601_4FGL_J2243.9+2021_daily_bin447.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/448203/ltcube_355190401_355449601_4FGL_J2243.9+2021_daily_bin447.fits
.....................!
real 191.35
user 185.49
sys 5.46

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/448203/ft1_filtered_4FGL_J2243.9+2021_daily_bin447.fits scfile=/scratch/kocevski/448203/ft2_4FGL_J2243.9+2021_daily_bin447.fits outfile=/scratch/kocevski/448203/cmap_355190401_355449601_4FGL_J2243.9+2021_daily_bin447.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.60
user 0.40
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/448203/ft1_filtered_4FGL_J2243.9+2021_daily_bin447.fits scfile=/scratch/kocevski/448203/ft2_4FGL_J2243.9+2021_daily_bin447.fits outfile=/scratch/kocevski/448203/cmap_HighResolution_355190401_355449601_4FGL_J2243.9+2021_daily_bin447.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.56
user 0.40
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    17.773       1.0000         .10000E-03   10000.    
     2 'norm      '    1.2050       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    18.255       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    9.1727       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .40957       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    1.1479       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .40042       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10065E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    8.5414       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .79847E-01   1.0000         .10000E-03   10000.    
    17 'Prefactor '    9.1281       1.0000         .10000E-03   10000.    
    18 'Prefactor '    13.477       1.0000         .10000E-03   10000.    
    19 'Prefactor '    20.083       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    17.531       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.0199       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .77822       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=   7911.432     FROM MIGRAD    STATUS=CONVERGED    565 CALLS     2480 TOTAL
                     EDM=   .38E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     17.725        31.602       -.49537E-06   -.92143E-04
   2  norm          1.2048        .91922       -.21148E-09    .39958E-04
   3  Prefactor     .10000E-03    6.6721       -.56422E-07** at limit **
   4  norm          .10000E-03    1.1561       -.12807E-07** at limit **
   5  Prefactor     18.255        14.257        .52121E-07   -.79755E-05
   6  Prefactor     .10000E-03    66.359        .12685E-06** at limit **
   7  Prefactor     9.1756        12.441        .16901E-05   -.46042E-03
   8  Prefactor     .40963        .18089        .57566E-08   -.13696E-03
   9  Prefactor     .10000E-03    2.2304        .13514E-07** at limit **
  10  norm          1.1480        .89270        .24538E-07   -.91044E-04
  11  Prefactor     .10000E-03    10.321        .49268E-07** at limit **
  12  norm          .40115        .69660        .58036E-06    .13034E-02
  13  Prefactor     .10000E-03    27.879        .33862E-07** at limit **
  14  Prefactor     8.5403        9.2805       -.24182E-06   -.49492E-04
  15  Prefactor     .10000E-03    6.6939        .49688E-08** at limit **
  16  Prefactor     .79873E-01    .83352E-01    .30766E-07   -.68116E-03
  17  Prefactor     9.1280        10.578        .65127E-07   -.25778E-04
  18  Prefactor     13.476        8.1739        .29739E-07   -.22887E-04
  19  Prefactor     20.084        14.298        .47929E-07   -.61553E-05
  20  Prefactor     .10000E-03    5.8726        .40125E-07** at limit **
  21  Prefactor     .10000E-03    8.2734        .49789E-07** at limit **
  22  Prefactor     .10000E-03    4.4994        .81645E-07** at limit **
  23  Prefactor     17.521        18.092        .11532E-06   -.81894E-05
  24  Normalizat    1.0196        .19623       -.80820E-06    .15480E-05
  25  Prefactor     .77838        .98225E-01    .80169E-07   -.74560E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 17.7251
  norm       = 1.20482
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 18.2546
  Prefactor  = 0.0001
  Prefactor  = 9.17559
  Prefactor  = 0.409627
  Prefactor  = 0.0001
  norm       = 1.14802
  Prefactor  = 0.0001
  norm       = 0.401149
  Prefactor  = 0.0001
  Prefactor  = 8.54029
  Prefactor  = 0.0001
  Prefactor  = 0.0798729
  Prefactor  = 9.12796
  Prefactor  = 13.4762
  Prefactor  = 20.0844
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 17.5213
  Normalizat = 1.01956
  Prefactor  = 0.778383
 **********
 **   18 **HESSE 
 **********

 FCN=   7911.432     FROM HESSE     STATUS=OK           433 CALLS     2913 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     17.725        31.609        .95004E-04   -1.4866    
   2  norm          1.2048        .92008        .71234E-04   -1.5488    
   3  Prefactor     .10000E-03    6.6879        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    1.1586        .93384E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     18.255        14.239        .93741E-04   -1.4853    
   6  Prefactor     .10000E-03    66.408        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     9.1756        11.725        .66165E-03   -1.5102    
   8  Prefactor     .40963        .17886        .23296E-04   -1.5580    
   9  Prefactor     .10000E-03    2.2354        .12972E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          1.1480        .89456        .71066E-04   -1.5494    
  11  Prefactor     .10000E-03    10.350        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .40115        .66380        .12233E-02   -1.5581    
  13  Prefactor     .10000E-03    28.036        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     8.5403        9.2782        .13716E-03   -1.5123    
  15  Prefactor     .10000E-03    6.7135        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .79873E-01    .75810E-01    .25064E-03   -1.5651    
  17  Prefactor     9.1280        10.573        .13266E-03   -1.5104    
  18  Prefactor     13.476        8.1590        .10911E-03   -1.4974    
  19  Prefactor     20.084        14.304        .89375E-04   -1.4811    
  20  Prefactor     .10000E-03    5.8773        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    8.2802        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    4.5459        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     17.521        18.126        .95657E-04   -1.4871    
  24  Normalizat    1.0196        .22835        .31190E-03   -.92378    
  25  Prefactor     .77838        .11552        .18522E-03   -1.0053    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.13681e-09
Minuit parameter uncertainties:
  1  31.6391
  2  0.920088
  3  4.10711e-07
  4  3.25202e-07
  5  14.2412
  6  4.19745e-05
  7  11.7283
  8  0.178864
  9  8.89062e-07
  10  0.894566
  11  4.19372e-06
  12  0.663811
  13  2.0239e-05
  14  9.27979
  15  2.41244e-06
  16  0.0758104
  17  10.5754
  18  8.15971
  19  14.3061
  20  9.2453e-07
  21  2.74081e-06
  22  1.31372e-06
  23  18.1321
  24  0.228573
  25  0.115551
Done.

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

Extracting fit parameters...

4FGL J2243.9+2021
   Spectrum: LogParabola
288         norm:  4.011e-01  6.638e-01  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:  7.784e-01  1.156e-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.020e+00  2.286e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/448203/likelihoodResults_355190401_355449601_4FGL_J2243.9+2021_daily_bin447.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7911.41620365
delta logL = 0.0155414091805

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7911.41609891
delta logL = 0.0156461510469

Fit tolerance = 1e-08

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

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

 FCN=   7911.416     FROM MIGRAD    STATUS=CONVERGED     96 CALLS      254 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .41024        .66501        .12278E-02    .40235E-02
   2  alpha         1.5313        .97901        .32765E-01   -.42690E-04
   3  Normalizat    1.0203        .21613        .31179E-03    .77300E-06
   4  Prefactor     .77820        .11441        .18523E-03    .18412E-06
                               ERR DEF=  .500    
Final values: 
  norm       = 0.410238
  alpha      = 1.53126
  Normalizat = 1.02032
  Prefactor  = 0.778198
 **********
 **   18 **HESSE 
 **********

 FCN=   7911.416     FROM HESSE     STATUS=OK            27 CALLS      281 TOTAL
                     EDM=   .31E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .41024        .66539        .24556E-03   -1.5580    
   2  alpha         1.5313        .98111        .65531E-02   -.39792    
   3  Normalizat    1.0203        .21631        .62358E-04   -.92353    
   4  Prefactor     .77820        .11451        .74094E-05   -1.0054    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.1446e-12
Minuit parameter uncertainties:
  1  0.665401
  2  1.01346
  3  0.216497
  4  0.114548
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/448203': 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) = 7911.4160985
delta logL = 0.0156465592263

Extracting fit parameters...

4FGL J2243.9+2021
   Spectrum: LogParabola
288         norm:  4.102e-01  6.654e-01  1.000e-04  1.000e+04 ( 1.000e-12)
289        alpha:  1.531e+00  1.013e+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:  7.782e-01  1.145e-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.020e+00  2.165e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.65
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/448203/cmap_HighResolution_355190401_355449601_4FGL_J2243.9+2021_daily_bin447.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.18e-05', job_status='DONE', photon_flux_upper_limit='3.22e-08', time_completed='2021-09-28 19:24:58.869112', job_id='448203', GAL2='0.78', fit_tolerance='1e-08', EG2='1.02', EG='1.02', time_epoch_completed='1632882298.87', return_code2='0', ts='0.65', comment='SUCCESS', return_code='0', GAL='0.78', dlogl='1.56e-02', ts2='0.69', photon_index_error='0.00', photon_index='1.72' WHERE bin_id='447' AND source_name='4FGL J2243.9+2021' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 19:24:58 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0079>
Subject: Job 448203: <4FGL_J2243.9+2021_daily_bin447> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2243.9+2021_daily_bin447 340.99 20.3565 355190401 355449601 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 :                                   731.36 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             313.25 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   853 sec.
    Turnaround time :                            855 sec.

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

