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


Performing analysis on: 4FGL_J2243.9+2021_daily_bin427
RA = 340.99, Dec = 20.3565
tmin = 350006401, tmax = 350265601
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='448171', job_status='RUN', time_executed='2021-09-28 19:14:02.208645', time_epoch_executed='1632881642.21' WHERE source_name='4FGL J2243.9+2021' and cadence='daily' and bin_id='427'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/448171

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

Retrieving the FT1 file...

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

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

Retrieving 45 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/448171/ft1_4FGL_J2243.9+2021_daily_bin427.fits


Retrieving the FT1 file...

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

Retrieving 45 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/448171/ft2_4FGL_J2243.9+2021_daily_bin427.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/448171/ft1_4FGL_J2243.9+2021_daily_bin427.fits outfile=/scratch/kocevski/448171/ft1_filteredMKT_4FGL_J2243.9+2021_daily_bin427.fits ra=340.99 dec=20.3565 rad=12.0 tmin=350006401.0 tmax=350265601.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 4.30
user 3.75
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/448171/ft2_4FGL_J2243.9+2021_daily_bin427.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/448171/ft1_filteredMKT_4FGL_J2243.9+2021_daily_bin427.fits evtable="EVENTS" outfile="/scratch/kocevski/448171/ft1_filtered_4FGL_J2243.9+2021_daily_bin427.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.50
user 0.35
sys 0.13

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/448171/ft1_filtered_4FGL_J2243.9+2021_daily_bin427.fits evtable="EVENTS" scfile=/scratch/kocevski/448171/ft2_4FGL_J2243.9+2021_daily_bin427.fits sctable="SC_DATA" expcube=/scratch/kocevski/448171/ltcube_350006401_350265601_4FGL_J2243.9+2021_daily_bin427.fits outfile=/scratch/kocevski/448171/expmap_350006401_350265601_4FGL_J2243.9+2021_daily_bin427.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/448171/ltcube_350006401_350265601_4FGL_J2243.9+2021_daily_bin427.fits
.....................!
real 191.80
user 185.90
sys 5.55

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/448171/ft1_filtered_4FGL_J2243.9+2021_daily_bin427.fits scfile=/scratch/kocevski/448171/ft2_4FGL_J2243.9+2021_daily_bin427.fits outfile=/scratch/kocevski/448171/cmap_350006401_350265601_4FGL_J2243.9+2021_daily_bin427.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=340.99 yref=20.3565 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.55
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/448171/ft1_filtered_4FGL_J2243.9+2021_daily_bin427.fits scfile=/scratch/kocevski/448171/ft2_4FGL_J2243.9+2021_daily_bin427.fits outfile=/scratch/kocevski/448171/cmap_HighResolution_350006401_350265601_4FGL_J2243.9+2021_daily_bin427.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.55
user 0.37
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.1401       1.0000         .10000E-03   10000.    
     2 'norm      '    .22582E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    9.7996       1.0000         .10000E-03   10000.    
     4 'norm      '    .25808       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10207E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10217E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .60578E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .43754       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10122E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    7.6831       1.0000         .10000E-03   10000.    
    12 'norm      '    2.7745       1.0000         .10000E-03   10000.    
    13 'Prefactor '    26.794       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10138E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    23.383       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10117E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10150E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    27.900       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10551E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    4.3742       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10067E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.0509       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .93565       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=   7491.907     FROM MIGRAD    STATUS=CONVERGED    604 CALLS     3032 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.9886        115.60       -.30900E-04   -.19111E-04
   2  norm          .10000E-03    .42410       -.44797E-07** at limit **
   3  Prefactor     9.7961        11.122        .34537E-06   -.85239E-05
   4  norm          .24967        2.7492       -.26050E-05    .13573E-02
   5  Prefactor     .10000E-03    29.239       -.52831E-05** at limit **
   6  Prefactor     .10000E-03    38.714       -.47404E-05** at limit **
   7  Prefactor     .10036E-03    6.1216        .89071E-06** at limit **
   8  Prefactor     .43755        .18516       -.27221E-07    .15160E-02
   9  Prefactor     .10000E-03    1.7860       -.77468E-08** at limit **
  10  norm          .10000E-03    .66092        .19107E-06** at limit **
  11  Prefactor     7.7013        17.344       -.79114E-05   -.79385E-04
  12  norm          2.7747        1.5001       -.44207E-07   -.81871E-04
  13  Prefactor     26.808        27.935       -.42906E-05    .45341E-04
  14  Prefactor     .10000E-03    24.604        .98068E-05** at limit **
  15  Prefactor     .10000E-03    32.694       -.16355E-04** at limit **
  16  Prefactor     .10000E-03    .48708E-01    .59620E-07** at limit **
  17  Prefactor     23.382        14.375       -.60945E-06   -.11657E-03
  18  Prefactor     .10000E-03    3.2102        .48193E-07** at limit **
  19  Prefactor     .10000E-03    7.4586       -.44614E-07** at limit **
  20  Prefactor     27.867        25.239        .58875E-05   -.47544E-04
  21  Prefactor     .10000E-03    41.950        .16979E-04** at limit **
  22  Prefactor     4.3759        7.3935       -.11104E-04   -.31757E-03
  23  Prefactor     .10000E-03    5.2007        .15841E-06** at limit **
  24  Normalizat    1.0506        .21550        .23507E-05    .18993E-03
  25  Prefactor     .93592        .11297        .12745E-05    .29470E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.98859
  norm       = 0.0001
  Prefactor  = 9.79609
  norm       = 0.249672
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100357
  Prefactor  = 0.437555
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 7.70131
  norm       = 2.77467
  Prefactor  = 26.8078
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 23.382
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 27.8672
  Prefactor  = 0.000100001
  Prefactor  = 4.3759
  Prefactor  = 0.0001
  Normalizat = 1.05061
  Prefactor  = 0.935922
 **********
 **   18 **HESSE 
 **********

 FCN=   7491.907     FROM HESSE     STATUS=OK           433 CALLS     3465 TOTAL
                     EDM=   .21E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.9886        118.27        .28175E-03   -1.5426    
   2  norm          .10000E-03    3.8567        .10796E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     9.7961        11.107        .12801E-03   -1.5082    
   4  norm          .24967        18.927        .26793E-02   -1.5608    
   5  Prefactor     .10000E-03    29.761        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    38.756        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10036E-03    60.570        .40404E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .43755        .18392        .23171E-04   -1.5576    
   9  Prefactor     .10000E-03    1.7865        .11297E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    1.4565        .13282E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     7.7013        17.051        .14467E-03   -1.5153    
  12  norm          2.7747        1.5033        .75875E-04   -1.5375    
  13  Prefactor     26.808        27.642        .77393E-04   -1.4672    
  14  Prefactor     .10000E-03    25.509        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    33.179        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    .10424        .36438E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     23.382        14.380        .82836E-04   -1.4740    
  18  Prefactor     .10000E-03    3.2288        .15142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    7.4870        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     27.867        25.147        .75847E-04   -1.4652    
  21  Prefactor     .10000E-03    41.902        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     4.3759        7.4949        .19258E-03   -1.5290    
  23  Prefactor     .10000E-03    5.2041        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.0506        .25390        .32410E-03   -.91354    
  25  Prefactor     .93592        .13698        .18376E-03   -.94897    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.13998e-08
Minuit parameter uncertainties:
  1  30.7356
  2  6.42892e-06
  3  11.1091
  4  4.34824
  5  7.87879e-05
  6  3.37835e-05
  7  0.00930709
  8  0.183922
  9  7.11524e-07
  10  2.05943e-05
  11  17.0615
  12  1.50334
  13  27.6557
  14  0.00031069
  15  0.000175444
  16  1.8445e-06
  17  14.3818
  18  8.1865e-06
  19  1.0715e-05
  20  25.1563
  21  0.000405725
  22  7.49651
  23  3.89989e-05
  24  0.254189
  25  0.137028
Done.

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

Extracting fit parameters...

4FGL J2243.9+2021
   Spectrum: LogParabola
288         norm:  2.775e+00  1.503e+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.359e-01  1.370e-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.051e+00  2.542e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 25.79
Ra Dec: 340.990 20.357
Photon Index (Fixed Index): 1.72 +/- 0.00
Photon Flux (Fixed Index): 3.13e-08 +/- 1.70e-08
Energy Flux (Fixed Index): 4.06e-05 +/- 2.20e-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) = 7490.0452368
delta logL = 1.86186243076

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7489.80885566
delta logL = 2.09824357324

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.5670       1.0000         .10000E-03   10000.    
     2 'alpha     '    .86612       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0587       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93866       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=   7489.809     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      204 TOTAL
                     EDM=   .97E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.5670        .99155        .84930E-02   -.67981E-04
   2  alpha         .86604        .30850        .28073       -.23355E-04
   3  Normalizat    1.0587        .20494        .72991E-01    .21003E-03
   4  Prefactor     .93864        .11099        .45496E-01    .40083E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.56697
  alpha      = 0.866043
  Normalizat = 1.05866
  Prefactor  = 0.938644
 **********
 **   18 **HESSE 
 **********

 FCN=   7489.809     FROM HESSE     STATUS=OK            29 CALLS      233 TOTAL
                     EDM=   .98E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.5670        1.3450        .59662E-04   -1.5458    
   2  alpha         .86604        .41422        .12335E-02   -.71231    
   3  Normalizat    1.0587        .24779        .32300E-03   -.91090    
   4  Prefactor     .93864        .13443        .18356E-03   -.94804    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.75817e-11
Minuit parameter uncertainties:
  1  1.34499
  2  0.417601
  3  0.248057
  4  0.134474
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/448171': 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) = 7489.80885542
delta logL = 2.09824380891

Extracting fit parameters...

4FGL J2243.9+2021
   Spectrum: LogParabola
288         norm:  1.567e+00  1.345e+00  1.000e-04  1.000e+04 ( 1.000e-12)
289        alpha:  8.660e-01  4.176e-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.386e-01  1.345e-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.059e+00  2.481e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 29.99
Ra Dec: 340.990 20.357
Photon Index (Free Index): 0.87 +/- 0.42
Photon Flux (Free Index): 1.30e-08 +/- 8.50e-09
Energy Flux (Free Index): 1.51e-04 +/- 1.24e-04

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/448171/cmap_HighResolution_350006401_350265601_4FGL_J2243.9+2021_daily_bin427.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.13e-08', energy_flux2='1.51e-04', photon_flux_error='1.70e-08', dlogl='2.10e+00', energy_flux='4.06e-05', photon_flux2='1.30e-08', job_status='DONE', time_completed='2021-09-28 19:25:15.690654', photon_index_error2='0.42', photon_index2='0.87', ts='25.79', fit_tolerance='1e-08', GAL='0.94', photon_index_error='0.00', energy_flux_error2='1.24e-04', EG='1.05', time_epoch_completed='1632882315.69', return_code='0', job_id='448171', GAL2='0.94', EG2='1.06', return_code2='0', energy_flux_error='2.20e-05', photon_flux_error2='8.50e-09', ts2='29.99', photon_index='1.72' WHERE bin_id='427' AND source_name='4FGL J2243.9+2021' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 19:25:15 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0209>
Subject: Job 448171: <4FGL_J2243.9+2021_daily_bin427> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2243.9+2021_daily_bin427 340.99 20.3565 350006401 350265601 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 :                                   672.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             302.71 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   872 sec.
    Turnaround time :                            874 sec.

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

