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


Performing analysis on: 4FGL_J2243.9+2021_daily_bin731
RA = 340.99, Dec = 20.3565
tmin = 428803201, tmax = 429062401
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='449603', job_status='RUN', time_executed='2021-09-28 19:18:04.392842', time_epoch_executed='1632881884.39' WHERE source_name='4FGL J2243.9+2021' and cadence='daily' and bin_id='731'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/449603

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/449603/ft1_4FGL_J2243.9+2021_daily_bin731.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/449603/ft2_4FGL_J2243.9+2021_daily_bin731.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/449603/ft1_4FGL_J2243.9+2021_daily_bin731.fits outfile=/scratch/kocevski/449603/ft1_filteredMKT_4FGL_J2243.9+2021_daily_bin731.fits ra=340.99 dec=20.3565 rad=12.0 tmin=428803201.0 tmax=429062401.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 6.51
user 6.18
sys 0.30

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/449603/ft1_filtered_4FGL_J2243.9+2021_daily_bin731.fits" evtable="EVENTS" scfile=/scratch/kocevski/449603/ft2_4FGL_J2243.9+2021_daily_bin731.fits sctable="SC_DATA" outfile=/scratch/kocevski/449603/ltcube_428803201_429062401_4FGL_J2243.9+2021_daily_bin731.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/449603/ft2_4FGL_J2243.9+2021_daily_bin731.fits
.....................!
real 12.22
user 11.82
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/449603/ft1_filtered_4FGL_J2243.9+2021_daily_bin731.fits evtable="EVENTS" scfile=/scratch/kocevski/449603/ft2_4FGL_J2243.9+2021_daily_bin731.fits sctable="SC_DATA" expcube=/scratch/kocevski/449603/ltcube_428803201_429062401_4FGL_J2243.9+2021_daily_bin731.fits outfile=/scratch/kocevski/449603/expmap_428803201_429062401_4FGL_J2243.9+2021_daily_bin731.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/449603/ltcube_428803201_429062401_4FGL_J2243.9+2021_daily_bin731.fits
.....................!
real 192.60
user 186.49
sys 5.67

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/449603/ft1_filtered_4FGL_J2243.9+2021_daily_bin731.fits scfile=/scratch/kocevski/449603/ft2_4FGL_J2243.9+2021_daily_bin731.fits outfile=/scratch/kocevski/449603/cmap_428803201_429062401_4FGL_J2243.9+2021_daily_bin731.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.54
user 0.38
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .70689E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    1.4760       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .47166E-02   1.0000         .10000E-03   10000.    
     4 'norm      '    5.4094       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .64785E-02   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .34713E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    34.370       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .13423E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    3.9493       1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.3899       1.0000         .10000E-03   10000.    
    12 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .18744E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10745E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    19.751       1.0000         .10000E-03   10000.    
    16 'Prefactor '    13.431       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .29318E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    50.059       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .55118E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    18.201       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .11272E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    23.271       1.0000         .10000E-03   10000.    
    23 'Prefactor '    27.428       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .67481       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .93390       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=   5084.561     FROM MIGRAD    STATUS=CONVERGED    637 CALLS     2536 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    37.461       -.16541E-04** at limit **
   2  norm          1.4802        3.0150        .12437E-05   -.59764E-03
   3  Prefactor     .10000E-03    19.009        .13030E-07** at limit **
   4  norm          5.3895        10.319       -.19426E-05   -.17150E-03
   5  Prefactor     .10000E-03    101.33        .82198E-04** at limit **
   6  Prefactor     .10000E-03    62.731        .31106E-04** at limit **
   7  Prefactor     34.594        28.344        .26671E-04   -.96562E-05
   8  Prefactor     .10000E-03    .16192        .24971E-06** at limit **
   9  Prefactor     .10000E-03    14.830        .23266E-06** at limit **
  10  norm          3.9660        2.5041       -.11435E-05   -.35182E-02
  11  Prefactor     2.7835        140.26        .71473E-04    .14836E-04
  12  norm          .10000E-03    1.1448       -.22176E-07** at limit **
  13  Prefactor     .10000E-03    26.158        .28259E-05** at limit **
  14  Prefactor     .10000E-03    11.585        .21868E-07** at limit **
  15  Prefactor     19.389        62.674       -.39991E-04    .50888E-05
  16  Prefactor     13.435        .99316        .12563E-06   -.63883E-03
  17  Prefactor     .10000E-03    9.7696        .97405E-07** at limit **
  18  Prefactor     49.875        24.877        .89161E-05    .11767E-03
  19  Prefactor     .10000E-03    8.1541        .46861E-07** at limit **
  20  Prefactor     18.373        20.183        .14117E-04   -.77433E-05
  21  Prefactor     .10000E-03    13.693        .12485E-06** at limit **
  22  Prefactor     23.134        19.499        .77517E-05    .61929E-04
  23  Prefactor     28.365        58.669        .12438E-04    .21837E-04
  24  Normalizat    .67261        .47822       -.41694E-04   -.38559E-03
  25  Prefactor     .93471        .22158        .40274E-05   -.76523E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 1.48023
  Prefactor  = 0.0001
  norm       = 5.38946
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 34.594
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.96604
  Prefactor  = 2.78347
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 19.3886
  Prefactor  = 13.4346
  Prefactor  = 0.0001
  Prefactor  = 49.8753
  Prefactor  = 0.0001
  Prefactor  = 18.3727
  Prefactor  = 0.0001
  Prefactor  = 23.1343
  Prefactor  = 28.3652
  Normalizat = 0.672607
  Prefactor  = 0.934711
 **********
 **   18 **HESSE 
 **********

 FCN=   5084.561     FROM HESSE     STATUS=OK           425 CALLS     2961 TOTAL
                     EDM=   .38E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    37.439        .20974E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.4802        2.9813        .16336E-03   -1.5465    
   3  Prefactor     .10000E-03    19.047        .19282E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          5.3895        10.282        .17278E-03   -1.5244    
   5  Prefactor     .10000E-03    103.24        .18823E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    62.685        .21327E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     34.594        28.336        .68354E-04   -1.4531    
   8  Prefactor     .10000E-03    .28600        .55470E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    14.912        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          3.9660        2.4937        .39949E-03   -1.5310    
  11  Prefactor     2.7835        139.59        .21975E-03   -1.5374    
  12  norm          .10000E-03    1.1461        .74507E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    26.160        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    11.599        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     19.389        62.706        .90123E-04   -1.4827    
  16  Prefactor     13.435        .99472        .17332E-04   -1.4975    
  17  Prefactor     .10000E-03    9.7905        .21399E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     49.875        24.900        .56680E-04   -1.4294    
  19  Prefactor     .10000E-03    8.1561        .19888E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     18.373        20.176        .93881E-04   -1.4850    
  21  Prefactor     .10000E-03    13.697        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     23.134        19.467        .83036E-04   -1.4746    
  23  Prefactor     28.365        58.516        .76495E-04   -1.4642    
  24  Normalizat    .67261        .51917        .62402E-03   -1.0498    
  25  Prefactor     .93471        .24785        .26529E-03   -.94939    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.80781e-09
Minuit parameter uncertainties:
  1  1.85812e-05
  2  2.9816
  3  1.06957e-06
  4  10.2849
  5  0.000742163
  6  5.85816e-05
  7  28.3469
  8  1.33874e-05
  9  0.000110587
  10  2.49374
  11  39.5203
  12  2.34372e-06
  13  2.53139e-05
  14  2.64219e-06
  15  62.9198
  16  0.994725
  17  3.39305e-05
  18  24.905
  19  7.70185e-06
  20  20.1832
  21  1.81878e-05
  22  19.4721
  23  58.6344
  24  0.523021
  25  0.248151
Done.

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

Extracting fit parameters...

4FGL J2243.9+2021
   Spectrum: LogParabola
288         norm:  1.000e-04  2.344e-06  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.347e-01  2.482e-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:  6.726e-01  5.230e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/449603/likelihoodResults_428803201_429062401_4FGL_J2243.9+2021_daily_bin731.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): 102
logL (Free Index) = 5084.56095489
delta logL = -3.73538568965e-08

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5084.56095483
delta logL = 1.67283360497e-08

Fit tolerance = 1e-08

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

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

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   5084.561     FROM MIGRAD    STATUS=FAILED        82 CALLS      233 TOTAL
                     EDM=   .35E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10008E-03    190.44        .74531E-03** at limit **
   2  alpha         1.7538        3.3753        .50000       -.55982E-05
   3  Normalizat    .67262        .17444        .62406E-03    .14938E-05
   4  Prefactor     .93471        .87369E-01    .26529E-03    .28283E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5084.561     FROM SIMPLEX   STATUS=UNCHANGED    159 CALLS      392 TOTAL
                     EDM=   .91E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10008E-03    190.44        .16835E-03** at limit **
   2  alpha         1.7538        3.3753        .18274E-04   -.55982E-05
   3  Normalizat    .67262        .17444        .58614E-05    .14938E-05
   4  Prefactor     .93471        .87369E-01    .21079E-05    .28283E-05
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5084.561     FROM MIGRAD    STATUS=CONVERGED     37 CALLS      429 TOTAL
                     EDM=   .61E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1.4492        .14906E-03** at limit **
   2  alpha         1.7980        3.0738        .50000       -.22055E-08
   3  Normalizat    .67262        .48188        .24962E-04   -.22772E-05
   4  Prefactor     .93471        .24245        .10612E-04   -.57852E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.79796
  Normalizat = 0.672616
  Prefactor  = 0.93471
 **********
 **   18 **HESSE 
 **********

 FCN=   5084.561     FROM HESSE     STATUS=OK            29 CALLS      458 TOTAL
                     EDM=   .54E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.1602        .29812E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.7980        2.7845        .50000       -.28465    
   3  Normalizat    .67262        .48010        .49925E-05   -1.0498    
   4  Prefactor     .93471        .24161        .21223E-05   -.94939    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.42984e-14
Minuit parameter uncertainties:
  1  2.07522e-08
  2  112.258
  3  0.483134
  4  0.241886
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/449603': 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) = 5084.56095468
delta logL = 1.73731677933e-07

Extracting fit parameters...

4FGL J2243.9+2021
   Spectrum: LogParabola
288         norm:  1.000e-04  2.075e-08  1.000e-04  1.000e+04 ( 1.000e-12)
289        alpha:  1.798e+00  1.123e+02  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.347e-01  2.419e-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:  6.726e-01  4.831e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 340.990 20.357

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/449603/cmap_HighResolution_428803201_429062401_4FGL_J2243.9+2021_daily_bin731.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.54e-05', job_status='DONE', photon_flux_upper_limit='7.35e-08', time_completed='2021-09-28 19:28:45.700492', job_id='449603', GAL2='0.93', fit_tolerance='1e-08', EG2='0.67', EG='0.67', time_epoch_completed='1632882525.7', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.93', dlogl='1.74e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.72' WHERE bin_id='731' AND source_name='4FGL J2243.9+2021' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 19:28:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0251>
Subject: Job 449603: <4FGL_J2243.9+2021_daily_bin731> in cluster <slac> Done

Job <4FGL_J2243.9+2021_daily_bin731> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Tue Sep 28 19:15:25 2021
Job was executed on host(s) <bullet0251>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 19:15:27 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:15:27 2021
Terminated at Tue Sep 28 19:28:46 2021
Results reported at Tue Sep 28 19:28:46 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2243.9+2021_daily_bin731 340.99 20.3565 428803201 429062401 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 :                                   639.48 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             313.60 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   799 sec.
    Turnaround time :                            801 sec.

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

