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


Performing analysis on: 4FGL_J2243.4-2544_daily_bin1312
RA = 340.865, Dec = -25.7363
tmin = 579398401, tmax = 579657601
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='438243', job_status='RUN', time_executed='2021-09-28 18:41:29.126398', time_epoch_executed='1632879689.13' WHERE source_name='4FGL J2243.4-2544' and cadence='daily' and bin_id='1312'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/438243

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/438243/ft1_4FGL_J2243.4-2544_daily_bin1312.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/438243/ft2_4FGL_J2243.4-2544_daily_bin1312.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/438243/ft1_4FGL_J2243.4-2544_daily_bin1312.fits outfile=/scratch/kocevski/438243/ft1_filteredMKT_4FGL_J2243.4-2544_daily_bin1312.fits ra=340.865 dec=-25.7363 rad=12.0 tmin=579398401.0 tmax=579657601.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.47
user 3.26
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/438243/ft2_4FGL_J2243.4-2544_daily_bin1312.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/438243/ft1_filteredMKT_4FGL_J2243.4-2544_daily_bin1312.fits evtable="EVENTS" outfile="/scratch/kocevski/438243/ft1_filtered_4FGL_J2243.4-2544_daily_bin1312.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/438243/ft1_filtered_4FGL_J2243.4-2544_daily_bin1312.fits" evtable="EVENTS" scfile=/scratch/kocevski/438243/ft2_4FGL_J2243.4-2544_daily_bin1312.fits sctable="SC_DATA" outfile=/scratch/kocevski/438243/ltcube_579398401_579657601_4FGL_J2243.4-2544_daily_bin1312.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/438243/ft2_4FGL_J2243.4-2544_daily_bin1312.fits
.....................!
real 11.83
user 11.43
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/438243/ft1_filtered_4FGL_J2243.4-2544_daily_bin1312.fits evtable="EVENTS" scfile=/scratch/kocevski/438243/ft2_4FGL_J2243.4-2544_daily_bin1312.fits sctable="SC_DATA" expcube=/scratch/kocevski/438243/ltcube_579398401_579657601_4FGL_J2243.4-2544_daily_bin1312.fits outfile=/scratch/kocevski/438243/expmap_579398401_579657601_4FGL_J2243.4-2544_daily_bin1312.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/438243/ltcube_579398401_579657601_4FGL_J2243.4-2544_daily_bin1312.fits
.....................!
real 190.35
user 185.17
sys 4.73

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/438243/ft1_filtered_4FGL_J2243.4-2544_daily_bin1312.fits scfile=/scratch/kocevski/438243/ft2_4FGL_J2243.4-2544_daily_bin1312.fits outfile=/scratch/kocevski/438243/cmap_579398401_579657601_4FGL_J2243.4-2544_daily_bin1312.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.39
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/438243/ft1_filtered_4FGL_J2243.4-2544_daily_bin1312.fits scfile=/scratch/kocevski/438243/ft2_4FGL_J2243.4-2544_daily_bin1312.fits outfile=/scratch/kocevski/438243/cmap_HighResolution_579398401_579657601_4FGL_J2243.4-2544_daily_bin1312.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.56
user 0.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .60045       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    7.3275       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    7.0834       1.0000         .10000E-03   10000.    
     8 'norm      '    15.025       1.0000         .10000E-03   10000.    
     9 'Prefactor '    12.640       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    1.9128       1.0000         .10000E-03   10000.    
    12 'norm      '    2.4771       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    3.0468       1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.8632       1.0000         .10000E-03   10000.    
    17 'Prefactor '    19.605       1.0000         .10000E-03   10000.    
    18 'norm      '    1.1567       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .11468E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    6.1176       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.0329       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .91402       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=   7262.676     FROM MIGRAD    STATUS=CONVERGED    583 CALLS     2908 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    8.9904        .12518E-06** at limit **
   2  Prefactor     .10000E-03    23.474        .52131E-05** at limit **
   3  norm          .60046        .29970        .16568E-07    .53444E-04
   4  Prefactor     .10000E-03    2.6831        .79841E-07** at limit **
   5  Prefactor     7.3280        12.829       -.18107E-06   -.46958E-04
   6  Prefactor     .10000E-03    2.4855        .33896E-07** at limit **
   7  Prefactor     7.0705        44.710       -.90769E-05   -.10274E-03
   8  norm          15.027        19.919       -.80471E-06   -.69543E-04
   9  Prefactor     12.639        15.218        .37705E-06    .95834E-05
  10  Prefactor     .10000E-03    4.3552        .19291E-06** at limit **
  11  norm          1.9128        .83154        .35596E-07    .55013E-04
  12  norm          2.4774        1.8350        .44429E-08    .67794E-04
  13  Prefactor     .10000E-03    21.463       -.55271E-05** at limit **
  14  Prefactor     .10000E-03    13.011        .45061E-05** at limit **
  15  norm          3.0469        3.3141       -.46080E-07   -.12759E-03
  16  Prefactor     3.8609        8.1147        .30665E-05   -.12713E-02
  17  Prefactor     19.607        10.860       -.88119E-06   -.23967E-03
  18  norm          1.1568        .68313        .20295E-07   -.51135E-03
  19  Prefactor     .10000E-03    149.76       -.22060E-06** at limit **
  20  Prefactor     .10000E-03    2.9313        .49011E-07** at limit **
  21  Prefactor     .10000E-03    4.4330        .28043E-07** at limit **
  22  norm          6.1177        3.0282        .13224E-07    .36585E-04
  23  Prefactor     .10000E-03    12.562       -.40110E-05** at limit **
  24  Normalizat    1.0329        .16821       -.11451E-06   -.21028E-03
  25  Prefactor     .91394        .15525        .83663E-08   -.20031E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  norm       = 0.600465
  Prefactor  = 0.0001
  Prefactor  = 7.32795
  Prefactor  = 0.0001
  Prefactor  = 7.07049
  norm       = 15.0265
  Prefactor  = 12.6385
  Prefactor  = 0.0001
  norm       = 1.91279
  norm       = 2.47737
  Prefactor  = 0.000100003
  Prefactor  = 0.000100001
  norm       = 3.04686
  Prefactor  = 3.8609
  Prefactor  = 19.6069
  norm       = 1.15675
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 6.11765
  Prefactor  = 0.000100001
  Normalizat = 1.03291
  Prefactor  = 0.91394
 **********
 **   18 **HESSE 
 **********

 FCN=   7262.676     FROM HESSE     STATUS=OK           429 CALLS     3337 TOTAL
                     EDM=   .71E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    8.9985        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    23.767        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .60046        .29875        .31944E-04   -1.5553    
   4  Prefactor     .10000E-03    2.6903        .13632E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     7.3280        12.825        .14817E-03   -1.5166    
   6  Prefactor     .10000E-03    2.5001        .13119E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     7.0705        45.515        .15073E-03   -1.5176    
   8  norm          15.027        19.907        .10333E-03   -1.4932    
   9  Prefactor     12.639        15.215        .11267E-03   -1.4997    
  10  Prefactor     .10000E-03    4.3865        .17369E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          1.9128        .83321        .49532E-04   -1.5431    
  12  norm          2.4774        1.8343        .95459E-04   -1.5393    
  13  Prefactor     .10000E-03    21.726        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    13.475        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          3.0469        3.2991        .15068E-03   -1.5359    
  16  Prefactor     3.8609        12.819        .10265E-02   -1.5315    
  17  Prefactor     19.607        11.824        .90457E-04   -1.4822    
  18  norm          1.1568        .67590        .43892E-04   -1.5493    
  19  Prefactor     .10000E-03    151.66        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    2.9366        .14250E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    4.4490        .17503E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          6.1177        3.0289        .10137E-03   -1.5213    
  23  Prefactor     .10000E-03    12.726        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.0329        .20081        .24451E-03   -.91936    
  25  Prefactor     .91394        .18480        .24216E-03   -.95656    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.06242e-09
Minuit parameter uncertainties:
  1  6.7815e-06
  2  0.000489549
  3  0.298754
  4  3.39027e-06
  5  12.8299
  6  1.07383e-06
  7  35.9181
  8  19.9162
  9  15.2201
  10  1.27679e-05
  11  0.833218
  12  1.83433
  13  0.000471639
  14  0.000280754
  15  3.29929
  16  12.8282
  17  11.8255
  18  0.6759
  19  4.75381e-05
  20  2.33769e-06
  21  9.1553e-06
  22  3.02901
  23  0.000272728
  24  0.20096
  25  0.184931
Done.

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

Extracting fit parameters...

4FGL J2243.4-2544
   Spectrum: LogParabola
252         norm:  2.477e+00  1.834e+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:  9.139e-01  1.849e-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.033e+00  2.010e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.89
Ra Dec: 340.865 -25.736
Photon Index (Fixed Index): 2.00 +/- 0.00
Photon Flux (Fixed Index): 2.40e-08 +/- 1.77e-08
Energy Flux (Fixed Index): 1.52e-05 +/- 1.13e-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) = 7262.39293552
delta logL = 0.283042213794

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7262.37495044
delta logL = 0.301027294282

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.0741       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.4359       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0411       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91390       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=   7262.375     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      198 TOTAL
                     EDM=   .38E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.0734        1.7840        .71701E-02   -.13848E-03
   2  alpha         1.4356        .55508        .47285       -.26151E-04
   3  Normalizat    1.0410        .16296        .41199E-01    .11823E-04
   4  Prefactor     .91391        .15325        .45182E-01    .13021E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.07338
  alpha      = 1.43563
  Normalizat = 1.04105
  Prefactor  = 0.913908
 **********
 **   18 **HESSE 
 **********

 FCN=   7262.375     FROM HESSE     STATUS=OK            33 CALLS      231 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.0734        2.0317        .96545E-04   -1.5420    
   2  alpha         1.4356        .72239        .19221E-01   -.43979    
   3  Normalizat    1.0410        .19102        .24377E-03   -.91668    
   4  Prefactor     .91391        .18013        .24231E-03   -.95657    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.16708e-09
Minuit parameter uncertainties:
  1  2.03174
  2  0.73527
  3  0.191145
  4  0.180248
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/438243': 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) = 7262.37495037
delta logL = 0.30102736938

Extracting fit parameters...

4FGL J2243.4-2544
   Spectrum: LogParabola
252         norm:  2.073e+00  2.032e+00  1.000e-04  1.000e+04 ( 1.000e-12)
253        alpha:  1.436e+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:  9.139e-01  1.802e-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.041e+00  1.911e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.50
Ra Dec: 340.865 -25.736
Photon Index (Free Index): 1.44 +/- 0.74
Photon Flux (Free Index): 1.15e-08 +/- 1.46e-08
Energy Flux (Free Index): 2.30e-05 +/- 2.52e-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/438243/cmap_HighResolution_579398401_579657601_4FGL_J2243.4-2544_daily_bin1312.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.40e-08', energy_flux2='2.30e-05', photon_flux_error='1.77e-08', dlogl='3.01e-01', energy_flux='1.52e-05', photon_flux2='1.15e-08', job_status='DONE', time_completed='2021-09-28 18:52:14.941560', photon_index_error2='0.74', photon_index2='1.44', ts='7.89', fit_tolerance='1e-08', GAL='0.91', photon_index_error='0.00', energy_flux_error2='2.52e-05', EG='1.03', time_epoch_completed='1632880334.94', return_code='0', job_id='438243', GAL2='0.91', EG2='1.04', return_code2='0', energy_flux_error='1.13e-05', photon_flux_error2='1.46e-08', ts2='8.50', photon_index='2.00' WHERE bin_id='1312' AND source_name='4FGL J2243.4-2544' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 18:52:14 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0251>
Subject: Job 438243: <4FGL_J2243.4-2544_daily_bin1312> in cluster <slac> Done

Job <4FGL_J2243.4-2544_daily_bin1312> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Sep 28 18:40:34 2021
Job was executed on host(s) <bullet0251>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 18:40:35 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:35 2021
Terminated at Tue Sep 28 18:52:15 2021
Results reported at Tue Sep 28 18:52:15 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2243.4-2544_daily_bin1312 340.865 -25.7363 579398401 579657601 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 :                                   632.34 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             312.55 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   700 sec.
    Turnaround time :                            701 sec.

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

