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


Performing analysis on: 4FGL_J2243.4-2544_daily_bin1074
RA = 340.865, Dec = -25.7363
tmin = 517708801, tmax = 517968001
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='436818', job_status='RUN', time_executed='2021-09-28 18:36:47.676275', time_epoch_executed='1632879407.68' WHERE source_name='4FGL J2243.4-2544' and cadence='daily' and bin_id='1074'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/436818

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/436818/ft1_4FGL_J2243.4-2544_daily_bin1074.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/436818/ft2_4FGL_J2243.4-2544_daily_bin1074.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/436818/ft1_4FGL_J2243.4-2544_daily_bin1074.fits outfile=/scratch/kocevski/436818/ft1_filteredMKT_4FGL_J2243.4-2544_daily_bin1074.fits ra=340.865 dec=-25.7363 rad=12.0 tmin=517708801.0 tmax=517968001.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.66
user 3.44
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/436818/ft2_4FGL_J2243.4-2544_daily_bin1074.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/436818/ft1_filteredMKT_4FGL_J2243.4-2544_daily_bin1074.fits evtable="EVENTS" outfile="/scratch/kocevski/436818/ft1_filtered_4FGL_J2243.4-2544_daily_bin1074.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.50
user 0.31
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/436818/ft1_filtered_4FGL_J2243.4-2544_daily_bin1074.fits" evtable="EVENTS" scfile=/scratch/kocevski/436818/ft2_4FGL_J2243.4-2544_daily_bin1074.fits sctable="SC_DATA" outfile=/scratch/kocevski/436818/ltcube_517708801_517968001_4FGL_J2243.4-2544_daily_bin1074.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/436818/ft2_4FGL_J2243.4-2544_daily_bin1074.fits
.....................!
real 12.08
user 11.71
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/436818/ft1_filtered_4FGL_J2243.4-2544_daily_bin1074.fits evtable="EVENTS" scfile=/scratch/kocevski/436818/ft2_4FGL_J2243.4-2544_daily_bin1074.fits sctable="SC_DATA" expcube=/scratch/kocevski/436818/ltcube_517708801_517968001_4FGL_J2243.4-2544_daily_bin1074.fits outfile=/scratch/kocevski/436818/expmap_517708801_517968001_4FGL_J2243.4-2544_daily_bin1074.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/436818/ltcube_517708801_517968001_4FGL_J2243.4-2544_daily_bin1074.fits
.....................!
real 193.85
user 189.37
sys 4.16

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/436818/ft1_filtered_4FGL_J2243.4-2544_daily_bin1074.fits scfile=/scratch/kocevski/436818/ft2_4FGL_J2243.4-2544_daily_bin1074.fits outfile=/scratch/kocevski/436818/cmap_517708801_517968001_4FGL_J2243.4-2544_daily_bin1074.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.53
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/436818/ft1_filtered_4FGL_J2243.4-2544_daily_bin1074.fits scfile=/scratch/kocevski/436818/ft2_4FGL_J2243.4-2544_daily_bin1074.fits outfile=/scratch/kocevski/436818/cmap_HighResolution_517708801_517968001_4FGL_J2243.4-2544_daily_bin1074.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.53
user 0.38
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/436818/ft1_filtered_4FGL_J2243.4-2544_daily_bin1074.fits evtable="EVENTS" scfile=/scratch/kocevski/436818/ft2_4FGL_J2243.4-2544_daily_bin1074.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/436818/Model_4FGL_J2243.4-2544_daily_bin1074.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/436818/ft1_filtered_4FGL_J2243.4-2544_daily_bin1074.fits.....................!
real 47.71
user 46.49
sys 1.13

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/436818/ft1_filtered_4FGL_J2243.4-2544_daily_bin1074.fits', '/scratch/kocevski/436818/ft2_4FGL_J2243.4-2544_daily_bin1074.fits', expMap='/scratch/kocevski/436818/expmap_517708801_517968001_4FGL_J2243.4-2544_daily_bin1074.fits', expCube='/scratch/kocevski/436818/ltcube_517708801_517968001_4FGL_J2243.4-2544_daily_bin1074.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/436818/Model_4FGL_J2243.4-2544_daily_bin1074.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/436818/ft1_filtered_4FGL_J2243.4-2544_daily_bin1074.fits
Spacecraft file(s): /scratch/kocevski/436818/ft2_4FGL_J2243.4-2544_daily_bin1074.fits
Exposure map: /scratch/kocevski/436818/expmap_517708801_517968001_4FGL_J2243.4-2544_daily_bin1074.fits
Exposure cube: /scratch/kocevski/436818/ltcube_517708801_517968001_4FGL_J2243.4-2544_daily_bin1074.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/436818/Model_4FGL_J2243.4-2544_daily_bin1074.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) = 5484.41503634

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10227E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .11277E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    3.2361       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .12462E-02   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .44987       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .42838E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .12025E-01   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .32701E-02   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .17042E-02   1.0000         .10000E-03   10000.    
    11 'norm      '    1.2137       1.0000         .10000E-03   10000.    
    12 'norm      '    3.5126       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .74656E-02   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .40151E-02   1.0000         .10000E-03   10000.    
    15 'norm      '    3.4022       1.0000         .10000E-03   10000.    
    16 'Prefactor '    15.436       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .12520E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .42694E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10733E-02   1.0000         .10000E-03   10000.    
    21 'Prefactor '    15.512       1.0000         .10000E-03   10000.    
    22 'norm      '    .10166E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    18.247       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.2823       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .77968       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=   5484.209     FROM MIGRAD    STATUS=CONVERGED    601 CALLS     2147 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    13.204        .41556E-05** at limit **
   2  Prefactor     .10000E-03    26.616       -.51923E-05** at limit **
   3  norm          3.2356        .60074       -.43618E-08    .21919E-03
   4  Prefactor     .10000E-03    2.5145       -.13558E-06** at limit **
   5  Prefactor     .10000E-03    5.9809       -.12105E-06** at limit **
   6  Prefactor     .40037        9.3813       -.54922E-06   -.13634E-03
   7  Prefactor     .10000E-03    28.093        .64275E-05** at limit **
   8  norm          .10000E-03    37.866       -.22680E-04** at limit **
   9  Prefactor     .10000E-03    16.917       -.11424E-04** at limit **
  10  Prefactor     .10000E-03    7.9946       -.32164E-06** at limit **
  11  norm          1.2133        .98222        .10943E-07   -.32511E-03
  12  norm          3.5136        2.6290       -.13238E-06   -.40117E-03
  13  Prefactor     .10000E-03    46.499        .34443E-04** at limit **
  14  Prefactor     .10000E-03    19.234       -.62475E-06** at limit **
  15  norm          3.4084        3.5847       -.38809E-06    .28501E-03
  16  Prefactor     15.340        12.154        .34662E-05    .46906E-03
  17  Prefactor     .10000E-03    10.107       -.13670E-05** at limit **
  18  norm          .10000E-03    .43242       -.66958E-06** at limit **
  19  Prefactor     .10000E-03    28.448        .65166E-05** at limit **
  20  Prefactor     .10020E-03    8.0343       -.18855E-05** at limit **
  21  Prefactor     15.345        12.740        .22286E-05    .79309E-03
  22  norm          .10000E-03    1.8569        .18643E-07** at limit **
  23  Prefactor     17.946        31.247       -.29183E-05    .42440E-05
  24  Normalizat    1.2834        .20112       -.15203E-06    .57806E-03
  25  Prefactor     .77937        .17552        .39978E-06    .45786E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.23557
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.400371
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.21332
  norm       = 3.51363
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.4084
  Prefactor  = 15.3396
  Prefactor  = 0.000100001
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.000100203
  Prefactor  = 15.3447
  norm       = 0.0001
  Prefactor  = 17.9463
  Normalizat = 1.28336
  Prefactor  = 0.779373
 **********
 **   18 **HESSE 
 **********

 FCN=   5484.209     FROM HESSE     STATUS=OK           421 CALLS     2568 TOTAL
                     EDM=   .61E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    13.211        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    26.619        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          3.2356        .60132        .24006E-04   -1.5348    
   4  Prefactor     .10000E-03    2.5164        .11469E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    5.9895        .17688E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .40037        62.673        .42163E-02   -1.5581    
   7  Prefactor     .10000E-03    28.099        .21232E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    38.144        .18166E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    16.997        .19733E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    8.0697        .20367E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          1.2133        .96227        .63794E-04   -1.5488    
  12  norm          3.5136        2.6236        .10012E-03   -1.5333    
  13  Prefactor     .10000E-03    45.890        .18594E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    19.698        .38979E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          3.4084        3.5653        .13694E-03   -1.5339    
  16  Prefactor     15.340        12.109        .10194E-03   -1.4924    
  17  Prefactor     .10000E-03    10.233        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    1.6405        .85644E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    28.441        .21233E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10020E-03    46.287        .40337E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     15.345        12.058        .10169E-03   -1.4924    
  22  norm          .10000E-03    3.5258        .19616E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     17.946        31.231        .93762E-04   -1.4860    
  24  Normalizat    1.2834        .24050        .23870E-03   -.84064    
  25  Prefactor     .77937        .20853        .26775E-03   -1.0049    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.13923e-09
Minuit parameter uncertainties:
  1  1.24703e-06
  2  1.88461e-06
  3  0.601321
  4  2.20495e-07
  5  4.95885e-07
  6  10.0279
  7  6.46671e-06
  8  0.000262887
  9  5.39475e-05
  10  1.05898e-05
  11  0.962283
  12  2.62364
  13  8.33438e-05
  14  6.80286e-06
  15  3.56551
  16  12.1111
  17  0.000186002
  18  6.92763e-05
  19  1.52131e-06
  20  0.00613905
  21  12.0598
  22  1.50307e-05
  23  31.2595
  24  0.240714
  25  0.208741
Done.

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

Extracting fit parameters...

4FGL J2243.4-2544
   Spectrum: LogParabola
252         norm:  3.514e+00  2.624e+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.794e-01  2.087e-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.283e+00  2.407e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.28
Ra Dec: 340.865 -25.736
Photon Index (Fixed Index): 2.00 +/- 0.00
Photon Flux (Fixed Index): 3.40e-08 +/- 2.54e-08
Energy Flux (Fixed Index): 2.16e-05 +/- 1.61e-05

TS (Fixed Index): 3.28
Ra Dec: 340.865 -25.736
Photon Flux Upper Limit: 9.27e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.90e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/436818/likelihoodResults_517708801_517968001_4FGL_J2243.4-2544_daily_bin1074.txt

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) = 5484.13811238
delta logL = 0.0708236019373

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5484.13689448
delta logL = 0.0720414995194

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.9741       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2557       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2743       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .78446       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=   5484.137     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      233 TOTAL
                     EDM=   .54E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.9763        50.565        .58859E-02    .10063E-02
   2  alpha         2.2542        3.4843        .34566        .11112E-03
   3  Normalizat    1.2740        .82343E-01    .54146E-01    .78743E-04
   4  Prefactor     .78476        .63027E-01    .43515E-01    .11030E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.97629
  alpha      = 2.25416
  Normalizat = 1.27404
  Prefactor  = 0.784757
 **********
 **   18 **HESSE 
 **********

 FCN=   5484.137     FROM HESSE     STATUS=OK            31 CALLS      264 TOTAL
                     EDM=   .31E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.9763        2.9718        .89771E-04   -1.5363    
   2  alpha         2.2542        .72463        .12297E-01   -.98494E-01
   3  Normalizat    1.2740        .22921        .23941E-03   -.84345    
   4  Prefactor     .78476        .20615        .26692E-03   -1.0029    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.09813e-10
Minuit parameter uncertainties:
  1  2.9719
  2  0.735285
  3  0.229387
  4  0.206356
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/436818': 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) = 5484.13689055
delta logL = 0.0720454239881

Extracting fit parameters...

4FGL J2243.4-2544
   Spectrum: LogParabola
252         norm:  2.976e+00  2.972e+00  1.000e-04  1.000e+04 ( 1.000e-12)
253        alpha:  2.254e+00  7.353e-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.848e-01  2.064e-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.274e+00  2.294e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.41
Ra Dec: 340.865 -25.736
Photon Index (Free Index): 2.25 +/- 0.74
Photon Flux (Free Index): 4.14e-08 +/- 3.50e-08
Energy Flux (Free Index): 1.82e-05 +/- 1.61e-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/436818/cmap_HighResolution_517708801_517968001_4FGL_J2243.4-2544_daily_bin1074.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.90e-05', comment='SUCCESS', photon_flux='3.40e-08', energy_flux2='1.82e-05', photon_flux_error='2.54e-08', dlogl='7.20e-02', energy_flux='2.16e-05', photon_flux2='4.14e-08', job_status='DONE', time_completed='2021-09-28 18:46:21.905659', photon_index_error2='0.74', photon_index2='2.25', ts='3.28', fit_tolerance='1e-08', GAL='0.78', photon_index_error='0.00', photon_flux_upper_limit='9.27e-08', energy_flux_error2='1.61e-05', EG='1.28', time_epoch_completed='1632879981.91', return_code='0', job_id='436818', GAL2='0.78', EG2='1.27', return_code2='0', energy_flux_error='1.61e-05', photon_flux_error2='3.50e-08', ts2='3.41', photon_index='2.00' WHERE bin_id='1074' AND source_name='4FGL J2243.4-2544' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 18:46:21 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0103>
Subject: Job 436818: <4FGL_J2243.4-2544_daily_bin1074> in cluster <slac> Done

Job <4FGL_J2243.4-2544_daily_bin1074> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Sep 28 18:35:42 2021
Job was executed on host(s) <bullet0103>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 18:35:43 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:35:43 2021
Terminated at Tue Sep 28 18:46:22 2021
Results reported at Tue Sep 28 18:46:22 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2243.4-2544_daily_bin1074 340.865 -25.7363 517708801 517968001 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 :                                   573.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             299.09 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   639 sec.
    Turnaround time :                            640 sec.

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

