/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 95 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 = 7476
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2243.9+2021_daily_bin98
RA = 340.99, Dec = 20.3565
tmin = 264729601, tmax = 264988801
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='446656', job_status='RUN', time_executed='2021-09-28 19:07:19.713752', time_epoch_executed='1632881239.71' WHERE source_name='4FGL J2243.9+2021' and cadence='daily' and bin_id='98'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/446656

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/446656/ft1_4FGL_J2243.9+2021_daily_bin98.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/446656/ft2_4FGL_J2243.9+2021_daily_bin98.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/446656/ft1_4FGL_J2243.9+2021_daily_bin98.fits outfile=/scratch/kocevski/446656/ft1_filteredMKT_4FGL_J2243.9+2021_daily_bin98.fits ra=340.99 dec=20.3565 rad=12.0 tmin=264729601.0 tmax=264988801.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 1.44
user 1.28
sys 0.15

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/446656/ft2_4FGL_J2243.9+2021_daily_bin98.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/446656/ft1_filteredMKT_4FGL_J2243.9+2021_daily_bin98.fits evtable="EVENTS" outfile="/scratch/kocevski/446656/ft1_filtered_4FGL_J2243.9+2021_daily_bin98.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.48
user 0.33
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/446656/ft1_filtered_4FGL_J2243.9+2021_daily_bin98.fits" evtable="EVENTS" scfile=/scratch/kocevski/446656/ft2_4FGL_J2243.9+2021_daily_bin98.fits sctable="SC_DATA" outfile=/scratch/kocevski/446656/ltcube_264729601_264988801_4FGL_J2243.9+2021_daily_bin98.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/446656/ft2_4FGL_J2243.9+2021_daily_bin98.fits
.....................!
real 12.40
user 12.05
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/446656/ft1_filtered_4FGL_J2243.9+2021_daily_bin98.fits evtable="EVENTS" scfile=/scratch/kocevski/446656/ft2_4FGL_J2243.9+2021_daily_bin98.fits sctable="SC_DATA" expcube=/scratch/kocevski/446656/ltcube_264729601_264988801_4FGL_J2243.9+2021_daily_bin98.fits outfile=/scratch/kocevski/446656/expmap_264729601_264988801_4FGL_J2243.9+2021_daily_bin98.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/446656/ltcube_264729601_264988801_4FGL_J2243.9+2021_daily_bin98.fits
.....................!
real 191.99
user 187.68
sys 3.93

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/446656/ft1_filtered_4FGL_J2243.9+2021_daily_bin98.fits scfile=/scratch/kocevski/446656/ft2_4FGL_J2243.9+2021_daily_bin98.fits outfile=/scratch/kocevski/446656/cmap_264729601_264988801_4FGL_J2243.9+2021_daily_bin98.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.60
user 0.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/446656/ft1_filtered_4FGL_J2243.9+2021_daily_bin98.fits scfile=/scratch/kocevski/446656/ft2_4FGL_J2243.9+2021_daily_bin98.fits outfile=/scratch/kocevski/446656/cmap_HighResolution_264729601_264988801_4FGL_J2243.9+2021_daily_bin98.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.37
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    29.599       1.0000         .10000E-03   10000.    
     2 'norm      '    5.2107       1.0000         .10000E-03   10000.    
     3 'Prefactor '    13.018       1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.2339       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10080E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .50606       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    5.4211       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10923E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    1.9414       1.0000         .10000E-03   10000.    
    13 'Prefactor '    10.628       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .65808E-02   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.8325       1.0000         .10000E-03   10000.    
    17 'Prefactor '    11.397       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .83279E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10165E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .83285       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .88433       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=   9549.359     FROM MIGRAD    STATUS=CONVERGED   1059 CALLS     3004 TOTAL
                     EDM=   .32E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     29.598        27.454        .73642E-04    .55576E-05
   2  norm          5.2105        1.2744        .52094E-04    .80310E-04
   3  Prefactor     13.016        12.449        .11102E-03    .31336E-04
   4  norm          .10000E-03    1.9920        .13376E-02** at limit **
   5  Prefactor     2.2326        10.198        .13752E-02    .25401E-03
   6  Prefactor     .10000E-03    185.26        .18142E-02** at limit **
   7  Prefactor     .10000E-03    4.4963        .18142E-02** at limit **
   8  Prefactor     .50604        .17821        .22926E-04    .29257E-03
   9  Prefactor     .10000E-03    2.8483        .16011E-02** at limit **
  10  norm          5.4218        1.4625        .58534E-04    .45565E-03
  11  Prefactor     .10000E-03    78.827        .36285E-03** at limit **
  12  norm          1.9416        1.2525        .84695E-04    .22497E-03
  13  Prefactor     10.623        29.367        .12290E-03   -.17021E-04
  14  Prefactor     .10003E-03    7.6668        .72079E-01** at limit **
  15  Prefactor     .10000E-03    16.418        .18142E-02** at limit **
  16  Prefactor     1.8327        .22630        .14875E-04   -.12473E-03
  17  Prefactor     11.398        13.094        .11867E-03    .53076E-04
  18  Prefactor     .10000E-03    13.925        .38311E-02** at limit **
  19  Prefactor     .10000E-03    4.0770        .18142E-02** at limit **
  20  Prefactor     .10000E-03    9.4479        .18142E-02** at limit **
  21  Prefactor     .10000E-03    7.2931        .18142E-02** at limit **
  22  Prefactor     .10000E-03    1.8998        .13120E-02** at limit **
  23  Prefactor     .10000E-03    21.832        .18142E-02** at limit **
  24  Normalizat    .83301        .22749        .37106E-03    .85666E-04
  25  Prefactor     .88432        .11883        .19521E-03    .41698E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 29.5975
  norm       = 5.21046
  Prefactor  = 13.0159
  norm       = 0.0001
  Prefactor  = 2.23264
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.506035
  Prefactor  = 0.0001
  norm       = 5.42179
  Prefactor  = 0.0001
  norm       = 1.94161
  Prefactor  = 10.6229
  Prefactor  = 0.00010003
  Prefactor  = 0.0001
  Prefactor  = 1.83266
  Prefactor  = 11.3984
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.833009
  Prefactor  = 0.884321
 **********
 **   18 **HESSE 
 **********

 FCN=   9549.359     FROM HESSE     STATUS=OK           413 CALLS     3417 TOTAL
                     EDM=   .69E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     29.598        27.447        .29457E-05   -1.4619    
   2  norm          5.2105        1.2744        .20838E-05   -1.5251    
   3  Prefactor     13.016        12.448        .44407E-05   -1.4986    
   4  norm          .10000E-03    1.9926        .26752E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     2.2326        10.169        .27503E-03   -1.5409    
   6  Prefactor     .10000E-03    185.31        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    4.4975        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .50604        .17806        .91704E-06   -1.5566    
   9  Prefactor     .10000E-03    2.8493        .32023E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          5.4218        1.4625        .23414E-05   -1.5242    
  11  Prefactor     .10000E-03    78.830        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          1.9416        1.2524        .33878E-05   -1.5429    
  13  Prefactor     10.623        29.358        .49159E-05   -1.5056    
  14  Prefactor     .10003E-03    7.0664        .76670E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    16.422        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     1.8327        .22627        .29750E-05   -1.5437    
  17  Prefactor     11.398        13.093        .47466E-05   -1.5033    
  18  Prefactor     .10000E-03    14.048        .76622E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    4.0774        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    9.4489        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    7.2933        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    1.9000        .26240E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    21.847        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .83301        .22763        .14842E-04   -.98856    
  25  Prefactor     .88432        .11892        .78085E-05   -.96691    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.86456e-11
Minuit parameter uncertainties:
  1  27.4582
  2  1.27444
  3  12.4502
  4  7.5676e-06
  5  9.53212
  6  0.000286486
  7  2.84379e-05
  8  0.178056
  9  4.07176e-06
  10  1.46251
  11  0.000253123
  12  1.2524
  13  29.398
  14  0.000924134
  15  3.77464e-05
  16  0.226272
  17  13.0965
  18  2.04443e-05
  19  2.94984e-06
  20  8.27928e-06
  21  4.82136e-06
  22  3.17463e-06
  23  8.6657e-05
  24  0.227887
  25  0.118953
Done.

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

Extracting fit parameters...

4FGL J2243.9+2021
   Spectrum: LogParabola
288         norm:  1.942e+00  1.252e+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:  8.843e-01  1.190e-01  0.000e+00  1.000e+01 ( 1.000e+00)
514        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
515        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
512   Normalization:  8.330e-01  2.279e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 12.95
Ra Dec: 340.990 20.357
Photon Index (Fixed Index): 1.72 +/- 0.00
Photon Flux (Fixed Index): 2.19e-08 +/- 1.41e-08
Energy Flux (Fixed Index): 2.84e-05 +/- 1.83e-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) = 9548.48859549
delta logL = 0.870213484277

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9548.45344478
delta logL = 0.905364195212

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.5564       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.0684       1.0000          .0000       5.0000    
     3 'Normalizat'    .84100       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88331       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=   9548.453     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      211 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.5558        .96806        .85306E-02   -.29012E-03
   2  alpha         1.0683        .34467        .38020       -.50972E-04
   3  Normalizat    .84102        .18736        .83426E-01    .10915E-03
   4  Prefactor     .88330        .10192        .44792E-01    .21722E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.55583
  alpha      = 1.06832
  Normalizat = 0.841016
  Prefactor  = 0.8833
 **********
 **   18 **HESSE 
 **********

 FCN=   9548.453     FROM HESSE     STATUS=OK            31 CALLS      242 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.5558        1.1534        .73613E-04   -1.5458    
   2  alpha         1.0683        .42633        .16025E-01   -.60976    
   3  Normalizat    .84102        .21698        .36940E-03   -.98565    
   4  Prefactor     .88330        .11833        .19530E-03   -.96727    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.91834e-09
Minuit parameter uncertainties:
  1  1.15342
  2  0.429462
  3  0.217206
  4  0.118364
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/446656': 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) = 9548.45344467
delta logL = 0.905364308848

Extracting fit parameters...

4FGL J2243.9+2021
   Spectrum: LogParabola
288         norm:  1.556e+00  1.153e+00  1.000e-04  1.000e+04 ( 1.000e-12)
289        alpha:  1.068e+00  4.295e-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:  8.833e-01  1.184e-01  0.000e+00  1.000e+01 ( 1.000e+00)
514        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
515        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
512   Normalization:  8.410e-01  2.172e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 14.76
Ra Dec: 340.990 20.357
Photon Index (Free Index): 1.07 +/- 0.43
Photon Flux (Free Index): 1.17e-08 +/- 8.28e-09
Energy Flux (Free Index): 8.50e-05 +/- 8.29e-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/446656/cmap_HighResolution_264729601_264988801_4FGL_J2243.9+2021_daily_bin98.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.19e-08', energy_flux2='8.50e-05', photon_flux_error='1.41e-08', dlogl='9.05e-01', energy_flux='2.84e-05', photon_flux2='1.17e-08', job_status='DONE', time_completed='2021-09-28 19:20:22.188969', photon_index_error2='0.43', photon_index2='1.07', ts='12.95', fit_tolerance='1e-08', GAL='0.88', photon_index_error='0.00', energy_flux_error2='8.29e-05', EG='0.83', time_epoch_completed='1632882022.19', return_code='0', job_id='446656', GAL2='0.88', EG2='0.84', return_code2='0', energy_flux_error='1.83e-05', photon_flux_error2='8.28e-09', ts2='14.76', photon_index='1.72' WHERE bin_id='98' AND source_name='4FGL J2243.9+2021' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 19:20:22 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0065>
Subject: Job 446656: <4FGL_J2243.9+2021_daily_bin98> in cluster <slac> Done

Job <4FGL_J2243.9+2021_daily_bin98> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Sep 28 19:05:34 2021
Job was executed on host(s) <bullet0065>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 19:05:36 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:05:36 2021
Terminated at Tue Sep 28 19:20:22 2021
Results reported at Tue Sep 28 19:20:22 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2243.9+2021_daily_bin98 340.99 20.3565 264729601 264988801 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 :                                   782.31 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             318.40 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   886 sec.
    Turnaround time :                            888 sec.

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

