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


Performing analysis on: 4FGL_J2243.9+2021_daily_bin101
RA = 340.99, Dec = 20.3565
tmin = 265507201, tmax = 265766401
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='446661', job_status='RUN', time_executed='2021-09-28 19:07:27.995405', time_epoch_executed='1632881248.0' WHERE source_name='4FGL J2243.9+2021' and cadence='daily' and bin_id='101'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/446661

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/446661/ft1_4FGL_J2243.9+2021_daily_bin101.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/446661/ft2_4FGL_J2243.9+2021_daily_bin101.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/446661/ft1_4FGL_J2243.9+2021_daily_bin101.fits outfile=/scratch/kocevski/446661/ft1_filteredMKT_4FGL_J2243.9+2021_daily_bin101.fits ra=340.99 dec=20.3565 rad=12.0 tmin=265507201.0 tmax=265766401.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.53
user 1.34
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/446661/ft2_4FGL_J2243.9+2021_daily_bin101.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/446661/ft1_filteredMKT_4FGL_J2243.9+2021_daily_bin101.fits evtable="EVENTS" outfile="/scratch/kocevski/446661/ft1_filtered_4FGL_J2243.9+2021_daily_bin101.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/446661/ft1_filtered_4FGL_J2243.9+2021_daily_bin101.fits" evtable="EVENTS" scfile=/scratch/kocevski/446661/ft2_4FGL_J2243.9+2021_daily_bin101.fits sctable="SC_DATA" outfile=/scratch/kocevski/446661/ltcube_265507201_265766401_4FGL_J2243.9+2021_daily_bin101.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/446661/ft2_4FGL_J2243.9+2021_daily_bin101.fits
.....................!
real 12.84
user 12.41
sys 0.38

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/446661/ft1_filtered_4FGL_J2243.9+2021_daily_bin101.fits evtable="EVENTS" scfile=/scratch/kocevski/446661/ft2_4FGL_J2243.9+2021_daily_bin101.fits sctable="SC_DATA" expcube=/scratch/kocevski/446661/ltcube_265507201_265766401_4FGL_J2243.9+2021_daily_bin101.fits outfile=/scratch/kocevski/446661/expmap_265507201_265766401_4FGL_J2243.9+2021_daily_bin101.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/446661/ltcube_265507201_265766401_4FGL_J2243.9+2021_daily_bin101.fits
.....................!
real 190.19
user 185.23
sys 4.64

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/446661/ft1_filtered_4FGL_J2243.9+2021_daily_bin101.fits scfile=/scratch/kocevski/446661/ft2_4FGL_J2243.9+2021_daily_bin101.fits outfile=/scratch/kocevski/446661/cmap_265507201_265766401_4FGL_J2243.9+2021_daily_bin101.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.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/446661/ft1_filtered_4FGL_J2243.9+2021_daily_bin101.fits scfile=/scratch/kocevski/446661/ft2_4FGL_J2243.9+2021_daily_bin101.fits outfile=/scratch/kocevski/446661/cmap_HighResolution_265507201_265766401_4FGL_J2243.9+2021_daily_bin101.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.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    5.0091       1.0000         .10000E-03   10000.    
     3 'Prefactor '    6.1388       1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.5195       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .40084       1.0000         .10000E-03   10000.    
     9 'Prefactor '    14.198       1.0000         .10000E-03   10000.    
    10 'norm      '    1.6095       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    2.1302       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.0001       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    9.5274       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    19.236       1.0000         .10000E-03   10000.    
    22 'Prefactor '    5.2495       1.0000         .10000E-03   10000.    
    23 'Prefactor '    7.5999       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.2533       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .88207       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=   8312.335     FROM MIGRAD    STATUS=CONVERGED    561 CALLS     2858 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    29.432       -.11372E-05** at limit **
   2  norm          5.0090        1.4130        .71656E-08    .54646E-04
   3  Prefactor     6.1374        12.054        .21290E-07   -.31773E-04
   4  norm          .10000E-03    5.5365       -.87945E-06** at limit **
   5  Prefactor     .10000E-03    8.0662       -.35986E-06** at limit **
   6  Prefactor     .10001E-03    35.147        .72008E-05** at limit **
   7  Prefactor     1.5171        23.568        .75639E-06   -.85957E-04
   8  Prefactor     .40082        .19660        .79331E-08   -.82247E-04
   9  Prefactor     14.199        10.046        .62549E-07    .27425E-05
  10  norm          1.6093        1.1183        .33011E-07   -.58172E-04
  11  Prefactor     .10000E-03    10.987       -.31677E-05** at limit **
  12  norm          2.1304        1.4617       -.29688E-08    .68874E-04
  13  Prefactor     .10001E-03    43.215       -.67571E-05** at limit **
  14  Prefactor     .10000E-03    4.9927        .95215E-07** at limit **
  15  Prefactor     .10000E-03    9.3675        .43342E-05** at limit **
  16  Prefactor     3.0000        .30593       -.28115E-08    .52567E-04
  17  Prefactor     .10000E-03    6.1970        .19613E-05** at limit **
  18  Prefactor     9.5275        7.8447       -.19274E-08   -.36771E-04
  19  Prefactor     .10000E-03    2.4297        .55407E-08** at limit **
  20  Prefactor     .10000E-03    7.3924       -.24120E-05** at limit **
  21  Prefactor     19.237        23.439        .31212E-06    .23306E-04
  22  Prefactor     5.2484        5.5812        .21182E-05   -.20387E-02
  23  Prefactor     7.5978        19.856       -.26047E-05   -.67549E-04
  24  Normalizat    1.2535        .24599       -.20305E-06    .21097E-05
  25  Prefactor     .88194        .12550       -.24659E-06    .31763E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 5.009
  Prefactor  = 6.13739
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100008
  Prefactor  = 1.51709
  Prefactor  = 0.400822
  Prefactor  = 14.199
  norm       = 1.60931
  Prefactor  = 0.000100002
  norm       = 2.13037
  Prefactor  = 0.000100007
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 3.00001
  Prefactor  = 0.000100001
  Prefactor  = 9.52748
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 19.2366
  Prefactor  = 5.24841
  Prefactor  = 7.59782
  Normalizat = 1.25354
  Prefactor  = 0.881945
 **********
 **   18 **HESSE 
 **********

 FCN=   8312.335     FROM HESSE     STATUS=OK           429 CALLS     3287 TOTAL
                     EDM=   .54E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    29.505        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          5.0090        1.4145        .55411E-04   -1.5260    
   3  Prefactor     6.1374        12.039        .16204E-03   -1.5212    
   4  norm          .10000E-03    5.6669        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    8.1016        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10001E-03    35.973        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     1.5171        24.209        .34665E-03   -1.5462    
   8  Prefactor     .40082        .19581        .26796E-04   -1.5581    
   9  Prefactor     14.199        10.057        .10630E-03   -1.4954    
  10  norm          1.6093        1.1103        .77133E-04   -1.5454    
  11  Prefactor     .10000E-03    11.163        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          2.1304        1.4673        .88960E-04   -1.5416    
  13  Prefactor     .10001E-03    44.014        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    5.0235        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    9.6719        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     3.0000        .30703        .15218E-04   -1.5362    
  17  Prefactor     .10000E-03    6.2821        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     9.5275        7.8433        .12983E-03   -1.5091    
  19  Prefactor     .10000E-03    2.4300        .13879E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    7.4943        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     19.237        23.443        .91321E-04   -1.4830    
  22  Prefactor     5.2484        7.4757        .87718E-03   -1.5250    
  23  Prefactor     7.5978        20.251        .14547E-03   -1.5157    
  24  Normalizat    1.2535        .29421        .35543E-03   -.84964    
  25  Prefactor     .88194        .15023        .22310E-03   -.96775    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.37659e-09
Minuit parameter uncertainties:
  1  0.000152691
  2  1.41452
  3  12.044
  4  4.58219e-05
  5  2.54335e-05
  6  0.00107736
  7  12.1261
  8  0.195811
  9  10.0577
  10  1.11028
  11  0.000262582
  12  1.46728
  13  0.00110612
  14  4.69733e-06
  15  0.000334927
  16  0.307027
  17  0.000119603
  18  7.84419
  19  1.94933e-07
  20  0.000164575
  21  23.4546
  22  7.47707
  23  20.269
  24  0.294603
  25  0.1503
Done.

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

Extracting fit parameters...

4FGL J2243.9+2021
   Spectrum: LogParabola
288         norm:  2.130e+00  1.467e+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.819e-01  1.503e-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.254e+00  2.946e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 15.57
Ra Dec: 340.990 20.357
Photon Index (Fixed Index): 1.72 +/- 0.00
Photon Flux (Fixed Index): 2.41e-08 +/- 1.66e-08
Energy Flux (Fixed Index): 3.12e-05 +/- 2.15e-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) = 8311.27224915
delta logL = 1.06314457736

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8311.04719957
delta logL = 1.28819416491

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .89757       1.0000         .10000E-03   10000.    
     2 'alpha     '    .76251       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2613       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88419       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=   8311.047     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      208 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .89750        .77467        .12799E-01   -.33759E-03
   2  alpha         .76196        .40712        .38655       -.39142E-04
   3  Normalizat    1.2612        .23020        .80104E-01    .15864E-04
   4  Prefactor     .88411        .12434        .44803E-01    .12000E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.897498
  alpha      = 0.761963
  Normalizat = 1.26124
  Prefactor  = 0.884107
 **********
 **   18 **HESSE 
 **********

 FCN=   8311.047     FROM HESSE     STATUS=OK            33 CALLS      241 TOTAL
                     EDM=   .58E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .89750        1.2635        .62490E-03   -1.5518    
   2  alpha         .76196        .61778        .17463E-02   -.76872    
   3  Normalizat    1.2612        .27309        .35460E-03   -.84731    
   4  Prefactor     .88411        .14776        .22297E-03   -.96699    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.77327e-10
Minuit parameter uncertainties:
  1  1.26351
  2  0.630642
  3  0.273399
  4  0.147829
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/446661': 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) = 8311.04719688
delta logL = 1.28819684965

Extracting fit parameters...

4FGL J2243.9+2021
   Spectrum: LogParabola
288         norm:  8.975e-01  1.264e+00  1.000e-04  1.000e+04 ( 1.000e-12)
289        alpha:  7.620e-01  6.306e-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.841e-01  1.478e-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.261e+00  2.734e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 18.14
Ra Dec: 340.990 20.357
Photon Index (Free Index): 0.76 +/- 0.63
Photon Flux (Free Index): 8.21e-09 +/- 7.50e-09
Energy Flux (Free Index): 1.18e-04 +/- 1.27e-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/446661/cmap_HighResolution_265507201_265766401_4FGL_J2243.9+2021_daily_bin101.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.41e-08', energy_flux2='1.18e-04', photon_flux_error='1.66e-08', dlogl='1.29e+00', energy_flux='3.12e-05', photon_flux2='8.21e-09', job_status='DONE', time_completed='2021-09-28 19:19:21.491405', photon_index_error2='0.63', photon_index2='0.76', ts='15.57', fit_tolerance='1e-08', GAL='0.88', photon_index_error='0.00', energy_flux_error2='1.27e-04', EG='1.25', time_epoch_completed='1632881961.49', return_code='0', job_id='446661', GAL2='0.88', EG2='1.26', return_code2='0', energy_flux_error='2.15e-05', photon_flux_error2='7.50e-09', ts2='18.14', photon_index='1.72' WHERE bin_id='101' AND source_name='4FGL J2243.9+2021' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 19:19:21 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0225>
Subject: Job 446661: <4FGL_J2243.9+2021_daily_bin101> in cluster <slac> Done

Job <4FGL_J2243.9+2021_daily_bin101> 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) <bullet0225>, 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:19:22 2021
Results reported at Tue Sep 28 19:19:22 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2243.9+2021_daily_bin101 340.99 20.3565 265507201 265766401 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 :                                   713.23 sec.
    Max Memory :                                 1157 MB
    Average Memory :                             281.79 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   825 sec.
    Turnaround time :                            828 sec.

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

