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


Performing analysis on: 4FGL_J2243.9+2021_daily_bin574
RA = 340.99, Dec = 20.3565
tmin = 388108801, tmax = 388368001
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='448405', job_status='RUN', time_executed='2021-09-28 19:11:19.905311', time_epoch_executed='1632881479.91' WHERE source_name='4FGL J2243.9+2021' and cadence='daily' and bin_id='574'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/448405

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/448405/ft1_4FGL_J2243.9+2021_daily_bin574.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/448405/ft2_4FGL_J2243.9+2021_daily_bin574.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/448405/ft1_4FGL_J2243.9+2021_daily_bin574.fits outfile=/scratch/kocevski/448405/ft1_filteredMKT_4FGL_J2243.9+2021_daily_bin574.fits ra=340.99 dec=20.3565 rad=12.0 tmin=388108801.0 tmax=388368001.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 3.35
user 3.13
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/448405/ft1_filtered_4FGL_J2243.9+2021_daily_bin574.fits evtable="EVENTS" scfile=/scratch/kocevski/448405/ft2_4FGL_J2243.9+2021_daily_bin574.fits sctable="SC_DATA" expcube=/scratch/kocevski/448405/ltcube_388108801_388368001_4FGL_J2243.9+2021_daily_bin574.fits outfile=/scratch/kocevski/448405/expmap_388108801_388368001_4FGL_J2243.9+2021_daily_bin574.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/448405/ltcube_388108801_388368001_4FGL_J2243.9+2021_daily_bin574.fits
.....................!
real 191.63
user 187.04
sys 4.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/448405/ft1_filtered_4FGL_J2243.9+2021_daily_bin574.fits scfile=/scratch/kocevski/448405/ft2_4FGL_J2243.9+2021_daily_bin574.fits outfile=/scratch/kocevski/448405/cmap_388108801_388368001_4FGL_J2243.9+2021_daily_bin574.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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/448405/ft1_filtered_4FGL_J2243.9+2021_daily_bin574.fits scfile=/scratch/kocevski/448405/ft2_4FGL_J2243.9+2021_daily_bin574.fits outfile=/scratch/kocevski/448405/cmap_HighResolution_388108801_388368001_4FGL_J2243.9+2021_daily_bin574.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=340.99 yref=20.3565 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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      '    .10219E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    3.3179       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.9739       1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.5514       1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.3387       1.0000         .10000E-03   10000.    
    10 'norm      '    2.9664       1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.6481       1.0000         .10000E-03   10000.    
    12 'norm      '    1.0376       1.0000         .10000E-03   10000.    
    13 'Prefactor '    18.423       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.5037       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .44187       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    10.848       1.0000         .10000E-03   10000.    
    19 'Prefactor '    15.369       1.0000         .10000E-03   10000.    
    20 'Prefactor '    22.865       1.0000         .10000E-03   10000.    
    21 'Prefactor '    47.546       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .50331       1.0000         .10000E-03   10000.    
    23 'Prefactor '    13.211       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.3344       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .76802       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=   10176.50     FROM MIGRAD    STATUS=CONVERGED    577 CALLS     2922 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    14.118        .18208E-05** at limit **
   2  norm          .10000E-03    .36878       -.49428E-07** at limit **
   3  Prefactor     .10000E-03    11.627       -.22678E-05** at limit **
   4  norm          3.3180        4.1548       -.39916E-06   -.41351E-03
   5  Prefactor     .10000E-03    8.3737        .16436E-05** at limit **
   6  Prefactor     .10000E-03    47.340       -.15322E-06** at limit **
   7  Prefactor     3.9739        4.6763        .24028E-06    .19903E-03
   8  Prefactor     2.5515        .30860       -.19790E-07    .19326E-04
   9  Prefactor     4.3387        6.2179        .37524E-06    .91227E-04
  10  norm          2.9662        1.2308       -.36625E-07    .10881E-04
  11  Prefactor     2.6475        24.162       -.27986E-06   -.29288E-04
  12  norm          1.0376        .95067       -.14449E-07    .24633E-04
  13  Prefactor     18.422        18.076       -.23611E-06   -.11016E-04
  14  Prefactor     .10000E-03    2.9946       -.65547E-07** at limit **
  15  Prefactor     3.5031        8.6583        .28424E-05   -.64588E-03
  16  Prefactor     .44186        .13711       -.14314E-07    .14090E-02
  17  Prefactor     .10000E-03    2.9181        .24812E-08** at limit **
  18  Prefactor     10.847        7.2674       -.17558E-06    .28619E-04
  19  Prefactor     15.369        10.496        .96435E-07    .99872E-04
  20  Prefactor     22.862        22.135       -.19162E-05   -.28348E-03
  21  Prefactor     47.544        31.299       -.12897E-05   -.23227E-03
  22  Prefactor     .47536        5.5856       -.22025E-05    .65965E-03
  23  Prefactor     13.199        17.834       -.35635E-05   -.30504E-03
  24  Normalizat    1.3343        .21047        .15696E-05    .23231E-03
  25  Prefactor     .76805        .10385       -.19009E-06    .42249E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.000100002
  norm       = 3.31804
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 3.97393
  Prefactor  = 2.55146
  Prefactor  = 4.33865
  norm       = 2.96617
  Prefactor  = 2.64753
  norm       = 1.0376
  Prefactor  = 18.4225
  Prefactor  = 0.0001
  Prefactor  = 3.50307
  Prefactor  = 0.441863
  Prefactor  = 0.0001
  Prefactor  = 10.8473
  Prefactor  = 15.3692
  Prefactor  = 22.8619
  Prefactor  = 47.5444
  Prefactor  = 0.475357
  Prefactor  = 13.1992
  Normalizat = 1.3343
  Prefactor  = 0.768054
 **********
 **   18 **HESSE 
 **********

 FCN=   10176.50     FROM HESSE     STATUS=OK           433 CALLS     3355 TOTAL
                     EDM=   .67E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    14.203        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    2.3530        .11730E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    11.944        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          3.3180        4.1795        .22224E-03   -1.5344    
   5  Prefactor     .10000E-03    8.4840        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    47.370        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     3.9739        4.6792        .20233E-03   -1.5309    
   8  Prefactor     2.5515        .30966        .18468E-04   -1.5388    
   9  Prefactor     4.3387        6.2181        .19338E-03   -1.5291    
  10  norm          2.9662        1.2264        .67259E-04   -1.5364    
  11  Prefactor     2.6475        24.076        .25052E-03   -1.5383    
  12  norm          1.0376        .93858        .91733E-04   -1.5504    
  13  Prefactor     18.422        18.086        .93314E-04   -1.4849    
  14  Prefactor     .10000E-03    3.0012        .17048E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     3.5031        12.448        .10800E-02   -1.5334    
  16  Prefactor     .44186        .13712        .19534E-04   -1.5575    
  17  Prefactor     .10000E-03    2.9217        .16829E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     10.847        7.2587        .12164E-03   -1.5049    
  19  Prefactor     15.369        10.495        .10216E-03   -1.4924    
  20  Prefactor     22.862        22.345        .83767E-04   -1.4751    
  21  Prefactor     47.544        31.414        .58151E-04   -1.4328    
  22  Prefactor     .47536        12.829        .37061E-02   -1.5570    
  23  Prefactor     13.199        18.330        .11020E-03   -1.4981    
  24  Normalizat    1.3343        .24658        .33041E-03   -.82548    
  25  Prefactor     .76805        .12282        .21866E-03   -1.0092    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.6887e-09
Minuit parameter uncertainties:
  1  0.000229048
  2  1.76646e-05
  3  0.000272829
  4  4.17984
  5  0.000153702
  6  5.28233e-05
  7  4.67964
  8  0.309665
  9  6.21902
  10  1.22645
  11  15.976
  12  0.938591
  13  18.0909
  14  5.0878e-06
  15  12.4577
  16  0.137118
  17  8.90203e-08
  18  7.25928
  19  10.4962
  20  22.3533
  21  31.4252
  22  4.93961
  23  18.3378
  24  0.2468
  25  0.122865
Done.

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

Extracting fit parameters...

4FGL J2243.9+2021
   Spectrum: LogParabola
288         norm:  1.038e+00  9.386e-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:  7.681e-01  1.229e-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:  1.334e+00  2.468e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.33
Ra Dec: 340.990 20.357
Photon Index (Fixed Index): 1.72 +/- 0.00
Photon Flux (Fixed Index): 1.17e-08 +/- 1.06e-08
Energy Flux (Fixed Index): 1.52e-05 +/- 1.37e-05

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

Saving results to:
/scratch/kocevski/448405/likelihoodResults_388108801_388368001_4FGL_J2243.9+2021_daily_bin574.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) = 10176.4699746
delta logL = 0.0291426651966

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10176.4697992
delta logL = 0.0293181622928

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.0260       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.5535       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3358       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .76803       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=   10176.47     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      224 TOTAL
                     EDM=   .97E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.0253        41.615        .12623E-01   -.42234E-03
   2  alpha         1.5529        3.5070        .45691       -.11982E-04
   3  Normalizat    1.3358        .12316        .74625E-01   -.53105E-03
   4  Prefactor     .76800        .54311E-01    .43300E-01   -.88154E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.02529
  alpha      = 1.55289
  Normalizat = 1.33583
  Prefactor  = 0.768002
 **********
 **   18 **HESSE 
 **********

 FCN=   10176.47     FROM HESSE     STATUS=OK            29 CALLS      253 TOTAL
                     EDM=   .41E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.0253        .94854        .92283E-04   -1.5505    
   2  alpha         1.5529        .65511        .22781E-01   -.38855    
   3  Normalizat    1.3358        .23352        .33024E-03   -.82503    
   4  Prefactor     .76800        .12166        .21867E-03   -1.0092    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.05232e-10
Minuit parameter uncertainties:
  1  0.948556
  2  0.664192
  3  0.233707
  4  0.1217
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/448405': 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) = 10176.4697983
delta logL = 0.0293190326101

Extracting fit parameters...

4FGL J2243.9+2021
   Spectrum: LogParabola
288         norm:  1.025e+00  9.486e-01  1.000e-04  1.000e+04 ( 1.000e-12)
289        alpha:  1.553e+00  6.642e-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.680e-01  1.217e-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:  1.336e+00  2.337e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.39
Ra Dec: 340.990 20.357
Photon Index (Free Index): 1.55 +/- 0.66
Photon Flux (Free Index): 9.65e-09 +/- 1.16e-08
Energy Flux (Free Index): 1.90e-05 +/- 2.57e-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/448405/cmap_HighResolution_388108801_388368001_4FGL_J2243.9+2021_daily_bin574.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.52e-05', comment='SUCCESS', photon_flux='1.17e-08', energy_flux2='1.90e-05', photon_flux_error='1.06e-08', dlogl='2.93e-02', energy_flux='1.52e-05', photon_flux2='9.65e-09', job_status='DONE', time_completed='2021-09-28 19:26:45.203179', photon_index_error2='0.66', photon_index2='1.55', ts='3.33', fit_tolerance='1e-08', GAL='0.77', photon_index_error='0.00', photon_flux_upper_limit='4.26e-08', energy_flux_error2='2.57e-05', EG='1.33', time_epoch_completed='1632882405.2', return_code='0', job_id='448405', GAL2='0.77', EG2='1.34', return_code2='0', energy_flux_error='1.37e-05', photon_flux_error2='1.16e-08', ts2='3.39', photon_index='1.72' WHERE bin_id='574' AND source_name='4FGL J2243.9+2021' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 19:26:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0196>
Subject: Job 448405: <4FGL_J2243.9+2021_daily_bin574> in cluster <slac> Done

Job <4FGL_J2243.9+2021_daily_bin574> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Tue Sep 28 19:11:02 2021
Job was executed on host(s) <bullet0196>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 19:11:03 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 28 19:11:03 2021
Terminated at Tue Sep 28 19:26:45 2021
Results reported at Tue Sep 28 19:26:45 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2243.9+2021_daily_bin574 340.99 20.3565 388108801 388368001 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 :                                   921.00 sec.
    Max Memory :                                 1234 MB
    Average Memory :                             369.39 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   942 sec.
    Turnaround time :                            943 sec.

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

