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


Performing analysis on: 4FGL_J2243.4-2544_daily_bin1042
RA = 340.865, Dec = -25.7363
tmin = 509414401, tmax = 509673601
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='436773', job_status='RUN', time_executed='2021-09-28 18:35:48.642591', time_epoch_executed='1632879348.64' WHERE source_name='4FGL J2243.4-2544' and cadence='daily' and bin_id='1042'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/436773

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/436773/ft1_4FGL_J2243.4-2544_daily_bin1042.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/436773/ft2_4FGL_J2243.4-2544_daily_bin1042.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/436773/ft1_4FGL_J2243.4-2544_daily_bin1042.fits outfile=/scratch/kocevski/436773/ft1_filteredMKT_4FGL_J2243.4-2544_daily_bin1042.fits ra=340.865 dec=-25.7363 rad=12.0 tmin=509414401.0 tmax=509673601.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.73
user 3.52
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/436773/ft1_filtered_4FGL_J2243.4-2544_daily_bin1042.fits" evtable="EVENTS" scfile=/scratch/kocevski/436773/ft2_4FGL_J2243.4-2544_daily_bin1042.fits sctable="SC_DATA" outfile=/scratch/kocevski/436773/ltcube_509414401_509673601_4FGL_J2243.4-2544_daily_bin1042.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/436773/ft2_4FGL_J2243.4-2544_daily_bin1042.fits
.....................!
real 11.90
user 11.57
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/436773/ft1_filtered_4FGL_J2243.4-2544_daily_bin1042.fits evtable="EVENTS" scfile=/scratch/kocevski/436773/ft2_4FGL_J2243.4-2544_daily_bin1042.fits sctable="SC_DATA" expcube=/scratch/kocevski/436773/ltcube_509414401_509673601_4FGL_J2243.4-2544_daily_bin1042.fits outfile=/scratch/kocevski/436773/expmap_509414401_509673601_4FGL_J2243.4-2544_daily_bin1042.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/436773/ltcube_509414401_509673601_4FGL_J2243.4-2544_daily_bin1042.fits
.....................!
real 190.69
user 185.81
sys 4.56

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/436773/ft1_filtered_4FGL_J2243.4-2544_daily_bin1042.fits scfile=/scratch/kocevski/436773/ft2_4FGL_J2243.4-2544_daily_bin1042.fits outfile=/scratch/kocevski/436773/cmap_509414401_509673601_4FGL_J2243.4-2544_daily_bin1042.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.38
sys 0.14

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10086E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    216.36       1.0000         .10000E-03   10000.    
     3 'norm      '    1.8497       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.5841       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    3.0886       1.0000         .10000E-03   10000.    
    12 'norm      '    .10022E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    97.404       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10085E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    29.861       1.0000         .10000E-03   10000.    
    18 'norm      '    .10317E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    199.11       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10564E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.1379       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0521       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=   4722.541     FROM MIGRAD    STATUS=CONVERGED    584 CALLS     3467 TOTAL
                     EDM=   .42E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    116.83       -.68234E-05** at limit **
   2  Prefactor     216.26        159.27       -.71902E-05   -.19316E-03
   3  norm          1.8499        .65913        .87887E-07    .80314E-04
   4  Prefactor     .10000E-03    7.9099       -.42961E-06** at limit **
   5  Prefactor     .10000E-03    9.1053       -.21186E-06** at limit **
   6  Prefactor     4.5838        11.564        .70935E-05   -.12321E-03
   7  Prefactor     .10000E-03    36.529       -.17886E-05** at limit **
   8  norm          .10000E-03    7.6533        .32933E-06** at limit **
   9  Prefactor     .10000E-03    28.038       -.14262E-05** at limit **
  10  Prefactor     .10000E-03    7.0684        .12212E-06** at limit **
  11  norm          3.0886        1.5725        .40413E-07   -.26410E-04
  12  norm          .10000E-03    2.5620        .81343E-06** at limit **
  13  Prefactor     97.425        79.156        .18886E-05    .69894E-04
  14  Prefactor     .10000E-03    14.228       -.12749E-06** at limit **
  15  norm          .10000E-03    4.5033        .10558E-06** at limit **
  16  Prefactor     .10000E-03    11.642        .44451E-06** at limit **
  17  Prefactor     29.838        15.721       -.27955E-07    .11143E-04
  18  norm          .10000E-03    .56313       -.59129E-07** at limit **
  19  Prefactor     199.14        118.07        .23626E-05    .11807E-03
  20  Prefactor     .10000E-03    23.701        .18216E-05** at limit **
  21  Prefactor     .10000E-03    12.988       -.35317E-06** at limit **
  22  norm          .10000E-03    5.5746        .19338E-06** at limit **
  23  Prefactor     .10000E-03    44.349        .24251E-05** at limit **
  24  Normalizat    1.1378        .25554       -.12296E-05    .71680E-05
  25  Prefactor     1.0521        .21289        .54894E-07   -.50367E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Prefactor  = 216.257
  norm       = 1.8499
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.5838
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 3.08865
  norm       = 0.0001
  Prefactor  = 97.4254
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 29.8378
  norm       = 0.0001
  Prefactor  = 199.139
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100002
  Normalizat = 1.13781
  Prefactor  = 1.05211
 **********
 **   18 **HESSE 
 **********

 FCN=   4722.541     FROM HESSE     STATUS=OK           417 CALLS     3884 TOTAL
                     EDM=   .84E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    116.19        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     216.26        165.21        .13746E-03   -1.2756    
   3  norm          1.8499        .66119        .31262E-04   -1.5436    
   4  Prefactor     .10000E-03    7.9761        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    9.1107        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     4.5838        11.898        .94002E-03   -1.5280    
   7  Prefactor     .10000E-03    36.685        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    7.6561        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    28.239        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    7.0759        .17842E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          3.0886        1.5713        .59094E-04   -1.5356    
  12  norm          .10000E-03    2.5895        .21252E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     97.425        78.843        .40729E-04   -1.3731    
  14  Prefactor     .10000E-03    14.303        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    4.6317        .28435E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    11.659        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     29.838        14.605        .73320E-04   -1.4615    
  18  norm          .10000E-03    .86669        .91904E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     199.14        119.04        .14317E-03   -1.2876    
  20  Prefactor     .10000E-03    24.447        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    13.021        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    5.8162        .31671E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    44.689        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.1378        .31502        .28945E-03   -.88547    
  25  Prefactor     1.0521        .26097        .26416E-03   -.91012    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.41784e-10
Minuit parameter uncertainties:
  1  0.000743105
  2  165.569
  3  0.661196
  4  4.48063e-08
  5  2.29159e-06
  6  11.9046
  7  0.000375977
  8  2.43242e-05
  9  0.000334081
  10  8.93519e-06
  11  1.57131
  12  1.97783e-05
  13  78.9282
  14  5.23813e-05
  15  3.39894e-06
  16  5.01571e-05
  17  14.6072
  18  5.40419e-06
  19  119.187
  20  0.000224153
  21  3.2478e-05
  22  7.53226e-06
  23  0.000537308
  24  0.315545
  25  0.261282
Done.

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

Extracting fit parameters...

4FGL J2243.4-2544
   Spectrum: LogParabola
252         norm:  1.000e-04  1.978e-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:  1.052e+00  2.613e-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.138e+00  3.155e-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: 7.13e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.54e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/436773/likelihoodResults_509414401_509673601_4FGL_J2243.4-2544_daily_bin1042.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) = 4722.5424279
delta logL = -0.00183169022421

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4722.54059817
delta logL = -1.96189193957e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .11217E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0265       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1376       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0523       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=   4722.541     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      207 TOTAL
                     EDM=   .45E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    5.3749        .90712E-02** at limit **
   2  alpha         2.0556        3.5273        .42125       -.54936E-04
   3  Normalizat    1.1378        .23783        .65431E-01   -.18175E-03
   4  Prefactor     1.0521        .21070        .59735E-01   -.18201E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.05559
  Normalizat = 1.13781
  Prefactor  = 1.05211
 **********
 **   18 **HESSE 
 **********

 FCN=   4722.541     FROM HESSE     STATUS=OK            29 CALLS      236 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.7711        .21926E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.0556        3.4331        .50000       -.17871    
   3  Normalizat    1.1378        .28811        .28945E-03   -.88547    
   4  Prefactor     1.0521        .25536        .26416E-03   -.91012    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.20734e-09
Minuit parameter uncertainties:
  1  6.89326e-05
  2  2.46108
  3  0.288515
  4  0.255656
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/436773': 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) = 4722.54059493
delta logL = 1.27248858917e-06

Extracting fit parameters...

4FGL J2243.4-2544
   Spectrum: LogParabola
252         norm:  1.000e-04  6.893e-05  1.000e-04  1.000e+04 ( 1.000e-12)
253        alpha:  2.056e+00  2.461e+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.052e+00  2.557e-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.138e+00  2.885e-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/436773/cmap_HighResolution_509414401_509673601_4FGL_J2243.4-2544_daily_bin1042.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.54e-05', job_status='DONE', photon_flux_upper_limit='7.13e-08', time_completed='2021-09-28 18:45:39.319462', job_id='436773', GAL2='1.05', fit_tolerance='1e-08', EG2='1.14', EG='1.14', time_epoch_completed='1632879939.32', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.05', dlogl='1.27e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.00' WHERE bin_id='1042' AND source_name='4FGL J2243.4-2544' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 18:45:39 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0224>
Subject: Job 436773: <4FGL_J2243.4-2544_daily_bin1042> in cluster <slac> Done

Job <4FGL_J2243.4-2544_daily_bin1042> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Sep 28 18:35:38 2021
Job was executed on host(s) <bullet0224>, 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:45:40 2021
Results reported at Tue Sep 28 18:45:40 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2243.4-2544_daily_bin1042 340.865 -25.7363 509414401 509673601 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 :                                   588.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             341.37 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   599 sec.
    Turnaround time :                            602 sec.

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

