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


Performing analysis on: 4FGL_J2243.9+2021_daily_bin694
RA = 340.99, Dec = 20.3565
tmin = 419212801, tmax = 419472001
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='449563', job_status='RUN', time_executed='2021-09-28 19:17:31.393341', time_epoch_executed='1632881851.39' WHERE source_name='4FGL J2243.9+2021' and cadence='daily' and bin_id='694'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/449563

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/449563/ft1_4FGL_J2243.9+2021_daily_bin694.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/449563/ft2_4FGL_J2243.9+2021_daily_bin694.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/449563/ft1_4FGL_J2243.9+2021_daily_bin694.fits outfile=/scratch/kocevski/449563/ft1_filteredMKT_4FGL_J2243.9+2021_daily_bin694.fits ra=340.99 dec=20.3565 rad=12.0 tmin=419212801.0 tmax=419472001.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.40
user 5.14
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/449563/ft1_filtered_4FGL_J2243.9+2021_daily_bin694.fits" evtable="EVENTS" scfile=/scratch/kocevski/449563/ft2_4FGL_J2243.9+2021_daily_bin694.fits sctable="SC_DATA" outfile=/scratch/kocevski/449563/ltcube_419212801_419472001_4FGL_J2243.9+2021_daily_bin694.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/449563/ft2_4FGL_J2243.9+2021_daily_bin694.fits
.....................!
real 12.11
user 11.72
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/449563/ft1_filtered_4FGL_J2243.9+2021_daily_bin694.fits evtable="EVENTS" scfile=/scratch/kocevski/449563/ft2_4FGL_J2243.9+2021_daily_bin694.fits sctable="SC_DATA" expcube=/scratch/kocevski/449563/ltcube_419212801_419472001_4FGL_J2243.9+2021_daily_bin694.fits outfile=/scratch/kocevski/449563/expmap_419212801_419472001_4FGL_J2243.9+2021_daily_bin694.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/449563/ltcube_419212801_419472001_4FGL_J2243.9+2021_daily_bin694.fits
.....................!
real 191.82
user 186.30
sys 5.12

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/449563/ft1_filtered_4FGL_J2243.9+2021_daily_bin694.fits scfile=/scratch/kocevski/449563/ft2_4FGL_J2243.9+2021_daily_bin694.fits outfile=/scratch/kocevski/449563/cmap_419212801_419472001_4FGL_J2243.9+2021_daily_bin694.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.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/449563/ft1_filtered_4FGL_J2243.9+2021_daily_bin694.fits scfile=/scratch/kocevski/449563/ft2_4FGL_J2243.9+2021_daily_bin694.fits outfile=/scratch/kocevski/449563/cmap_HighResolution_419212801_419472001_4FGL_J2243.9+2021_daily_bin694.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/449563/ft1_filtered_4FGL_J2243.9+2021_daily_bin694.fits evtable="EVENTS" scfile=/scratch/kocevski/449563/ft2_4FGL_J2243.9+2021_daily_bin694.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/449563/Model_4FGL_J2243.9+2021_daily_bin694.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/449563/ft1_filtered_4FGL_J2243.9+2021_daily_bin694.fits....................!
real 57.28
user 55.85
sys 1.27

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    86.678       1.0000         .10000E-03   10000.    
     2 'norm      '    2.1522       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    19.762       1.0000         .10000E-03   10000.    
     5 'Prefactor '    54.073       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.0672       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .62009       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    108.67       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.7963       1.0000         .10000E-03   10000.    
    16 'Prefactor '    4.7688       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .31056       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    48.363       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    21.501       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .80793       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .90647       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=   4682.707     FROM MIGRAD    STATUS=CONVERGED    581 CALLS     2893 TOTAL
                     EDM=   .12E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     86.686        91.942       -.88769E-06   -.41179E-05
   2  norm          2.1523        1.6191       -.57817E-07   -.29763E-04
   3  Prefactor     .10000E-03    8.6869       -.42654E-06** at limit **
   4  norm          19.760        11.204       -.28079E-06   -.14115E-04
   5  Prefactor     54.077        37.764       -.14649E-06   -.14365E-04
   6  Prefactor     .10000E-03    50.476        .95094E-06** at limit **
   7  Prefactor     .10000E-03    11.676       -.54547E-06** at limit **
   8  Prefactor     1.0671        .48936       -.35219E-08   -.73268E-04
   9  Prefactor     .10000E-03    7.9107       -.13429E-06** at limit **
  10  norm          .62008        .85601       -.23762E-06   -.57395E-03
  11  Prefactor     .10000E-03    18.389       -.49597E-06** at limit **
  12  norm          .10000E-03    .85270        .26852E-06** at limit **
  13  Prefactor     108.52        85.203        .10475E-04    .70271E-06
  14  Prefactor     .10000E-03    13.021        .15999E-05** at limit **
  15  Prefactor     2.8724        116.22        .11923E-04   -.10167E-04
  16  Prefactor     4.7692        .61400       -.52031E-06   -.14095E-03
  17  Prefactor     .25771        118.64        .39991E-04    .61375E-05
  18  Prefactor     .10000E-03    7.4177       -.12142E-05** at limit **
  19  Prefactor     .10000E-03    9.8933       -.10310E-06** at limit **
  20  Prefactor     48.345        36.969        .41774E-10    .30477E-04
  21  Prefactor     .10000E-03    12.368        .21002E-07** at limit **
  22  Prefactor     21.498        15.780        .34095E-06   -.12912E-04
  23  Prefactor     .10000E-03    24.579       -.75615E-06** at limit **
  24  Normalizat    .80802        .37499        .47198E-05   -.21404E-04
  25  Prefactor     .90649        .17860       -.94803E-06    .15396E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 86.6861
  norm       = 2.15225
  Prefactor  = 0.0001
  norm       = 19.7604
  Prefactor  = 54.0765
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.06706
  Prefactor  = 0.0001
  norm       = 0.620082
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 108.516
  Prefactor  = 0.0001
  Prefactor  = 2.87241
  Prefactor  = 4.76924
  Prefactor  = 0.257709
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 48.3453
  Prefactor  = 0.0001
  Prefactor  = 21.4982
  Prefactor  = 0.0001
  Normalizat = 0.808024
  Prefactor  = 0.906493
 **********
 **   18 **HESSE 
 **********

 FCN=   4682.707     FROM HESSE     STATUS=OK           427 CALLS     3320 TOTAL
                     EDM=   .31E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     86.686        92.037        .43152E-04   -1.3843    
   2  norm          2.1523        1.6201        .72948E-04   -1.5415    
   3  Prefactor     .10000E-03    8.6945        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          19.760        11.198        .90098E-04   -1.4819    
   5  Prefactor     54.077        37.859        .54546E-04   -1.4236    
   6  Prefactor     .10000E-03    50.489        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    11.709        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     1.0671        .48691        .28879E-04   -1.5501    
   9  Prefactor     .10000E-03    7.9361        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .62008        .81097        .72304E-03   -1.5550    
  11  Prefactor     .10000E-03    18.426        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    .85415        .61716E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     108.52        85.088        .19291E-03   -1.3621    
  14  Prefactor     .10000E-03    13.090        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     2.8724        115.67        .24330E-03   -1.5369    
  16  Prefactor     4.7692        .61288        .16599E-04   -1.5271    
  17  Prefactor     .25771        114.76        .41893E-02   -1.5606    
  18  Prefactor     .10000E-03    7.4283        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    9.9076        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     48.345        36.982        .57661E-04   -1.4316    
  21  Prefactor     .10000E-03    12.372        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     21.498        15.769        .86380E-04   -1.4780    
  23  Prefactor     .10000E-03    24.643        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .80802        .42109        .47052E-03   -.99772    
  25  Prefactor     .90649        .20510        .22538E-03   -.95915    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.05742e-10
Minuit parameter uncertainties:
  1  92.1893
  2  1.62009
  3  1.91348e-05
  4  11.1993
  5  37.8762
  6  3.09515e-05
  7  4.06866e-05
  8  0.486908
  9  2.77146e-06
  10  0.810987
  11  4.33577e-05
  12  1.38156e-06
  13  85.1838
  14  4.47184e-05
  15  36.5313
  16  0.612881
  17  10.8955
  18  4.30072e-05
  19  1.00756e-05
  20  36.9999
  21  1.17335e-05
  22  15.7719
  23  5.13005e-05
  24  0.422804
  25  0.205279
Done.

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

Extracting fit parameters...

4FGL J2243.9+2021
   Spectrum: LogParabola
288         norm:  1.000e-04  1.382e-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.065e-01  2.053e-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:  8.080e-01  4.228e-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: 5.49e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.12e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/449563/likelihoodResults_419212801_419472001_4FGL_J2243.9+2021_daily_bin694.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) = 4682.7072085
delta logL = -4.1288567445e-06

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4682.53173888
delta logL = 0.175465487153

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .73181E-02   1.0000         .10000E-03   10000.    
     2 'alpha     '    5.0000       1.0000          .0000       5.0000    
     3 'Normalizat'    .71352       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93731       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=   4682.532     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      293 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .73226E-02    .53767        .21256E-02    .85679E-02
   2  alpha         5.0000        4.2900        .46342    ** at limit **
   3  Normalizat    .71333        .12184        .11222        .16243E-04
   4  Prefactor     .93737        .55848E-01    .45479E-01   -.66449E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.00732263
  alpha      = 5
  Normalizat = 0.713329
  Prefactor  = 0.937371
 **********
 **   18 **HESSE 
 **********

 FCN=   4682.532     FROM HESSE     STATUS=OK            35 CALLS      328 TOTAL
                     EDM=   .58E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .73226E-02    .13644E-01    .92525E-05   -1.5691    
   2  alpha         5.0000        3.6994        .50000        1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .71333        .43614        .49770E-03   -1.0337    
   4  Prefactor     .93737        .21189        .22194E-03   -.94847    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.78293e-12
Minuit parameter uncertainties:
  1  0.0136438
  2  3.35925e-06
  3  0.438287
  4  0.212076
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/449563': 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) = 4682.53173863
delta logL = 0.175465744685

Extracting fit parameters...

4FGL J2243.9+2021
   Spectrum: LogParabola
288         norm:  7.323e-03  1.364e-02  1.000e-04  1.000e+04 ( 1.000e-12)
289        alpha:  5.000e+00  3.359e-06  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.374e-01  2.121e-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:  7.133e-01  4.383e-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/449563/cmap_HighResolution_419212801_419472001_4FGL_J2243.9+2021_daily_bin694.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.12e-05', job_status='DONE', photon_flux_upper_limit='5.49e-08', time_completed='2021-09-28 19:27:31.841656', job_id='449563', GAL2='0.94', fit_tolerance='1e-08', EG2='0.71', EG='0.81', time_epoch_completed='1632882451.84', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.91', dlogl='1.75e-01', ts2='0.40', photon_index_error='0.00', photon_index='1.72' WHERE bin_id='694' AND source_name='4FGL J2243.9+2021' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 19:27:31 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0034>
Subject: Job 449563: <4FGL_J2243.9+2021_daily_bin694> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2243.9+2021_daily_bin694 340.99 20.3565 419212801 419472001 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 :                                   599.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             293.74 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   729 sec.
    Turnaround time :                            730 sec.

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

