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


Performing analysis on: 4FGL_J2243.9+2021_daily_bin86
RA = 340.99, Dec = 20.3565
tmin = 261619201, tmax = 261878401
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='446639', job_status='RUN', time_executed='2021-09-28 19:07:12.251699', time_epoch_executed='1632881232.25' WHERE source_name='4FGL J2243.9+2021' and cadence='daily' and bin_id='86'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/446639

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/446639/ft1_4FGL_J2243.9+2021_daily_bin86.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/446639/ft2_4FGL_J2243.9+2021_daily_bin86.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/446639/ft1_4FGL_J2243.9+2021_daily_bin86.fits outfile=/scratch/kocevski/446639/ft1_filteredMKT_4FGL_J2243.9+2021_daily_bin86.fits ra=340.99 dec=20.3565 rad=12.0 tmin=261619201.0 tmax=261878401.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.42
user 1.23
sys 0.16

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/446639/ft2_4FGL_J2243.9+2021_daily_bin86.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/446639/ft1_filteredMKT_4FGL_J2243.9+2021_daily_bin86.fits evtable="EVENTS" outfile="/scratch/kocevski/446639/ft1_filtered_4FGL_J2243.9+2021_daily_bin86.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.53
user 0.32
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/446639/ft1_filtered_4FGL_J2243.9+2021_daily_bin86.fits" evtable="EVENTS" scfile=/scratch/kocevski/446639/ft2_4FGL_J2243.9+2021_daily_bin86.fits sctable="SC_DATA" outfile=/scratch/kocevski/446639/ltcube_261619201_261878401_4FGL_J2243.9+2021_daily_bin86.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/446639/ft2_4FGL_J2243.9+2021_daily_bin86.fits
.....................!
real 12.32
user 11.98
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/446639/ft1_filtered_4FGL_J2243.9+2021_daily_bin86.fits evtable="EVENTS" scfile=/scratch/kocevski/446639/ft2_4FGL_J2243.9+2021_daily_bin86.fits sctable="SC_DATA" expcube=/scratch/kocevski/446639/ltcube_261619201_261878401_4FGL_J2243.9+2021_daily_bin86.fits outfile=/scratch/kocevski/446639/expmap_261619201_261878401_4FGL_J2243.9+2021_daily_bin86.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/446639/ltcube_261619201_261878401_4FGL_J2243.9+2021_daily_bin86.fits
.....................!
real 191.47
user 186.62
sys 4.38

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/446639/ft1_filtered_4FGL_J2243.9+2021_daily_bin86.fits scfile=/scratch/kocevski/446639/ft2_4FGL_J2243.9+2021_daily_bin86.fits outfile=/scratch/kocevski/446639/cmap_261619201_261878401_4FGL_J2243.9+2021_daily_bin86.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=340.99 yref=20.3565 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.52
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/446639/ft1_filtered_4FGL_J2243.9+2021_daily_bin86.fits scfile=/scratch/kocevski/446639/ft2_4FGL_J2243.9+2021_daily_bin86.fits outfile=/scratch/kocevski/446639/cmap_HighResolution_261619201_261878401_4FGL_J2243.9+2021_daily_bin86.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=340.99 yref=20.3565 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.7124       1.0000         .10000E-03   10000.    
     2 'norm      '    6.0404       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10234E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .26278       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    3.1075       1.0000         .10000E-03   10000.    
    11 'Prefactor '    8.4647       1.0000         .10000E-03   10000.    
    12 'norm      '    1.0294       1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.1682       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    7.1886       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .80832       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    8.6494       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .85953       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0203       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=   7685.167     FROM MIGRAD    STATUS=CONVERGED    593 CALLS     2529 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.7031        97.196       -.22522E-04    .11339E-03
   2  norm          6.0404        1.5552        .33568E-07    .25326E-04
   3  Prefactor     .10000E-03    7.0585        .11157E-06** at limit **
   4  norm          .10000E-03    1.2694       -.47237E-08** at limit **
   5  Prefactor     .10000E-03    4.0407        .45365E-08** at limit **
   6  Prefactor     .10000E-03    40.086       -.13522E-06** at limit **
   7  Prefactor     .10000E-03    3.8020       -.16588E-07** at limit **
   8  Prefactor     .26278        .17129       -.29362E-07   -.10549E-02
   9  Prefactor     .10000E-03    2.9431        .11030E-07** at limit **
  10  norm          3.1075        1.1917       -.15349E-07   -.11642E-04
  11  Prefactor     8.4631        18.609       -.43341E-06   -.19794E-04
  12  norm          1.0293        1.4232       -.90366E-07   -.45944E-03
  13  Prefactor     1.1721        53.618       -.34702E-05   -.13672E-03
  14  Prefactor     .10000E-03    4.6573       -.17412E-07** at limit **
  15  Prefactor     7.1892        11.482       -.21948E-05   -.90612E-03
  16  Prefactor     .80830        .17707        .87610E-08    .25778E-03
  17  Prefactor     .10000E-03    3.1297        .16020E-07** at limit **
  18  Prefactor     .10000E-03    3.0353       -.46537E-07** at limit **
  19  Prefactor     .10000E-03    9.2355       -.15825E-07** at limit **
  20  Prefactor     .10000E-03    23.300       -.31333E-07** at limit **
  21  Prefactor     .10000E-03    8.3701        .15162E-07** at limit **
  22  Prefactor     .10000E-03    2.7656        .92349E-08** at limit **
  23  Prefactor     8.6431        20.697       -.14657E-05    .11774E-04
  24  Normalizat    .85980        .21402        .71023E-06    .18039E-04
  25  Prefactor     1.0202        .11565        .39086E-06    .29233E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.70315
  norm       = 6.04044
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.262785
  Prefactor  = 0.0001
  norm       = 3.10754
  Prefactor  = 8.46313
  norm       = 1.02928
  Prefactor  = 1.17208
  Prefactor  = 0.0001
  Prefactor  = 7.18923
  Prefactor  = 0.808303
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.64306
  Normalizat = 0.859797
  Prefactor  = 1.02018
 **********
 **   18 **HESSE 
 **********

 FCN=   7685.167     FROM HESSE     STATUS=OK           427 CALLS     2956 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.7031        84.310        .14440E-03   -1.5153    
   2  norm          6.0404        1.5545        .53145E-04   -1.5216    
   3  Prefactor     .10000E-03    70.205        .45123E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    1.2727        .96449E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    4.0464        .17208E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    40.114        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    3.8164        .16692E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .26278        .16734        .27918E-04   -1.5605    
   9  Prefactor     .10000E-03    2.9482        .14686E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          3.1075        1.1906        .55593E-04   -1.5355    
  11  Prefactor     8.4631        18.597        .13779E-03   -1.5126    
  12  norm          1.0293        1.2047        .11963E-02   -1.5505    
  13  Prefactor     1.1721        57.967        .42501E-03   -1.5491    
  14  Prefactor     .10000E-03    4.6884        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     7.1892        13.225        .74804E-03   -1.5172    
  16  Prefactor     .80830        .17750        .16156E-04   -1.5528    
  17  Prefactor     .10000E-03    3.1352        .15145E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    3.0608        .14912E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    9.2926        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    23.612        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    8.3774        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    2.7785        .14221E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     8.6431        20.708        .13630E-03   -1.5120    
  24  Normalizat    .85980        .24883        .35695E-03   -.97888    
  25  Prefactor     1.0202        .13587        .18401E-03   -.92060    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.85627e-09
Minuit parameter uncertainties:
  1  51.0602
  2  1.55451
  3  0.000297268
  4  8.35066e-08
  5  1.79316e-06
  6  5.30458e-06
  7  1.52668e-07
  8  0.167342
  9  9.63319e-07
  10  1.19063
  11  18.6099
  12  1.20477
  13  16.5017
  14  2.53132e-06
  15  13.2303
  16  0.177498
  17  2.78893e-06
  18  6.02769e-07
  19  7.30885e-06
  20  3.79795e-05
  21  4.37705e-06
  22  8.71373e-07
  23  20.7253
  24  0.249161
  25  0.135919
Done.

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

Extracting fit parameters...

4FGL J2243.9+2021
   Spectrum: LogParabola
288         norm:  1.029e+00  1.205e+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

GAL_V02
   Spectrum: PowerLaw
513    Prefactor:  1.020e+00  1.359e-01  0.000e+00  1.000e+01 ( 1.000e+00)
514        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
515        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
512   Normalization:  8.598e-01  2.492e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.54
Ra Dec: 340.990 20.357
Photon Index (Fixed Index): 1.72 +/- 0.00
Photon Flux (Fixed Index): 1.16e-08 +/- 1.36e-08
Energy Flux (Fixed Index): 1.51e-05 +/- 1.76e-05

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

Saving results to:
/scratch/kocevski/446639/likelihoodResults_261619201_261878401_4FGL_J2243.9+2021_daily_bin86.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) = 7685.16323076
delta logL = 0.00408670919842

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7685.16318725
delta logL = 0.00413021576333

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.0352       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.7973       1.0000          .0000       5.0000    
     3 'Normalizat'    .85868       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0203       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=   7685.163     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      208 TOTAL
                     EDM=   .48E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.0351        33.932        .23300E-01    .65860E-03
   2  alpha         1.7972        2.9059        .43422        .37772E-05
   3  Normalizat    .85869        .50558E-01    .80676E-01    .15113E-03
   4  Prefactor     1.0203        .27217E-01    .42115E-01    .25606E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.03512
  alpha      = 1.79724
  Normalizat = 0.858688
  Prefactor  = 1.02026
 **********
 **   18 **HESSE 
 **********

 FCN=   7685.163     FROM HESSE     STATUS=OK            33 CALLS      241 TOTAL
                     EDM=   .55E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.0351        1.1993        .11705E-02   -1.5504    
   2  alpha         1.7972        .87763        .22137E-01   -.28494    
   3  Normalizat    .85869        .24095        .35716E-03   -.97927    
   4  Prefactor     1.0203        .13516        .18400E-03   -.92057    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.49901e-11
Minuit parameter uncertainties:
  1  1.19938
  2  0.898489
  3  0.241256
  4  0.135209
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/446639': 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) = 7685.16318724
delta logL = 0.00413022720295

Extracting fit parameters...

4FGL J2243.9+2021
   Spectrum: LogParabola
288         norm:  1.035e+00  1.199e+00  1.000e-04  1.000e+04 ( 1.000e-12)
289        alpha:  1.797e+00  8.985e-01  0.000e+00  5.000e+00 ( 1.000e+00)
290         beta:  8.229e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
291           Eb:  1.517e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
513    Prefactor:  1.020e+00  1.352e-01  0.000e+00  1.000e+01 ( 1.000e+00)
514        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
515        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
512   Normalization:  8.587e-01  2.413e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.54
Ra Dec: 340.990 20.357
Photon Index (Free Index): 1.80 +/- 0.90
Photon Flux (Free Index): 1.30e-08 +/- 2.08e-08
Energy Flux (Free Index): 1.39e-05 +/- 2.11e-05

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/446639/cmap_HighResolution_261619201_261878401_4FGL_J2243.9+2021_daily_bin86.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.81e-05', comment='SUCCESS', photon_flux='1.16e-08', energy_flux2='1.39e-05', photon_flux_error='1.36e-08', dlogl='4.13e-03', energy_flux='1.51e-05', photon_flux2='1.30e-08', job_status='DONE', time_completed='2021-09-28 19:19:06.059372', photon_index_error2='0.90', photon_index2='1.80', ts='1.54', fit_tolerance='1e-08', GAL='1.02', photon_index_error='0.00', photon_flux_upper_limit='5.25e-08', energy_flux_error2='2.11e-05', EG='0.86', time_epoch_completed='1632881946.06', return_code='0', job_id='446639', GAL2='1.02', EG2='0.86', return_code2='0', energy_flux_error='1.76e-05', photon_flux_error2='2.08e-08', ts2='1.54', photon_index='1.72' WHERE bin_id='86' AND source_name='4FGL J2243.9+2021' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 19:19:06 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0072>
Subject: Job 446639: <4FGL_J2243.9+2021_daily_bin86> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2243.9+2021_daily_bin86 340.99 20.3565 261619201 261878401 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 :                                   714.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             270.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   812 sec.
    Turnaround time :                            813 sec.

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

