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


Performing analysis on: 4FGL_J2243.9+2021_daily_bin1497
RA = 340.99, Dec = 20.3565
tmin = 627350401, tmax = 627609601
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='453758', job_status='RUN', time_executed='2021-09-28 19:30:29.827912', time_epoch_executed='1632882629.83' WHERE source_name='4FGL J2243.9+2021' and cadence='daily' and bin_id='1497'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/453758

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/453758/ft1_4FGL_J2243.9+2021_daily_bin1497.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/453758/ft2_4FGL_J2243.9+2021_daily_bin1497.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/453758/ft1_4FGL_J2243.9+2021_daily_bin1497.fits outfile=/scratch/kocevski/453758/ft1_filteredMKT_4FGL_J2243.9+2021_daily_bin1497.fits ra=340.99 dec=20.3565 rad=12.0 tmin=627350401.0 tmax=627609601.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 2.74
user 2.53
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/453758/ft1_filtered_4FGL_J2243.9+2021_daily_bin1497.fits" evtable="EVENTS" scfile=/scratch/kocevski/453758/ft2_4FGL_J2243.9+2021_daily_bin1497.fits sctable="SC_DATA" outfile=/scratch/kocevski/453758/ltcube_627350401_627609601_4FGL_J2243.9+2021_daily_bin1497.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/453758/ft2_4FGL_J2243.9+2021_daily_bin1497.fits
.....................!
real 14.91
user 14.52
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/453758/ft1_filtered_4FGL_J2243.9+2021_daily_bin1497.fits evtable="EVENTS" scfile=/scratch/kocevski/453758/ft2_4FGL_J2243.9+2021_daily_bin1497.fits sctable="SC_DATA" expcube=/scratch/kocevski/453758/ltcube_627350401_627609601_4FGL_J2243.9+2021_daily_bin1497.fits outfile=/scratch/kocevski/453758/expmap_627350401_627609601_4FGL_J2243.9+2021_daily_bin1497.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/453758/ltcube_627350401_627609601_4FGL_J2243.9+2021_daily_bin1497.fits
.....................!
real 191.47
user 185.90
sys 5.08

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/453758/ft1_filtered_4FGL_J2243.9+2021_daily_bin1497.fits scfile=/scratch/kocevski/453758/ft2_4FGL_J2243.9+2021_daily_bin1497.fits outfile=/scratch/kocevski/453758/cmap_627350401_627609601_4FGL_J2243.9+2021_daily_bin1497.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.52
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/453758/ft1_filtered_4FGL_J2243.9+2021_daily_bin1497.fits scfile=/scratch/kocevski/453758/ft2_4FGL_J2243.9+2021_daily_bin1497.fits outfile=/scratch/kocevski/453758/cmap_HighResolution_627350401_627609601_4FGL_J2243.9+2021_daily_bin1497.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.53
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    17.395       1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .76002       1.0000         .10000E-03   10000.    
     5 'Prefactor '    12.681       1.0000         .10000E-03   10000.    
     6 'Prefactor '    37.502       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .70721E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .23236       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    1.6371       1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.7918       1.0000         .10000E-03   10000.    
    12 'norm      '    3.6811       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10082E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .82107       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .82321       1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.4662       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .13712E-01   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .72943       1.0000         .10000E-03   10000.    
    23 'Prefactor '    1.5311       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.0219       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .91047       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=   9024.695     FROM MIGRAD    STATUS=CONVERGED    621 CALLS     3033 TOTAL
                     EDM=   .20E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     17.561        40.891        .12438E-05    .46790E-04
   2  norm          .10000E-03    .23276       -.22561E-07** at limit **
   3  Prefactor     .10000E-03    5.9093        .13520E-06** at limit **
   4  norm          .75996        2.0338        .15965E-05    .10655E-02
   5  Prefactor     12.684        10.981        .13727E-06   -.65724E-05
   6  Prefactor     37.528        60.150        .17359E-05    .10631E-03
   7  Prefactor     .11796E-03    9.5767        .36262E-05** at limit **
   8  Prefactor     .23242        .14813        .35227E-07    .71171E-03
   9  Prefactor     .10000E-03    4.0518       -.28653E-07** at limit **
  10  norm          1.6375        .87392        .42541E-07    .72152E-04
  11  Prefactor     2.8004        10.950        .14308E-05    .13452E-03
  12  norm          3.6812        1.6044        .72575E-09   -.31034E-03
  13  Prefactor     .10000E-03    14.971       -.11139E-07** at limit **
  14  Prefactor     .10000E-03    3.3608       -.19377E-07** at limit **
  15  Prefactor     .10000E-03    5.6741        .52474E-08** at limit **
  16  Prefactor     .82107        .16564       -.15565E-08   -.30748E-02
  17  Prefactor     .10000E-03    8.0759       -.50837E-07** at limit **
  18  Prefactor     .82554        3.2903        .71509E-06   -.16689E-03
  19  Prefactor     2.4662        4.5038        .81404E-06    .65470E-03
  20  Prefactor     .10000E-03    107.31       -.11537E-05** at limit **
  21  Prefactor     .10000E-03    11.193       -.42073E-07** at limit **
  22  Prefactor     .72844        4.5041       -.86026E-06   -.59902E-04
  23  Prefactor     1.5316        44.236        .18210E-05    .72419E-05
  24  Normalizat    1.0216        .18944       -.88542E-06   -.62457E-03
  25  Prefactor     .91049        .10057       -.34666E-06   -.90275E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 17.5613
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.759959
  Prefactor  = 12.6837
  Prefactor  = 37.5282
  Prefactor  = 0.00011796
  Prefactor  = 0.23242
  Prefactor  = 0.0001
  norm       = 1.63746
  Prefactor  = 2.80042
  norm       = 3.68119
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.82107
  Prefactor  = 0.0001
  Prefactor  = 0.82554
  Prefactor  = 2.46618
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.72844
  Prefactor  = 1.53161
  Normalizat = 1.02161
  Prefactor  = 0.91049
 **********
 **   18 **HESSE 
 **********

 FCN=   9024.695     FROM HESSE     STATUS=OK           445 CALLS     3478 TOTAL
                     EDM=   .85E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     17.561        41.049        .96031E-04   -1.4870    
   2  norm          .10000E-03    .41328        .88786E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    5.9333        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .75996        2.0617        .22198E-03   -1.5534    
   5  Prefactor     12.684        10.948        .11249E-03   -1.4996    
   6  Prefactor     37.528        60.907        .65447E-04   -1.4482    
   7  Prefactor     .11796E-03    6.5285        .64357E-01   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .23242        .14334        .27503E-03   -1.5612    
   9  Prefactor     .10000E-03    4.0923        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          1.6375        .87181        .61667E-04   -1.5452    
  11  Prefactor     2.8004        10.925        .24351E-03   -1.5373    
  12  norm          3.6812        1.6055        .77275E-04   -1.5324    
  13  Prefactor     .10000E-03    15.009        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    3.3680        .17005E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    5.6774        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .82107        .16516        .16355E-04   -1.5527    
  17  Prefactor     .10000E-03    8.2256        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .82554        11.049        .31843E-02   -1.5526    
  19  Prefactor     2.4662        4.5302        .26040E-03   -1.5394    
  20  Prefactor     .10000E-03    111.19        .36366E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    11.219        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .72844        8.5497        .35075E-02   -1.5537    
  23  Prefactor     1.5316        42.495        .34491E-03   -1.5460    
  24  Normalizat    1.0216        .22656        .32064E-03   -.92310    
  25  Prefactor     .91049        .12075        .18420E-03   -.95776    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.53192e-08
Minuit parameter uncertainties:
  1  41.1147
  2  1.034e-06
  3  9.03167e-06
  4  2.06191
  5  10.9497
  6  61.0079
  7  0.0216589
  8  0.143339
  9  1.62296e-06
  10  0.871817
  11  10.9332
  12  1.60557
  13  2.81055e-06
  14  7.72792e-07
  15  2.42098e-06
  16  0.165159
  17  2.13229e-06
  18  6.04124
  19  4.53087
  20  0.000332984
  21  3.81577e-06
  22  4.99173
  23  16.1473
  24  0.226774
  25  0.120785
Done.

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

Extracting fit parameters...

4FGL J2243.9+2021
   Spectrum: LogParabola
288         norm:  3.681e+00  1.606e+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.105e-01  1.208e-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.022e+00  2.268e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 29.11
Ra Dec: 340.990 20.357
Photon Index (Fixed Index): 1.72 +/- 0.00
Photon Flux (Fixed Index): 4.16e-08 +/- 1.81e-08
Energy Flux (Fixed Index): 5.39e-05 +/- 2.35e-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) = 9024.38797823
delta logL = 0.306726990979

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9024.36338128
delta logL = 0.33132394222

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.5618       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.4356       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0297       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91016       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=   9024.363     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      205 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.5619        1.7413        .53538E-02   -.60014E-02
   2  alpha         1.4356        .32332        .30325       -.58199E-05
   3  Normalizat    1.0297        .18194        .72226E-01    .99862E-04
   4  Prefactor     .91019        .99606E-01    .45134E-01   -.18779E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 3.56188
  alpha      = 1.43564
  Normalizat = 1.02966
  Prefactor  = 0.910188
 **********
 **   18 **HESSE 
 **********

 FCN=   9024.363     FROM HESSE     STATUS=OK            29 CALLS      234 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.5619        1.6868        .79322E-04   -1.5330    
   2  alpha         1.4356        .34070        .12271E-01   -.43979    
   3  Normalizat    1.0297        .21734        .31959E-03   -.92043    
   4  Prefactor     .91019        .11941        .18429E-03   -.95786    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.84013e-09
Minuit parameter uncertainties:
  1  1.68679
  2  0.342
  3  0.217526
  4  0.119445
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/453758': 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) = 9024.36338123
delta logL = 0.331323996486

Extracting fit parameters...

4FGL J2243.9+2021
   Spectrum: LogParabola
288         norm:  3.562e+00  1.687e+00  1.000e-04  1.000e+04 ( 1.000e-12)
289        alpha:  1.436e+00  3.420e-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:  9.102e-01  1.194e-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.030e+00  2.175e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 29.77
Ra Dec: 340.990 20.357
Photon Index (Free Index): 1.44 +/- 0.34
Photon Flux (Free Index): 3.03e-08 +/- 1.82e-08
Energy Flux (Free Index): 8.20e-05 +/- 5.80e-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/453758/cmap_HighResolution_627350401_627609601_4FGL_J2243.9+2021_daily_bin1497.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.16e-08', energy_flux2='8.20e-05', photon_flux_error='1.81e-08', dlogl='3.31e-01', energy_flux='5.39e-05', photon_flux2='3.03e-08', job_status='DONE', time_completed='2021-09-28 19:43:28.930923', photon_index_error2='0.34', photon_index2='1.44', ts='29.11', fit_tolerance='1e-08', GAL='0.91', photon_index_error='0.00', energy_flux_error2='5.80e-05', EG='1.02', time_epoch_completed='1632883408.93', return_code='0', job_id='453758', GAL2='0.91', EG2='1.03', return_code2='0', energy_flux_error='2.35e-05', photon_flux_error2='1.82e-08', ts2='29.77', photon_index='1.72' WHERE bin_id='1497' AND source_name='4FGL J2243.9+2021' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 19:43:28 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0032>
Subject: Job 453758: <4FGL_J2243.9+2021_daily_bin1497> in cluster <slac> Done

Job <4FGL_J2243.9+2021_daily_bin1497> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Tue Sep 28 19:30:18 2021
Job was executed on host(s) <bullet0032>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 19:30:20 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:30:20 2021
Terminated at Tue Sep 28 19:43:29 2021
Results reported at Tue Sep 28 19:43:29 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2243.9+2021_daily_bin1497 340.99 20.3565 627350401 627609601 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 :                                   761.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             353.11 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   789 sec.
    Turnaround time :                            791 sec.

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

