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


Performing analysis on: 4FGL_J2243.4-2544_daily_bin1648
RA = 340.865, Dec = -25.7363
tmin = 666489601, tmax = 666748801
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='45018', job_status='RUN', time_executed='2022-02-17 02:34:46.721252', time_epoch_executed='1645094086.72' WHERE source_name='4FGL J2243.4-2544' and cadence='daily' and bin_id='1648'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/45018

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/45018/ft1_4FGL_J2243.4-2544_daily_bin1648.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/45018/ft2_4FGL_J2243.4-2544_daily_bin1648.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/45018/ft1_4FGL_J2243.4-2544_daily_bin1648.fits outfile=/scratch/kocevski/45018/ft1_filteredMKT_4FGL_J2243.4-2544_daily_bin1648.fits ra=340.865 dec=-25.7363 rad=12.0 tmin=666489601.0 tmax=666748801.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.18
user 2.91
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/45018/ft2_4FGL_J2243.4-2544_daily_bin1648.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/45018/ft1_filteredMKT_4FGL_J2243.4-2544_daily_bin1648.fits evtable="EVENTS" outfile="/scratch/kocevski/45018/ft1_filtered_4FGL_J2243.4-2544_daily_bin1648.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.49
user 0.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/45018/ft1_filtered_4FGL_J2243.4-2544_daily_bin1648.fits" evtable="EVENTS" scfile=/scratch/kocevski/45018/ft2_4FGL_J2243.4-2544_daily_bin1648.fits sctable="SC_DATA" outfile=/scratch/kocevski/45018/ltcube_666489601_666748801_4FGL_J2243.4-2544_daily_bin1648.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/45018/ft2_4FGL_J2243.4-2544_daily_bin1648.fits
.....................!
real 14.50
user 14.14
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/45018/ft1_filtered_4FGL_J2243.4-2544_daily_bin1648.fits evtable="EVENTS" scfile=/scratch/kocevski/45018/ft2_4FGL_J2243.4-2544_daily_bin1648.fits sctable="SC_DATA" expcube=/scratch/kocevski/45018/ltcube_666489601_666748801_4FGL_J2243.4-2544_daily_bin1648.fits outfile=/scratch/kocevski/45018/expmap_666489601_666748801_4FGL_J2243.4-2544_daily_bin1648.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/45018/ltcube_666489601_666748801_4FGL_J2243.4-2544_daily_bin1648.fits
.....................!
real 190.56
user 185.37
sys 4.84

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/45018/ft1_filtered_4FGL_J2243.4-2544_daily_bin1648.fits scfile=/scratch/kocevski/45018/ft2_4FGL_J2243.4-2544_daily_bin1648.fits outfile=/scratch/kocevski/45018/cmap_666489601_666748801_4FGL_J2243.4-2544_daily_bin1648.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.61
user 0.40
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/45018/ft1_filtered_4FGL_J2243.4-2544_daily_bin1648.fits scfile=/scratch/kocevski/45018/ft2_4FGL_J2243.4-2544_daily_bin1648.fits outfile=/scratch/kocevski/45018/cmap_HighResolution_666489601_666748801_4FGL_J2243.4-2544_daily_bin1648.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.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/45018/ft1_filtered_4FGL_J2243.4-2544_daily_bin1648.fits evtable="EVENTS" scfile=/scratch/kocevski/45018/ft2_4FGL_J2243.4-2544_daily_bin1648.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/45018/Model_4FGL_J2243.4-2544_daily_bin1648.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/45018/ft1_filtered_4FGL_J2243.4-2544_daily_bin1648.fits............!
real 14.41
user 13.15
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11553E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    337.40       1.0000         .10000E-03   10000.    
     3 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10569E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .16843E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    9999.7       1.0000         .10000E-03   10000.    
     8 'norm      '    9986.4       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .20192E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
    11 'norm      '    .10026E-03   1.0000         .10000E-03   10000.    
    12 'norm      '   10000.0       1.0000         .10000E-03   10000.    
    13 'Prefactor '    9999.6       1.0000         .10000E-03   10000.    
    14 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
    15 'norm      '   10000.0       1.0000         .10000E-03   10000.    
    16 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
    17 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
    18 'norm      '    10000.       1.0000         .10000E-03   10000.    
    19 'Prefactor '    90.398       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10771E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .37807E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    99.184       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    25 'Prefactor '    .19651E-07   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=   107.2299     FROM MIGRAD    STATUS=CONVERGED    606 CALLS     3385 TOTAL
                     EDM=   .97E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    165.53       -.89407E-05** at limit **
   2  Prefactor     336.70        362.34       -.16691E-04    .22807E-04
   3  norm          .10000E-03    1.0020        .25219E-06** at limit **
   4  Prefactor     .10000E-03    78.756        .65348E-05** at limit **
   5  Prefactor     .10000E-03    341.37       -.13064E-05** at limit **
   6  Prefactor     .10000E-03    35.829       -.48972E-06** at limit **
   7  Prefactor    10000.0        5176.9        .20173E-04** at limit **
   8  norm         10000.0        5967.8       -.34669E-03** at limit **
   9  Prefactor     .10000E-03    455.81        .93489E-05** at limit **
  10  Prefactor    10000.0        8163.1        .13223E-03** at limit **
  11  norm          .10000E-03    54.104        .14435E-08** at limit **
  12  norm         10000.0        6968.9       -.41485E-04** at limit **
  13  Prefactor    10000.0        7868.7       -.20627E-03** at limit **
  14  Prefactor    10000.0        9921.0        .16965E-04** at limit **
  15  norm         10000.0        8372.4       -.10064E-03** at limit **
  16  Prefactor    10000.0        9895.6        .62816E-04** at limit **
  17  Prefactor    10000.0        8729.4        .63425E-04** at limit **
  18  norm         10000.0        1119.9        .65635E-05** at limit **
  19  Prefactor    10000.0        5108.2        .36094E-03** at limit **
  20  Prefactor     .10000E-03    152.29        .14769E-05** at limit **
  21  Prefactor     .10016E-03    8059.6        .13761E-03** at limit **
  22  norm          .10000E-03    6.9989        .16017E-05** at limit **
  23  Prefactor     99.125        115.53       -.51931E-05   -.28929E-04
  24  Normalizat    .10000E-01    .15355        .17787E-05** at limit **
  25  Prefactor     .40468E-12    .22008       -.95056E-05** at limit **
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100004
  Prefactor  = 336.697
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10000
  norm       = 10000
  Prefactor  = 0.0001
  Prefactor  = 10000
  norm       = 0.0001
  norm       = 10000
  Prefactor  = 10000
  Prefactor  = 10000
  norm       = 10000
  Prefactor  = 10000
  Prefactor  = 10000
  norm       = 10000
  Prefactor  = 10000
  Prefactor  = 0.000100002
  Prefactor  = 0.000100156
  norm       = 0.0001
  Prefactor  = 99.1246
  Normalizat = 0.01
  Prefactor  = 4.04676e-13
 **********
 **   18 **HESSE 
 **********

 FCN=   107.2299     FROM HESSE     STATUS=OK           405 CALLS     3790 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    172.81        .13362E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     336.70        366.94        .11077E-03   -1.2017    
   3  norm          .10000E-03    1.0034        .10152E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    81.017        .91370E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    340.99        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    36.345        .61151E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor    10000.0        5176.2        .20921E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm         10000.0        5984.5        .54374E-03    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    456.00        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor    10000.0        8162.6        .20871E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    55.309        .75456E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm         10000.0        6967.7        .20626E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor    10000.0        7910.3        .21934E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor    10000.0        9920.0        .19326E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm         10000.0        8374.6        .19256E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor    10000.0        9896.5        .19561E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor    10000.0        8729.4        .21073E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm         10000.0        1120.7        .18142E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor    10000.0        5132.2        .21131E-01    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    153.30        .12583E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10016E-03    8059.5        .21289E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    7.0018        .26817E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     99.125        115.78        .20183E-03   -1.3713    
  24  Normalizat    .10000E-01    .16272        .12973E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .40468E-12    .22144        .15105E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.77405e-10
Minuit parameter uncertainties:
  1  0.00169053
  2  369.518
  3  2.87446e-06
  4  8.78321e-05
  5  0.000429018
  6  3.34206e-06
  7  0.0948103
  8  1.51078
  9  0.000352283
  10  0.0569088
  11  2.18628e-07
  12  0.0297942
  13  0.175154
  14  0.0913143
  15  0.0272928
  16  0.0886165
  17  0.0405723
  18  0.00183247
  19  1.87432
  20  0.00122448
  21  0.0708474
  22  1.67684e-05
  23  116.04
  24  3.65961e-07
  25  6.00914e-07
Done.

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

Extracting fit parameters...

4FGL J2243.4-2544
   Spectrum: LogParabola
252         norm:  1.000e+04  2.979e-02  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:  4.047e-13  6.009e-07  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.000e-02  3.660e-07  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.43
Ra Dec: 340.865 -25.736
Photon Index (Fixed Index): 2.00 +/- 0.00
Photon Flux (Fixed Index): 9.68e-05 +/- 2.88e-10
Energy Flux (Fixed Index): 6.16e-02 +/- 1.83e-07
calc_int error: parameter max 10000.0 is not large enough
delta logLike = 1.03644242699e-06

TS (Fixed Index): 2.43
Ra Dec: 340.865 -25.736
Photon Flux Upper Limit: -1.00e+00 ph cm-2 s-1
Energy Flux Upper Limit: -6.36e+02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/45018/likelihoodResults_666489601_666748801_4FGL_J2243.4-2544_daily_bin1648.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) = 83.7369857163
delta logL = 23.4929491491

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 83.732782815
delta logL = 23.4971520504

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'alpha     '    5.0000       1.0000          .0000       5.0000    
 **********
 **   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=   83.73278     FROM MIGRAD    STATUS=CONVERGED     11 CALLS       47 TOTAL
                     EDM=   .66E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1    alpha       5.0000        .35841E-01    .34385E-01** at limit **
                               ERR DEF=  .500    
Final values: 
  alpha      = 5
 **********
 **   18 **HESSE 
 **********

 FCN=   83.73278     FROM HESSE     STATUS=OK             5 CALLS       52 TOTAL
                     EDM=   .66E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1    alpha       5.0000        .35833E-01    .75974E-03    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.62309e-14
Minuit parameter uncertainties:
  1  1.84875e-08
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/45018': 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) = 83.732782815
delta logL = 23.4971520504

Extracting fit parameters...

4FGL J2243.4-2544
   Spectrum: LogParabola
252         norm:  1.000e+04  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12) fixed
253        alpha:  5.000e+00  1.849e-08  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:  1.019e-05  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
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.000e-02  0.000e+00  1.000e-02  1.000e+01 ( 1.000e+00) fixed


TS (Free Index): 49.43
Ra Dec: 340.865 -25.736
Photon Index (Free Index): 5.00 +/- 0.00
Photon Flux (Free Index): 3.14e-02 +/- 1.27e-09
Energy Flux (Free Index): 4.38e+00 +/- 1.68e-07

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/45018/cmap_HighResolution_666489601_666748801_4FGL_J2243.4-2544_daily_bin1648.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='-6.36e+02', comment='SUCCESS', photon_flux='9.68e-05', energy_flux2='4.38e+00', photon_flux_error='2.88e-10', dlogl='2.35e+01', energy_flux='6.16e-02', photon_flux2='3.14e-02', job_status='DONE', time_completed='2022-02-17 02:40:13.043038', photon_index_error2='0.00', photon_index2='5.00', ts='2.43', fit_tolerance='1e-08', GAL='0.00', photon_index_error='0.00', photon_flux_upper_limit='-1.00e+00', energy_flux_error2='1.68e-07', EG='0.01', time_epoch_completed='1645094413.04', return_code='0', job_id='45018', GAL2='0.00', EG2='0.01', return_code2='0', energy_flux_error='1.83e-07', photon_flux_error2='1.27e-09', ts2='49.43', photon_index='2.00' WHERE bin_id='1648' AND source_name='4FGL J2243.4-2544' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Feb 17 02:40:13 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0073>
Subject: Job 45018: <4FGL_J2243.4-2544_daily_bin1648> in cluster <slac> Done

Job <4FGL_J2243.4-2544_daily_bin1648> was submitted from host <rhel6-64l> by user <kocevski> in cluster <slac> at Thu Feb 17 02:30:23 2022
Job was executed on host(s) <bullet0073>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Feb 17 02:34:14 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Feb 17 02:34:14 2022
Terminated at Thu Feb 17 02:40:13 2022
Results reported at Thu Feb 17 02:40:13 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2243.4-2544_daily_bin1648 340.865 -25.7363 666489601 666748801 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 :                                   328.38 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             313.36 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   359 sec.
    Turnaround time :                            590 sec.

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

