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


Performing analysis on: 4FGL_J2243.9+2021_daily_bin328
RA = 340.99, Dec = 20.3565
tmin = 324345601, tmax = 324604801
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='448011', job_status='RUN', time_executed='2021-09-28 19:13:45.629473', time_epoch_executed='1632881625.63' WHERE source_name='4FGL J2243.9+2021' and cadence='daily' and bin_id='328'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/448011

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/448011/ft1_4FGL_J2243.9+2021_daily_bin328.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/448011/ft2_4FGL_J2243.9+2021_daily_bin328.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/448011/ft1_4FGL_J2243.9+2021_daily_bin328.fits outfile=/scratch/kocevski/448011/ft1_filteredMKT_4FGL_J2243.9+2021_daily_bin328.fits ra=340.99 dec=20.3565 rad=12.0 tmin=324345601.0 tmax=324604801.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 14.11
user 13.66
sys 0.42

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/448011/ft1_filtered_4FGL_J2243.9+2021_daily_bin328.fits evtable="EVENTS" scfile=/scratch/kocevski/448011/ft2_4FGL_J2243.9+2021_daily_bin328.fits sctable="SC_DATA" expcube=/scratch/kocevski/448011/ltcube_324345601_324604801_4FGL_J2243.9+2021_daily_bin328.fits outfile=/scratch/kocevski/448011/expmap_324345601_324604801_4FGL_J2243.9+2021_daily_bin328.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/448011/ltcube_324345601_324604801_4FGL_J2243.9+2021_daily_bin328.fits
.....................!
real 191.34
user 185.24
sys 5.76

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/448011/ft1_filtered_4FGL_J2243.9+2021_daily_bin328.fits scfile=/scratch/kocevski/448011/ft2_4FGL_J2243.9+2021_daily_bin328.fits outfile=/scratch/kocevski/448011/cmap_324345601_324604801_4FGL_J2243.9+2021_daily_bin328.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.69
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/448011/ft1_filtered_4FGL_J2243.9+2021_daily_bin328.fits scfile=/scratch/kocevski/448011/ft2_4FGL_J2243.9+2021_daily_bin328.fits outfile=/scratch/kocevski/448011/cmap_HighResolution_324345601_324604801_4FGL_J2243.9+2021_daily_bin328.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/448011/ft1_filtered_4FGL_J2243.9+2021_daily_bin328.fits evtable="EVENTS" scfile=/scratch/kocevski/448011/ft2_4FGL_J2243.9+2021_daily_bin328.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/448011/Model_4FGL_J2243.9+2021_daily_bin328.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/448011/ft1_filtered_4FGL_J2243.9+2021_daily_bin328.fits.....................!
real 59.17
user 57.89
sys 1.16

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    42.407       1.0000         .10000E-03   10000.    
     2 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    10.532       1.0000         .10000E-03   10000.    
     4 'norm      '    3.0599       1.0000         .10000E-03   10000.    
     5 'Prefactor '    24.775       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10155E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10057E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .70353E-01   1.0000         .10000E-03   10000.    
     9 'Prefactor '    10.753       1.0000         .10000E-03   10000.    
    10 'norm      '    8.6723       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    6.2833       1.0000         .10000E-03   10000.    
    15 'Prefactor '    11.697       1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.4744       1.0000         .10000E-03   10000.    
    17 'Prefactor '    16.276       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10114E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    1.4969       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .11016E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.7890       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .66954       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=   4781.759     FROM MIGRAD    STATUS=CONVERGED    561 CALLS     2848 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     42.389        83.345       -.25554E-04    .85084E-05
   2  norm          .10000E-03    .62287        .52871E-07** at limit **
   3  Prefactor     10.516        30.470       -.18606E-04    .48651E-05
   4  norm          3.0598        4.0098       -.68852E-08    .29797E-04
   5  Prefactor     24.769        21.504       -.13657E-05    .33582E-04
   6  Prefactor     .10000E-03    68.589       -.12874E-04** at limit **
   7  Prefactor     .10000E-03    18.037        .52382E-06** at limit **
   8  Prefactor     .70613E-01    .19871       -.27200E-06   -.38501E-02
   9  Prefactor     10.751        11.940       -.20423E-06    .24118E-04
  10  norm          8.6721        2.2875       -.81777E-07    .16399E-03
  11  Prefactor     .10000E-03    15.354        .28103E-06** at limit **
  12  norm          .10000E-03    1.0548       -.26643E-06** at limit **
  13  Prefactor     .10000E-03    38.462       -.10161E-04** at limit **
  14  Prefactor     6.2819        13.323       -.86973E-06   -.22403E-04
  15  Prefactor     11.689        30.829       -.88038E-05    .41992E-05
  16  Prefactor     1.4743        .37131       -.25608E-07    .97612E-03
  17  Prefactor     16.277        13.939       -.62342E-06    .15313E-04
  18  Prefactor     .10000E-03    10.721       -.25602E-06** at limit **
  19  Prefactor     .10000E-03    13.698       -.43375E-05** at limit **
  20  Prefactor     .10000E-03    12.485        .26245E-05** at limit **
  21  Prefactor     .10000E-03    16.268        .27448E-05** at limit **
  22  Prefactor     1.4807        14.368       -.56205E-05   -.57192E-03
  23  Prefactor     .10000E-03    50.915        .25043E-04** at limit **
  24  Normalizat    1.7890        .32800        .31145E-05   -.70194E-05
  25  Prefactor     .66955        .16061        .25577E-05    .36697E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 42.3888
  norm       = 0.0001
  Prefactor  = 10.5162
  norm       = 3.05979
  Prefactor  = 24.7686
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0706132
  Prefactor  = 10.7508
  norm       = 8.67211
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.28193
  Prefactor  = 11.6894
  Prefactor  = 1.47429
  Prefactor  = 16.2767
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.48073
  Prefactor  = 0.0001
  Normalizat = 1.78901
  Prefactor  = 0.669554
 **********
 **   18 **HESSE 
 **********

 FCN=   4781.759     FROM HESSE     STATUS=OK           427 CALLS     3275 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     42.389        83.118        .61559E-04   -1.4405    
   2  norm          .10000E-03    .63304        .53278E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     10.516        30.479        .12346E-03   -1.5059    
   4  norm          3.0598        4.0033        .15457E-03   -1.5358    
   5  Prefactor     24.769        21.394        .80479E-04   -1.4712    
   6  Prefactor     .10000E-03    68.431        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    18.155        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .70613E-01    .18258        .49656E-03   -1.5655    
   9  Prefactor     10.751        11.908        .12218E-03   -1.5052    
  10  norm          8.6721        2.2916        .51060E-04   -1.5119    
  11  Prefactor     .10000E-03    15.378        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    1.0595        .69331E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    38.403        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     6.2819        13.311        .16014E-03   -1.5207    
  15  Prefactor     11.689        30.876        .11713E-03   -1.5024    
  16  Prefactor     1.4743        .37438        .19289E-04   -1.5465    
  17  Prefactor     16.277        13.944        .99277E-04   -1.4901    
  18  Prefactor     .10000E-03    10.914        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    13.759        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    12.490        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    16.293        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     1.4807        15.181        .35014E-03   -1.5465    
  23  Prefactor     .10000E-03    51.135        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.7890        .39123        .31635E-03   -.69951    
  25  Prefactor     .66955        .19000        .24318E-03   -1.0473    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.6114e-09
Minuit parameter uncertainties:
  1  83.3464
  2  1.3488e-06
  3  30.524
  4  4.00369
  5  21.4003
  6  0.000106337
  7  8.49217e-05
  8  0.182579
  9  11.9111
  10  2.29162
  11  2.22697e-05
  12  2.08123e-06
  13  1.90012e-05
  14  13.3177
  15  30.918
  16  0.374381
  17  13.9465
  18  3.01525e-05
  19  1.15127e-05
  20  3.4591e-05
  21  3.84437e-05
  22  9.48504
  23  0.000110145
  24  0.391916
  25  0.190184
Done.

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

Extracting fit parameters...

4FGL J2243.9+2021
   Spectrum: LogParabola
288         norm:  1.000e-04  2.081e-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:  6.696e-01  1.902e-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.789e+00  3.919e-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: 6.11e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.93e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/448011/likelihoodResults_324345601_324604801_4FGL_J2243.9+2021_daily_bin328.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) = 4781.76313024
delta logL = -0.00414156975967

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4781.75898901
delta logL = -3.38153768098e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.7215       1.0000          .0000       5.0000    
     3 'Normalizat'    1.7887       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .66972       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4781.674     FROM MIGRAD    STATUS=CONVERGED    123 CALLS      262 TOTAL
                     EDM=   .32E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .40207E-02    .84107E-02    .22685E-02   -.12910E-01
   2  alpha         5.0000        3.7108        .17604    ** at limit **
   3  Normalizat    1.7297        .37719        .31635E-03   -.24545E-04
   4  Prefactor     .68922        .18926        .24318E-03   -.91819E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.00402067
  alpha      = 5
  Normalizat = 1.72967
  Prefactor  = 0.68922
 **********
 **   18 **HESSE 
 **********

 FCN=   4781.674     FROM HESSE     STATUS=OK            27 CALLS      289 TOTAL
                     EDM=   .36E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .40207E-02    .10092E-01    .90662E-04   -1.5720    
   2  alpha         5.0000        3.7306        .70417E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    1.7297        .39839        .12654E-04   -.71514    
   4  Prefactor     .68922        .19404        .97270E-05   -1.0395    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.56101e-11
Minuit parameter uncertainties:
  1  0.0100923
  2  7.04832e-06
  3  0.399135
  4  0.194226
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/448011': 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) = 4781.67414268
delta logL = 0.0848459935642

Extracting fit parameters...

4FGL J2243.9+2021
   Spectrum: LogParabola
288         norm:  4.021e-03  1.009e-02  1.000e-04  1.000e+04 ( 1.000e-12)
289        alpha:  5.000e+00  7.048e-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:  6.892e-01  1.942e-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.730e+00  3.991e-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/448011/cmap_HighResolution_324345601_324604801_4FGL_J2243.9+2021_daily_bin328.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.93e-05', job_status='DONE', photon_flux_upper_limit='6.11e-08', time_completed='2021-09-28 19:24:28.842081', job_id='448011', GAL2='0.69', fit_tolerance='1e-08', EG2='1.73', EG='1.79', time_epoch_completed='1632882268.84', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.67', dlogl='8.48e-02', ts2='0.19', photon_index_error='0.00', photon_index='1.72' WHERE bin_id='328' AND source_name='4FGL J2243.9+2021' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 19:24:28 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0265>
Subject: Job 448011: <4FGL_J2243.9+2021_daily_bin328> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2243.9+2021_daily_bin328 340.99 20.3565 324345601 324604801 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 :                                   640.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             222.73 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   839 sec.
    Turnaround time :                            841 sec.

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

