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


Performing analysis on: 4FGL_J2243.4-2544_daily_bin1433
RA = 340.865, Dec = -25.7363
tmin = 610761601, tmax = 611020801
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='438417', job_status='RUN', time_executed='2021-09-28 18:42:00.825234', time_epoch_executed='1632879720.83' WHERE source_name='4FGL J2243.4-2544' and cadence='daily' and bin_id='1433'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/438417

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/438417/ft1_4FGL_J2243.4-2544_daily_bin1433.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/438417/ft2_4FGL_J2243.4-2544_daily_bin1433.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/438417/ft1_4FGL_J2243.4-2544_daily_bin1433.fits outfile=/scratch/kocevski/438417/ft1_filteredMKT_4FGL_J2243.4-2544_daily_bin1433.fits ra=340.865 dec=-25.7363 rad=12.0 tmin=610761601.0 tmax=611020801.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.51
user 3.31
sys 0.19

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/438417/ft2_4FGL_J2243.4-2544_daily_bin1433.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/438417/ft2_4FGL_J2243.4-2544_daily_bin1433.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/438417/ft1_filteredMKT_4FGL_J2243.4-2544_daily_bin1433.fits evtable="EVENTS" outfile="/scratch/kocevski/438417/ft1_filtered_4FGL_J2243.4-2544_daily_bin1433.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.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/438417/ft1_filtered_4FGL_J2243.4-2544_daily_bin1433.fits" evtable="EVENTS" scfile=/scratch/kocevski/438417/ft2_4FGL_J2243.4-2544_daily_bin1433.fits sctable="SC_DATA" outfile=/scratch/kocevski/438417/ltcube_610761601_611020801_4FGL_J2243.4-2544_daily_bin1433.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/438417/ft2_4FGL_J2243.4-2544_daily_bin1433.fits
.....................!
real 11.97
user 11.66
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/438417/ft1_filtered_4FGL_J2243.4-2544_daily_bin1433.fits evtable="EVENTS" scfile=/scratch/kocevski/438417/ft2_4FGL_J2243.4-2544_daily_bin1433.fits sctable="SC_DATA" expcube=/scratch/kocevski/438417/ltcube_610761601_611020801_4FGL_J2243.4-2544_daily_bin1433.fits outfile=/scratch/kocevski/438417/expmap_610761601_611020801_4FGL_J2243.4-2544_daily_bin1433.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/438417/ltcube_610761601_611020801_4FGL_J2243.4-2544_daily_bin1433.fits
.....................!
real 189.49
user 184.76
sys 4.39

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 161 point sources and 0 extended sources

Setting source of interest to:
4FGL J2243.4-2544 @ 340.865 -25.7363

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/438417/ft1_filtered_4FGL_J2243.4-2544_daily_bin1433.fits scfile=/scratch/kocevski/438417/ft2_4FGL_J2243.4-2544_daily_bin1433.fits outfile=/scratch/kocevski/438417/cmap_610761601_611020801_4FGL_J2243.4-2544_daily_bin1433.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.865 yref=-25.7363 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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/438417/ft1_filtered_4FGL_J2243.4-2544_daily_bin1433.fits scfile=/scratch/kocevski/438417/ft2_4FGL_J2243.4-2544_daily_bin1433.fits outfile=/scratch/kocevski/438417/cmap_HighResolution_610761601_611020801_4FGL_J2243.4-2544_daily_bin1433.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.865 yref=-25.7363 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/438417/ft1_filtered_4FGL_J2243.4-2544_daily_bin1433.fits evtable="EVENTS" scfile=/scratch/kocevski/438417/ft2_4FGL_J2243.4-2544_daily_bin1433.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/438417/Model_4FGL_J2243.4-2544_daily_bin1433.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/438417/ft1_filtered_4FGL_J2243.4-2544_daily_bin1433.fits.....................!
real 49.28
user 48.00
sys 1.19

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/438417/ft1_filtered_4FGL_J2243.4-2544_daily_bin1433.fits', '/scratch/kocevski/438417/ft2_4FGL_J2243.4-2544_daily_bin1433.fits', expMap='/scratch/kocevski/438417/expmap_610761601_611020801_4FGL_J2243.4-2544_daily_bin1433.fits', expCube='/scratch/kocevski/438417/ltcube_610761601_611020801_4FGL_J2243.4-2544_daily_bin1433.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/438417/Model_4FGL_J2243.4-2544_daily_bin1433.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2243.4-2544'

4FGL J2243.4-2544
   Spectrum: LogParabola
252         norm:  1.477e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
253        alpha:  1.999e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
254         beta:  1.309e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
255           Eb:  1.191e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/438417/ft1_filtered_4FGL_J2243.4-2544_daily_bin1433.fits
Spacecraft file(s): /scratch/kocevski/438417/ft2_4FGL_J2243.4-2544_daily_bin1433.fits
Exposure map: /scratch/kocevski/438417/expmap_610761601_611020801_4FGL_J2243.4-2544_daily_bin1433.fits
Exposure cube: /scratch/kocevski/438417/ltcube_610761601_611020801_4FGL_J2243.4-2544_daily_bin1433.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/438417/Model_4FGL_J2243.4-2544_daily_bin1433.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) = 5981.87588481

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .24520E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    137.51       1.0000         .10000E-03   10000.    
     3 'norm      '    .53466       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    12.931       1.0000         .10000E-03   10000.    
     6 'Prefactor '    12.090       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    19.664       1.0000         .10000E-03   10000.    
     9 'Prefactor '    9.5600       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .17565       1.0000         .10000E-03   10000.    
    12 'norm      '    2.5362       1.0000         .10000E-03   10000.    
    13 'Prefactor '    17.088       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10049E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10092E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    2.4732       1.0000         .10000E-03   10000.    
    18 'norm      '    2.6053       1.0000         .10000E-03   10000.    
    19 'Prefactor '    30.579       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .39508E-01   1.0000         .10000E-03   10000.    
    21 'Prefactor '    9.5110       1.0000         .10000E-03   10000.    
    22 'norm      '    4.4123       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10262E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.1765       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .78155       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5200E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5981.750     FROM MIGRAD    STATUS=CONVERGED    601 CALLS     2978 TOTAL
                     EDM=   .67E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10003E-03    35.722       -.40117E-05** at limit **
   2  Prefactor     137.46        82.227        .44585E-05    .29808E-04
   3  norm          .53462        .29912       -.37963E-07   -.96588E-03
   4  Prefactor     .10000E-03    7.0353       -.50125E-06** at limit **
   5  Prefactor     12.916        21.420       -.21204E-06   -.38924E-04
   6  Prefactor     12.086        9.1569        .76085E-06    .54177E-04
   7  Prefactor     .10000E-03    34.942       -.16594E-05** at limit **
   8  norm          19.664        18.031       -.10153E-06   -.19748E-04
   9  Prefactor     9.5541        21.595        .51181E-07   -.22375E-04
  10  Prefactor     .10000E-03    5.8071        .33811E-07** at limit **
  11  norm          .17599        .67802        .27964E-06   -.25854E-03
  12  norm          2.5361        1.8946       -.19559E-07   -.44673E-04
  13  Prefactor     17.071        35.699       -.90457E-06   -.10376E-04
  14  Prefactor     .10000E-03    10.666        .13760E-06** at limit **
  15  norm          .10000E-03    1.0836        .48501E-07** at limit **
  16  Prefactor     .10000E-03    3.9367        .38295E-07** at limit **
  17  Prefactor     2.4551        12.656        .12879E-04   -.12704E-03
  18  norm          2.6061        .90506       -.56721E-06   -.26742E-03
  19  Prefactor     30.568        38.228        .58819E-06    .27666E-05
  20  Prefactor     .10005E-03    9.8825        .99261E-06** at limit **
  21  Prefactor     9.5015        9.2555       -.12893E-05   -.44415E-04
  22  norm          4.4099        3.2371        .79190E-07    .10684E-04
  23  Prefactor     .10000E-03    89.513        .70396E-07** at limit **
  24  Normalizat    1.1772        .19513       -.10502E-05   -.60130E-04
  25  Prefactor     .78102        .17100       -.78909E-06   -.35544E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100028
  Prefactor  = 137.458
  norm       = 0.534617
  Prefactor  = 0.0001
  Prefactor  = 12.9156
  Prefactor  = 12.0862
  Prefactor  = 0.0001
  norm       = 19.6638
  Prefactor  = 9.55408
  Prefactor  = 0.0001
  norm       = 0.175987
  norm       = 2.53613
  Prefactor  = 17.0712
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.45509
  norm       = 2.60612
  Prefactor  = 30.5676
  Prefactor  = 0.000100049
  Prefactor  = 9.5015
  norm       = 4.40991
  Prefactor  = 0.0001
  Normalizat = 1.17719
  Prefactor  = 0.781024
 **********
 **   18 **HESSE 
 **********

 FCN=   5981.750     FROM HESSE     STATUS=OK           439 CALLS     3417 TOTAL
                     EDM=   .22E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10003E-03    36.282        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     137.46        82.182        .17174E-03   -1.3358    
   3  norm          .53462        .30265        .30656E-04   -1.5562    
   4  Prefactor     .10000E-03    7.0935        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     12.916        21.418        .11139E-03   -1.4989    
   6  Prefactor     12.086        9.1746        .11521E-03   -1.5013    
   7  Prefactor     .10000E-03    34.990        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          19.664        18.031        .90322E-04   -1.4821    
   9  Prefactor     9.5541        21.588        .12961E-03   -1.5090    
  10  Prefactor     .10000E-03    5.8248        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .17599        1.0880        .11829E-02   -1.5624    
  12  norm          2.5361        1.8934        .86027E-04   -1.5389    
  13  Prefactor     17.071        35.690        .96889E-04   -1.4881    
  14  Prefactor     .10000E-03    10.866        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    1.0865        .78619E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    3.9391        .14986E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     2.4551        13.252        .13000E-02   -1.5395    
  18  norm          2.6061        .91551        .33732E-04   -1.5385    
  19  Prefactor     30.568        38.263        .72455E-04   -1.4602    
  20  Prefactor     .10005E-03    13.965        .72117E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     9.5015        9.3018        .12994E-03   -1.5091    
  22  norm          4.4099        3.2377        .11547E-03   -1.5288    
  23  Prefactor     .10000E-03    91.262        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.1772        .23694        .24065E-03   -.87311    
  25  Prefactor     .78102        .20712        .26182E-03   -1.0043    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.18333e-08
Minuit parameter uncertainties:
  1  0.00201121
  2  82.2501
  3  0.302653
  4  7.75516e-05
  5  21.4309
  6  9.17566
  7  4.69537e-05
  8  18.0362
  9  21.6055
  10  5.27138e-06
  11  0.87493
  12  1.89343
  13  35.735
  14  2.12264e-05
  15  4.07329e-07
  16  7.87911e-07
  17  11.4117
  18  0.915517
  19  38.2938
  20  0.00166248
  21  9.30322
  22  3.23787
  23  0.000316549
  24  0.237153
  25  0.207323
Done.

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

Extracting fit parameters...

4FGL J2243.4-2544
   Spectrum: LogParabola
252         norm:  2.536e+00  1.893e+00  1.000e-04  1.000e+04 ( 1.000e-12)
253        alpha:  1.999e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
254         beta:  1.309e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
255           Eb:  1.191e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
517    Prefactor:  7.810e-01  2.073e-01  0.000e+00  1.000e+01 ( 1.000e+00)
518        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
519        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
516   Normalization:  1.177e+00  2.372e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.37
Ra Dec: 340.865 -25.736
Photon Index (Fixed Index): 2.00 +/- 0.00
Photon Flux (Fixed Index): 2.45e-08 +/- 1.83e-08
Energy Flux (Fixed Index): 1.56e-05 +/- 1.17e-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) = 5981.32460207
delta logL = 0.42498865241

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5981.32169122
delta logL = 0.42789950487

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.6708       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.4510       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1865       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .77702       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5200E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5981.322     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      204 TOTAL
                     EDM=   .93E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.6710        2.1525        .62343E-02   -.11355E-03
   2  alpha         1.4510        .54860        .41086       -.13589E-04
   3  Normalizat    1.1865        .18528        .54247E-01    .57596E-05
   4  Prefactor     .77703        .16827        .43417E-01    .16391E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.67103
  alpha      = 1.45104
  Normalizat = 1.18651
  Prefactor  = 0.77703
 **********
 **   18 **HESSE 
 **********

 FCN=   5981.322     FROM HESSE     STATUS=OK            33 CALLS      237 TOTAL
                     EDM=   .30E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.6710        1.9683        .88157E-04   -1.5381    
   2  alpha         1.4510        .55699        .16299E-01   -.43299    
   3  Normalizat    1.1865        .22039        .23986E-03   -.87021    
   4  Prefactor     .77703        .20048        .26243E-03   -1.0058    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.97593e-13
Minuit parameter uncertainties:
  1  1.9683
  2  0.562738
  3  0.22056
  4  0.200673
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/438417': 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) = 5981.32169121
delta logL = 0.427899516151

Extracting fit parameters...

4FGL J2243.4-2544
   Spectrum: LogParabola
252         norm:  2.671e+00  1.968e+00  1.000e-04  1.000e+04 ( 1.000e-12)
253        alpha:  1.451e+00  5.627e-01  0.000e+00  5.000e+00 ( 1.000e+00)
254         beta:  1.309e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
255           Eb:  1.191e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
517    Prefactor:  7.770e-01  2.007e-01  0.000e+00  1.000e+01 ( 1.000e+00)
518        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
519        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
516   Normalization:  1.187e+00  2.206e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.24
Ra Dec: 340.865 -25.736
Photon Index (Free Index): 1.45 +/- 0.56
Photon Flux (Free Index): 1.49e-08 +/- 1.32e-08
Energy Flux (Free Index): 2.88e-05 +/- 3.08e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/438417/cmap_HighResolution_610761601_611020801_4FGL_J2243.4-2544_daily_bin1433.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.45e-08', energy_flux2='2.88e-05', photon_flux_error='1.83e-08', dlogl='4.28e-01', energy_flux='1.56e-05', photon_flux2='1.49e-08', job_status='DONE', time_completed='2021-09-28 18:51:50.301585', photon_index_error2='0.56', photon_index2='1.45', ts='6.37', fit_tolerance='1e-08', GAL='0.78', photon_index_error='0.00', energy_flux_error2='3.08e-05', EG='1.18', time_epoch_completed='1632880310.3', return_code='0', job_id='438417', GAL2='0.78', EG2='1.19', return_code2='0', energy_flux_error='1.17e-05', photon_flux_error2='1.32e-08', ts2='7.24', photon_index='2.00' WHERE bin_id='1433' AND source_name='4FGL J2243.4-2544' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 18:51:50 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0274>
Subject: Job 438417: <4FGL_J2243.4-2544_daily_bin1433> in cluster <slac> Done

Job <4FGL_J2243.4-2544_daily_bin1433> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Sep 28 18:40:46 2021
Job was executed on host(s) <bullet0274>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 18:40:47 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 28 18:40:47 2021
Terminated at Tue Sep 28 18:51:51 2021
Results reported at Tue Sep 28 18:51:51 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2243.4-2544_daily_bin1433 340.865 -25.7363 610761601 611020801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2243.4-2544 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   579.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             352.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   663 sec.
    Turnaround time :                            665 sec.

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

