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


Performing analysis on: 4FGL_J2243.9+2021_daily_bin64
RA = 340.99, Dec = 20.3565
tmin = 255916801, tmax = 256176001
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='446607', job_status='RUN', time_executed='2021-09-28 19:06:15.269941', time_epoch_executed='1632881175.27' WHERE source_name='4FGL J2243.9+2021' and cadence='daily' and bin_id='64'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/446607

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/446607/ft1_4FGL_J2243.9+2021_daily_bin64.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/446607/ft2_4FGL_J2243.9+2021_daily_bin64.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/446607/ft1_4FGL_J2243.9+2021_daily_bin64.fits outfile=/scratch/kocevski/446607/ft1_filteredMKT_4FGL_J2243.9+2021_daily_bin64.fits ra=340.99 dec=20.3565 rad=12.0 tmin=255916801.0 tmax=256176001.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.51
user 1.30
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/446607/ft2_4FGL_J2243.9+2021_daily_bin64.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/446607/ft1_filteredMKT_4FGL_J2243.9+2021_daily_bin64.fits evtable="EVENTS" outfile="/scratch/kocevski/446607/ft1_filtered_4FGL_J2243.9+2021_daily_bin64.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.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/446607/ft1_filtered_4FGL_J2243.9+2021_daily_bin64.fits" evtable="EVENTS" scfile=/scratch/kocevski/446607/ft2_4FGL_J2243.9+2021_daily_bin64.fits sctable="SC_DATA" outfile=/scratch/kocevski/446607/ltcube_255916801_256176001_4FGL_J2243.9+2021_daily_bin64.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/446607/ft2_4FGL_J2243.9+2021_daily_bin64.fits
.....................!
real 12.54
user 12.18
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/446607/ft1_filtered_4FGL_J2243.9+2021_daily_bin64.fits evtable="EVENTS" scfile=/scratch/kocevski/446607/ft2_4FGL_J2243.9+2021_daily_bin64.fits sctable="SC_DATA" expcube=/scratch/kocevski/446607/ltcube_255916801_256176001_4FGL_J2243.9+2021_daily_bin64.fits outfile=/scratch/kocevski/446607/expmap_255916801_256176001_4FGL_J2243.9+2021_daily_bin64.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/446607/ltcube_255916801_256176001_4FGL_J2243.9+2021_daily_bin64.fits
.....................!
real 190.37
user 184.76
sys 5.26

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/446607/ft1_filtered_4FGL_J2243.9+2021_daily_bin64.fits scfile=/scratch/kocevski/446607/ft2_4FGL_J2243.9+2021_daily_bin64.fits outfile=/scratch/kocevski/446607/cmap_255916801_256176001_4FGL_J2243.9+2021_daily_bin64.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.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/446607/ft1_filtered_4FGL_J2243.9+2021_daily_bin64.fits scfile=/scratch/kocevski/446607/ft2_4FGL_J2243.9+2021_daily_bin64.fits outfile=/scratch/kocevski/446607/cmap_HighResolution_255916801_256176001_4FGL_J2243.9+2021_daily_bin64.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.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    2.2951       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    6.0139       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    5.5453       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .51154E-01   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .42503       1.0000         .10000E-03   10000.    
    10 'norm      '    .30486       1.0000         .10000E-03   10000.    
    11 'Prefactor '    5.0468       1.0000         .10000E-03   10000.    
    12 'norm      '    .96916E-01   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    28.009       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .58359       1.0000         .10000E-03   10000.    
    17 'Prefactor '    5.1900       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .67304E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    22.306       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .99617       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .99926       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=   7403.578     FROM MIGRAD    STATUS=CONVERGED    586 CALLS     2991 TOTAL
                     EDM=   .51E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    13.703       -.10845E-05** at limit **
   2  norm          2.2950        1.0407        .21126E-07   -.47041E-04
   3  Prefactor     .10000E-03    15.757        .11912E-05** at limit **
   4  norm          .10000E-03    1.4781        .42630E-08** at limit **
   5  Prefactor     6.0105        10.074        .33110E-05   -.41899E-03
   6  Prefactor     .10001E-03    38.141        .50478E-05** at limit **
   7  Prefactor     5.5456        8.5450        .16571E-06   -.29567E-04
   8  Prefactor     .51167E-01    .12635       -.38062E-07   -.15996E-02
   9  Prefactor     .44170        5.4708        .16852E-06   -.10855E-03
  10  norm          .30380        1.0213        .17071E-06   -.61407E-03
  11  Prefactor     5.0702        21.413        .25135E-05    .14869E-03
  12  norm          .97841E-01    .86375        .13610E-06   -.35119E-03
  13  Prefactor     .10000E-03    46.953       -.35718E-05** at limit **
  14  Prefactor     .10000E-03    21.557       -.23034E-05** at limit **
  15  Prefactor     28.006        27.814       -.50003E-06   -.58773E-04
  16  Prefactor     .58349        .18467        .19995E-07    .89588E-04
  17  Prefactor     5.1908        8.8573        .12441E-06   -.14673E-04
  18  Prefactor     .10000E-03    2.4226        .40818E-07** at limit **
  19  Prefactor     .10000E-03    14.533        .10696E-05** at limit **
  20  Prefactor     .10000E-03    6.1722        .99953E-07** at limit **
  21  Prefactor     .10000E-03    7.1435        .55759E-07** at limit **
  22  Prefactor     .10000E-03    2.6714        .22952E-06** at limit **
  23  Prefactor     22.290        18.954       -.62605E-06   -.21360E-03
  24  Normalizat    .99633        .21697       -.82270E-06   -.44957E-04
  25  Prefactor     .99921        .11603       -.37692E-06   -.45392E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 2.29501
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 6.01053
  Prefactor  = 0.000100005
  Prefactor  = 5.54564
  Prefactor  = 0.0511668
  Prefactor  = 0.441704
  norm       = 0.303796
  Prefactor  = 5.07022
  norm       = 0.0978409
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 28.0055
  Prefactor  = 0.583488
  Prefactor  = 5.19079
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 22.2905
  Normalizat = 0.996327
  Prefactor  = 0.99921
 **********
 **   18 **HESSE 
 **********

 FCN=   7403.578     FROM HESSE     STATUS=OK           437 CALLS     3428 TOTAL
                     EDM=   .98E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    13.767        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          2.2950        1.0403        .27092E-04   -1.5405    
   3  Prefactor     .10000E-03    16.056        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    1.4913        .10215E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     6.0105        10.551        .81866E-03   -1.5218    
   6  Prefactor     .10001E-03    39.544        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     5.5456        8.5491        .17061E-03   -1.5237    
   8  Prefactor     .51167E-01    .12524        .43000E-03   -1.5663    
   9  Prefactor     .44170        21.054        .37985E-02   -1.5575    
  10  norm          .30380        1.2730        .13689E-02   -1.5598    
  11  Prefactor     5.0702        21.736        .17899E-03   -1.5258    
  12  norm          .97841E-01    2.2324        .15558E-02   -1.5645    
  13  Prefactor     .10000E-03    47.873        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    22.286        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     28.006        27.976        .75699E-04   -1.4649    
  16  Prefactor     .58349        .18464        .18572E-04   -1.5555    
  17  Prefactor     5.1908        8.8499        .17646E-03   -1.5252    
  18  Prefactor     .10000E-03    2.4305        .13078E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    14.789        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    6.1791        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    7.1471        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    33.518        .26602E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     22.290        18.856        .84810E-04   -1.4763    
  24  Normalizat    .99633        .25789        .33148E-03   -.93154    
  25  Prefactor     .99921        .14073        .18339E-03   -.92756    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.80778e-08
Minuit parameter uncertainties:
  1  0.000113863
  2  1.0403
  3  0.000136503
  4  5.43232e-07
  5  10.5544
  6  0.000918287
  7  8.55102
  8  0.125236
  9  6.10072
  10  1.24358
  11  21.0088
  12  0.934275
  13  0.000630523
  14  0.000210176
  15  27.989
  16  0.184644
  17  8.85214
  18  3.49778e-06
  19  0.000121493
  20  8.33634e-06
  21  4.84739e-06
  22  0.000395148
  23  18.8615
  24  0.258215
  25  0.140778
Done.

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

Extracting fit parameters...

4FGL J2243.9+2021
   Spectrum: LogParabola
288         norm:  9.784e-02  9.343e-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:  9.992e-01  1.408e-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.963e-01  2.582e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/446607/likelihoodResults_255916801_256176001_4FGL_J2243.9+2021_daily_bin64.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) = 7403.57775127
delta logL = 2.31221520153e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7403.57774759
delta logL = 2.68084404524e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .97857E-01   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.7004       1.0000          .0000       5.0000    
     3 'Normalizat'    .99621       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99921       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=   7403.578     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      219 TOTAL
                     EDM=   .40E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .98663E-01    37.432        .28155E-01    .16931E-02
   2  alpha         1.6970        3.2135        .44191        .25311E-04
   3  Normalizat    .99635        .36396E-01    .74910E-01    .14016E-03
   4  Prefactor     .99920        .20346E-01    .46257E-01    .17805E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0986631
  alpha      = 1.697
  Normalizat = 0.996354
  Prefactor  = 0.999199
 **********
 **   18 **HESSE 
 **********

 FCN=   7403.578     FROM HESSE     STATUS=OK            33 CALLS      252 TOTAL
                     EDM=   .62E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .98663E-01    3.1094        .15599E-02   -1.5645    
   2  alpha         1.6970        3.3477        .72673E-01   -.32700    
   3  Normalizat    .99635        .24741        .33148E-03   -.93153    
   4  Prefactor     .99920        .13852        .18340E-03   -.92756    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.20814e-08
Minuit parameter uncertainties:
  1  1.10727
  2  2.85855
  3  0.247699
  4  0.138572
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/446607': 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) = 7403.57774575
delta logL = 2.86455924652e-05

Extracting fit parameters...

4FGL J2243.9+2021
   Spectrum: LogParabola
288         norm:  9.866e-02  1.107e+00  1.000e-04  1.000e+04 ( 1.000e-12)
289        alpha:  1.697e+00  2.859e+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:  9.992e-01  1.386e-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.964e-01  2.477e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.01
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/446607/cmap_HighResolution_255916801_256176001_4FGL_J2243.9+2021_daily_bin64.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.00e-05', job_status='DONE', photon_flux_upper_limit='3.85e-08', time_completed='2021-09-28 19:18:41.592352', job_id='446607', GAL2='1.00', fit_tolerance='1e-08', EG2='1.00', EG='1.00', time_epoch_completed='1632881921.59', return_code2='0', ts='0.01', comment='SUCCESS', return_code='0', GAL='1.00', dlogl='2.86e-05', ts2='0.01', photon_index_error='0.00', photon_index='1.72' WHERE bin_id='64' AND source_name='4FGL J2243.9+2021' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 19:18:41 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0082>
Subject: Job 446607: <4FGL_J2243.9+2021_daily_bin64> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2243.9+2021_daily_bin64 340.99 20.3565 255916801 256176001 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 :                                   746.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             379.88 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   789 sec.
    Turnaround time :                            791 sec.

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

