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


Performing analysis on: 4FGL_J2243.9+2021_daily_bin457
RA = 340.99, Dec = 20.3565
tmin = 357782401, tmax = 358041601
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='448220', job_status='RUN', time_executed='2021-09-28 19:10:57.445842', time_epoch_executed='1632881457.45' WHERE source_name='4FGL J2243.9+2021' and cadence='daily' and bin_id='457'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/448220

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/448220/ft1_4FGL_J2243.9+2021_daily_bin457.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/448220/ft2_4FGL_J2243.9+2021_daily_bin457.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/448220/ft1_4FGL_J2243.9+2021_daily_bin457.fits outfile=/scratch/kocevski/448220/ft1_filteredMKT_4FGL_J2243.9+2021_daily_bin457.fits ra=340.99 dec=20.3565 rad=12.0 tmin=357782401.0 tmax=358041601.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.52
user 3.28
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/448220/ft2_4FGL_J2243.9+2021_daily_bin457.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/448220/ft1_filteredMKT_4FGL_J2243.9+2021_daily_bin457.fits evtable="EVENTS" outfile="/scratch/kocevski/448220/ft1_filtered_4FGL_J2243.9+2021_daily_bin457.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/448220/ft1_filtered_4FGL_J2243.9+2021_daily_bin457.fits" evtable="EVENTS" scfile=/scratch/kocevski/448220/ft2_4FGL_J2243.9+2021_daily_bin457.fits sctable="SC_DATA" outfile=/scratch/kocevski/448220/ltcube_357782401_358041601_4FGL_J2243.9+2021_daily_bin457.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/448220/ft2_4FGL_J2243.9+2021_daily_bin457.fits
.....................!
real 15.04
user 14.69
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/448220/ft1_filtered_4FGL_J2243.9+2021_daily_bin457.fits evtable="EVENTS" scfile=/scratch/kocevski/448220/ft2_4FGL_J2243.9+2021_daily_bin457.fits sctable="SC_DATA" expcube=/scratch/kocevski/448220/ltcube_357782401_358041601_4FGL_J2243.9+2021_daily_bin457.fits outfile=/scratch/kocevski/448220/expmap_357782401_358041601_4FGL_J2243.9+2021_daily_bin457.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/448220/ltcube_357782401_358041601_4FGL_J2243.9+2021_daily_bin457.fits
.....................!
real 193.48
user 187.74
sys 5.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/448220/ft1_filtered_4FGL_J2243.9+2021_daily_bin457.fits scfile=/scratch/kocevski/448220/ft2_4FGL_J2243.9+2021_daily_bin457.fits outfile=/scratch/kocevski/448220/cmap_357782401_358041601_4FGL_J2243.9+2021_daily_bin457.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.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/448220/ft1_filtered_4FGL_J2243.9+2021_daily_bin457.fits scfile=/scratch/kocevski/448220/ft2_4FGL_J2243.9+2021_daily_bin457.fits outfile=/scratch/kocevski/448220/cmap_HighResolution_357782401_358041601_4FGL_J2243.9+2021_daily_bin457.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/448220/ft1_filtered_4FGL_J2243.9+2021_daily_bin457.fits evtable="EVENTS" scfile=/scratch/kocevski/448220/ft2_4FGL_J2243.9+2021_daily_bin457.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/448220/Model_4FGL_J2243.9+2021_daily_bin457.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/448220/ft1_filtered_4FGL_J2243.9+2021_daily_bin457.fits.....................!
real 73.98
user 72.60
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    18.943       1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    10.560       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10110E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .32357       1.0000         .10000E-03   10000.    
     9 'Prefactor '    10.148       1.0000         .10000E-03   10000.    
    10 'norm      '    .34970       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    4.1342       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .12228E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10140E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    14.857       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10903       1.0000         .10000E-03   10000.    
    17 'Prefactor '    13.418       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .58623E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.4799       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    5.3381       1.0000         .10000E-03   10000.    
    23 'Prefactor '    1.4569       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .93680       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .91996       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=   7405.434     FROM MIGRAD    STATUS=CONVERGED    586 CALLS     2521 TOTAL
                     EDM=   .34E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    16.201       -.43949E-05** at limit **
   2  norm          .10000E-03    .25518        .14920E-07** at limit **
   3  Prefactor     18.938        12.393       -.65740E-07   -.26404E-05
   4  norm          .10000E-03    1.2093       -.45948E-08** at limit **
   5  Prefactor     10.565        12.372        .28316E-06    .51812E-05
   6  Prefactor     .10000E-03    41.232        .39381E-05** at limit **
   7  Prefactor     .10000E-03    9.9426        .26217E-06** at limit **
   8  Prefactor     .32352        .18037       -.13715E-07   -.19148E-03
   9  Prefactor     10.148        6.9233        .21640E-07    .10067E-04
  10  norm          .34967        .96449       -.29754E-07   -.76255E-03
  11  Prefactor     .10000E-03    18.271        .84126E-05** at limit **
  12  norm          4.1359        1.9566        .17722E-07    .45561E-03
  13  Prefactor     .10000E-03    75.538       -.32474E-05** at limit **
  14  Prefactor     .10000E-03    22.841       -.57758E-05** at limit **
  15  Prefactor     14.830        16.864        .13680E-05    .38748E-04
  16  Prefactor     .10914        .99441E-01   -.13413E-07   -.56427E-04
  17  Prefactor     13.417        8.7719        .13418E-07    .39570E-04
  18  Prefactor     .10000E-03    3.0103       -.64052E-07** at limit **
  19  Prefactor     2.4874        5.0091        .96513E-06   -.77647E-03
  20  Prefactor     .10000E-03    8.5771       -.40141E-07** at limit **
  21  Prefactor     .10000E-03    8.3416       -.80432E-07** at limit **
  22  Prefactor     5.3390        6.5070       -.96303E-06   -.80202E-04
  23  Prefactor     1.4589        34.391        .18343E-06   -.17766E-04
  24  Normalizat    .93686        .19876        .32458E-06    .32637E-04
  25  Prefactor     .91998        .10670       -.12191E-06    .10774E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 18.9381
  norm       = 0.0001
  Prefactor  = 10.565
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.323516
  Prefactor  = 10.1479
  norm       = 0.349669
  Prefactor  = 0.0001
  norm       = 4.13586
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 14.8299
  Prefactor  = 0.109137
  Prefactor  = 13.417
  Prefactor  = 0.0001
  Prefactor  = 2.48739
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.33904
  Prefactor  = 1.45893
  Normalizat = 0.936864
  Prefactor  = 0.919983
 **********
 **   18 **HESSE 
 **********

 FCN=   7405.434     FROM HESSE     STATUS=OK           431 CALLS     2952 TOTAL
                     EDM=   .38E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    16.239        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    .26155        .84838E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     18.938        12.400        .92023E-04   -1.4837    
   4  norm          .10000E-03    1.2114        .92409E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     10.565        12.346        .12330E-03   -1.5058    
   6  Prefactor     .10000E-03    41.276        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    10.088        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .32352        .17717        .25328E-04   -1.5594    
   9  Prefactor     10.148        6.9224        .12578E-03   -1.5071    
  10  norm          .34967        .98321        .13326E-03   -1.5590    
  11  Prefactor     .10000E-03    18.391        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          4.1359        1.9555        .80228E-04   -1.5301    
  13  Prefactor     .10000E-03    77.619        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    23.347        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     14.830        16.821        .10391E-03   -1.4938    
  16  Prefactor     .10914        .92825E-01    .24435E-03   -1.5642    
  17  Prefactor     13.417        8.7746        .10935E-03   -1.4975    
  18  Prefactor     .10000E-03    6.4865        .28879E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     2.4874        13.356        .12981E-02   -1.5393    
  20  Prefactor     .10000E-03    8.6117        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    8.3601        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     5.3390        6.4509        .17395E-03   -1.5246    
  23  Prefactor     1.4589        33.982        .35665E-03   -1.5466    
  24  Normalizat    .93686        .23738        .31663E-03   -.95177    
  25  Prefactor     .91998        .12737        .17820E-03   -.95446    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.84433e-09
Minuit parameter uncertainties:
  1  6.037e-05
  2  1.06065e-07
  3  12.4016
  4  2.3366e-07
  5  12.3487
  6  8.34127e-05
  7  1.22526e-07
  8  0.177171
  9  6.9229
  10  0.983257
  11  9.70227e-05
  12  1.9555
  13  6.75468e-05
  14  2.66918e-06
  15  16.8268
  16  0.0928248
  17  8.77545
  18  8.69816e-06
  19  11.5314
  20  2.61002e-07
  21  8.3469e-07
  22  6.45171
  23  14.0908
  24  0.237645
  25  0.127412
Done.

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

Extracting fit parameters...

4FGL J2243.9+2021
   Spectrum: LogParabola
288         norm:  4.136e+00  1.955e+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.200e-01  1.274e-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:  9.369e-01  2.376e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 33.12
Ra Dec: 340.990 20.357
Photon Index (Fixed Index): 1.72 +/- 0.00
Photon Flux (Fixed Index): 4.67e-08 +/- 2.21e-08
Energy Flux (Fixed Index): 6.06e-05 +/- 2.86e-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) = 7405.36930981
delta logL = 0.0648816451385

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7405.36079709
delta logL = 0.073394365163

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.8536       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.5273       1.0000          .0000       5.0000    
     3 'Normalizat'    .94640       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91942       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=   7405.361     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      202 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.8523        2.6868        .51393E-02   -.27278E-02
   2  alpha         1.5268        .50557        .35853       -.28204E-04
   3  Normalizat    .94646        .19245        .71256E-01    .53325E-04
   4  Prefactor     .91939        .10635        .45252E-01    .26673E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.8523
  alpha      = 1.52677
  Normalizat = 0.946463
  Prefactor  = 0.919392
 **********
 **   18 **HESSE 
 **********

 FCN=   7405.361     FROM HESSE     STATUS=OK            33 CALLS      235 TOTAL
                     EDM=   .74E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.8523        2.2042        .41053E-03   -1.5315    
   2  alpha         1.5268        .49865        .12971E-01   -.39986    
   3  Normalizat    .94646        .22608        .31527E-03   -.94846    
   4  Prefactor     .91939        .12659        .17831E-03   -.95467    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.3999e-12
Minuit parameter uncertainties:
  1  2.20424
  2  0.502627
  3  0.22631
  4  0.126634
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/448220': 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) = 7405.36079649
delta logL = 0.0733949720188

Extracting fit parameters...

4FGL J2243.9+2021
   Spectrum: LogParabola
288         norm:  3.852e+00  2.204e+00  1.000e-04  1.000e+04 ( 1.000e-12)
289        alpha:  1.527e+00  5.026e-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.194e-01  1.266e-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:  9.465e-01  2.263e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 33.26
Ra Dec: 340.990 20.357
Photon Index (Free Index): 1.53 +/- 0.50
Photon Flux (Free Index): 3.54e-08 +/- 3.18e-08
Energy Flux (Free Index): 7.48e-05 +/- 5.85e-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/448220/cmap_HighResolution_357782401_358041601_4FGL_J2243.9+2021_daily_bin457.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.67e-08', energy_flux2='7.48e-05', photon_flux_error='2.21e-08', dlogl='7.34e-02', energy_flux='6.06e-05', photon_flux2='3.54e-08', job_status='DONE', time_completed='2021-09-28 19:21:38.195237', photon_index_error2='0.50', photon_index2='1.53', ts='33.12', fit_tolerance='1e-08', GAL='0.92', photon_index_error='0.00', energy_flux_error2='5.85e-05', EG='0.94', time_epoch_completed='1632882098.2', return_code='0', job_id='448220', GAL2='0.92', EG2='0.95', return_code2='0', energy_flux_error='2.86e-05', photon_flux_error2='3.18e-08', ts2='33.26', photon_index='1.72' WHERE bin_id='457' AND source_name='4FGL J2243.9+2021' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 19:21:38 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0219>
Subject: Job 448220: <4FGL_J2243.9+2021_daily_bin457> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2243.9+2021_daily_bin457 340.99 20.3565 357782401 358041601 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 :                                   637.56 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             328.19 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   651 sec.
    Turnaround time :                            653 sec.

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

