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


Performing analysis on: 4FGL_J2243.4-2544_daily_bin1444
RA = 340.865, Dec = -25.7363
tmin = 613612801, tmax = 613872001
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='438433', job_status='RUN', time_executed='2021-09-28 18:41:26.177082', time_epoch_executed='1632879686.18' WHERE source_name='4FGL J2243.4-2544' and cadence='daily' and bin_id='1444'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/438433

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/438433/ft1_4FGL_J2243.4-2544_daily_bin1444.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/438433/ft2_4FGL_J2243.4-2544_daily_bin1444.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/438433/ft1_4FGL_J2243.4-2544_daily_bin1444.fits outfile=/scratch/kocevski/438433/ft1_filteredMKT_4FGL_J2243.4-2544_daily_bin1444.fits ra=340.865 dec=-25.7363 rad=12.0 tmin=613612801.0 tmax=613872001.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 1.92
user 1.76
sys 0.16

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/438433/ft2_4FGL_J2243.4-2544_daily_bin1444.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/438433/ft1_filteredMKT_4FGL_J2243.4-2544_daily_bin1444.fits evtable="EVENTS" outfile="/scratch/kocevski/438433/ft1_filtered_4FGL_J2243.4-2544_daily_bin1444.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.40
user 0.26
sys 0.13

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/438433/ft1_filtered_4FGL_J2243.4-2544_daily_bin1444.fits" evtable="EVENTS" scfile=/scratch/kocevski/438433/ft2_4FGL_J2243.4-2544_daily_bin1444.fits sctable="SC_DATA" outfile=/scratch/kocevski/438433/ltcube_613612801_613872001_4FGL_J2243.4-2544_daily_bin1444.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/438433/ft2_4FGL_J2243.4-2544_daily_bin1444.fits
.....................!
real 9.26
user 8.98
sys 0.26

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/438433/ft1_filtered_4FGL_J2243.4-2544_daily_bin1444.fits evtable="EVENTS" scfile=/scratch/kocevski/438433/ft2_4FGL_J2243.4-2544_daily_bin1444.fits sctable="SC_DATA" expcube=/scratch/kocevski/438433/ltcube_613612801_613872001_4FGL_J2243.4-2544_daily_bin1444.fits outfile=/scratch/kocevski/438433/expmap_613612801_613872001_4FGL_J2243.4-2544_daily_bin1444.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/438433/ltcube_613612801_613872001_4FGL_J2243.4-2544_daily_bin1444.fits
.....................!
real 139.79
user 136.76
sys 2.81

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/438433/ft1_filtered_4FGL_J2243.4-2544_daily_bin1444.fits scfile=/scratch/kocevski/438433/ft2_4FGL_J2243.4-2544_daily_bin1444.fits outfile=/scratch/kocevski/438433/cmap_613612801_613872001_4FGL_J2243.4-2544_daily_bin1444.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.44
user 0.29
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/438433/ft1_filtered_4FGL_J2243.4-2544_daily_bin1444.fits scfile=/scratch/kocevski/438433/ft2_4FGL_J2243.4-2544_daily_bin1444.fits outfile=/scratch/kocevski/438433/cmap_HighResolution_613612801_613872001_4FGL_J2243.4-2544_daily_bin1444.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.44
user 0.30
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/438433/ft1_filtered_4FGL_J2243.4-2544_daily_bin1444.fits evtable="EVENTS" scfile=/scratch/kocevski/438433/ft2_4FGL_J2243.4-2544_daily_bin1444.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/438433/Model_4FGL_J2243.4-2544_daily_bin1444.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/438433/ft1_filtered_4FGL_J2243.4-2544_daily_bin1444.fits.....................!
real 31.71
user 30.70
sys 0.94

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10055E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10331E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .86482       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .16168E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    66.273       1.0000         .10000E-03   10000.    
     8 'norm      '    14.060       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    8.5924       1.0000         .10000E-03   10000.    
    11 'norm      '    1.3192       1.0000         .10000E-03   10000.    
    12 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    23.869       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .67648       1.0000         .10000E-03   10000.    
    15 'norm      '    2.8862       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.1129       1.0000         .10000E-03   10000.    
    18 'norm      '    .76474       1.0000         .10000E-03   10000.    
    19 'Prefactor '    21.564       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    3.4089       1.0000         .10000E-03   10000.    
    22 'norm      '    .10333E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    6.8789       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.1715       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .75460       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=   4816.826     FROM MIGRAD    STATUS=CONVERGED    579 CALLS     2994 TOTAL
                     EDM=   .99E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    25.058        .29101E-06** at limit **
   2  Prefactor     .10000E-03    41.822        .57629E-06** at limit **
   3  norm          .86484        .42737        .80377E-08    .18664E-04
   4  Prefactor     .10000E-03    5.0238        .14373E-06** at limit **
   5  Prefactor     .10000E-03    5.3576        .67111E-07** at limit **
   6  Prefactor     .10001E-03    9.2547        .49027E-06** at limit **
   7  Prefactor     66.267        62.289        .28274E-06   -.84333E-05
   8  norm          14.057        23.128        .18026E-06    .60393E-05
   9  Prefactor     .10000E-03    31.579       -.36066E-06** at limit **
  10  Prefactor     8.5897        12.921        .18720E-06    .32499E-05
  11  norm          1.3193        .83494        .28894E-07   -.63605E-04
  12  norm          .10000E-03    1.3232       -.58883E-07** at limit **
  13  Prefactor     23.861        49.394       -.33655E-05   -.36019E-04
  14  Prefactor     .67357        15.041       -.21150E-05    .22601E-03
  15  norm          2.8852        4.3821       -.13364E-05   -.33240E-03
  16  Prefactor     .10000E-03    8.4689       -.49986E-06** at limit **
  17  Prefactor     1.1187        32.324        .12670E-04    .37439E-04
  18  norm          .76454        .73731       -.57892E-06   -.58299E-03
  19  Prefactor     21.540        79.052       -.11799E-05    .28949E-05
  20  Prefactor     .10000E-03    3.5184        .78333E-07** at limit **
  21  Prefactor     3.4081        8.0486       -.16878E-05   -.25897E-03
  22  norm          .10000E-03    2.6756       -.14400E-05** at limit **
  23  Prefactor     6.8228        63.164       -.18477E-05   -.79959E-04
  24  Normalizat    1.1720        .22251        .93505E-06    .31353E-05
  25  Prefactor     .75424        .18687       -.21341E-05    .30439E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.864841
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100007
  Prefactor  = 66.2674
  norm       = 14.0572
  Prefactor  = 0.0001
  Prefactor  = 8.58969
  norm       = 1.3193
  norm       = 0.0001
  Prefactor  = 23.8609
  Prefactor  = 0.673571
  norm       = 2.88515
  Prefactor  = 0.0001
  Prefactor  = 1.11867
  norm       = 0.764539
  Prefactor  = 21.5402
  Prefactor  = 0.0001
  Prefactor  = 3.40808
  norm       = 0.000100001
  Prefactor  = 6.82276
  Normalizat = 1.17195
  Prefactor  = 0.754243
 **********
 **   18 **HESSE 
 **********

 FCN=   4816.826     FROM HESSE     STATUS=OK           433 CALLS     3427 TOTAL
                     EDM=   .53E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    25.111        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    41.849        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .86484        .42976        .30948E-04   -1.5522    
   4  Prefactor     .10000E-03    5.0484        .15191E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    5.3596        .15690E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10001E-03    64.130        .39836E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     66.267        62.280        .49300E-04   -1.4078    
   8  norm          14.057        23.118        .10682E-03   -1.4958    
   9  Prefactor     .10000E-03    31.773        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     8.5897        12.916        .13675E-03   -1.5122    
  11  norm          1.3193        .82758        .48666E-04   -1.5478    
  12  norm          .10000E-03    1.3282        .77674E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     23.861        49.497        .81989E-04   -1.4731    
  14  Prefactor     .67357        84.598        .47113E-02   -1.5544    
  15  norm          2.8852        4.4634        .15760E-03   -1.5368    
  16  Prefactor     .10000E-03    8.4898        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     1.1187        42.799        .44710E-02   -1.5496    
  18  norm          .76454        .77606        .44521E-04   -1.5533    
  19  Prefactor     21.540        79.010        .86255E-04   -1.4779    
  20  Prefactor     .10000E-03    3.5403        .12714E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     3.4081        8.0945        .21911E-03   -1.5339    
  22  norm          .10000E-03    2.6362        .21658E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     6.8228        64.127        .15297E-03   -1.5185    
  24  Normalizat    1.1720        .27460        .22848E-03   -.87474    
  25  Prefactor     .75424        .22711        .25124E-03   -1.0144    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.25367e-09
Minuit parameter uncertainties:
  1  5.29553e-05
  2  0.000267189
  3  0.429762
  4  5.12222e-06
  5  1.94784e-06
  6  0.00135269
  7  62.3413
  8  23.1322
  9  0.000226626
  10  12.92
  11  0.827583
  12  1.03149e-05
  13  49.5824
  14  15.1181
  15  4.46393
  16  2.86978e-05
  17  13.8488
  18  0.776074
  19  79.3974
  20  2.07755e-06
  21  8.09714
  22  9.86509e-05
  23  41.893
  24  0.274934
  25  0.227389
Done.

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

Extracting fit parameters...

4FGL J2243.4-2544
   Spectrum: LogParabola
252         norm:  1.000e-04  1.031e-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.542e-01  2.274e-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.172e+00  2.749e-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: 5.52e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.51e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/438433/likelihoodResults_613612801_613872001_4FGL_J2243.4-2544_daily_bin1444.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) = 4816.82947981
delta logL = -0.00354349634836

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4816.76409606
delta logL = 0.0618402565051

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .58572E-02   1.0000         .10000E-03   10000.    
     2 'alpha     '    5.0000       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1509       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .76639       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=   4816.764     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      432 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .58715E-02    .20493E-01    .13307E-03    .43177E-01
   2  alpha         5.0000        4.9873        .50000    ** at limit **
   3  Normalizat    1.1508        .24301        .23017E-03    .58390E-03
   4  Prefactor     .76638        .21550        .24940E-03    .29565E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.00587149
  alpha      = 5
  Normalizat = 1.15077
  Prefactor  = 0.766377
 **********
 **   18 **HESSE 
 **********

 FCN=   4816.764     FROM HESSE     STATUS=OK            29 CALLS      461 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .58715E-02    .18986E-01    .53229E-05   -1.5693    
   2  alpha         5.0000        4.9217        .50000        1.5702    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    1.1508        .24370        .46034E-04   -.88138    
   4  Prefactor     .76638        .21590        .49879E-04   -1.0098    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.14979e-08
Minuit parameter uncertainties:
  1  0.0189863
  2  0.0039432
  3  0.243936
  4  0.216136
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/438433': 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) = 4816.7640955
delta logL = 0.0618408160744

Extracting fit parameters...

4FGL J2243.4-2544
   Spectrum: LogParabola
252         norm:  5.871e-03  1.899e-02  1.000e-04  1.000e+04 ( 1.000e-12)
253        alpha:  5.000e+00  3.943e-03  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.664e-01  2.161e-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.151e+00  2.439e-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/438433/cmap_HighResolution_613612801_613872001_4FGL_J2243.4-2544_daily_bin1444.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.51e-05', job_status='DONE', photon_flux_upper_limit='5.52e-08', time_completed='2021-09-28 18:48:48.793386', job_id='438433', GAL2='0.77', fit_tolerance='1e-08', EG2='1.15', EG='1.17', time_epoch_completed='1632880128.79', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.75', dlogl='6.18e-02', ts2='0.13', photon_index_error='0.00', photon_index='2.00' WHERE bin_id='1444' AND source_name='4FGL J2243.4-2544' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 18:48:48 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0095>
Subject: Job 438433: <4FGL_J2243.4-2544_daily_bin1444> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2243.4-2544_daily_bin1444 340.865 -25.7363 613612801 613872001 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 :                                   429.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             277.75 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   481 sec.
    Turnaround time :                            482 sec.

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

