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


Performing analysis on: 4FGL_J2243.4-2544_daily_bin1278
RA = 340.865, Dec = -25.7363
tmin = 570585601, tmax = 570844801
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='438195', job_status='RUN', time_executed='2021-09-28 18:41:37.565161', time_epoch_executed='1632879697.57' WHERE source_name='4FGL J2243.4-2544' and cadence='daily' and bin_id='1278'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/438195

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/438195/ft1_4FGL_J2243.4-2544_daily_bin1278.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/438195/ft2_4FGL_J2243.4-2544_daily_bin1278.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/438195/ft1_4FGL_J2243.4-2544_daily_bin1278.fits outfile=/scratch/kocevski/438195/ft1_filteredMKT_4FGL_J2243.4-2544_daily_bin1278.fits ra=340.865 dec=-25.7363 rad=12.0 tmin=570585601.0 tmax=570844801.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.10
user 2.88
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/438195/ft1_filtered_4FGL_J2243.4-2544_daily_bin1278.fits" evtable="EVENTS" scfile=/scratch/kocevski/438195/ft2_4FGL_J2243.4-2544_daily_bin1278.fits sctable="SC_DATA" outfile=/scratch/kocevski/438195/ltcube_570585601_570844801_4FGL_J2243.4-2544_daily_bin1278.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/438195/ft2_4FGL_J2243.4-2544_daily_bin1278.fits
.....................!
real 12.27
user 11.93
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/438195/ft1_filtered_4FGL_J2243.4-2544_daily_bin1278.fits evtable="EVENTS" scfile=/scratch/kocevski/438195/ft2_4FGL_J2243.4-2544_daily_bin1278.fits sctable="SC_DATA" expcube=/scratch/kocevski/438195/ltcube_570585601_570844801_4FGL_J2243.4-2544_daily_bin1278.fits outfile=/scratch/kocevski/438195/expmap_570585601_570844801_4FGL_J2243.4-2544_daily_bin1278.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/438195/ltcube_570585601_570844801_4FGL_J2243.4-2544_daily_bin1278.fits
.....................!
real 190.65
user 184.83
sys 5.35

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/438195/ft1_filtered_4FGL_J2243.4-2544_daily_bin1278.fits scfile=/scratch/kocevski/438195/ft2_4FGL_J2243.4-2544_daily_bin1278.fits outfile=/scratch/kocevski/438195/cmap_570585601_570844801_4FGL_J2243.4-2544_daily_bin1278.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.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/438195/ft1_filtered_4FGL_J2243.4-2544_daily_bin1278.fits scfile=/scratch/kocevski/438195/ft2_4FGL_J2243.4-2544_daily_bin1278.fits outfile=/scratch/kocevski/438195/cmap_HighResolution_570585601_570844801_4FGL_J2243.4-2544_daily_bin1278.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.55
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/438195/ft1_filtered_4FGL_J2243.4-2544_daily_bin1278.fits evtable="EVENTS" scfile=/scratch/kocevski/438195/ft2_4FGL_J2243.4-2544_daily_bin1278.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/438195/Model_4FGL_J2243.4-2544_daily_bin1278.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/438195/ft1_filtered_4FGL_J2243.4-2544_daily_bin1278.fits......................!
real 23.55
user 22.07
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
     2 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
     3 'norm      '    .11783E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10250E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .11740E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    7.9588       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .27470E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    84.880       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10216E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .53578E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    6.5369       1.0000         .10000E-03   10000.    
    12 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    147.76       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10256E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .34742E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    6.0997       1.0000         .10000E-03   10000.    
    17 'Prefactor '    33.611       1.0000         .10000E-03   10000.    
    18 'norm      '    .73759E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    37.113       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    2.7171       1.0000         .10000E-03   10000.    
    23 'Prefactor '    52.426       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .88749       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .76326       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=   1492.614     FROM MIGRAD    STATUS=CONVERGED    602 CALLS     3533 TOTAL
                     EDM=   .19E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor    10000.0        1162.9       -.10846E-05** at limit **
   2  Prefactor    10000.0        1585.7        .12967E-05** at limit **
   3  norm          .10000E-03    86.232        .90275E-05** at limit **
   4  Prefactor     .10000E-03    118.07        .69566E-07** at limit **
   5  Prefactor     .10000E-03    96.042        .13370E-06** at limit **
   6  Prefactor     8.4844        6438.5       -.10171E-03   -.31458E-05
   7  Prefactor     .10000E-03    570.97        .70965E-06** at limit **
   8  norm          84.801        133.34        .10584E-05   -.37266E-04
   9  Prefactor     .10000E-03    67.317        .95803E-06** at limit **
  10  Prefactor     .10000E-03    267.95        .27498E-04** at limit **
  11  norm          6.5390        2.8555       -.40593E-08   -.15838E-04
  12  norm          .10000E-03    5.0357        .21865E-05** at limit **
  13  Prefactor     147.92        159.56        .19939E-05   -.49015E-04
  14  Prefactor     .10000E-03    24.138        .31963E-05** at limit **
  15  norm          .10000E-03    14.762       -.33617E-06** at limit **
  16  Prefactor     6.2902        151.09       -.91638E-05    .57961E-04
  17  Prefactor     33.451        46.857        .46248E-05    .16473E-03
  18  norm          .10000E-03    1.7721       -.28691E-06** at limit **
  19  Prefactor     37.106        175.58        .17356E-05    .75684E-06
  20  Prefactor     .10000E-03    7.6781       -.15799E-06** at limit **
  21  Prefactor     .10000E-03    15.095       -.72139E-06** at limit **
  22  norm          2.7169        3.3473       -.70026E-07    .39182E-05
  23  Prefactor     52.458        56.548       -.27200E-06   -.14208E-04
  24  Normalizat    .88793        .42426       -.45489E-05    .22178E-04
  25  Prefactor     .76278        .35315        .58492E-05   -.48582E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10000
  Prefactor  = 10000
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.48442
  Prefactor  = 0.0001
  norm       = 84.8011
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  norm       = 6.53897
  norm       = 0.0001
  Prefactor  = 147.915
  Prefactor  = 0.0001
  norm       = 0.000100001
  Prefactor  = 6.29019
  Prefactor  = 33.4507
  norm       = 0.0001
  Prefactor  = 37.1062
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.71695
  Prefactor  = 52.4579
  Normalizat = 0.887929
  Prefactor  = 0.762783
 **********
 **   18 **HESSE 
 **********

 FCN=   1492.614     FROM HESSE     STATUS=OK           421 CALLS     3954 TOTAL
                     EDM=   .34E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor    10000.0        1163.1        .21124E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor    10000.0        1584.6        .19675E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    86.728        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    118.08        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    96.039        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     8.4844        6408.3        .14213E-02   -1.5125    
   7  Prefactor     .10000E-03    575.71        .21427E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          84.801        133.19        .43603E-04   -1.3864    
   9  Prefactor     .10000E-03    67.312        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    262.97        .42246E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          6.5390        2.8608        .41081E-04   -1.5196    
  12  norm          .10000E-03    4.9911        .84052E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     147.92        156.89        .16576E-03   -1.3270    
  14  Prefactor     .10000E-03    24.206        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    26.160        .25553E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     6.2902        120.23        .16256E-03   -1.5206    
  17  Prefactor     33.451        46.639        .69119E-04   -1.4551    
  18  norm          .10000E-03    21.914        .80269E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     37.106        175.59        .65788E-04   -1.4489    
  20  Prefactor     .10000E-03    7.6839        .10457E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    15.126        .14665E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          2.7169        3.3387        .75542E-04   -1.5378    
  23  Prefactor     52.458        56.598        .55392E-04   -1.4258    
  24  Normalizat    .88793        .48690        .28134E-03   -.96886    
  25  Prefactor     .76278        .40192        .26674E-03   -1.0112    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.3698e-10
Minuit parameter uncertainties:
  1  0.000300205
  2  0.00821614
  3  0.00067093
  4  0.000119929
  5  0.000135398
  6  343.288
  7  0.000418893
  8  133.666
  9  3.36417e-05
  10  0.00152243
  11  2.86084
  12  1.66907e-05
  13  157.335
  14  9.46236e-05
  15  0.000306813
  16  55.1291
  17  46.6903
  18  6.91983e-05
  19  162.218
  20  4.43046e-06
  21  5.80872e-05
  22  3.33897
  23  56.6562
  24  0.489333
  25  0.403476
Done.

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

Extracting fit parameters...

4FGL J2243.4-2544
   Spectrum: LogParabola
252         norm:  1.000e-04  1.669e-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:  7.628e-01  4.035e-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:  8.879e-01  4.893e-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: 1.83e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.16e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/438195/likelihoodResults_570585601_570844801_4FGL_J2243.4-2544_daily_bin1278.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) = 1492.61452671
delta logL = -0.000928185560724

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 1492.61359853
delta logL = -4.76279637951e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9980       1.0000          .0000       5.0000    
     3 'Normalizat'    .88794       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .76280       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=   1492.614     FROM MIGRAD    STATUS=CONVERGED     47 CALLS      191 TOTAL
                     EDM=   .82E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    5.0179        .90712E-02** at limit **
   2  alpha         1.9973        3.4179        .42252        .65306E-06
   3  Normalizat    .88793        .37043        .44747E-01    .52816E-05
   4  Prefactor     .76279        .32977        .43231E-01    .46612E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.99733
  Normalizat = 0.887925
  Prefactor  = 0.762787
 **********
 **   18 **HESSE 
 **********

 FCN=   1492.614     FROM HESSE     STATUS=OK            33 CALLS      224 TOTAL
                     EDM=   .62E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    4.9836        .84032E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.9973        3.4149        .50000       -.20245    
   3  Normalizat    .88793        .41789        .28135E-03   -.96886    
   4  Prefactor     .76279        .37207        .26673E-03   -1.0111    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.20603e-13
Minuit parameter uncertainties:
  1  4.20891e-06
  2  2.44955
  3  0.419426
  4  0.373297
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/438195': 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) = 1492.61359853
delta logL = 4.28372004535e-10

Extracting fit parameters...

4FGL J2243.4-2544
   Spectrum: LogParabola
252         norm:  1.000e-04  4.209e-06  1.000e-04  1.000e+04 ( 1.000e-12)
253        alpha:  1.997e+00  2.450e+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:  7.628e-01  3.733e-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:  8.879e-01  4.194e-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/438195/cmap_HighResolution_570585601_570844801_4FGL_J2243.4-2544_daily_bin1278.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.16e-04', job_status='DONE', photon_flux_upper_limit='1.83e-07', time_completed='2021-09-28 18:48:29.740653', job_id='438195', GAL2='0.76', fit_tolerance='1e-08', EG2='0.89', EG='0.89', time_epoch_completed='1632880109.74', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.76', dlogl='4.28e-10', ts2='-0.00', photon_index_error='0.00', photon_index='2.00' WHERE bin_id='1278' AND source_name='4FGL J2243.4-2544' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 18:48:29 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0049>
Subject: Job 438195: <4FGL_J2243.4-2544_daily_bin1278> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2243.4-2544_daily_bin1278 340.865 -25.7363 570585601 570844801 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 :                                   401.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             240.31 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   479 sec.
    Turnaround time :                            480 sec.

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

