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


Performing analysis on: 4FGL_J2243.9+2021_daily_bin905
RA = 340.99, Dec = 20.3565
tmin = 473904001, tmax = 474163201
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='449854', job_status='RUN', time_executed='2021-09-28 19:17:41.465126', time_epoch_executed='1632881861.47' WHERE source_name='4FGL J2243.9+2021' and cadence='daily' and bin_id='905'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/449854

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/449854/ft1_4FGL_J2243.9+2021_daily_bin905.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/449854/ft2_4FGL_J2243.9+2021_daily_bin905.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/449854/ft1_4FGL_J2243.9+2021_daily_bin905.fits outfile=/scratch/kocevski/449854/ft1_filteredMKT_4FGL_J2243.9+2021_daily_bin905.fits ra=340.99 dec=20.3565 rad=12.0 tmin=473904001.0 tmax=474163201.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 5.15
user 4.88
sys 0.25

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/449854/ft2_4FGL_J2243.9+2021_daily_bin905.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/449854/ft1_filteredMKT_4FGL_J2243.9+2021_daily_bin905.fits evtable="EVENTS" outfile="/scratch/kocevski/449854/ft1_filtered_4FGL_J2243.9+2021_daily_bin905.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/449854/ft1_filtered_4FGL_J2243.9+2021_daily_bin905.fits" evtable="EVENTS" scfile=/scratch/kocevski/449854/ft2_4FGL_J2243.9+2021_daily_bin905.fits sctable="SC_DATA" outfile=/scratch/kocevski/449854/ltcube_473904001_474163201_4FGL_J2243.9+2021_daily_bin905.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/449854/ft2_4FGL_J2243.9+2021_daily_bin905.fits
.....................!
real 12.40
user 12.03
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/449854/ft1_filtered_4FGL_J2243.9+2021_daily_bin905.fits evtable="EVENTS" scfile=/scratch/kocevski/449854/ft2_4FGL_J2243.9+2021_daily_bin905.fits sctable="SC_DATA" expcube=/scratch/kocevski/449854/ltcube_473904001_474163201_4FGL_J2243.9+2021_daily_bin905.fits outfile=/scratch/kocevski/449854/expmap_473904001_474163201_4FGL_J2243.9+2021_daily_bin905.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/449854/ltcube_473904001_474163201_4FGL_J2243.9+2021_daily_bin905.fits
.....................!
real 192.25
user 187.39
sys 4.53

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/449854/ft1_filtered_4FGL_J2243.9+2021_daily_bin905.fits scfile=/scratch/kocevski/449854/ft2_4FGL_J2243.9+2021_daily_bin905.fits outfile=/scratch/kocevski/449854/cmap_473904001_474163201_4FGL_J2243.9+2021_daily_bin905.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.53
user 0.36
sys 0.16

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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      '    1.0884       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .18612       1.0000         .10000E-03   10000.    
     4 'norm      '    15.024       1.0000         .10000E-03   10000.    
     5 'Prefactor '    7.9347       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.8727       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    2.8420       1.0000         .10000E-03   10000.    
    11 'Prefactor '    6.6471       1.0000         .10000E-03   10000.    
    12 'norm      '    2.3363       1.0000         .10000E-03   10000.    
    13 'Prefactor '    50.652       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .71214       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    7.3896       1.0000         .10000E-03   10000.    
    17 'Prefactor '    25.994       1.0000         .10000E-03   10000.    
    18 'Prefactor '    14.129       1.0000         .10000E-03   10000.    
    19 'Prefactor '    9.1195       1.0000         .10000E-03   10000.    
    20 'Prefactor '    20.657       1.0000         .10000E-03   10000.    
    21 'Prefactor '    31.531       1.0000         .10000E-03   10000.    
    22 'Prefactor '    17.730       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .11241E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .94821       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .83537       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=   9881.748     FROM MIGRAD    STATUS=CONVERGED    603 CALLS     2922 TOTAL
                     EDM=   .44E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    13.260       -.31312E-07** at limit **
   2  norm          1.0878        1.1532        .16293E-06    .17831E-04
   3  Prefactor     .11487E-03    10.616       -.12573E-06** at limit **
   4  norm          15.023        7.9043        .50601E-07   -.31568E-04
   5  Prefactor     7.9268        17.402        .15711E-05    .20291E-04
   6  Prefactor     .10000E-03    86.281        .55558E-08** at limit **
   7  Prefactor     .10000E-03    23.474       -.39361E-06** at limit **
   8  Prefactor     1.8725        .34502       -.10008E-07    .48983E-04
   9  Prefactor     .10000E-03    8.2877       -.49569E-07** at limit **
  10  norm          2.8418        1.2581        .35782E-07   -.38883E-04
  11  Prefactor     6.6443        13.033        .19227E-06   -.13376E-05
  12  norm          2.3361        1.9223       -.22953E-06   -.14143E-03
  13  Prefactor     50.647        43.250       -.30544E-06   -.71689E-05
  14  Prefactor     .71160        16.846        .36110E-05   -.57714E-04
  15  Prefactor     .10000E-03    10.302        .24089E-08** at limit **
  16  Prefactor     7.3893        .48033        .23697E-08   -.39064E-03
  17  Prefactor     25.988        14.668        .33377E-07   -.14427E-04
  18  Prefactor     14.125        10.501        .16061E-06    .71507E-05
  19  Prefactor     9.1170        10.259        .10532E-06    .27498E-05
  20  Prefactor     20.632        24.144        .26216E-05    .56980E-04
  21  Prefactor     31.528        23.730        .32306E-06    .13778E-04
  22  Prefactor     17.721        10.241        .40581E-07   -.18488E-04
  23  Prefactor     .10000E-03    38.344       -.18772E-06** at limit **
  24  Normalizat    .94872        .27527       -.15287E-05   -.11613E-04
  25  Prefactor     .83538        .12965        .15266E-06   -.74189E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 1.08781
  Prefactor  = 0.000114868
  norm       = 15.023
  Prefactor  = 7.92683
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.87249
  Prefactor  = 0.0001
  norm       = 2.84176
  Prefactor  = 6.64434
  norm       = 2.33607
  Prefactor  = 50.6475
  Prefactor  = 0.711605
  Prefactor  = 0.0001
  Prefactor  = 7.3893
  Prefactor  = 25.9879
  Prefactor  = 14.1253
  Prefactor  = 9.11697
  Prefactor  = 20.6319
  Prefactor  = 31.5281
  Prefactor  = 17.7214
  Prefactor  = 0.0001
  Normalizat = 0.948716
  Prefactor  = 0.835375
 **********
 **   18 **HESSE 
 **********

 FCN=   9881.748     FROM HESSE     STATUS=OK           443 CALLS     3365 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    13.263        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.0878        1.1286        .10377E-03   -1.5499    
   3  Prefactor     .11487E-03    13.685        .97774E-01   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          15.023        7.9018        .10333E-03   -1.4933    
   5  Prefactor     7.9268        17.520        .14234E-03   -1.5145    
   6  Prefactor     .10000E-03    86.385        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    23.945        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     1.8725        .34650        .23149E-04   -1.5434    
   9  Prefactor     .10000E-03    8.3670        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          2.8418        1.2568        .70191E-04   -1.5371    
  11  Prefactor     6.6443        13.029        .15564E-03   -1.5192    
  12  norm          2.3361        1.9239        .11851E-03   -1.5402    
  13  Prefactor     50.647        43.331        .56349E-04   -1.4283    
  14  Prefactor     .71160        18.664        .48433E-03   -1.5539    
  15  Prefactor     .10000E-03    10.315        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     7.3893        .48313        .16159E-04   -1.5164    
  17  Prefactor     25.988        14.679        .78573E-04   -1.4688    
  18  Prefactor     14.125        10.507        .10656E-03   -1.4956    
  19  Prefactor     9.1170        10.262        .13272E-03   -1.5104    
  20  Prefactor     20.632        24.681        .88125E-04   -1.4799    
  21  Prefactor     31.528        23.738        .71356E-04   -1.4584    
  22  Prefactor     17.721        10.244        .95117E-04   -1.4866    
  23  Prefactor     .10000E-03    38.686        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .94872        .31416        .46771E-03   -.94769    
  25  Prefactor     .83538        .14962        .25152E-03   -.98437    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.08812e-10
Minuit parameter uncertainties:
  1  1.66689e-06
  2  1.12866
  3  0.0285354
  4  7.90238
  5  17.5316
  6  5.02736e-05
  7  5.05897e-05
  8  0.3465
  9  4.09779e-06
  10  1.25676
  11  13.0343
  12  1.92394
  13  43.358
  14  7.29077
  15  1.54574e-06
  16  0.483129
  17  14.6807
  18  10.508
  19  10.2644
  20  24.6935
  21  23.7455
  22  10.2455
  23  3.23858e-05
  24  0.314772
  25  0.149688
Done.

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

Extracting fit parameters...

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

EG_v02
   Spectrum: FileFunction
512   Normalization:  9.487e-01  3.148e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.45
Ra Dec: 340.990 20.357
Photon Index (Fixed Index): 1.72 +/- 0.00
Photon Flux (Fixed Index): 2.64e-08 +/- 2.17e-08
Energy Flux (Fixed Index): 3.42e-05 +/- 2.82e-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) = 9881.34435117
delta logL = 0.403871373353

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9881.34023971
delta logL = 0.407982829574

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.0752       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2694       1.0000          .0000       5.0000    
     3 'Normalizat'    .92515       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .83933       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=   9881.340     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      275 TOTAL
                     EDM=   .56E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.0753        1.8126        .94844E-04   -.88941E-04
   2  alpha         2.2695        .63908        .15661E-01    .28682E-03
   3  Normalizat    .92512        .29207        .47261E-03    .77457E-05
   4  Prefactor     .83934        .14871        .25077E-03    .21580E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.07526
  alpha      = 2.2695
  Normalizat = 0.925124
  Prefactor  = 0.839338
 **********
 **   18 **HESSE 
 **********

 FCN=   9881.340     FROM HESSE     STATUS=OK            25 CALLS      300 TOTAL
                     EDM=   .21E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.0753        1.7387        .37938E-05   -1.5420    
   2  alpha         2.2695        .61329        .31321E-02   -.92333E-01
   3  Normalizat    .92512        .29203        .18904E-04   -.95583    
   4  Prefactor     .83934        .14877        .10031E-04   -.98294    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.09487e-12
Minuit parameter uncertainties:
  1  1.73877
  2  0.619666
  3  0.292527
  4  0.148843
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/449854': 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) = 9881.34023969
delta logL = 0.407982846267

Extracting fit parameters...

4FGL J2243.9+2021
   Spectrum: LogParabola
288         norm:  2.075e+00  1.739e+00  1.000e-04  1.000e+04 ( 1.000e-12)
289        alpha:  2.269e+00  6.197e-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.393e-01  1.488e-01  0.000e+00  1.000e+01 ( 1.000e+00)
514        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
515        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
512   Normalization:  9.251e-01  2.925e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.24
Ra Dec: 340.990 20.357
Photon Index (Free Index): 2.27 +/- 0.62
Photon Flux (Free Index): 5.57e-08 +/- 5.19e-08
Energy Flux (Free Index): 2.43e-05 +/- 1.77e-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/449854/cmap_HighResolution_473904001_474163201_4FGL_J2243.9+2021_daily_bin905.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.64e-08', energy_flux2='2.43e-05', photon_flux_error='2.17e-08', dlogl='4.08e-01', energy_flux='3.42e-05', photon_flux2='5.57e-08', job_status='DONE', time_completed='2021-09-28 19:31:53.880340', photon_index_error2='0.62', photon_index2='2.27', ts='4.45', fit_tolerance='1e-08', GAL='0.84', photon_index_error='0.00', energy_flux_error2='1.77e-05', EG='0.95', time_epoch_completed='1632882713.88', return_code='0', job_id='449854', GAL2='0.84', EG2='0.93', return_code2='0', energy_flux_error='2.82e-05', photon_flux_error2='5.19e-08', ts2='5.24', photon_index='1.72' WHERE bin_id='905' AND source_name='4FGL J2243.9+2021' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 19:31:53 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0258>
Subject: Job 449854: <4FGL_J2243.9+2021_daily_bin905> in cluster <slac> Done

Job <4FGL_J2243.9+2021_daily_bin905> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Tue Sep 28 19:15:43 2021
Job was executed on host(s) <bullet0258>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 19:15:44 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:15:44 2021
Terminated at Tue Sep 28 19:31:54 2021
Results reported at Tue Sep 28 19:31:54 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2243.9+2021_daily_bin905 340.99 20.3565 473904001 474163201 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 :                                   850.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             312.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   970 sec.
    Turnaround time :                            971 sec.

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

