/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 119 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 = 7464
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2243.4-2544_daily_bin144
RA = 340.865, Dec = -25.7363
tmin = 276652801, tmax = 276912001
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='433619', job_status='RUN', time_executed='2021-09-28 18:27:41.062857', time_epoch_executed='1632878861.06' WHERE source_name='4FGL J2243.4-2544' and cadence='daily' and bin_id='144'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/433619

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/433619/ft1_4FGL_J2243.4-2544_daily_bin144.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/433619/ft2_4FGL_J2243.4-2544_daily_bin144.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/433619/ft1_4FGL_J2243.4-2544_daily_bin144.fits outfile=/scratch/kocevski/433619/ft1_filteredMKT_4FGL_J2243.4-2544_daily_bin144.fits ra=340.865 dec=-25.7363 rad=12.0 tmin=276652801.0 tmax=276912001.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.61
user 4.37
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/433619/ft2_4FGL_J2243.4-2544_daily_bin144.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/433619/ft1_filteredMKT_4FGL_J2243.4-2544_daily_bin144.fits evtable="EVENTS" outfile="/scratch/kocevski/433619/ft1_filtered_4FGL_J2243.4-2544_daily_bin144.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.51
user 0.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/433619/ft1_filtered_4FGL_J2243.4-2544_daily_bin144.fits" evtable="EVENTS" scfile=/scratch/kocevski/433619/ft2_4FGL_J2243.4-2544_daily_bin144.fits sctable="SC_DATA" outfile=/scratch/kocevski/433619/ltcube_276652801_276912001_4FGL_J2243.4-2544_daily_bin144.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/433619/ft2_4FGL_J2243.4-2544_daily_bin144.fits
.....................!
real 11.71
user 11.36
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/433619/ft1_filtered_4FGL_J2243.4-2544_daily_bin144.fits evtable="EVENTS" scfile=/scratch/kocevski/433619/ft2_4FGL_J2243.4-2544_daily_bin144.fits sctable="SC_DATA" expcube=/scratch/kocevski/433619/ltcube_276652801_276912001_4FGL_J2243.4-2544_daily_bin144.fits outfile=/scratch/kocevski/433619/expmap_276652801_276912001_4FGL_J2243.4-2544_daily_bin144.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/433619/ltcube_276652801_276912001_4FGL_J2243.4-2544_daily_bin144.fits
.....................!
real 190.96
user 186.04
sys 4.55

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/433619/ft1_filtered_4FGL_J2243.4-2544_daily_bin144.fits scfile=/scratch/kocevski/433619/ft2_4FGL_J2243.4-2544_daily_bin144.fits outfile=/scratch/kocevski/433619/cmap_276652801_276912001_4FGL_J2243.4-2544_daily_bin144.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.37
sys 0.15

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/433619/ft1_filtered_4FGL_J2243.4-2544_daily_bin144.fits evtable="EVENTS" scfile=/scratch/kocevski/433619/ft2_4FGL_J2243.4-2544_daily_bin144.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/433619/Model_4FGL_J2243.4-2544_daily_bin144.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/433619/ft1_filtered_4FGL_J2243.4-2544_daily_bin144.fits.....................!
real 54.18
user 52.83
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .24725       1.0000         .10000E-03   10000.    
     2 'Prefactor '    75.113       1.0000         .10000E-03   10000.    
     3 'norm      '    .83562       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10517E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    35.430       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .44365E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .15915E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    8.5183       1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.8440       1.0000         .10000E-03   10000.    
    11 'norm      '    .45686       1.0000         .10000E-03   10000.    
    12 'norm      '    .31853       1.0000         .10000E-03   10000.    
    13 'Prefactor '    53.711       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .58648E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    2.9472       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .12500E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.5058       1.0000         .10000E-03   10000.    
    18 'norm      '    1.2084       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .17208E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10098E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    1.5621       1.0000         .10000E-03   10000.    
    23 'Prefactor '    16.495       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.1296       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .67404       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=   6993.104     FROM MIGRAD    STATUS=CONVERGED    648 CALLS     2720 TOTAL
                     EDM=   .62E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    109.04       -.18151E-05** at limit **
   2  Prefactor     79.556        54.405       -.53054E-07    .80974E-05
   3  norm          .83388        .28268        .12837E-07    .71181E-04
   4  Prefactor     .10000E-03    3.9099       -.97231E-08** at limit **
   5  Prefactor     35.810        17.699        .11860E-06   -.35898E-04
   6  Prefactor     .10000E-03    2.3926       -.35841E-07** at limit **
   7  Prefactor     .10000E-03    13.728       -.34368E-06** at limit **
   8  norm          .10000E-03    6.3407       -.12030E-07** at limit **
   9  Prefactor     8.6559        12.329        .99208E-06   -.10895E-03
  10  Prefactor     2.8526        8.2353        .84159E-05    .40353E-03
  11  norm          .45777        .62675        .11910E-06    .93215E-04
  12  norm          .31733        3.2378        .28722E-05   -.52248E-03
  13  Prefactor     53.874        48.290       -.22560E-05    .46504E-04
  14  Prefactor     .10001E-03    5.8853       -.41769E-06** at limit **
  15  norm          2.9495        2.8621       -.28270E-06   -.20411E-03
  16  Prefactor     .10000E-03    4.5684       -.13212E-06** at limit **
  17  Prefactor     1.5245        9.0152        .12511E-05   -.21112E-03
  18  norm          1.2087        .58300       -.69098E-07   -.47374E-03
  19  Prefactor     .10000E-03    15.945        .35391E-06** at limit **
  20  Prefactor     .10000E-03    3.3296       -.15976E-06** at limit **
  21  Prefactor     .10000E-03    4.0425       -.15880E-06** at limit **
  22  norm          1.5616        2.4583        .38697E-06   -.43260E-04
  23  Prefactor     16.803        27.708       -.25293E-05   -.94616E-04
  24  Normalizat    1.1278        .16619       -.16998E-05   -.70329E-04
  25  Prefactor     .67422        .14500        .42873E-07   -.18653E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 79.5556
  norm       = 0.833882
  Prefactor  = 0.0001
  Prefactor  = 35.8099
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 8.65589
  Prefactor  = 2.85262
  norm       = 0.457774
  norm       = 0.317328
  Prefactor  = 53.8737
  Prefactor  = 0.000100015
  norm       = 2.94951
  Prefactor  = 0.0001
  Prefactor  = 1.5245
  norm       = 1.20873
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.56156
  Prefactor  = 16.803
  Normalizat = 1.12784
  Prefactor  = 0.674223
 **********
 **   18 **HESSE 
 **********

 FCN=   6993.104     FROM HESSE     STATUS=OK           431 CALLS     3151 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    110.63        .40765E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     79.556        53.524        .46329E-04   -1.3922    
   3  norm          .83388        .28420        .25095E-04   -1.5525    
   4  Prefactor     .10000E-03    3.9468        .16145E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     35.810        17.704        .67327E-04   -1.4510    
   6  Prefactor     .10000E-03    2.4054        .12630E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    13.737        .21215E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    6.3474        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     8.6559        12.347        .68674E-03   -1.5119    
  10  Prefactor     2.8526        8.3050        .24111E-03   -1.5370    
  11  norm          .45777        .56164        .74922E-03   -1.5573    
  12  norm          .31733        3.7057        .23006E-03   -1.5595    
  13  Prefactor     53.874        50.398        .54729E-04   -1.4239    
  14  Prefactor     .10001E-03    19.344        .38578E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          2.9495        2.8242        .12860E-03   -1.5364    
  16  Prefactor     .10000E-03    4.5697        .17436E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     1.5245        9.1358        .34875E-03   -1.5461    
  18  norm          1.2087        .57993        .35462E-04   -1.5488    
  19  Prefactor     .10000E-03    15.949        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    3.3415        .14901E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    4.0548        .16374E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          1.5616        2.4264        .15587E-03   -1.5458    
  23  Prefactor     16.803        27.712        .98614E-04   -1.4888    
  24  Normalizat    1.1278        .19038        .21698E-03   -.88863    
  25  Prefactor     .67422        .16850        .25237E-03   -1.0455    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.82434e-09
Minuit parameter uncertainties:
  1  0.000127934
  2  53.5561
  3  0.284202
  4  4.82421e-06
  5  17.7068
  6  3.58041e-06
  7  1.49826e-05
  8  1.15606e-05
  9  12.3502
  10  8.30833
  11  0.561647
  12  2.16863
  13  50.4378
  14  0.0010619
  15  2.82438
  16  1.45287e-06
  17  7.46539
  18  0.579936
  19  2.62009e-05
  20  6.84807e-07
  21  7.32868e-07
  22  2.42657
  23  27.7327
  24  0.190494
  25  0.168629
Done.

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

Extracting fit parameters...

4FGL J2243.4-2544
   Spectrum: LogParabola
252         norm:  3.173e-01  2.169e+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:  6.742e-01  1.686e-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.128e+00  1.905e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/433619/likelihoodResults_276652801_276912001_4FGL_J2243.4-2544_daily_bin144.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) = 6992.70696272
delta logL = 0.397493580573

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6992.6757372
delta logL = 0.428719102651

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .48363       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.1047       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1046       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .68288       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=   6992.676     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      207 TOTAL
                     EDM=   .28E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .48412        10.056        .11204E-01    .13509E-02
   2  alpha         3.1042        3.9993        .32353        .58186E-04
   3  Normalizat    1.1047        .30556E-01    .37814E-01   -.55249E-04
   4  Prefactor     .68285        .28178E-01    .42173E-01    .11907E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.484123
  alpha      = 3.10416
  Normalizat = 1.1047
  Prefactor  = 0.682851
 **********
 **   18 **HESSE 
 **********

 FCN=   6992.676     FROM HESSE     STATUS=OK            35 CALLS      242 TOTAL
                     EDM=   .77E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .48412        2.5217        .68202E-03   -1.5569    
   2  alpha         3.1042        3.6704        .16376E-01    .24408    
   3  Normalizat    1.1047        .18156        .21866E-03   -.89601    
   4  Prefactor     .68285        .16636        .25062E-03   -1.0420    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.73449e-09
Minuit parameter uncertainties:
  1  2.20971
  2  2.45501
  3  0.181659
  4  0.166479
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/433619': 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) = 6992.675737
delta logL = 0.42871929782

Extracting fit parameters...

4FGL J2243.4-2544
   Spectrum: LogParabola
252         norm:  4.841e-01  2.210e+00  1.000e-04  1.000e+04 ( 1.000e-12)
253        alpha:  3.104e+00  2.455e+00  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:  6.829e-01  1.665e-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.105e+00  1.817e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

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/433619/cmap_HighResolution_276652801_276912001_4FGL_J2243.4-2544_daily_bin144.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.08e-05', job_status='DONE', photon_flux_upper_limit='4.84e-08', time_completed='2021-09-28 18:39:20.005531', job_id='433619', GAL2='0.68', fit_tolerance='1e-08', EG2='1.10', EG='1.13', time_epoch_completed='1632879560.01', return_code2='0', ts='0.04', comment='SUCCESS', return_code='0', GAL='0.67', dlogl='4.29e-01', ts2='0.92', photon_index_error='0.00', photon_index='2.00' WHERE bin_id='144' AND source_name='4FGL J2243.4-2544' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 18:39:20 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0299>
Subject: Job 433619: <4FGL_J2243.4-2544_daily_bin144> in cluster <slac> Done

Job <4FGL_J2243.4-2544_daily_bin144> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Tue Sep 28 18:25:30 2021
Job was executed on host(s) <bullet0299>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 18:25:31 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:25:31 2021
Terminated at Tue Sep 28 18:39:20 2021
Results reported at Tue Sep 28 18:39:20 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2243.4-2544_daily_bin144 340.865 -25.7363 276652801 276912001 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 :                                   696.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             256.76 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   829 sec.
    Turnaround time :                            830 sec.

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

