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


Performing analysis on: 4FGL_J2243.4-2544_daily_bin620
RA = 340.865, Dec = -25.7363
tmin = 400032001, tmax = 400291201
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='435062', job_status='RUN', time_executed='2021-09-28 18:32:23.197539', time_epoch_executed='1632879143.2' WHERE source_name='4FGL J2243.4-2544' and cadence='daily' and bin_id='620'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/435062

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/435062/ft1_4FGL_J2243.4-2544_daily_bin620.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/435062/ft2_4FGL_J2243.4-2544_daily_bin620.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/435062/ft1_4FGL_J2243.4-2544_daily_bin620.fits outfile=/scratch/kocevski/435062/ft1_filteredMKT_4FGL_J2243.4-2544_daily_bin620.fits ra=340.865 dec=-25.7363 rad=12.0 tmin=400032001.0 tmax=400291201.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.34
user 4.12
sys 0.19

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

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

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/435062/ft1_filtered_4FGL_J2243.4-2544_daily_bin620.fits" evtable="EVENTS" scfile=/scratch/kocevski/435062/ft2_4FGL_J2243.4-2544_daily_bin620.fits sctable="SC_DATA" outfile=/scratch/kocevski/435062/ltcube_400032001_400291201_4FGL_J2243.4-2544_daily_bin620.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/435062/ft2_4FGL_J2243.4-2544_daily_bin620.fits
.....................!
real 11.71
user 11.32
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/435062/ft1_filtered_4FGL_J2243.4-2544_daily_bin620.fits evtable="EVENTS" scfile=/scratch/kocevski/435062/ft2_4FGL_J2243.4-2544_daily_bin620.fits sctable="SC_DATA" expcube=/scratch/kocevski/435062/ltcube_400032001_400291201_4FGL_J2243.4-2544_daily_bin620.fits outfile=/scratch/kocevski/435062/expmap_400032001_400291201_4FGL_J2243.4-2544_daily_bin620.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/435062/ltcube_400032001_400291201_4FGL_J2243.4-2544_daily_bin620.fits
.....................!
real 190.72
user 185.71
sys 4.64

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/435062/ft1_filtered_4FGL_J2243.4-2544_daily_bin620.fits scfile=/scratch/kocevski/435062/ft2_4FGL_J2243.4-2544_daily_bin620.fits outfile=/scratch/kocevski/435062/cmap_400032001_400291201_4FGL_J2243.4-2544_daily_bin620.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.15

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/435062/ft1_filtered_4FGL_J2243.4-2544_daily_bin620.fits evtable="EVENTS" scfile=/scratch/kocevski/435062/ft2_4FGL_J2243.4-2544_daily_bin620.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/435062/Model_4FGL_J2243.4-2544_daily_bin620.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/435062/ft1_filtered_4FGL_J2243.4-2544_daily_bin620.fits.....................!
real 36.96
user 35.73
sys 1.15

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    15.149       1.0000         .10000E-03   10000.    
     2 'Prefactor '    84.699       1.0000         .10000E-03   10000.    
     3 'norm      '    1.5550       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    5.5223       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .50627E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    69.403       1.0000         .10000E-03   10000.    
     8 'norm      '    21.846       1.0000         .10000E-03   10000.    
     9 'Prefactor '    21.528       1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.9614       1.0000         .10000E-03   10000.    
    11 'norm      '    .29789E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10081E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    58.988       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .36113       1.0000         .10000E-03   10000.    
    15 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    13.524       1.0000         .10000E-03   10000.    
    17 'Prefactor '    4.3615       1.0000         .10000E-03   10000.    
    18 'norm      '    .10262E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10051E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    4.7494       1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    4.7174       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .93899       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .87845       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=   3988.998     FROM MIGRAD    STATUS=CONVERGED    587 CALLS     3920 TOTAL
                     EDM=   .98E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     15.150        270.09       -.22154E-05    .26283E-04
   2  Prefactor     84.672        280.24        .20384E-05    .41389E-04
   3  norm          1.5550        .58370        .14326E-07    .96065E-03
   4  Prefactor     .10000E-03    5.0323       -.13677E-06** at limit **
   5  Prefactor     5.5325        17.503       -.91778E-06    .25354E-04
   6  Prefactor     .10058E-03    63.384       -.14296E-04** at limit **
   7  Prefactor     69.316        101.51       -.75329E-05   -.14458E-04
   8  norm          21.844        18.494        .10253E-06    .30511E-04
   9  Prefactor     21.529        19.116        .83069E-06    .20049E-03
  10  Prefactor     3.9734        16.750       -.16652E-05   -.10342E-04
  11  norm          .10007E-03    .85141       -.76961E-06** at limit **
  12  norm          .10000E-03    1.7384        .36642E-06** at limit **
  13  Prefactor     58.984        55.379        .59418E-06   -.13458E-04
  14  Prefactor     .37159        72.626       -.15123E-04   -.13153E-03
  15  norm          .10000E-03    1.8210       -.11371E-06** at limit **
  16  Prefactor     13.519        13.063        .40263E-06   -.12732E-03
  17  Prefactor     4.3651        9.8573        .10892E-05   -.24957E-03
  18  norm          .10000E-03    .34593       -.43527E-06** at limit **
  19  Prefactor     .10000E-03    19.810       -.14074E-06** at limit **
  20  Prefactor     .10000E-03    5.3634       -.28199E-06** at limit **
  21  Prefactor     4.7457        11.522        .11219E-06   -.12465E-03
  22  norm          .10000E-03    3.4278        .15415E-05** at limit **
  23  Prefactor     4.6834        87.873       -.24278E-05   -.24726E-04
  24  Normalizat    .93884        .23989        .59749E-06    .44688E-03
  25  Prefactor     .87864        .20684        .25075E-05    .16192E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 15.1499
  Prefactor  = 84.6715
  norm       = 1.55501
  Prefactor  = 0.0001
  Prefactor  = 5.53249
  Prefactor  = 0.000100577
  Prefactor  = 69.3161
  norm       = 21.8438
  Prefactor  = 21.5292
  Prefactor  = 3.97337
  norm       = 0.000100072
  norm       = 0.0001
  Prefactor  = 58.9838
  Prefactor  = 0.37159
  norm       = 0.0001
  Prefactor  = 13.5191
  Prefactor  = 4.3651
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.74573
  norm       = 0.0001
  Prefactor  = 4.68338
  Normalizat = 0.938844
  Prefactor  = 0.878636
 **********
 **   18 **HESSE 
 **********

 FCN=   3988.998     FROM HESSE     STATUS=OK           447 CALLS     4367 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     15.150        261.11        .10291E-03   -1.4929    
   2  Prefactor     84.672        275.75        .43649E-04   -1.3865    
   3  norm          1.5550        .58372        .28281E-04   -1.5459    
   4  Prefactor     .10000E-03    5.0466        .13840E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     5.5325        17.506        .17097E-03   -1.5237    
   6  Prefactor     .10058E-03    16.064        .59145E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     69.316        102.89        .24092E-03   -1.4041    
   8  norm          21.844        18.494        .85696E-04   -1.4773    
   9  Prefactor     21.529        19.162        .86326E-04   -1.4780    
  10  Prefactor     3.9734        16.789        .20266E-03   -1.5309    
  11  norm          .10007E-03    1.6354        .17252E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    1.7403        .16008E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     58.984        54.483        .52237E-04   -1.4170    
  14  Prefactor     .37159        105.02        .42368E-02   -1.5586    
  15  norm          .10000E-03    1.8343        .83245E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     13.519        13.031        .10892E-03   -1.4972    
  17  Prefactor     4.3651        10.116        .19286E-03   -1.5290    
  18  norm          .10000E-03    .58539        .69701E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    19.812        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    5.3789        .14291E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     4.7457        11.351        .18463E-03   -1.5272    
  22  norm          .10000E-03    3.4508        .22587E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     4.6834        89.261        .18527E-03   -1.5275    
  24  Normalizat    .93884        .28037        .24952E-03   -.95108    
  25  Prefactor     .87864        .23323        .23215E-03   -.96892    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.0535e-09
Minuit parameter uncertainties:
  1  126.442
  2  280.088
  3  0.583722
  4  2.07657e-05
  5  17.5221
  6  0.00609042
  7  103.151
  8  18.4988
  9  19.167
  10  16.3428
  11  0.00068849
  12  1.4814e-05
  13  54.5291
  14  12.5145
  15  8.43324e-06
  16  13.0336
  17  10.1199
  18  2.91666e-05
  19  1.7707e-05
  20  2.38615e-05
  21  11.3566
  22  2.48397e-05
  23  40.9625
  24  0.280805
  25  0.233492
Done.

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

Extracting fit parameters...

4FGL J2243.4-2544
   Spectrum: LogParabola
252         norm:  1.000e-04  1.481e-05  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:  8.786e-01  2.335e-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:  9.388e-01  2.808e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/435062/likelihoodResults_400032001_400291201_4FGL_J2243.4-2544_daily_bin620.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) = 3989.0007583
delta logL = -0.00272011077777

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3988.99803826
delta logL = -6.50575202599e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9919       1.0000          .0000       5.0000    
     3 'Normalizat'    .93882       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87870       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   3988.998     FROM MIGRAD    STATUS=CONVERGED     94 CALLS      230 TOTAL
                     EDM=   .91E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    334.99        .16039E-02** at limit **
   2  alpha         1.8546        4.0388        .16912        .69810E-07
   3  Normalizat    .93884        .10952        .24951E-03    .25014E-04
   4  Prefactor     .87864        .99466E-01    .23215E-03    .21890E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.85463
  Normalizat = 0.938838
  Prefactor  = 0.878641
 **********
 **   18 **HESSE 
 **********

 FCN=   3988.998     FROM HESSE     STATUS=OK            23 CALLS      253 TOTAL
                     EDM=   .26E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.7763        .32079E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.8546        3.9457        .67649E-02   -.26110    
   3  Normalizat    .93884        .24724        .99805E-05   -.95109    
   4  Prefactor     .87864        .22453        .92860E-05   -.96891    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.62676e-11
Minuit parameter uncertainties:
  1  1.099e-05
  2  133.253
  3  0.247543
  4  0.224764
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/435062': 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) = 3988.99803761
delta logL = 5.77143509872e-07

Extracting fit parameters...

4FGL J2243.4-2544
   Spectrum: LogParabola
252         norm:  1.000e-04  1.099e-05  1.000e-04  1.000e+04 ( 1.000e-12)
253        alpha:  1.855e+00  1.333e+02  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:  8.786e-01  2.248e-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:  9.388e-01  2.475e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 340.865 -25.736

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/435062/cmap_HighResolution_400032001_400291201_4FGL_J2243.4-2544_daily_bin620.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.61e-05', job_status='DONE', photon_flux_upper_limit='5.67e-08', time_completed='2021-09-28 18:41:47.758960', job_id='435062', GAL2='0.88', fit_tolerance='1e-08', EG2='0.94', EG='0.94', time_epoch_completed='1632879707.76', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.88', dlogl='5.77e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.00' WHERE bin_id='620' AND source_name='4FGL J2243.4-2544' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 18:41:47 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0272>
Subject: Job 435062: <4FGL_J2243.4-2544_daily_bin620> in cluster <slac> Done

Job <4FGL_J2243.4-2544_daily_bin620> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 28 18:30:22 2021
Job was executed on host(s) <bullet0272>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 18:30:25 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:30:25 2021
Terminated at Tue Sep 28 18:41:48 2021
Results reported at Tue Sep 28 18:41:48 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2243.4-2544_daily_bin620 340.865 -25.7363 400032001 400291201 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 :                                   564.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             293.73 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   683 sec.
    Turnaround time :                            686 sec.

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

