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


Performing analysis on: 4FGL_J2243.4-2544_daily_bin1080
RA = 340.865, Dec = -25.7363
tmin = 519264001, tmax = 519523201
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='436827', job_status='RUN', time_executed='2021-09-28 18:39:18.090828', time_epoch_executed='1632879558.09' WHERE source_name='4FGL J2243.4-2544' and cadence='daily' and bin_id='1080'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/436827

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/436827/ft1_4FGL_J2243.4-2544_daily_bin1080.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/436827/ft2_4FGL_J2243.4-2544_daily_bin1080.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/436827/ft1_4FGL_J2243.4-2544_daily_bin1080.fits outfile=/scratch/kocevski/436827/ft1_filteredMKT_4FGL_J2243.4-2544_daily_bin1080.fits ra=340.865 dec=-25.7363 rad=12.0 tmin=519264001.0 tmax=519523201.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.48
user 3.28
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/436827/ft2_4FGL_J2243.4-2544_daily_bin1080.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/436827/ft1_filteredMKT_4FGL_J2243.4-2544_daily_bin1080.fits evtable="EVENTS" outfile="/scratch/kocevski/436827/ft1_filtered_4FGL_J2243.4-2544_daily_bin1080.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.32
sys 0.16

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/436827/ft1_filtered_4FGL_J2243.4-2544_daily_bin1080.fits evtable="EVENTS" scfile=/scratch/kocevski/436827/ft2_4FGL_J2243.4-2544_daily_bin1080.fits sctable="SC_DATA" expcube=/scratch/kocevski/436827/ltcube_519264001_519523201_4FGL_J2243.4-2544_daily_bin1080.fits outfile=/scratch/kocevski/436827/expmap_519264001_519523201_4FGL_J2243.4-2544_daily_bin1080.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/436827/ltcube_519264001_519523201_4FGL_J2243.4-2544_daily_bin1080.fits
.....................!
real 189.79
user 185.22
sys 4.25

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/436827/ft1_filtered_4FGL_J2243.4-2544_daily_bin1080.fits scfile=/scratch/kocevski/436827/ft2_4FGL_J2243.4-2544_daily_bin1080.fits outfile=/scratch/kocevski/436827/cmap_519264001_519523201_4FGL_J2243.4-2544_daily_bin1080.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.54
user 0.39
sys 0.13

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/436827/ft1_filtered_4FGL_J2243.4-2544_daily_bin1080.fits evtable="EVENTS" scfile=/scratch/kocevski/436827/ft2_4FGL_J2243.4-2544_daily_bin1080.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/436827/Model_4FGL_J2243.4-2544_daily_bin1080.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/436827/ft1_filtered_4FGL_J2243.4-2544_daily_bin1080.fits.....................!
real 49.39
user 48.13
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    1.6730       1.0000         .10000E-03   10000.    
     4 'Prefactor '    5.3458       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    58.655       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10094E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10057E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    1.8504       1.0000         .10000E-03   10000.    
    12 'norm      '    .60564       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .26727E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .91569E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    14.812       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    16.266       1.0000         .10000E-03   10000.    
    18 'norm      '    .61259       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .19861E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .38446E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    10.235       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.6356       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .46684       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=   6158.940     FROM MIGRAD    STATUS=CONVERGED    578 CALLS     2891 TOTAL
                     EDM=   .75E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    11.942        .52247E-06** at limit **
   2  Prefactor     .10000E-03    31.927        .40521E-05** at limit **
   3  norm          1.6730        .47071       -.23141E-07   -.42557E-03
   4  Prefactor     5.3459        7.5881        .21994E-05   -.99241E-03
   5  Prefactor     .10000E-03    14.708       -.21763E-05** at limit **
   6  Prefactor     .10000E-03    2.9695        .18626E-06** at limit **
   7  Prefactor     .10000E-03    20.061        .12769E-05** at limit **
   8  norm          58.649        34.344       -.12243E-05   -.16472E-03
   9  Prefactor     .10000E-03    17.795        .28794E-05** at limit **
  10  Prefactor     .10000E-03    4.8566       -.90887E-07** at limit **
  11  norm          1.8503        .92751       -.90162E-08   -.86141E-04
  12  norm          .60527        2.0095        .53117E-06   -.32807E-03
  13  Prefactor     .10000E-03    157.22       -.49106E-06** at limit **
  14  Prefactor     .10000E-03    31.862       -.16249E-05** at limit **
  15  norm          14.815        6.5493        .12178E-06    .30594E-04
  16  Prefactor     .10000E-03    8.2989        .17264E-06** at limit **
  17  Prefactor     16.275        15.404       -.48713E-06   -.14420E-03
  18  norm          .61250        .91207        .12444E-06   -.25213E-03
  19  Prefactor     .10000E-03    116.23       -.39980E-05** at limit **
  20  Prefactor     .10000E-03    6.9481        .25314E-06** at limit **
  21  Prefactor     .10000E-03    8.0767        .25700E-07** at limit **
  22  norm          10.237        4.3500       -.98800E-08    .35682E-04
  23  Prefactor     .10001E-03    25.431       -.60204E-05** at limit **
  24  Normalizat    1.6357        .20426        .29403E-06    .35934E-04
  25  Prefactor     .46681        .17584       -.53597E-06    .40863E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  norm       = 1.673
  Prefactor  = 5.34593
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 58.6489
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  norm       = 1.85031
  norm       = 0.605273
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 14.815
  Prefactor  = 0.0001
  Prefactor  = 16.2745
  norm       = 0.612499
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 10.2367
  Prefactor  = 0.000100008
  Normalizat = 1.63568
  Prefactor  = 0.46681
 **********
 **   18 **HESSE 
 **********

 FCN=   6158.940     FROM HESSE     STATUS=OK           425 CALLS     3316 TOTAL
                     EDM=   .41E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    11.960        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    32.635        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          1.6730        .47200        .27739E-04   -1.5449    
   4  Prefactor     5.3459        9.1473        .86910E-03   -1.5246    
   5  Prefactor     .10000E-03    14.961        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    2.9764        .13209E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    20.133        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          58.649        34.258        .52384E-04   -1.4175    
   9  Prefactor     .10000E-03    18.174        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    4.8673        .16889E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          1.8503        .92835        .51860E-04   -1.5436    
  12  norm          .60527        1.9588        .19125E-03   -1.5552    
  13  Prefactor     .10000E-03    160.50        .42876E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    33.205        .41638E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          14.815        6.5007        .10407E-03   -1.4938    
  16  Prefactor     .10000E-03    8.3130        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     16.275        14.288        .99308E-04   -1.4901    
  18  norm          .61250        .82595        .65245E-03   -1.5551    
  19  Prefactor     .10000E-03    117.44        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    7.0359        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    42.005        .37446E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          10.237        4.3544        .10351E-03   -1.5068    
  23  Prefactor     .10001E-03    27.001        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.6357        .23847        .22519E-03   -.74034    
  25  Prefactor     .46681        .20294        .34472E-03   -1.1352    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.14004e-09
Minuit parameter uncertainties:
  1  5.33618e-05
  2  0.000693221
  3  0.472001
  4  9.14968
  5  0.000248942
  6  8.60929e-06
  7  0.000170106
  8  34.2697
  9  0.000357732
  10  5.06142e-06
  11  0.928359
  12  1.95897
  13  1.54609e-06
  14  0.000240572
  15  6.50098
  16  1.94791e-05
  17  14.2913
  18  0.825965
  19  0.00131244
  20  1.60224e-05
  21  0.000437478
  22  4.35458
  23  0.000933002
  24  0.238639
  25  0.203255
Done.

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

Extracting fit parameters...

4FGL J2243.4-2544
   Spectrum: LogParabola
252         norm:  6.053e-01  1.959e+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:  4.668e-01  2.033e-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.636e+00  2.386e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/436827/likelihoodResults_519264001_519523201_4FGL_J2243.4-2544_daily_bin1080.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) = 6158.91880591
delta logL = 0.0216508751082

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6158.91750443
delta logL = 0.0229523540165

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .52620       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.4268       1.0000          .0000       5.0000    
     3 'Normalizat'    1.6393       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .46501       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=   6158.918     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      261 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .52627        260.29        .37180E-01   -.10903E-02
   2  alpha         1.4270        3.9199        .47427       -.30732E-04
   3  Normalizat    1.6394        .13242        .50898E-01   -.47900E-05
   4  Prefactor     .46498        .12936        .77973E-01    .40145E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.526273
  alpha      = 1.42698
  Normalizat = 1.63936
  Prefactor  = 0.464978
 **********
 **   18 **HESSE 
 **********

 FCN=   6158.918     FROM HESSE     STATUS=OK            35 CALLS      296 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .52627        1.6382        .16984E-02   -1.5563    
   2  alpha         1.4270        1.6854        .51222E-01   -.44362    
   3  Normalizat    1.6394        .22538        .22500E-03   -.73934    
   4  Prefactor     .46498        .19681        .34536E-03   -1.1361    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.06999e-09
Minuit parameter uncertainties:
  1  1.63838
  2  1.90267
  3  0.225521
  4  0.197102
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/436827': 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) = 6158.91750441
delta logL = 0.0229523772432

Extracting fit parameters...

4FGL J2243.4-2544
   Spectrum: LogParabola
252         norm:  5.263e-01  1.638e+00  1.000e-04  1.000e+04 ( 1.000e-12)
253        alpha:  1.427e+00  1.903e+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:  4.650e-01  1.971e-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.639e+00  2.255e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.12
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/436827/cmap_HighResolution_519264001_519523201_4FGL_J2243.4-2544_daily_bin1080.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.93e-05', job_status='DONE', photon_flux_upper_limit='6.18e-08', time_completed='2021-09-28 18:50:01.905912', job_id='436827', GAL2='0.46', fit_tolerance='1e-08', EG2='1.64', EG='1.64', time_epoch_completed='1632880201.91', return_code2='0', ts='0.12', comment='SUCCESS', return_code='0', GAL='0.47', dlogl='2.30e-02', ts2='0.17', photon_index_error='0.00', photon_index='2.00' WHERE bin_id='1080' AND source_name='4FGL J2243.4-2544' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 18:50:01 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0124>
Subject: Job 436827: <4FGL_J2243.4-2544_daily_bin1080> in cluster <slac> Done

Job <4FGL_J2243.4-2544_daily_bin1080> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Sep 28 18:35:42 2021
Job was executed on host(s) <bullet0124>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 18:35:44 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:35:44 2021
Terminated at Tue Sep 28 18:50:02 2021
Results reported at Tue Sep 28 18:50:02 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2243.4-2544_daily_bin1080 340.865 -25.7363 519264001 519523201 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 :                                   643.12 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             243.46 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   858 sec.
    Turnaround time :                            860 sec.

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

