/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 116 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 = 7261
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2243.9+2021_daily_bin446
RA = 340.99, Dec = 20.3565
tmin = 354931201, tmax = 355190401
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='448201', job_status='RUN', time_executed='2021-09-28 19:12:50.381653', time_epoch_executed='1632881570.38' WHERE source_name='4FGL J2243.9+2021' and cadence='daily' and bin_id='446'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/448201

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/448201/ft1_4FGL_J2243.9+2021_daily_bin446.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/448201/ft2_4FGL_J2243.9+2021_daily_bin446.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/448201/ft1_4FGL_J2243.9+2021_daily_bin446.fits outfile=/scratch/kocevski/448201/ft1_filteredMKT_4FGL_J2243.9+2021_daily_bin446.fits ra=340.99 dec=20.3565 rad=12.0 tmin=354931201.0 tmax=355190401.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.34
user 3.10
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/448201/ft2_4FGL_J2243.9+2021_daily_bin446.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/448201/ft1_filteredMKT_4FGL_J2243.9+2021_daily_bin446.fits evtable="EVENTS" outfile="/scratch/kocevski/448201/ft1_filtered_4FGL_J2243.9+2021_daily_bin446.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/448201/ft1_filtered_4FGL_J2243.9+2021_daily_bin446.fits" evtable="EVENTS" scfile=/scratch/kocevski/448201/ft2_4FGL_J2243.9+2021_daily_bin446.fits sctable="SC_DATA" outfile=/scratch/kocevski/448201/ltcube_354931201_355190401_4FGL_J2243.9+2021_daily_bin446.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/448201/ft2_4FGL_J2243.9+2021_daily_bin446.fits
.....................!
real 11.64
user 11.24
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/448201/ft1_filtered_4FGL_J2243.9+2021_daily_bin446.fits evtable="EVENTS" scfile=/scratch/kocevski/448201/ft2_4FGL_J2243.9+2021_daily_bin446.fits sctable="SC_DATA" expcube=/scratch/kocevski/448201/ltcube_354931201_355190401_4FGL_J2243.9+2021_daily_bin446.fits outfile=/scratch/kocevski/448201/expmap_354931201_355190401_4FGL_J2243.9+2021_daily_bin446.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/448201/ltcube_354931201_355190401_4FGL_J2243.9+2021_daily_bin446.fits
.....................!
real 189.95
user 185.06
sys 4.39

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/448201/ft1_filtered_4FGL_J2243.9+2021_daily_bin446.fits scfile=/scratch/kocevski/448201/ft2_4FGL_J2243.9+2021_daily_bin446.fits outfile=/scratch/kocevski/448201/cmap_354931201_355190401_4FGL_J2243.9+2021_daily_bin446.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/448201/ft1_filtered_4FGL_J2243.9+2021_daily_bin446.fits scfile=/scratch/kocevski/448201/ft2_4FGL_J2243.9+2021_daily_bin446.fits outfile=/scratch/kocevski/448201/cmap_HighResolution_354931201_355190401_4FGL_J2243.9+2021_daily_bin446.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.36
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    87.370       1.0000         .10000E-03   10000.    
     2 'norm      '    .10052       1.0000         .10000E-03   10000.    
     3 'Prefactor '    6.2792       1.0000         .10000E-03   10000.    
     4 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    10.760       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .12887E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10955E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .32574       1.0000         .10000E-03   10000.    
     9 'Prefactor '    9.9509       1.0000         .10000E-03   10000.    
    10 'norm      '    .32444       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .62269       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    13.343       1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.5233       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    9.3863       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10073E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .57805       1.0000         .10000E-03   10000.    
    23 'Prefactor '    25.553       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.2820       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .97080       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5160E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8727.706     FROM MIGRAD    STATUS=CONVERGED    110 CALLS     2487 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 12.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     87.339        8.9771       -.38934E-05    .10625E-01
   2  norm          .10033        1.1515       -.96874E-06    .58402E-03
   3  Prefactor     6.2811        2.9651       -.55773E-05    .18961E-02
   4  norm          .10000E-03    2.7476       -.84523E-06** at limit **
   5  Prefactor     10.766        1.3846        .17205E-05    .40554E-03
   6  Prefactor     .10002E-03    68.890        .20326E-04** at limit **
   7  Prefactor     .10002E-03    16.541        .24653E-04** at limit **
   8  Prefactor     .32577        .17308       -.66571E-07    .25042E-02
   9  Prefactor     9.9498        1.0944       -.93207E-06   -.54028E-03
  10  norm          .32433        .68784        .91310E-07    .67166E-03
  11  Prefactor     .10000E-03    6.4487        .25482E-06** at limit **
  12  norm          .62256        1.3826        .24214E-06    .64802E-03
  13  Prefactor     .10000E-03    11.462        .39249E-05** at limit **
  14  Prefactor     13.344        1.8912       -.66200E-06    .21914E-02
  15  Prefactor     1.5262        1.1612        .33188E-06    .23620E-03
  16  Prefactor     .10000E-03    .12500       -.14253E-06** at limit **
  17  Prefactor     .10000E-03    2.5829        .38876E-06** at limit **
  18  Prefactor     .10000E-03    2.7369       -.81812E-06** at limit **
  19  Prefactor     9.3873        1.8072       -.30045E-05    .17279E-03
  20  Prefactor     .10000E-03    4.0791       -.18233E-06** at limit **
  21  Prefactor     .10000E-03    12.816       -.10312E-04** at limit **
  22  Prefactor     .45852        43.484       -.80784E-04   -.25008E-03
  23  Prefactor     25.662        27.326        .13134E-04    .11545E-02
  24  Normalizat    1.2817        .25690        .75385E-05    .37603E-03
  25  Prefactor     .97091        .13304       -.46765E-06    .62345E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 87.3393
  norm       = 0.100326
  Prefactor  = 6.28107
  norm       = 0.000100001
  Prefactor  = 10.7664
  Prefactor  = 0.00010002
  Prefactor  = 0.000100018
  Prefactor  = 0.325767
  Prefactor  = 9.94978
  norm       = 0.324333
  Prefactor  = 0.0001
  norm       = 0.622563
  Prefactor  = 0.0001
  Prefactor  = 13.3444
  Prefactor  = 1.5262
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 9.38726
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.458516
  Prefactor  = 25.6624
  Normalizat = 1.28172
  Prefactor  = 0.970909
 **********
 **   18 **HESSE 
 **********

 FCN=   8727.706     FROM HESSE     STATUS=OK           493 CALLS     2980 TOTAL
                     EDM=   .35E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     87.339        50.054        .10746E-02   -1.3836    
   2  norm          .10033        .52192        .22491E-01   -1.5645    
   3  Prefactor     6.2811        11.430        .40048E-02   -1.5207    
   4  norm          .10000E-03    2.7021        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     10.766        16.388        .30535E-02   -1.5052    
   6  Prefactor     .10002E-03    69.134        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10002E-03    16.495        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .32577        .18506        .61391E-02   -1.5594    
   9  Prefactor     9.9498        7.1745        .31757E-02   -1.5077    
  10  norm          .32433        .76163        .26443E-01   -1.5594    
  11  Prefactor     .10000E-03    6.4472        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .62256        1.5582        .37255E-01   -1.5550    
  13  Prefactor     .10000E-03    11.457        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     13.344        13.856        .27414E-02   -1.4977    
  15  Prefactor     1.5262        30.304        .86519E-02   -1.5461    
  16  Prefactor     .10000E-03    .54200E-01    .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    2.5812        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    2.7107        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     9.3873        9.6203        .32702E-02   -1.5095    
  20  Prefactor     .10000E-03    4.0772        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    12.800        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .45852        4.8085        .97273E-01   -1.5573    
  23  Prefactor     25.662        27.436        .19812E-02   -1.4694    
  24  Normalizat    1.2817        .22018        .74385E-01   -.84114    
  25  Prefactor     .97091        .11109        .45901E-01   -.93706    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.54572e-07
Minuit parameter uncertainties:
  1  50.0782
  2  0.457435
  3  11.4339
  4  8.93576e-05
  5  16.3947
  6  0.00235575
  7  0.00108923
  8  0.185058
  9  7.17507
  10  0.761651
  11  4.64065e-05
  12  1.55835
  13  1.53009e-05
  14  13.8598
  15  13.6091
  16  7.62414e-07
  17  3.69895e-05
  18  8.80799e-05
  19  9.62184
  20  6.066e-06
  21  0.000130603
  22  2.96967
  23  27.4495
  24  0.220338
  25  0.111119
Done.

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

Extracting fit parameters...

4FGL J2243.9+2021
   Spectrum: LogParabola
288         norm:  6.226e-01  1.558e+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:  9.709e-01  1.111e-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.282e+00  2.203e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/448201/likelihoodResults_354931201_355190401_4FGL_J2243.9+2021_daily_bin446.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) = 8726.62040343
delta logL = 1.08556575405

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8726.6049857
delta logL = 1.10098348352

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .71880       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.8971       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2266       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98100       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=   8726.605     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      226 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .71919        8.0266        .12134E-01    .13767E-02
   2  alpha         2.8970        3.7450        .24095        .10311E-03
   3  Normalizat    1.2266        .53979E-01    .75702E-01    .17303E-04
   4  Prefactor     .98100        .28012E-01    .46029E-01    .50336E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.719191
  alpha      = 2.89697
  Normalizat = 1.22662
  Prefactor  = 0.981003
 **********
 **   18 **HESSE 
 **********

 FCN=   8726.605     FROM HESSE     STATUS=OK            35 CALLS      261 TOTAL
                     EDM=   .18E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .71919        1.6164        .58449E-03   -1.5538    
   2  alpha         2.8970        1.1528        .11869E-01    .15946    
   3  Normalizat    1.2266        .25450        .33504E-03   -.85784    
   4  Prefactor     .98100        .13357        .19604E-03   -.93365    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.84569e-11
Minuit parameter uncertainties:
  1  1.61649
  2  1.19941
  3  0.25476
  4  0.133618
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/448201': 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) = 8726.60498556
delta logL = 1.10098362539

Extracting fit parameters...

4FGL J2243.9+2021
   Spectrum: LogParabola
288         norm:  7.192e-01  1.616e+00  1.000e-04  1.000e+04 ( 1.000e-12)
289        alpha:  2.897e+00  1.199e+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.810e-01  1.336e-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.227e+00  2.548e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.49
Ra Dec: 340.990 20.357
Photon Index (Free Index): 2.90 +/- 1.20
Photon Flux (Free Index): 6.67e-08 +/- 5.67e-08
Energy Flux (Free Index): 1.58e-05 +/- 1.30e-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/448201/cmap_HighResolution_354931201_355190401_4FGL_J2243.9+2021_daily_bin446.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.69e-05', comment='SUCCESS', energy_flux2='1.58e-05', dlogl='1.10e+00', photon_flux2='6.67e-08', job_status='DONE', time_completed='2021-09-28 19:25:47.389295', photon_index_error2='1.20', photon_index2='2.90', ts='0.26', fit_tolerance='1e-08', GAL='0.97', photon_index_error='0.00', photon_flux_upper_limit='5.16e-08', energy_flux_error2='1.30e-05', EG='1.28', time_epoch_completed='1632882347.39', return_code='0', job_id='448201', GAL2='0.98', EG2='1.23', return_code2='0', photon_flux_error2='5.67e-08', ts2='2.49', photon_index='1.72' WHERE bin_id='446' AND source_name='4FGL J2243.9+2021' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 19:25:47 PDT 2021


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

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2243.9+2021_daily_bin446 340.99 20.3565 354931201 355190401 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 :                                   776.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             329.66 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   902 sec.
    Turnaround time :                            904 sec.

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

