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


Performing analysis on: 4FGL_J2243.9+2021_daily_bin401
RA = 340.99, Dec = 20.3565
tmin = 343267201, tmax = 343526401
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='448128', job_status='RUN', time_executed='2021-09-28 19:12:56.498749', time_epoch_executed='1632881576.5' WHERE source_name='4FGL J2243.9+2021' and cadence='daily' and bin_id='401'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/448128

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/448128/ft1_4FGL_J2243.9+2021_daily_bin401.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/448128/ft2_4FGL_J2243.9+2021_daily_bin401.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/448128/ft1_4FGL_J2243.9+2021_daily_bin401.fits outfile=/scratch/kocevski/448128/ft1_filteredMKT_4FGL_J2243.9+2021_daily_bin401.fits ra=340.99 dec=20.3565 rad=12.0 tmin=343267201.0 tmax=343526401.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.54
user 3.32
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/448128/ft1_filtered_4FGL_J2243.9+2021_daily_bin401.fits" evtable="EVENTS" scfile=/scratch/kocevski/448128/ft2_4FGL_J2243.9+2021_daily_bin401.fits sctable="SC_DATA" outfile=/scratch/kocevski/448128/ltcube_343267201_343526401_4FGL_J2243.9+2021_daily_bin401.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/448128/ft2_4FGL_J2243.9+2021_daily_bin401.fits
.....................!
real 11.88
user 11.46
sys 0.39

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/448128/ft1_filtered_4FGL_J2243.9+2021_daily_bin401.fits evtable="EVENTS" scfile=/scratch/kocevski/448128/ft2_4FGL_J2243.9+2021_daily_bin401.fits sctable="SC_DATA" expcube=/scratch/kocevski/448128/ltcube_343267201_343526401_4FGL_J2243.9+2021_daily_bin401.fits outfile=/scratch/kocevski/448128/expmap_343267201_343526401_4FGL_J2243.9+2021_daily_bin401.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/448128/ltcube_343267201_343526401_4FGL_J2243.9+2021_daily_bin401.fits
.....................!
real 190.95
user 185.32
sys 5.25

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/448128/ft1_filtered_4FGL_J2243.9+2021_daily_bin401.fits scfile=/scratch/kocevski/448128/ft2_4FGL_J2243.9+2021_daily_bin401.fits outfile=/scratch/kocevski/448128/cmap_343267201_343526401_4FGL_J2243.9+2021_daily_bin401.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.17

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .31022E-01   1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    1.1399       1.0000         .10000E-03   10000.    
     5 'Prefactor '    16.956       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10755E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.7022       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .40442       1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.4306       1.0000         .10000E-03   10000.    
    10 'norm      '    1.1473       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    2.9944       1.0000         .10000E-03   10000.    
    13 'Prefactor '    14.659       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    11.681       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    3.0077       1.0000         .10000E-03   10000.    
    18 'Prefactor '    17.534       1.0000         .10000E-03   10000.    
    19 'Prefactor '    7.9754       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    2.7035       1.0000         .10000E-03   10000.    
    23 'Prefactor '    53.537       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.0418       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .98769       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=   7838.209     FROM MIGRAD    STATUS=CONVERGED    624 CALLS     3423 TOTAL
                     EDM=   .50E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10045E-03    45.274       -.11699E-05** at limit **
   2  norm          .10000E-03    .28091        .43995E-09** at limit **
   3  Prefactor     .10000E-03    7.8687       -.49170E-07** at limit **
   4  norm          1.1398        3.1924       -.14231E-06   -.21095E-03
   5  Prefactor     16.954        15.681       -.58018E-05   -.75122E-04
   6  Prefactor     .10000E-03    40.773        .86769E-07** at limit **
   7  Prefactor     2.6995        8.8119        .20763E-05   -.26731E-04
   8  Prefactor     .40440        .21417        .14024E-06    .62388E-03
   9  Prefactor     3.4311        8.2214       -.57907E-06   -.89807E-03
  10  norm          1.1473        .86117       -.48583E-07   -.12150E-03
  11  Prefactor     .10000E-03    7.0223       -.44448E-07** at limit **
  12  norm          2.9949        1.7926       -.24770E-07   -.51256E-05
  13  Prefactor     14.687        25.047       -.79613E-05   -.38510E-04
  14  Prefactor     .10000E-03    2.4492        .83691E-08** at limit **
  15  Prefactor     11.748        22.604        .33314E-05    .14046E-04
  16  Prefactor     .10000E-03    .44962E-01    .94163E-09** at limit **
  17  Prefactor     3.0075        4.6489       -.71495E-07   -.33421E-04
  18  Prefactor     17.548        9.2658       -.73514E-06   -.35689E-04
  19  Prefactor     7.9739        13.326        .27891E-05    .19154E-04
  20  Prefactor     .10000E-03    13.978       -.13918E-06** at limit **
  21  Prefactor     .10000E-03    18.421       -.12435E-06** at limit **
  22  Prefactor     2.7027        4.5261        .87113E-06   -.16433E-02
  23  Prefactor     53.539        24.357       -.36068E-05   -.64465E-04
  24  Normalizat    1.0424        .21534        .64710E-06    .34264E-04
  25  Prefactor     .98747        .11541        .46144E-06    .57869E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100447
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.13984
  Prefactor  = 16.954
  Prefactor  = 0.0001
  Prefactor  = 2.69946
  Prefactor  = 0.404401
  Prefactor  = 3.43108
  norm       = 1.14731
  Prefactor  = 0.0001
  norm       = 2.99489
  Prefactor  = 14.6875
  Prefactor  = 0.0001
  Prefactor  = 11.7475
  Prefactor  = 0.0001
  Prefactor  = 3.00752
  Prefactor  = 17.5483
  Prefactor  = 7.97389
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.70271
  Prefactor  = 53.5386
  Normalizat = 1.04236
  Prefactor  = 0.987472
 **********
 **   18 **HESSE 
 **********

 FCN=   7838.209     FROM HESSE     STATUS=OK           445 CALLS     3868 TOTAL
                     EDM=   .90E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10045E-03    40.644        .16656       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    .48257        .91229E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    7.9168        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          1.1398        3.1549        .25674E-03   -1.5494    
   5  Prefactor     16.954        15.706        .97266E-04   -1.4884    
   6  Prefactor     .10000E-03    40.795        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     2.6995        8.8325        .24781E-03   -1.5379    
   8  Prefactor     .40440        .21104        .26876E-04   -1.5581    
   9  Prefactor     3.4311        9.1557        .10919E-02   -1.5337    
  10  norm          1.1473        .84827        .68476E-04   -1.5494    
  11  Prefactor     .10000E-03    7.0312        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          2.9949        1.7916        .89050E-04   -1.5362    
  13  Prefactor     14.687        25.001        .10461E-03   -1.4941    
  14  Prefactor     .10000E-03    2.4512        .13531E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     11.748        22.168        .11721E-03   -1.5022    
  16  Prefactor     .10000E-03    .64935E-01    .35341E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     3.0075        4.6357        .23108E-03   -1.5361    
  18  Prefactor     17.548        9.2477        .95648E-04   -1.4870    
  19  Prefactor     7.9739        13.327        .14198E-03   -1.5143    
  20  Prefactor     .10000E-03    14.037        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    18.600        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     2.7027        8.3729        .12387E-02   -1.5379    
  23  Prefactor     53.539        25.491        .54817E-04   -1.4243    
  24  Normalizat    1.0424        .25810        .33351E-03   -.91625    
  25  Prefactor     .98747        .13904        .18849E-03   -.93148    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.98695e-09
Minuit parameter uncertainties:
  1  0.00853273
  2  1.00193e-06
  3  1.38535e-05
  4  3.15533
  5  15.7095
  6  1.96477e-05
  7  8.83674
  8  0.211045
  9  9.15941
  10  0.848283
  11  4.06449e-06
  12  1.79168
  13  25.0193
  14  8.10554e-07
  15  22.1832
  16  2.16707e-07
  17  4.63628
  18  9.24845
  19  13.3323
  20  1.52026e-05
  21  1.6014e-05
  22  8.3765
  23  25.496
  24  0.258415
  25  0.139089
Done.

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

Extracting fit parameters...

4FGL J2243.9+2021
   Spectrum: LogParabola
288         norm:  2.995e+00  1.792e+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.875e-01  1.391e-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.042e+00  2.584e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.97
Ra Dec: 340.990 20.357
Photon Index (Fixed Index): 1.72 +/- 0.00
Photon Flux (Fixed Index): 3.38e-08 +/- 2.02e-08
Energy Flux (Fixed Index): 4.39e-05 +/- 2.62e-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) = 7838.16983002
delta logL = 0.0386880385013

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7838.16780042
delta logL = 0.0407176361286

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.8981       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.8493       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0372       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98846       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=   7838.168     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      211 TOTAL
                     EDM=   .50E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.8977        43.914        .59674E-02    .11661E-03
   2  alpha         1.8496        3.0494        .27304        .41197E-04
   3  Normalizat    1.0366        .14364        .75541E-01    .22294E-04
   4  Prefactor     .98874        .57391E-01    .46123E-01   -.11998E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 2.89774
  alpha      = 1.84962
  Normalizat = 1.0366
  Prefactor  = 0.988736
 **********
 **   18 **HESSE 
 **********

 FCN=   7838.168     FROM HESSE     STATUS=OK            33 CALLS      244 TOTAL
                     EDM=   .24E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.8977        1.8087        .85679E-04   -1.5367    
   2  alpha         1.8496        .47654        .13507E-01   -.26318    
   3  Normalizat    1.0366        .24617        .33432E-03   -.91814    
   4  Prefactor     .98874        .13635        .18837E-03   -.93106    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.40552e-12
Minuit parameter uncertainties:
  1  1.80871
  2  0.479695
  3  0.246439
  4  0.136394
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/448128': 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) = 7838.16779773
delta logL = 0.0407203282348

Extracting fit parameters...

4FGL J2243.9+2021
   Spectrum: LogParabola
288         norm:  2.898e+00  1.809e+00  1.000e-04  1.000e+04 ( 1.000e-12)
289        alpha:  1.850e+00  4.797e-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.887e-01  1.364e-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.037e+00  2.464e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.04
Ra Dec: 340.990 20.357
Photon Index (Free Index): 1.85 +/- 0.48
Photon Flux (Free Index): 3.92e-08 +/- 2.93e-08
Energy Flux (Free Index): 3.70e-05 +/- 3.13e-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/448128/cmap_HighResolution_343267201_343526401_4FGL_J2243.9+2021_daily_bin401.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.38e-08', energy_flux2='3.70e-05', photon_flux_error='2.02e-08', dlogl='4.07e-02', energy_flux='4.39e-05', photon_flux2='3.92e-08', job_status='DONE', time_completed='2021-09-28 19:25:08.830435', photon_index_error2='0.48', photon_index2='1.85', ts='6.97', fit_tolerance='1e-08', GAL='0.99', photon_index_error='0.00', energy_flux_error2='3.13e-05', EG='1.04', time_epoch_completed='1632882308.83', return_code='0', job_id='448128', GAL2='0.99', EG2='1.04', return_code2='0', energy_flux_error='2.62e-05', photon_flux_error2='2.93e-08', ts2='7.04', photon_index='1.72' WHERE bin_id='401' AND source_name='4FGL J2243.9+2021' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 19:25:08 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0085>
Subject: Job 448128: <4FGL_J2243.9+2021_daily_bin401> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2243.9+2021_daily_bin401 340.99 20.3565 343267201 343526401 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 :                                   731.01 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             307.24 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   870 sec.
    Turnaround time :                            871 sec.

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

