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


Performing analysis on: 4FGL_J2243.4-2544_daily_bin1044
RA = 340.865, Dec = -25.7363
tmin = 509932801, tmax = 510192001
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='436776', job_status='RUN', time_executed='2021-09-28 18:39:18.444759', time_epoch_executed='1632879558.44' WHERE source_name='4FGL J2243.4-2544' and cadence='daily' and bin_id='1044'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/436776

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/436776/ft1_4FGL_J2243.4-2544_daily_bin1044.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/436776/ft2_4FGL_J2243.4-2544_daily_bin1044.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/436776/ft1_4FGL_J2243.4-2544_daily_bin1044.fits outfile=/scratch/kocevski/436776/ft1_filteredMKT_4FGL_J2243.4-2544_daily_bin1044.fits ra=340.865 dec=-25.7363 rad=12.0 tmin=509932801.0 tmax=510192001.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.55
user 3.33
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/436776/ft1_filtered_4FGL_J2243.4-2544_daily_bin1044.fits" evtable="EVENTS" scfile=/scratch/kocevski/436776/ft2_4FGL_J2243.4-2544_daily_bin1044.fits sctable="SC_DATA" outfile=/scratch/kocevski/436776/ltcube_509932801_510192001_4FGL_J2243.4-2544_daily_bin1044.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/436776/ft2_4FGL_J2243.4-2544_daily_bin1044.fits
.....................!
real 11.88
user 11.54
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/436776/ft1_filtered_4FGL_J2243.4-2544_daily_bin1044.fits evtable="EVENTS" scfile=/scratch/kocevski/436776/ft2_4FGL_J2243.4-2544_daily_bin1044.fits sctable="SC_DATA" expcube=/scratch/kocevski/436776/ltcube_509932801_510192001_4FGL_J2243.4-2544_daily_bin1044.fits outfile=/scratch/kocevski/436776/expmap_509932801_510192001_4FGL_J2243.4-2544_daily_bin1044.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/436776/ltcube_509932801_510192001_4FGL_J2243.4-2544_daily_bin1044.fits
.....................!
real 191.72
user 186.91
sys 4.50

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/436776/ft1_filtered_4FGL_J2243.4-2544_daily_bin1044.fits scfile=/scratch/kocevski/436776/ft2_4FGL_J2243.4-2544_daily_bin1044.fits outfile=/scratch/kocevski/436776/cmap_509932801_510192001_4FGL_J2243.4-2544_daily_bin1044.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.52
user 0.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/436776/ft1_filtered_4FGL_J2243.4-2544_daily_bin1044.fits scfile=/scratch/kocevski/436776/ft2_4FGL_J2243.4-2544_daily_bin1044.fits outfile=/scratch/kocevski/436776/cmap_HighResolution_509932801_510192001_4FGL_J2243.4-2544_daily_bin1044.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.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/436776/ft1_filtered_4FGL_J2243.4-2544_daily_bin1044.fits evtable="EVENTS" scfile=/scratch/kocevski/436776/ft2_4FGL_J2243.4-2544_daily_bin1044.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/436776/Model_4FGL_J2243.4-2544_daily_bin1044.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/436776/ft1_filtered_4FGL_J2243.4-2544_daily_bin1044.fits.....................!
real 46.01
user 44.75
sys 1.16

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10007E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    2.0058       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .11255E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    9.5460       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    54.119       1.0000         .10000E-03   10000.    
     9 'Prefactor '    22.049       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .11451E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    4.0608       1.0000         .10000E-03   10000.    
    12 'norm      '    1.6160       1.0000         .10000E-03   10000.    
    13 'Prefactor '    64.028       1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.7372       1.0000         .10000E-03   10000.    
    15 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    4.9623       1.0000         .10000E-03   10000.    
    17 'Prefactor '    12.873       1.0000         .10000E-03   10000.    
    18 'norm      '    .10043E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    74.269       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10162E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    6.8672       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.1714       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0448       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5200E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5279.349     FROM MIGRAD    STATUS=CONVERGED     70 CALLS     2399 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 11.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10004E-03    7.8265       -.31172E-04** at limit **
   2  Prefactor     .10000E-03    15.452       -.28908E-04** at limit **
   3  norm          2.0058        .57319       -.17966E-06   -.22957E-02
   4  Prefactor     .10018E-03    6.0764        .11318E-04** at limit **
   5  Prefactor     .10057E-03    18.581       -.41203E-04** at limit **
   6  Prefactor     9.5546        1.0269        .14099E-07    .28253E-03
   7  Prefactor     .10185E-03    9.9200        .35118E-04** at limit **
   8  norm          54.113        1.3770       -.12041E-05    .67651E-02
   9  Prefactor     22.050        1.0089       -.26119E-06    .76070E-03
  10  Prefactor     .10003E-03    7.6791        .29680E-04** at limit **
  11  norm          4.0610        1.5424       -.10626E-06    .77382E-03
  12  norm          1.6190        2.9191        .41753E-06   -.18046E-03
  13  Prefactor     64.026        1.1006       -.54333E-06    .39479E-02
  14  Prefactor     5.7454        1.0561        .58512E-06    .56364E-04
  15  norm          .10000E-03    5.6256        .10866E-06** at limit **
  16  Prefactor     4.9546        1.2111       -.28923E-05    .10021E-02
  17  Prefactor     12.873        1.0993        .28712E-06   -.30901E-03
  18  norm          .10000E-03    .34387       -.35686E-06** at limit **
  19  Prefactor     74.271        1.0359        .29871E-06   -.24219E-02
  20  Prefactor     .10022E-03    7.6933        .31154E-04** at limit **
  21  Prefactor     .10008E-03    3.7077       -.10148E-04** at limit **
  22  norm          6.8686        4.5994       -.51595E-05   -.84443E-03
  23  Prefactor     .10023E-03    4.6602       -.25255E-04** at limit **
  24  Normalizat    1.1704        .27038        .42956E-05    .20465E-03
  25  Prefactor     1.0456        .24603       -.72904E-07   -.11651E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00010004
  Prefactor  = 0.0001
  norm       = 2.00578
  Prefactor  = 0.000100182
  Prefactor  = 0.000100574
  Prefactor  = 9.55459
  Prefactor  = 0.000101851
  norm       = 54.113
  Prefactor  = 22.0497
  Prefactor  = 0.000100025
  norm       = 4.06101
  norm       = 1.61896
  Prefactor  = 64.0256
  Prefactor  = 5.7454
  norm       = 0.000100001
  Prefactor  = 4.95465
  Prefactor  = 12.8728
  norm       = 0.0001
  Prefactor  = 74.271
  Prefactor  = 0.000100219
  Prefactor  = 0.000100077
  norm       = 6.86855
  Prefactor  = 0.000100233
  Normalizat = 1.17041
  Prefactor  = 1.04565
 **********
 **   18 **HESSE 
 **********

 FCN=   5279.349     FROM HESSE     STATUS=OK           491 CALLS     2890 TOTAL
                     EDM=   .42E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10004E-03    14.821        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    36.157        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          2.0058        .57208        .64523E-02   -1.5425    
   4  Prefactor     .10018E-03    16.896        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10057E-03    36.867        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     9.5546        12.618        .32426E-02   -1.5090    
   7  Prefactor     .10185E-03    25.995        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          54.113        33.755        .13631E-02   -1.4235    
   9  Prefactor     22.050        40.470        .21325E-02   -1.4768    
  10  Prefactor     .10003E-03    19.001        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          4.0610        1.5443        .50021E-02   -1.5305    
  12  norm          1.6190        3.4154        .83265E-02   -1.5453    
  13  Prefactor     64.026        77.900        .12538E-02   -1.4106    
  14  Prefactor     5.7454        14.164        .41922E-02   -1.5229    
  15  norm          .10000E-03    3.0510        .43697E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     4.9546        16.722        .45135E-02   -1.5263    
  17  Prefactor     12.873        13.878        .27911E-02   -1.4990    
  18  norm          .10000E-03    .31753        .18264E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     74.271        62.284        .11647E-02   -1.3982    
  20  Prefactor     .10022E-03    10.363        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10008E-03    10.950        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          6.8686        4.6107        .38276E-02   -1.5184    
  23  Prefactor     .10023E-03    11.321        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.1704        .24098        .63903E-01   -.87522    
  25  Prefactor     1.0456        .20513        .60587E-01   -.91223    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.22565e-07
Minuit parameter uncertainties:
  1  0.00153886
  2  8.82198e-05
  3  0.572083
  4  0.00350833
  5  0.00920803
  6  12.6219
  7  0.013881
  8  33.7673
  9  40.5204
  10  0.00138262
  11  1.54435
  12  3.41578
  13  78.0242
  14  14.1726
  15  0.000107631
  16  16.7375
  17  13.8811
  18  4.89607e-06
  19  62.3386
  20  0.00301453
  21  0.00184011
  22  4.61089
  23  0.00324837
  24  0.241208
  25  0.205288
Done.

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

Extracting fit parameters...

4FGL J2243.4-2544
   Spectrum: LogParabola
252         norm:  1.619e+00  3.416e+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.046e+00  2.053e-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.170e+00  2.412e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/436776/likelihoodResults_509932801_510192001_4FGL_J2243.4-2544_daily_bin1044.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) = 5279.34531786
delta logL = 0.00347416149725

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5279.34524337
delta logL = 0.00354864706333

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.6117       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1182       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1681       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0465       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=   5279.345     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      266 TOTAL
                     EDM=   .52E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.6119        2.9318        .15814E-03   -.15930E-03
   2  alpha         2.1182        1.3763        .28568E-01   -.10511E-04
   3  Normalizat    1.1681        .27159        .28289E-03    .35244E-04
   4  Prefactor     1.0465        .24527        .26782E-03    .63970E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.61186
  alpha      = 2.11822
  Normalizat = 1.16806
  Prefactor  = 1.04651
 **********
 **   18 **HESSE 
 **********

 FCN=   5279.345     FROM HESSE     STATUS=OK            25 CALLS      291 TOTAL
                     EDM=   .62E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.6119        2.8822        .63258E-05   -1.5454    
   2  alpha         2.1182        1.3554        .11427E-02   -.15331    
   3  Normalizat    1.1681        .27160        .11316E-04   -.87596    
   4  Prefactor     1.0465        .24539        .10713E-04   -.91195    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.16964e-11
Minuit parameter uncertainties:
  1  2.88245
  2  1.43465
  3  0.271924
  4  0.245655
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/436776': 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) = 5279.34524333
delta logL = 0.0035486885381

Extracting fit parameters...

4FGL J2243.4-2544
   Spectrum: LogParabola
252         norm:  1.612e+00  2.882e+00  1.000e-04  1.000e+04 ( 1.000e-12)
253        alpha:  2.118e+00  1.435e+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:  1.047e+00  2.457e-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.168e+00  2.719e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.41
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/436776/cmap_HighResolution_509932801_510192001_4FGL_J2243.4-2544_daily_bin1044.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.70e-05', job_status='DONE', photon_flux_upper_limit='8.96e-08', time_completed='2021-09-28 18:49:03.455766', job_id='436776', GAL2='1.05', fit_tolerance='1e-08', EG2='1.17', EG='1.17', time_epoch_completed='1632880143.46', return_code2='0', ts='0.41', comment='SUCCESS', return_code='0', GAL='1.05', dlogl='3.55e-03', ts2='0.42', photon_index_error='0.00', photon_index='2.00' WHERE bin_id='1044' AND source_name='4FGL J2243.4-2544' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 18:49:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0242>
Subject: Job 436776: <4FGL_J2243.4-2544_daily_bin1044> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2243.4-2544_daily_bin1044 340.865 -25.7363 509932801 510192001 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 :                                   584.05 sec.
    Max Memory :                                 1214 MB
    Average Memory :                             279.92 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   803 sec.
    Turnaround time :                            805 sec.

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

