/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 122 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 = 7416
number of fields = 29
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2243.9+2021_daily_bin575
RA = 340.99, Dec = 20.3565
tmin = 388368001, tmax = 388627201
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='448407', job_status='RUN', time_executed='2021-09-28 19:13:15.494018', time_epoch_executed='1632881595.49' WHERE source_name='4FGL J2243.9+2021' and cadence='daily' and bin_id='575'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/448407

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/448407/ft1_4FGL_J2243.9+2021_daily_bin575.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/448407/ft2_4FGL_J2243.9+2021_daily_bin575.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/448407/ft1_4FGL_J2243.9+2021_daily_bin575.fits outfile=/scratch/kocevski/448407/ft1_filteredMKT_4FGL_J2243.9+2021_daily_bin575.fits ra=340.99 dec=20.3565 rad=12.0 tmin=388368001.0 tmax=388627201.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 4.42
user 4.19
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/448407/ft1_filtered_4FGL_J2243.9+2021_daily_bin575.fits evtable="EVENTS" scfile=/scratch/kocevski/448407/ft2_4FGL_J2243.9+2021_daily_bin575.fits sctable="SC_DATA" expcube=/scratch/kocevski/448407/ltcube_388368001_388627201_4FGL_J2243.9+2021_daily_bin575.fits outfile=/scratch/kocevski/448407/expmap_388368001_388627201_4FGL_J2243.9+2021_daily_bin575.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/448407/ltcube_388368001_388627201_4FGL_J2243.9+2021_daily_bin575.fits
.....................!
real 190.49
user 186.04
sys 4.08

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/448407/ft1_filtered_4FGL_J2243.9+2021_daily_bin575.fits scfile=/scratch/kocevski/448407/ft2_4FGL_J2243.9+2021_daily_bin575.fits outfile=/scratch/kocevski/448407/cmap_388368001_388627201_4FGL_J2243.9+2021_daily_bin575.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/448407/ft1_filtered_4FGL_J2243.9+2021_daily_bin575.fits scfile=/scratch/kocevski/448407/ft2_4FGL_J2243.9+2021_daily_bin575.fits outfile=/scratch/kocevski/448407/cmap_HighResolution_388368001_388627201_4FGL_J2243.9+2021_daily_bin575.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/448407/ft1_filtered_4FGL_J2243.9+2021_daily_bin575.fits evtable="EVENTS" scfile=/scratch/kocevski/448407/ft2_4FGL_J2243.9+2021_daily_bin575.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/448407/Model_4FGL_J2243.9+2021_daily_bin575.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/448407/ft1_filtered_4FGL_J2243.9+2021_daily_bin575.fits.....................!
real 104.31
user 102.85
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    37.339       1.0000         .10000E-03   10000.    
     2 'norm      '    .67804       1.0000         .10000E-03   10000.    
     3 'Prefactor '    12.805       1.0000         .10000E-03   10000.    
     4 'norm      '    2.2235       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    141.43       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.8848       1.0000         .10000E-03   10000.    
     9 'Prefactor '    5.4967       1.0000         .10000E-03   10000.    
    10 'norm      '    5.8600       1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.4555       1.0000         .10000E-03   10000.    
    12 'norm      '    2.0916       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10092E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .82231       1.0000         .10000E-03   10000.    
    17 'Prefactor '    6.8585       1.0000         .10000E-03   10000.    
    18 'Prefactor '    7.8678       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .49005       1.0000         .10000E-03   10000.    
    20 'Prefactor '    2.1005       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .17298E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    6.1887       1.0000         .10000E-03   10000.    
    23 'Prefactor '    6.3971       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .89329       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0553       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=   10292.63     FROM MIGRAD    STATUS=CONVERGED    573 CALLS     2916 TOTAL
                     EDM=   .25E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     37.341        33.789       -.14452E-07   -.34733E-04
   2  norm          .67933        .91634        .25354E-06    .14895E-02
   3  Prefactor     12.807        14.812       -.40756E-06   -.46607E-05
   4  norm          2.2234        3.3341       -.34183E-06   -.10333E-03
   5  Prefactor     .10000E-03    6.1647        .12873E-06** at limit **
   6  Prefactor     141.46        129.21        .21998E-05   -.36392E-04
   7  Prefactor     .10000E-03    2.5205        .40913E-07** at limit **
   8  Prefactor     1.8850        .28036       -.87260E-08   -.46822E-03
   9  Prefactor     5.4970        6.5154       -.46413E-07   -.17408E-05
  10  norm          5.8601        1.6939       -.89099E-08    .37313E-04
  11  Prefactor     4.4543        24.869       -.45120E-06    .79158E-05
  12  norm          2.0912        1.4840       -.25619E-06    .13465E-03
  13  Prefactor     .10000E-03    6.7940        .73267E-08** at limit **
  14  Prefactor     .10000E-03    14.169        .18358E-06** at limit **
  15  Prefactor     .10000E-03    9.7827        .10580E-06** at limit **
  16  Prefactor     .82235        .16769        .14460E-08   -.19901E-03
  17  Prefactor     6.8586        8.4955       -.15809E-05    .25600E-04
  18  Prefactor     7.8701        7.5881       -.18258E-06   -.11818E-04
  19  Prefactor     .47083        42.679        .78854E-05   -.33022E-04
  20  Prefactor     2.0865        42.063       -.97964E-06    .33460E-04
  21  Prefactor     .10000E-03    49.978        .77754E-06** at limit **
  22  Prefactor     6.1915        6.2941       -.55640E-07    .12833E-04
  23  Prefactor     6.3922        13.772        .98630E-07   -.45691E-05
  24  Normalizat    .89315        .22269       -.22618E-06   -.38258E-04
  25  Prefactor     1.0552        .11467        .12037E-06   -.96559E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 37.3412
  norm       = 0.679328
  Prefactor  = 12.8073
  norm       = 2.22345
  Prefactor  = 0.0001
  Prefactor  = 141.461
  Prefactor  = 0.0001
  Prefactor  = 1.88497
  Prefactor  = 5.49699
  norm       = 5.86009
  Prefactor  = 4.45431
  norm       = 2.09121
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.822353
  Prefactor  = 6.85855
  Prefactor  = 7.87009
  Prefactor  = 0.470831
  Prefactor  = 2.08655
  Prefactor  = 0.000100001
  Prefactor  = 6.19151
  Prefactor  = 6.3922
  Normalizat = 0.893154
  Prefactor  = 1.05523
 **********
 **   18 **HESSE 
 **********

 FCN=   10292.63     FROM HESSE     STATUS=OK           439 CALLS     3355 TOTAL
                     EDM=   .55E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     37.341        33.768        .65589E-04   -1.4485    
   2  norm          .67933        .86486        .11173E-02   -1.5543    
   3  Prefactor     12.807        14.793        .11194E-03   -1.4992    
   4  norm          2.2234        3.3177        .21936E-03   -1.5410    
   5  Prefactor     .10000E-03    6.1840        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     141.46        128.73        .16937E-03   -1.3324    
   7  Prefactor     .10000E-03    2.5270        .15729E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     1.8850        .28082        .19611E-04   -1.5433    
   9  Prefactor     5.4970        6.5194        .17138E-03   -1.5239    
  10  norm          5.8601        1.6878        .63020E-04   -1.5224    
  11  Prefactor     4.4543        24.681        .19077E-03   -1.5286    
  12  norm          2.0912        1.4815        .50597E-03   -1.5419    
  13  Prefactor     .10000E-03    6.7981        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    14.642        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    9.8793        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .82235        .16767        .17707E-04   -1.5527    
  17  Prefactor     6.8586        8.4772        .76600E-03   -1.5184    
  18  Prefactor     7.8701        7.5641        .14295E-03   -1.5147    
  19  Prefactor     .47083        41.965        .46781E-02   -1.5571    
  20  Prefactor     2.0865        41.721        .28475E-03   -1.5419    
  21  Prefactor     .10000E-03    50.988        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     6.1915        6.2806        .16137E-03   -1.5210    
  23  Prefactor     6.3922        13.740        .15869E-03   -1.5202    
  24  Normalizat    .89315        .25085        .40673E-03   -.96701    
  25  Prefactor     1.0552        .13090        .20397E-03   -.90910    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.49294e-08
Minuit parameter uncertainties:
  1  33.7857
  2  0.864879
  3  14.7976
  4  3.31795
  5  5.96698e-06
  6  128.982
  7  9.74242e-08
  8  0.28082
  9  6.52024
  10  1.68784
  11  20.9834
  12  1.48153
  13  3.49852e-06
  14  0.000115839
  15  4.45527e-06
  16  0.167673
  17  8.47871
  18  7.56505
  19  8.89561
  20  18.6748
  21  0.000356891
  22  6.28129
  23  13.7465
  24  0.251182
  25  0.130941
Done.

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

Extracting fit parameters...

4FGL J2243.9+2021
   Spectrum: LogParabola
288         norm:  2.091e+00  1.482e+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.055e+00  1.309e-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.932e-01  2.512e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.46
Ra Dec: 340.990 20.357
Photon Index (Fixed Index): 1.72 +/- 0.00
Photon Flux (Fixed Index): 2.36e-08 +/- 1.67e-08
Energy Flux (Fixed Index): 3.06e-05 +/- 2.17e-05

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) = 10292.4993647
delta logL = 0.127136933483

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10292.4950833
delta logL = 0.131418299543

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.9491       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.4290       1.0000          .0000       5.0000    
     3 'Normalizat'    .89807       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0554       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=   10292.50     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      204 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.9480        58.904        .74317E-02    .78699E-04
   2  alpha         1.4283        3.0766        .47392       -.36803E-04
   3  Normalizat    .89788        .24521        .91605E-01    .47112E-04
   4  Prefactor     1.0554        .10321        .39604E-01    .18914E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.94805
  alpha      = 1.42833
  Normalizat = 0.897883
  Prefactor  = 1.05545
 **********
 **   18 **HESSE 
 **********

 FCN=   10292.50     FROM HESSE     STATUS=OK            33 CALLS      237 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.9480        1.5637        .10185E-03   -1.5429    
   2  alpha         1.4283        .54393        .18011E-01   -.44302    
   3  Normalizat    .89788        .23642        .40575E-03   -.96535    
   4  Prefactor     1.0554        .12903        .20398E-03   -.90903    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.28877e-09
Minuit parameter uncertainties:
  1  1.56373
  2  0.549332
  3  0.236698
  4  0.129064
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/448407': 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) = 10292.4950821
delta logL = 0.131419492893

Extracting fit parameters...

4FGL J2243.9+2021
   Spectrum: LogParabola
288         norm:  1.948e+00  1.564e+00  1.000e-04  1.000e+04 ( 1.000e-12)
289        alpha:  1.428e+00  5.493e-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.055e+00  1.291e-01  0.000e+00  1.000e+01 ( 1.000e+00)
514        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
515        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
512   Normalization:  8.979e-01  2.367e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.70
Ra Dec: 340.990 20.357
Photon Index (Free Index): 1.43 +/- 0.55
Photon Flux (Free Index): 1.65e-08 +/- 1.70e-08
Energy Flux (Free Index): 4.55e-05 +/- 4.87e-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/448407/cmap_HighResolution_388368001_388627201_4FGL_J2243.9+2021_daily_bin575.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.36e-08', energy_flux2='4.55e-05', photon_flux_error='1.67e-08', dlogl='1.31e-01', energy_flux='3.06e-05', photon_flux2='1.65e-08', job_status='DONE', time_completed='2021-09-28 19:26:50.186766', photon_index_error2='0.55', photon_index2='1.43', ts='4.46', fit_tolerance='1e-08', GAL='1.06', photon_index_error='0.00', energy_flux_error2='4.87e-05', EG='0.89', time_epoch_completed='1632882410.19', return_code='0', job_id='448407', GAL2='1.06', EG2='0.90', return_code2='0', energy_flux_error='2.17e-05', photon_flux_error2='1.70e-08', ts2='4.70', photon_index='1.72' WHERE bin_id='575' AND source_name='4FGL J2243.9+2021' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 19:26:50 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0204>
Subject: Job 448407: <4FGL_J2243.9+2021_daily_bin575> in cluster <slac> Done

Job <4FGL_J2243.9+2021_daily_bin575> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Tue Sep 28 19:11:02 2021
Job was executed on host(s) <bullet0204>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 19:11:04 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:11:04 2021
Terminated at Tue Sep 28 19:26:50 2021
Results reported at Tue Sep 28 19:26:50 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2243.9+2021_daily_bin575 340.99 20.3565 388368001 388627201 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 :                                   813.20 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             341.72 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   946 sec.
    Turnaround time :                            948 sec.

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

