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


Performing analysis on: 4FGL_J2243.4-2544_daily_bin303
RA = 340.865, Dec = -25.7363
tmin = 317865601, tmax = 318124801
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='433883', job_status='RUN', time_executed='2021-09-28 18:29:32.716600', time_epoch_executed='1632878972.72' WHERE source_name='4FGL J2243.4-2544' and cadence='daily' and bin_id='303'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/433883

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/433883/ft1_4FGL_J2243.4-2544_daily_bin303.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/433883/ft2_4FGL_J2243.4-2544_daily_bin303.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/433883/ft1_4FGL_J2243.4-2544_daily_bin303.fits outfile=/scratch/kocevski/433883/ft1_filteredMKT_4FGL_J2243.4-2544_daily_bin303.fits ra=340.865 dec=-25.7363 rad=12.0 tmin=317865601.0 tmax=318124801.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.41
user 3.19
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/433883/ft2_4FGL_J2243.4-2544_daily_bin303.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/433883/ft1_filteredMKT_4FGL_J2243.4-2544_daily_bin303.fits evtable="EVENTS" outfile="/scratch/kocevski/433883/ft1_filtered_4FGL_J2243.4-2544_daily_bin303.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.53
user 0.36
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/433883/ft1_filtered_4FGL_J2243.4-2544_daily_bin303.fits" evtable="EVENTS" scfile=/scratch/kocevski/433883/ft2_4FGL_J2243.4-2544_daily_bin303.fits sctable="SC_DATA" outfile=/scratch/kocevski/433883/ltcube_317865601_318124801_4FGL_J2243.4-2544_daily_bin303.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/433883/ft2_4FGL_J2243.4-2544_daily_bin303.fits
.....................!
real 13.70
user 13.36
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/433883/ft1_filtered_4FGL_J2243.4-2544_daily_bin303.fits evtable="EVENTS" scfile=/scratch/kocevski/433883/ft2_4FGL_J2243.4-2544_daily_bin303.fits sctable="SC_DATA" expcube=/scratch/kocevski/433883/ltcube_317865601_318124801_4FGL_J2243.4-2544_daily_bin303.fits outfile=/scratch/kocevski/433883/expmap_317865601_318124801_4FGL_J2243.4-2544_daily_bin303.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/433883/ltcube_317865601_318124801_4FGL_J2243.4-2544_daily_bin303.fits
.....................!
real 194.93
user 185.58
sys 4.93

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/433883/ft1_filtered_4FGL_J2243.4-2544_daily_bin303.fits scfile=/scratch/kocevski/433883/ft2_4FGL_J2243.4-2544_daily_bin303.fits outfile=/scratch/kocevski/433883/cmap_317865601_318124801_4FGL_J2243.4-2544_daily_bin303.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 2.27
user 0.38
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    55.018       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10264E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    1.4766       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10286E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    11.932       1.0000         .10000E-03   10000.    
     6 'Prefactor '    19.263       1.0000         .10000E-03   10000.    
     7 'Prefactor '    8.2873       1.0000         .10000E-03   10000.    
     8 'norm      '    .93527       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.4231       1.0000         .10000E-03   10000.    
    11 'norm      '    1.5315       1.0000         .10000E-03   10000.    
    12 'norm      '    .13120E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    21.852       1.0000         .10000E-03   10000.    
    15 'norm      '    2.0449       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .28626       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    20.372       1.0000         .10000E-03   10000.    
    22 'norm      '    3.7714       1.0000         .10000E-03   10000.    
    23 'Prefactor '    26.235       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .87173       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0430       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=   6369.983     FROM MIGRAD    STATUS=CONVERGED    583 CALLS     2934 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     55.020        38.411        .13520E-02   -.64795E-03
   2  Prefactor     .10000E-03    61.918        .90712E-02** at limit **
   3  norm          1.4766        .44601        .63590E-02    .20718E-05
   4  Prefactor     .10000E-03    12.405        .90712E-02** at limit **
   5  Prefactor     11.932        18.902        .28992E-02   -.79893E-04
   6  Prefactor     19.264        8.5421        .22814E-02    .84928E-03
   7  Prefactor     8.2873        58.482        .34815E-02    .14759E-03
   8  norm          .93783        25.605        .12935E-01    .76849E-03
   9  Prefactor     .10000E-03    4.9072        .90712E-02** at limit **
  10  Prefactor     3.4263        8.2274        .54658E-02    .11652E-02
  11  norm          1.5315        .92186        .86214E-02    .20030E-04
  12  norm          .10000E-03    1.1778        .28187E-01** at limit **
  13  Prefactor     .10000E-03    19.831        .90712E-02** at limit **
  14  Prefactor     21.851        13.451        .21421E-02    .68175E-03
  15  norm          2.0447        2.5194        .72285E-02    .16006E-03
  16  Prefactor     .10000E-03    4.6237        .90712E-02** at limit **
  17  Prefactor     .10000E-03    9.2170        .90712E-02** at limit **
  18  norm          .28613        .63068        .10365E-01    .23552E-02
  19  Prefactor     .10000E-03    155.31        .90712E-02** at limit **
  20  Prefactor     .10000E-03    3.7750        .90712E-02** at limit **
  21  Prefactor     20.369        11.857        .22185E-02    .14095E-02
  22  norm          3.7715        2.8368        .51970E-02    .16366E-03
  23  Prefactor     26.238        27.693        .19553E-02   -.31741E-04
  24  Normalizat    .87149        .18790        .44539E-01    .30562E-04
  25  Prefactor     1.0432        .17127        .40336E-01    .65927E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 55.0198
  Prefactor  = 0.0001
  norm       = 1.47661
  Prefactor  = 0.0001
  Prefactor  = 11.932
  Prefactor  = 19.2643
  Prefactor  = 8.28734
  norm       = 0.937832
  Prefactor  = 0.0001
  Prefactor  = 3.42626
  norm       = 1.53147
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 21.8513
  norm       = 2.04468
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.286127
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 20.3692
  norm       = 3.77154
  Prefactor  = 26.238
  Normalizat = 0.871492
  Prefactor  = 1.04319
 **********
 **   18 **HESSE 
 **********

 FCN=   6369.983     FROM HESSE     STATUS=OK           425 CALLS     3359 TOTAL
                     EDM=   .51E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     55.020        38.372        .54078E-04   -1.4223    
   2  Prefactor     .10000E-03    61.950        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          1.4766        .44605        .28096E-04   -1.5465    
   4  Prefactor     .10000E-03    12.742        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     11.932        18.908        .11597E-03   -1.5017    
   6  Prefactor     19.264        8.5528        .91257E-04   -1.4830    
   7  Prefactor     8.2873        58.466        .69631E-03   -1.5132    
   8  norm          .93783        26.430        .51740E-03   -1.5514    
   9  Prefactor     .10000E-03    4.9097        .17267E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     3.4263        8.2173        .21863E-03   -1.5338    
  11  norm          1.5315        .91984        .57279E-04   -1.5460    
  12  norm          .10000E-03    3.4867        .16788E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    19.909        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     21.851        13.539        .85685E-04   -1.4773    
  15  norm          2.0447        2.4877        .13357E-03   -1.5422    
  16  Prefactor     .10000E-03    4.6277        .16749E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    9.2993        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .28613        .58589        .71856E-04   -1.5601    
  19  Prefactor     .10000E-03    156.26        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    3.7872        .15144E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     20.369        11.423        .88740E-04   -1.4805    
  22  norm          3.7715        2.8325        .11239E-03   -1.5320    
  23  Prefactor     26.238        27.698        .78211E-04   -1.4683    
  24  Normalizat    .87149        .22007        .26730E-03   -.97469    
  25  Prefactor     1.0432        .20055        .23418E-03   -.91303    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.08792e-09
Minuit parameter uncertainties:
  1  38.3895
  2  0.000201326
  3  0.446055
  4  4.46456e-05
  5  18.9175
  6  8.55336
  7  44.0849
  8  9.96162
  9  2.91536e-06
  10  8.22004
  11  0.919845
  12  1.85646e-05
  13  2.95676e-06
  14  13.5412
  15  2.48786
  16  3.14872e-07
  17  9.31107e-06
  18  0.5859
  19  0.00101092
  20  3.99868e-06
  21  11.4245
  22  2.83263
  23  27.712
  24  0.220296
  25  0.20069
Done.

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

Extracting fit parameters...

4FGL J2243.4-2544
   Spectrum: LogParabola
252         norm:  1.000e-04  1.856e-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.043e+00  2.007e-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.715e-01  2.203e-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: 3.92e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.50e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/433883/likelihoodResults_317865601_318124801_4FGL_J2243.4-2544_daily_bin303.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): 102
logL (Free Index) = 6369.98410457
delta logL = -0.00137194943181

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6369.98273814
delta logL = -5.52375877305e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .14740E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9570       1.0000          .0000       5.0000    
     3 'Normalizat'    .87147       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0433       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   6369.983     FROM MIGRAD    STATUS=FAILED        96 CALLS      256 TOTAL
                     EDM=   .23E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10192E-03    98.130        .17329E-02** at limit **
   2  alpha         1.8243        2.6069        .50000        .11649E-04
   3  Normalizat    .87149        .21121E-01    .26730E-03   -.17948E-04
   4  Prefactor     1.0432        .20177E-01    .23418E-03    .75248E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6369.983     FROM SIMPLEX   STATUS=UNCHANGED    124 CALLS      380 TOTAL
                     EDM=   .10E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10192E-03    98.130        .35179E-03** at limit **
   2  alpha         1.8243        2.6069        .22035E-03    .11649E-04
   3  Normalizat    .87149        .21121E-01    .45848E-05   -.17948E-04
   4  Prefactor     1.0432        .20177E-01    .34554E-05    .75248E-05
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6369.983     FROM MIGRAD    STATUS=CONVERGED     43 CALLS      423 TOTAL
                     EDM=   .42E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    452.62        .34658E-03** at limit **
   2  alpha         1.7826        4.1084        .50000        .74192E-07
   3  Normalizat    .87149        .51030E-01    .10692E-04   -.42532E-05
   4  Prefactor     1.0432        .48749E-01    .93671E-05    .13593E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.78261
  Normalizat = 0.871492
  Prefactor  = 1.04319
 **********
 **   18 **HESSE 
 **********

 FCN=   6369.983     FROM HESSE     STATUS=OK            29 CALLS      452 TOTAL
                     EDM=   .11E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    9.9761        .69317E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.7826        2.9868        .50000       -.29105    
   3  Normalizat    .87149        .20548        .21384E-05   -.97469    
   4  Prefactor     1.0432        .19631        .18734E-05   -.91303    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.11944e-11
Minuit parameter uncertainties:
  1  4.1326e-06
  2  112.404
  3  0.205667
  4  0.196447
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/433883': 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) = 6369.98272989
delta logL = 2.73366094916e-06

Extracting fit parameters...

4FGL J2243.4-2544
   Spectrum: LogParabola
252         norm:  1.000e-04  4.133e-06  1.000e-04  1.000e+04 ( 1.000e-12)
253        alpha:  1.783e+00  1.124e+02  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.043e+00  1.964e-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.715e-01  2.057e-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/433883/cmap_HighResolution_317865601_318124801_4FGL_J2243.4-2544_daily_bin303.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.50e-05', job_status='DONE', photon_flux_upper_limit='3.92e-08', time_completed='2021-09-28 18:40:58.480174', job_id='433883', GAL2='1.04', fit_tolerance='1e-08', EG2='0.87', EG='0.87', time_epoch_completed='1632879658.48', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.04', dlogl='2.73e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.00' WHERE bin_id='303' AND source_name='4FGL J2243.4-2544' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 18:40:58 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0085>
Subject: Job 433883: <4FGL_J2243.4-2544_daily_bin303> in cluster <slac> Done

Job <4FGL_J2243.4-2544_daily_bin303> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Tue Sep 28 18:25:54 2021
Job was executed on host(s) <bullet0085>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 18:25:55 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 28 18:25:55 2021
Terminated at Tue Sep 28 18:40:59 2021
Results reported at Tue Sep 28 18:40:59 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2243.4-2544_daily_bin303 340.865 -25.7363 317865601 318124801 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 :                                   678.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             270.93 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   903 sec.
    Turnaround time :                            905 sec.

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

