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


Performing analysis on: 4FGL_J2243.4-2544_daily_bin1652
RA = 340.865, Dec = -25.7363
tmin = 667526401, tmax = 667785601
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='739873', job_status='RUN', time_executed='2022-03-01 00:51:59.389498', time_epoch_executed='1646124719.39' WHERE source_name='4FGL J2243.4-2544' and cadence='daily' and bin_id='1652'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/739873

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/739873/ft1_4FGL_J2243.4-2544_daily_bin1652.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/739873/ft2_4FGL_J2243.4-2544_daily_bin1652.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/739873/ft1_4FGL_J2243.4-2544_daily_bin1652.fits outfile=/scratch/kocevski/739873/ft1_filteredMKT_4FGL_J2243.4-2544_daily_bin1652.fits ra=340.865 dec=-25.7363 rad=12.0 tmin=667526401.0 tmax=667785601.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 4.56
user 4.28
sys 0.25

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/739873/ft2_4FGL_J2243.4-2544_daily_bin1652.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/739873/ft1_filteredMKT_4FGL_J2243.4-2544_daily_bin1652.fits evtable="EVENTS" outfile="/scratch/kocevski/739873/ft1_filtered_4FGL_J2243.4-2544_daily_bin1652.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.55
user 0.33
sys 0.16
Number of photons that survived the gtmktime cut: 426

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/739873/ft1_filtered_4FGL_J2243.4-2544_daily_bin1652.fits" evtable="EVENTS" scfile=/scratch/kocevski/739873/ft2_4FGL_J2243.4-2544_daily_bin1652.fits sctable="SC_DATA" outfile=/scratch/kocevski/739873/ltcube_667526401_667785601_4FGL_J2243.4-2544_daily_bin1652.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/739873/ft2_4FGL_J2243.4-2544_daily_bin1652.fits
.....................!
real 14.30
user 13.83
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/739873/ft1_filtered_4FGL_J2243.4-2544_daily_bin1652.fits evtable="EVENTS" scfile=/scratch/kocevski/739873/ft2_4FGL_J2243.4-2544_daily_bin1652.fits sctable="SC_DATA" expcube=/scratch/kocevski/739873/ltcube_667526401_667785601_4FGL_J2243.4-2544_daily_bin1652.fits outfile=/scratch/kocevski/739873/expmap_667526401_667785601_4FGL_J2243.4-2544_daily_bin1652.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/739873/ltcube_667526401_667785601_4FGL_J2243.4-2544_daily_bin1652.fits
.....................!
real 193.38
user 188.25
sys 4.51

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/739873/ft1_filtered_4FGL_J2243.4-2544_daily_bin1652.fits scfile=/scratch/kocevski/739873/ft2_4FGL_J2243.4-2544_daily_bin1652.fits outfile=/scratch/kocevski/739873/cmap_667526401_667785601_4FGL_J2243.4-2544_daily_bin1652.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.57
user 0.39
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/739873/ft1_filtered_4FGL_J2243.4-2544_daily_bin1652.fits scfile=/scratch/kocevski/739873/ft2_4FGL_J2243.4-2544_daily_bin1652.fits outfile=/scratch/kocevski/739873/cmap_HighResolution_667526401_667785601_4FGL_J2243.4-2544_daily_bin1652.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.58
user 0.40
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11695E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    31.779       1.0000         .10000E-03   10000.    
     3 'norm      '    .75136       1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.8779       1.0000         .10000E-03   10000.    
     5 'Prefactor '    36.376       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .12147E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    8.1393       1.0000         .10000E-03   10000.    
    10 'Prefactor '    21.809       1.0000         .10000E-03   10000.    
    11 'norm      '    .35532E-01   1.0000         .10000E-03   10000.    
    12 'norm      '    5.6370       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    28.745       1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .84277       1.0000         .10000E-03   10000.    
    17 'Prefactor '    11.152       1.0000         .10000E-03   10000.    
    18 'norm      '    .10130       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    13.229       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10083E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    83.224       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .64398       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.2784       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=   4650.244     FROM MIGRAD    STATUS=CONVERGED    600 CALLS     2936 TOTAL
                     EDM=   .57E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    42.401       -.10822E-06** at limit **
   2  Prefactor     31.779        88.070       -.50789E-06   -.14001E-05
   3  norm          .75131        .42098        .47222E-08   -.35464E-04
   4  Prefactor     2.8775        8.7523        .16309E-05    .46274E-04
   5  Prefactor     36.378        19.956        .31311E-07   -.19757E-04
   6  Prefactor     .10000E-03    2.6742        .43365E-09** at limit **
   7  Prefactor     .10000E-03    182.31        .92867E-06** at limit **
   8  norm          .10000E-03    22.423        .49702E-06** at limit **
   9  Prefactor     8.1397        13.516        .21146E-06    .48857E-05
  10  Prefactor     21.809        13.636        .20348E-07   -.23363E-04
  11  norm          .39713E-01    .72740       -.19003E-06    .31593E-03
  12  norm          5.6370        2.9007        .48241E-08   -.11367E-03
  13  Prefactor     .10000E-03    15.900        .53372E-06** at limit **
  14  Prefactor     28.743        14.795       -.98670E-07   -.76778E-04
  15  norm          .10000E-03    .98050        .31045E-07** at limit **
  16  Prefactor     .83064        34.319        .27173E-05   -.42190E-04
  17  Prefactor     11.174        13.893       -.23182E-05   -.24088E-03
  18  norm          .99387E-01    1.1796        .98402E-06   -.27550E-03
  19  Prefactor     .10000E-03    17.752       -.84819E-06** at limit **
  20  Prefactor     13.229        13.581        .39754E-07    .13106E-05
  21  Prefactor     .10000E-03    6.7856        .14292E-06** at limit **
  22  norm          .10000E-03    2.0674       -.35929E-08** at limit **
  23  Prefactor     83.233        58.488       -.68736E-06    .10025E-04
  24  Normalizat    .64382        .22257        .61731E-06   -.11741E-03
  25  Prefactor     1.2785        .20693       -.57234E-06   -.80652E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 31.779
  norm       = 0.751313
  Prefactor  = 2.87747
  Prefactor  = 36.3781
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 8.13966
  Prefactor  = 21.809
  norm       = 0.0397133
  norm       = 5.63705
  Prefactor  = 0.0001
  Prefactor  = 28.7435
  norm       = 0.0001
  Prefactor  = 0.830639
  Prefactor  = 11.1736
  norm       = 0.0993874
  Prefactor  = 0.0001
  Prefactor  = 13.2288
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 83.2331
  Normalizat = 0.643824
  Prefactor  = 1.27846
 **********
 **   18 **HESSE 
 **********

 FCN=   4650.244     FROM HESSE     STATUS=OK           429 CALLS     3365 TOTAL
                     EDM=   .40E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    42.411        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     31.779        87.827        .71078E-04   -1.4580    
   3  norm          .75131        .42372        .31357E-04   -1.5535    
   4  Prefactor     2.8775        8.8793        .11979E-02   -1.5369    
   5  Prefactor     36.378        19.963        .66448E-04   -1.4501    
   6  Prefactor     .10000E-03    2.6821        .10890E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    182.79        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    22.510        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     8.1397        13.518        .70265E-03   -1.5137    
  10  Prefactor     21.809        13.648        .85770E-04   -1.4774    
  11  norm          .39713E-01    9.2401        .10841E-02   -1.5668    
  12  norm          5.6370        2.9019        .80706E-04   -1.5233    
  13  Prefactor     .10000E-03    15.893        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     28.743        14.861        .74726E-04   -1.4635    
  15  norm          .10000E-03    .98118        .65948E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .83064        37.207        .50393E-03   -1.5526    
  17  Prefactor     11.174        15.422        .11997E-03   -1.5039    
  18  norm          .99387E-01    2.1447        .88654E-03   -1.5645    
  19  Prefactor     .10000E-03    17.703        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     13.229        13.584        .11013E-03   -1.4980    
  21  Prefactor     .10000E-03    6.8338        .17323E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    2.0909        .95729E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     83.233        58.354        .44031E-04   -1.3881    
  24  Normalizat    .64382        .26640        .31137E-03   -1.0615    
  25  Prefactor     1.2785        .25201        .22058E-03   -.83950    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.98836e-08
Minuit parameter uncertainties:
  1  5.70372e-06
  2  88.1873
  3  0.423724
  4  8.88332
  5  19.9667
  6  1.53558e-07
  7  0.000175253
  8  3.12888e-05
  9  13.5235
  10  13.6496
  11  1.2102
  12  2.90197
  13  2.05851e-05
  14  14.8634
  15  5.17345e-07
  16  11.1252
  17  15.4278
  18  0.922951
  19  3.91452e-05
  20  13.5875
  21  1.69715e-05
  22  5.18463e-06
  23  58.3937
  24  0.266938
  25  0.252247
Done.

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

Extracting fit parameters...

4FGL J2243.4-2544
   Spectrum: LogParabola
252         norm:  5.637e+00  2.902e+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:  1.278e+00  2.522e-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:  6.438e-01  2.669e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 16.00
Ra Dec: 340.865 -25.736
Photon Index (Fixed Index): 2.00 +/- 0.00
Photon Flux (Fixed Index): 5.45e-08 +/- 2.81e-08
Energy Flux (Fixed Index): 3.47e-05 +/- 1.79e-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) = 4649.76282699
delta logL = 0.481236299894

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4649.73370442
delta logL = 0.510358861682

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.4495       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.5822       1.0000          .0000       5.0000    
     3 'Normalizat'    .65593       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2743       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=   4649.734     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      209 TOTAL
                     EDM=   .59E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.4490        4.3808        .39509E-02    .12129E-03
   2  alpha         1.5821        .47585        .26503        .52841E-05
   3  Normalizat    .65589        .20773        .69789E-01    .20053E-04
   4  Prefactor     1.2743        .20166        .49988E-01   -.10803E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 6.44897
  alpha      = 1.58212
  Normalizat = 0.655888
  Prefactor  = 1.27431
 **********
 **   18 **HESSE 
 **********

 FCN=   4649.734     FROM HESSE     STATUS=OK            31 CALLS      240 TOTAL
                     EDM=   .20E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.4490        3.4882        .90911E-04   -1.5200    
   2  alpha         1.5821        .40972        .10837E-01   -.37595    
   3  Normalizat    .65589        .24502        .30887E-03   -1.0566    
   4  Prefactor     1.2743        .23878        .22099E-03   -.84074    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.98275e-11
Minuit parameter uncertainties:
  1  3.48835
  2  0.411872
  3  0.245424
  4  0.23898
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/739873': 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) = 4649.73370437
delta logL = 0.510358910114

Extracting fit parameters...

4FGL J2243.4-2544
   Spectrum: LogParabola
252         norm:  6.449e+00  3.488e+00  1.000e-04  1.000e+04 ( 1.000e-12)
253        alpha:  1.582e+00  4.119e-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:  1.274e+00  2.390e-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:  6.559e-01  2.454e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 17.01
Ra Dec: 340.865 -25.736
Photon Index (Free Index): 1.58 +/- 0.41
Photon Flux (Free Index): 3.96e-08 +/- 2.60e-08
Energy Flux (Free Index): 5.68e-05 +/- 4.34e-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/739873/cmap_HighResolution_667526401_667785601_4FGL_J2243.4-2544_daily_bin1652.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.45e-08', energy_flux2='5.68e-05', photon_flux_error='2.81e-08', dlogl='5.10e-01', energy_flux='3.47e-05', photon_flux2='3.96e-08', job_status='DONE', time_completed='2022-03-01 01:00:53.660218', photon_index_error2='0.41', photon_index2='1.58', ts='16.00', fit_tolerance='1e-08', GAL='1.28', photon_index_error='0.00', energy_flux_error2='4.34e-05', EG='0.64', time_epoch_completed='1646125253.66', return_code='0', job_id='739873', GAL2='1.27', EG2='0.66', return_code2='0', energy_flux_error='1.79e-05', photon_flux_error2='2.60e-08', ts2='17.01', photon_index='2.00' WHERE bin_id='1652' AND source_name='4FGL J2243.4-2544' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Mar  1 01:00:53 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0202>
Subject: Job 739873: <4FGL_J2243.4-2544_daily_bin1652> in cluster <slac> Done

Job <4FGL_J2243.4-2544_daily_bin1652> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Mar  1 00:50:41 2022
Job was executed on host(s) <bullet0202>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Mar  1 00:51:42 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Mar  1 00:51:42 2022
Terminated at Tue Mar  1 01:00:54 2022
Results reported at Tue Mar  1 01:00:54 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2243.4-2544_daily_bin1652 340.865 -25.7363 667526401 667785601 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 :                                   536.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             332.58 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   551 sec.
    Turnaround time :                            613 sec.

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

