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


Performing analysis on: 4FGL_J2243.9+2021_daily_bin490
RA = 340.99, Dec = 20.3565
tmin = 366336001, tmax = 366595201
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='448272', job_status='RUN', time_executed='2021-09-28 19:13:33.401242', time_epoch_executed='1632881613.4' WHERE source_name='4FGL J2243.9+2021' and cadence='daily' and bin_id='490'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/448272

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

Retrieving the FT1 file...

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

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

Retrieving 50 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/448272/ft1_4FGL_J2243.9+2021_daily_bin490.fits


Retrieving the FT1 file...

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

Retrieving 50 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/448272/ft2_4FGL_J2243.9+2021_daily_bin490.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/448272/ft1_4FGL_J2243.9+2021_daily_bin490.fits outfile=/scratch/kocevski/448272/ft1_filteredMKT_4FGL_J2243.9+2021_daily_bin490.fits ra=340.99 dec=20.3565 rad=12.0 tmin=366336001.0 tmax=366595201.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.57
user 5.29
sys 0.25

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/448272/ft2_4FGL_J2243.9+2021_daily_bin490.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/448272/ft1_filteredMKT_4FGL_J2243.9+2021_daily_bin490.fits evtable="EVENTS" outfile="/scratch/kocevski/448272/ft1_filtered_4FGL_J2243.9+2021_daily_bin490.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/448272/ft1_filtered_4FGL_J2243.9+2021_daily_bin490.fits" evtable="EVENTS" scfile=/scratch/kocevski/448272/ft2_4FGL_J2243.9+2021_daily_bin490.fits sctable="SC_DATA" outfile=/scratch/kocevski/448272/ltcube_366336001_366595201_4FGL_J2243.9+2021_daily_bin490.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/448272/ft2_4FGL_J2243.9+2021_daily_bin490.fits
.....................!
real 11.52
user 11.14
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/448272/ft1_filtered_4FGL_J2243.9+2021_daily_bin490.fits evtable="EVENTS" scfile=/scratch/kocevski/448272/ft2_4FGL_J2243.9+2021_daily_bin490.fits sctable="SC_DATA" expcube=/scratch/kocevski/448272/ltcube_366336001_366595201_4FGL_J2243.9+2021_daily_bin490.fits outfile=/scratch/kocevski/448272/expmap_366336001_366595201_4FGL_J2243.9+2021_daily_bin490.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/448272/ltcube_366336001_366595201_4FGL_J2243.9+2021_daily_bin490.fits
.....................!
real 192.00
user 185.72
sys 5.20

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/448272/ft1_filtered_4FGL_J2243.9+2021_daily_bin490.fits scfile=/scratch/kocevski/448272/ft2_4FGL_J2243.9+2021_daily_bin490.fits outfile=/scratch/kocevski/448272/cmap_366336001_366595201_4FGL_J2243.9+2021_daily_bin490.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.55
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/448272/ft1_filtered_4FGL_J2243.9+2021_daily_bin490.fits scfile=/scratch/kocevski/448272/ft2_4FGL_J2243.9+2021_daily_bin490.fits outfile=/scratch/kocevski/448272/cmap_HighResolution_366336001_366595201_4FGL_J2243.9+2021_daily_bin490.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/448272/ft1_filtered_4FGL_J2243.9+2021_daily_bin490.fits evtable="EVENTS" scfile=/scratch/kocevski/448272/ft2_4FGL_J2243.9+2021_daily_bin490.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/448272/Model_4FGL_J2243.9+2021_daily_bin490.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/448272/ft1_filtered_4FGL_J2243.9+2021_daily_bin490.fits.....................!
real 72.67
user 71.09
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.4124       1.0000         .10000E-03   10000.    
     2 'norm      '    1.0863       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    1.1348       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .95273       1.0000         .10000E-03   10000.    
     6 'Prefactor '    63.955       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.0419       1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.1187       1.0000         .10000E-03   10000.    
    10 'norm      '    .10021E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.1377       1.0000         .10000E-03   10000.    
    12 'norm      '    3.8113       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    28.129       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .28176       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .36478       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10408E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    26.240       1.0000         .10000E-03   10000.    
    22 'Prefactor '    3.5710       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .96085       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .78766       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=   6919.379     FROM MIGRAD    STATUS=CONVERGED    573 CALLS     2949 TOTAL
                     EDM=   .53E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.4146        44.443        .52895E-05    .20899E-05
   2  norm          1.0864        .87602       -.45278E-08   -.14701E-04
   3  Prefactor     .10000E-03    5.7430        .82569E-06** at limit **
   4  norm          1.1339        2.6416       -.20866E-08   -.88431E-04
   5  Prefactor     .94453        12.318       -.10630E-05    .18473E-03
   6  Prefactor     63.949        86.773       -.61903E-05   -.64313E-05
   7  Prefactor     .10000E-03    2.4376       -.31063E-08** at limit **
   8  Prefactor     2.0418        .36382        .12294E-07    .23306E-02
   9  Prefactor     2.1185        8.4508       -.56267E-07   -.26042E-04
  10  norm          .10000E-03    .38320       -.78262E-07** at limit **
  11  Prefactor     1.1401        7.1042        .15632E-05   -.50561E-03
  12  norm          3.8112        1.9023        .20992E-08    .79827E-04
  13  Prefactor     .10000E-03    13.770       -.12798E-04** at limit **
  14  Prefactor     .10000E-03    5.9020       -.98939E-06** at limit **
  15  Prefactor     28.128        24.975       -.66882E-06    .26110E-04
  16  Prefactor     .28181        .16377        .17585E-07    .88370E-03
  17  Prefactor     .36370        4.3072        .20637E-07   -.10699E-03
  18  Prefactor     .10000E-03    2.2639        .47158E-08** at limit **
  19  Prefactor     .10000E-03    11.467        .56144E-05** at limit **
  20  Prefactor     .10000E-03    17.578        .97033E-05** at limit **
  21  Prefactor     26.241        20.323        .53392E-06   -.31429E-04
  22  Prefactor     3.5685        5.3369       -.32245E-07   -.24308E-04
  23  Prefactor     .10000E-03    35.361       -.31959E-05** at limit **
  24  Normalizat    .96096        .20827        .41654E-06    .19037E-04
  25  Prefactor     .78756        .10954       -.15209E-06    .50864E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.41465
  norm       = 1.0864
  Prefactor  = 0.0001
  norm       = 1.1339
  Prefactor  = 0.944534
  Prefactor  = 63.9487
  Prefactor  = 0.0001
  Prefactor  = 2.04181
  Prefactor  = 2.11846
  norm       = 0.0001
  Prefactor  = 1.14015
  norm       = 3.81118
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 28.1285
  Prefactor  = 0.281809
  Prefactor  = 0.3637
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 26.2413
  Prefactor  = 3.56854
  Prefactor  = 0.0001
  Normalizat = 0.960962
  Prefactor  = 0.787557
 **********
 **   18 **HESSE 
 **********

 FCN=   6919.379     FROM HESSE     STATUS=OK           431 CALLS     3380 TOTAL
                     EDM=   .57E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.4146        44.512        .19172E-03   -1.5288    
   2  norm          1.0864        .85378        .67436E-04   -1.5500    
   3  Prefactor     .10000E-03    5.7627        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          1.1339        2.5815        .20064E-03   -1.5495    
   5  Prefactor     .94453        102.07        .51178E-02   -1.5514    
   6  Prefactor     63.949        86.748        .50180E-04   -1.4107    
   7  Prefactor     .10000E-03    2.4416        .12683E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     2.0418        .36859        .18365E-04   -1.5422    
   9  Prefactor     2.1185        8.4638        .28336E-03   -1.5417    
  10  norm          .10000E-03    .39505        .10035E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     1.1401        64.592        .21824E-02   -1.5494    
  12  norm          3.8112        1.9036        .78681E-04   -1.5317    
  13  Prefactor     .10000E-03    13.820        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    5.9391        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     28.128        25.046        .75537E-04   -1.4647    
  16  Prefactor     .28181        .16115        .22662E-04   -1.5602    
  17  Prefactor     .36370        13.214        .33470E-02   -1.5587    
  18  Prefactor     .10000E-03    2.2719        .12221E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    11.578        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    17.648        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     26.241        20.325        .78204E-04   -1.4683    
  22  Prefactor     3.5685        5.3440        .21386E-03   -1.5330    
  23  Prefactor     .10000E-03    36.020        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .96096        .24887        .31192E-03   -.94350    
  25  Prefactor     .78756        .13265        .18569E-03   -1.0019    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.71682e-08
Minuit parameter uncertainties:
  1  28.0626
  2  0.853788
  3  7.18354e-06
  4  2.58174
  5  19.6714
  6  86.9197
  7  2.28922e-07
  8  0.368591
  9  8.46857
  10  2.06967e-06
  11  17.182
  12  1.90363
  13  6.33637e-05
  14  2.84985e-06
  15  25.0549
  16  0.161155
  17  4.38493
  18  4.72418e-07
  19  1.70606e-06
  20  1.60472e-05
  21  20.33
  22  5.34468
  23  4.25591e-07
  24  0.249175
  25  0.132704
Done.

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

Extracting fit parameters...

4FGL J2243.9+2021
   Spectrum: LogParabola
288         norm:  3.811e+00  1.904e+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:  7.876e-01  1.327e-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.610e-01  2.492e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 19.71
Ra Dec: 340.990 20.357
Photon Index (Fixed Index): 1.72 +/- 0.00
Photon Flux (Fixed Index): 4.30e-08 +/- 2.15e-08
Energy Flux (Fixed Index): 5.58e-05 +/- 2.79e-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) = 6919.37723667
delta logL = 0.0018320520312

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6919.3772009
delta logL = 0.00186782655237

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.8082       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.7408       1.0000          .0000       5.0000    
     3 'Normalizat'    .95978       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .78762       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=   6919.377     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      227 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.8059        46.338        .51710E-02   -.78006E-04
   2  alpha         1.7403        3.0542        .30724        .20531E-04
   3  Normalizat    .95991        .19082        .70536E-01    .19356E-04
   4  Prefactor     .78765        .67589E-01    .43556E-01    .76268E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 3.80588
  alpha      = 1.74029
  Normalizat = 0.959906
  Prefactor  = 0.787649
 **********
 **   18 **HESSE 
 **********

 FCN=   6919.377     FROM HESSE     STATUS=OK            33 CALLS      260 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.8059        1.8981        .78251E-04   -1.5318    
   2  alpha         1.7403        .40336        .11297E-01   -.30877    
   3  Normalizat    .95991        .23798        .31207E-03   -.94386    
   4  Prefactor     .78765        .13004        .18567E-03   -1.0019    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.97523e-10
Minuit parameter uncertainties:
  1  1.8981
  2  0.405311
  3  0.238244
  4  0.130089
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/448272': 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) = 6919.37719838
delta logL = 0.00187033892053

Extracting fit parameters...

4FGL J2243.9+2021
   Spectrum: LogParabola
288         norm:  3.806e+00  1.898e+00  1.000e-04  1.000e+04 ( 1.000e-12)
289        alpha:  1.740e+00  4.053e-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:  7.876e-01  1.301e-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.599e-01  2.382e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 19.68
Ra Dec: 340.990 20.357
Photon Index (Free Index): 1.74 +/- 0.41
Photon Flux (Free Index): 4.43e-08 +/- 3.04e-08
Energy Flux (Free Index): 5.41e-05 +/- 3.86e-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/448272/cmap_HighResolution_366336001_366595201_4FGL_J2243.9+2021_daily_bin490.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.30e-08', energy_flux2='5.41e-05', photon_flux_error='2.15e-08', dlogl='1.87e-03', energy_flux='5.58e-05', photon_flux2='4.43e-08', job_status='DONE', time_completed='2021-09-28 19:24:30.952722', photon_index_error2='0.41', photon_index2='1.74', ts='19.71', fit_tolerance='1e-08', GAL='0.79', photon_index_error='0.00', energy_flux_error2='3.86e-05', EG='0.96', time_epoch_completed='1632882270.95', return_code='0', job_id='448272', GAL2='0.79', EG2='0.96', return_code2='0', energy_flux_error='2.79e-05', photon_flux_error2='3.04e-08', ts2='19.68', photon_index='1.72' WHERE bin_id='490' AND source_name='4FGL J2243.9+2021' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 19:24:30 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0288>
Subject: Job 448272: <4FGL_J2243.9+2021_daily_bin490> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2243.9+2021_daily_bin490 340.99 20.3565 366336001 366595201 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 :                                   655.28 sec.
    Max Memory :                                 1110 MB
    Average Memory :                             320.29 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   819 sec.
    Turnaround time :                            821 sec.

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

