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


Performing analysis on: 4FGL_J2243.9+2021_daily_bin475
RA = 340.99, Dec = 20.3565
tmin = 362448001, tmax = 362707201
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='448247', job_status='RUN', time_executed='2021-09-28 19:11:05.295774', time_epoch_executed='1632881465.3' WHERE source_name='4FGL J2243.9+2021' and cadence='daily' and bin_id='475'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/448247

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

Retrieving the FT1 file...

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

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

Retrieving 49 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/448247/ft1_4FGL_J2243.9+2021_daily_bin475.fits


Retrieving the FT1 file...

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

Retrieving 49 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/448247/ft2_4FGL_J2243.9+2021_daily_bin475.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/448247/ft1_4FGL_J2243.9+2021_daily_bin475.fits outfile=/scratch/kocevski/448247/ft1_filteredMKT_4FGL_J2243.9+2021_daily_bin475.fits ra=340.99 dec=20.3565 rad=12.0 tmin=362448001.0 tmax=362707201.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 5.68
user 5.28
sys 0.28

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

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

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/448247/ft1_filtered_4FGL_J2243.9+2021_daily_bin475.fits evtable="EVENTS" scfile=/scratch/kocevski/448247/ft2_4FGL_J2243.9+2021_daily_bin475.fits sctable="SC_DATA" expcube=/scratch/kocevski/448247/ltcube_362448001_362707201_4FGL_J2243.9+2021_daily_bin475.fits outfile=/scratch/kocevski/448247/expmap_362448001_362707201_4FGL_J2243.9+2021_daily_bin475.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/448247/ltcube_362448001_362707201_4FGL_J2243.9+2021_daily_bin475.fits
.....................!
real 189.85
user 185.19
sys 4.27

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/448247/ft1_filtered_4FGL_J2243.9+2021_daily_bin475.fits scfile=/scratch/kocevski/448247/ft2_4FGL_J2243.9+2021_daily_bin475.fits outfile=/scratch/kocevski/448247/cmap_362448001_362707201_4FGL_J2243.9+2021_daily_bin475.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/448247/ft1_filtered_4FGL_J2243.9+2021_daily_bin475.fits scfile=/scratch/kocevski/448247/ft2_4FGL_J2243.9+2021_daily_bin475.fits outfile=/scratch/kocevski/448247/cmap_HighResolution_362448001_362707201_4FGL_J2243.9+2021_daily_bin475.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.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    1.5503       1.0000         .10000E-03   10000.    
     3 'Prefactor '    21.823       1.0000         .10000E-03   10000.    
     4 'norm      '    .10001E-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 '    4.3777       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .86436       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .54866       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    2.3012       1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.9381       1.0000         .10000E-03   10000.    
    14 'Prefactor '    6.8804       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10273E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    5.6037       1.0000         .10000E-03   10000.    
    18 'Prefactor '    5.2786       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    33.068       1.0000         .10000E-03   10000.    
    21 'Prefactor '    16.547       1.0000         .10000E-03   10000.    
    22 'Prefactor '    12.194       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .96172       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .82677       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=   6494.010     FROM MIGRAD    STATUS=CONVERGED    563 CALLS     2902 TOTAL
                     EDM=   .64E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    39.572       -.36953E-05** at limit **
   2  norm          1.5503        1.0539        .13125E-06   -.11035E-02
   3  Prefactor     21.823        15.631       -.11040E-07   -.17469E-04
   4  norm          .10000E-03    1.8395        .41841E-08** at limit **
   5  Prefactor     .10000E-03    8.3517       -.28583E-06** at limit **
   6  Prefactor     .10000E-03    27.140       -.32507E-05** at limit **
   7  Prefactor     4.3774        10.392        .10065E-06   -.53632E-04
   8  Prefactor     .86436        .22970        .68278E-08   -.16322E-03
   9  Prefactor     .10000E-03    2.7698        .77387E-08** at limit **
  10  norm          .54869        .90989        .13503E-06   -.21860E-03
  11  Prefactor     .10000E-03    5.8957        .24795E-07** at limit **
  12  norm          2.3012        1.8541       -.73336E-07   -.10223E-03
  13  Prefactor     4.9370        25.981       -.83027E-08   -.33861E-04
  14  Prefactor     6.8804        9.5501        .14447E-05   -.70042E-03
  15  Prefactor     .10001E-03    29.425        .67856E-05** at limit **
  16  Prefactor     .10000E-03    .46132E-01   -.84601E-09** at limit **
  17  Prefactor     5.6041        8.0054        .12357E-05   -.68560E-03
  18  Prefactor     5.2786        5.1031        .89646E-07   -.29601E-04
  19  Prefactor     .10000E-03    7.5417        .13433E-05** at limit **
  20  Prefactor     33.066        21.453       -.42892E-06   -.99224E-04
  21  Prefactor     16.548        22.379        .43293E-06    .27472E-04
  22  Prefactor     12.195        7.1910        .13498E-06    .44467E-04
  23  Prefactor     .10000E-03    7.3677       -.97532E-06** at limit **
  24  Normalizat    .96174        .21518       -.54418E-06   -.51525E-04
  25  Prefactor     .82676        .11184       -.13537E-06   -.75628E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100003
  norm       = 1.55028
  Prefactor  = 21.8226
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 4.37737
  Prefactor  = 0.864357
  Prefactor  = 0.0001
  norm       = 0.54869
  Prefactor  = 0.0001
  norm       = 2.30118
  Prefactor  = 4.93699
  Prefactor  = 6.88037
  Prefactor  = 0.000100009
  Prefactor  = 0.0001
  Prefactor  = 5.60406
  Prefactor  = 5.27864
  Prefactor  = 0.0001
  Prefactor  = 33.066
  Prefactor  = 16.5481
  Prefactor  = 12.1945
  Prefactor  = 0.0001
  Normalizat = 0.961735
  Prefactor  = 0.826763
 **********
 **   18 **HESSE 
 **********

 FCN=   6494.010     FROM HESSE     STATUS=OK           433 CALLS     3335 TOTAL
                     EDM=   .48E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    40.505        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.5503        1.0691        .17105E-03   -1.5459    
   3  Prefactor     21.823        15.632        .85741E-04   -1.4773    
   4  norm          .10000E-03    1.8661        .10671E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    8.3995        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    27.812        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     4.3774        10.422        .19250E-03   -1.5289    
   8  Prefactor     .86436        .22957        .19054E-04   -1.5522    
   9  Prefactor     .10000E-03    2.7743        .13097E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .54869        .81887        .94793E-03   -1.5560    
  11  Prefactor     .10000E-03    5.8987        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          2.3012        1.8493        .93788E-04   -1.5405    
  13  Prefactor     4.9370        25.656        .18099E-03   -1.5264    
  14  Prefactor     6.8804        10.410        .76477E-03   -1.5183    
  15  Prefactor     .10001E-03    32.106        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    .87193E-01    .32999E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     5.6041        8.5454        .84853E-03   -1.5234    
  18  Prefactor     5.2786        5.0969        .17244E-03   -1.5248    
  19  Prefactor     .10000E-03    7.6853        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     33.066        21.494        .69683E-04   -1.4557    
  21  Prefactor     16.548        22.387        .98460E-04   -1.4894    
  22  Prefactor     12.195        7.2176        .11471E-03   -1.5009    
  23  Prefactor     .10000E-03    7.4419        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .96174        .25440        .30979E-03   -.94324    
  25  Prefactor     .82676        .13304        .18249E-03   -.98749    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.84581e-09
Minuit parameter uncertainties:
  1  0.000750333
  2  1.06911
  3  15.6348
  4  2.65196e-07
  5  2.65482e-05
  6  0.000553966
  7  10.426
  8  0.229573
  9  3.5961e-07
  10  0.818886
  11  1.81058e-06
  12  1.84931
  13  22.5241
  14  10.4126
  15  0.0010921
  16  4.82785e-07
  17  8.54722
  18  5.09728
  19  0.000115977
  20  21.4991
  21  22.3983
  22  7.21812
  23  8.76237e-05
  24  0.254719
  25  0.133091
Done.

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

Extracting fit parameters...

4FGL J2243.9+2021
   Spectrum: LogParabola
288         norm:  2.301e+00  1.849e+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:  8.268e-01  1.331e-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:  9.617e-01  2.547e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.91
Ra Dec: 340.990 20.357
Photon Index (Fixed Index): 1.72 +/- 0.00
Photon Flux (Fixed Index): 2.60e-08 +/- 2.09e-08
Energy Flux (Fixed Index): 3.37e-05 +/- 2.71e-05

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

Saving results to:
/scratch/kocevski/448247/likelihoodResults_362448001_362707201_4FGL_J2243.9+2021_daily_bin475.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) = 6493.43778392
delta logL = 0.571964767857

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6493.41652932
delta logL = 0.593219365684

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.6065       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4963       1.0000          .0000       5.0000    
     3 'Normalizat'    .91074       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84107       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=   6493.417     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      244 TOTAL
                     EDM=   .59E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.6064        18.613        .83578E-02    .42730E-03
   2  alpha         2.4964        3.7482        .21936        .72669E-04
   3  Normalizat    .91074        .92760E-01    .71728E-01    .20594E-04
   4  Prefactor     .84107        .37738E-01    .44249E-01    .46860E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 1.60635
  alpha      = 2.49643
  Normalizat = 0.910737
  Prefactor  = 0.841069
 **********
 **   18 **HESSE 
 **********

 FCN=   6493.417     FROM HESSE     STATUS=OK            33 CALLS      277 TOTAL
                     EDM=   .19E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.6064        2.0657        .63553E-04   -1.5454    
   2  alpha         2.4964        .91936        .11489E-01   -.14297E-02
   3  Normalizat    .91074        .25340        .31738E-03   -.96084    
   4  Prefactor     .84107        .13510        .18099E-03   -.98232    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.8677e-11
Minuit parameter uncertainties:
  1  2.06584
  2  0.941453
  3  0.253736
  4  0.135153
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/448247': 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) = 6493.41652931
delta logL = 0.593219376059

Extracting fit parameters...

4FGL J2243.9+2021
   Spectrum: LogParabola
288         norm:  1.606e+00  2.066e+00  1.000e-04  1.000e+04 ( 1.000e-12)
289        alpha:  2.496e+00  9.415e-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:  8.411e-01  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:  9.107e-01  2.537e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.09
Ra Dec: 340.990 20.357
Photon Index (Free Index): 2.50 +/- 0.94
Photon Flux (Free Index): 6.60e-08 +/- 6.38e-08
Energy Flux (Free Index): 2.18e-05 +/- 1.54e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/448247/cmap_HighResolution_362448001_362707201_4FGL_J2243.9+2021_daily_bin475.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.73e-05', comment='SUCCESS', photon_flux='2.60e-08', energy_flux2='2.18e-05', photon_flux_error='2.09e-08', dlogl='5.93e-01', energy_flux='3.37e-05', photon_flux2='6.60e-08', job_status='DONE', time_completed='2021-09-28 19:22:53.394329', photon_index_error2='0.94', photon_index2='2.50', ts='2.91', fit_tolerance='1e-08', GAL='0.83', photon_index_error='0.00', photon_flux_upper_limit='7.50e-08', energy_flux_error2='1.54e-05', EG='0.96', time_epoch_completed='1632882173.39', return_code='0', job_id='448247', GAL2='0.84', EG2='0.91', return_code2='0', energy_flux_error='2.71e-05', photon_flux_error2='6.38e-08', ts2='4.09', photon_index='1.72' WHERE bin_id='475' AND source_name='4FGL J2243.9+2021' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 19:22:53 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0222>
Subject: Job 448247: <4FGL_J2243.9+2021_daily_bin475> in cluster <slac> Done

Job <4FGL_J2243.9+2021_daily_bin475> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Tue Sep 28 19:10:48 2021
Job was executed on host(s) <bullet0222>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 19:10:50 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:50 2021
Terminated at Tue Sep 28 19:22:54 2021
Results reported at Tue Sep 28 19:22:54 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2243.9+2021_daily_bin475 340.99 20.3565 362448001 362707201 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 :                                   703.31 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             354.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   723 sec.
    Turnaround time :                            726 sec.

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

