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


Performing analysis on: 4FGL_J2243.4-2544_daily_bin392
RA = 340.865, Dec = -25.7363
tmin = 340934401, tmax = 341193601
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='434018', job_status='RUN', time_executed='2021-09-28 18:29:48.655823', time_epoch_executed='1632878988.66' WHERE source_name='4FGL J2243.4-2544' and cadence='daily' and bin_id='392'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/434018

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/434018/ft1_4FGL_J2243.4-2544_daily_bin392.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/434018/ft2_4FGL_J2243.4-2544_daily_bin392.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/434018/ft1_4FGL_J2243.4-2544_daily_bin392.fits outfile=/scratch/kocevski/434018/ft1_filteredMKT_4FGL_J2243.4-2544_daily_bin392.fits ra=340.865 dec=-25.7363 rad=12.0 tmin=340934401.0 tmax=341193601.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.37
user 3.17
sys 0.17

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/434018/ft1_filtered_4FGL_J2243.4-2544_daily_bin392.fits" evtable="EVENTS" scfile=/scratch/kocevski/434018/ft2_4FGL_J2243.4-2544_daily_bin392.fits sctable="SC_DATA" outfile=/scratch/kocevski/434018/ltcube_340934401_341193601_4FGL_J2243.4-2544_daily_bin392.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/434018/ft2_4FGL_J2243.4-2544_daily_bin392.fits
.....................!
real 11.70
user 11.35
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/434018/ft1_filtered_4FGL_J2243.4-2544_daily_bin392.fits evtable="EVENTS" scfile=/scratch/kocevski/434018/ft2_4FGL_J2243.4-2544_daily_bin392.fits sctable="SC_DATA" expcube=/scratch/kocevski/434018/ltcube_340934401_341193601_4FGL_J2243.4-2544_daily_bin392.fits outfile=/scratch/kocevski/434018/expmap_340934401_341193601_4FGL_J2243.4-2544_daily_bin392.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/434018/ltcube_340934401_341193601_4FGL_J2243.4-2544_daily_bin392.fits
.....................!
real 190.08
user 185.22
sys 4.54

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/434018/ft1_filtered_4FGL_J2243.4-2544_daily_bin392.fits scfile=/scratch/kocevski/434018/ft2_4FGL_J2243.4-2544_daily_bin392.fits outfile=/scratch/kocevski/434018/cmap_340934401_341193601_4FGL_J2243.4-2544_daily_bin392.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/434018/ft1_filtered_4FGL_J2243.4-2544_daily_bin392.fits scfile=/scratch/kocevski/434018/ft2_4FGL_J2243.4-2544_daily_bin392.fits outfile=/scratch/kocevski/434018/cmap_HighResolution_340934401_341193601_4FGL_J2243.4-2544_daily_bin392.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=340.865 yref=-25.7363 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.53
user 0.37
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/434018/ft1_filtered_4FGL_J2243.4-2544_daily_bin392.fits evtable="EVENTS" scfile=/scratch/kocevski/434018/ft2_4FGL_J2243.4-2544_daily_bin392.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/434018/Model_4FGL_J2243.4-2544_daily_bin392.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/434018/ft1_filtered_4FGL_J2243.4-2544_daily_bin392.fits.....................!
real 46.57
user 45.35
sys 1.12

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10192E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    160.57       1.0000         .10000E-03   10000.    
     3 'norm      '    1.8043       1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.7565       1.0000         .10000E-03   10000.    
     5 'Prefactor '    27.279       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    13.396       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    24.813       1.0000         .10000E-03   10000.    
    11 'norm      '    .78777       1.0000         .10000E-03   10000.    
    12 'norm      '    .10066E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    6.0461       1.0000         .10000E-03   10000.    
    14 'Prefactor '    22.003       1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    1.2828       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10068E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    2.3100       1.0000         .10000E-03   10000.    
    22 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    13.609       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .95189       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .64935       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=   5801.062     FROM MIGRAD    STATUS=CONVERGED    565 CALLS     3032 TOTAL
                     EDM=   .27E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    42.244        .60914E-05** at limit **
   2  Prefactor     160.66        84.633       -.58925E-05    .89685E-04
   3  norm          1.8042        .44723        .39444E-07   -.35789E-03
   4  Prefactor     3.7573        11.569        .14451E-05    .78572E-05
   5  Prefactor     27.279        19.178        .49644E-07   -.19097E-04
   6  Prefactor     .10000E-03    2.1879       -.81182E-08** at limit **
   7  Prefactor     .10000E-03    37.685       -.29767E-05** at limit **
   8  norm          13.395        14.276       -.45799E-06    .39876E-05
   9  Prefactor     .10000E-03    4.4242       -.49203E-07** at limit **
  10  Prefactor     24.813        13.062       -.93114E-06   -.26529E-05
  11  norm          .78768        .86603        .20872E-07    .39545E-04
  12  norm          .10000E-03    1.0506       -.13675E-05** at limit **
  13  Prefactor     5.9993        68.593        .12130E-04   -.45440E-05
  14  Prefactor     22.002        11.676        .78917E-07   -.17139E-04
  15  norm          .10000E-03    1.2884       -.11815E-06** at limit **
  16  Prefactor     .10000E-03    4.9564        .12611E-06** at limit **
  17  Prefactor     .10000E-03    8.9906        .21954E-07** at limit **
  18  norm          1.2827        .62437       -.33320E-06   -.39801E-03
  19  Prefactor     .10000E-03    16.521        .25363E-06** at limit **
  20  Prefactor     .10000E-03    3.7297       -.21332E-07** at limit **
  21  Prefactor     2.3095        7.6246        .53589E-05   -.16676E-03
  22  norm          .10000E-03    1.0788        .69901E-07** at limit **
  23  Prefactor     13.620        33.128       -.16297E-05    .23713E-04
  24  Normalizat    .95200        .17042       -.30674E-06    .45972E-05
  25  Prefactor     .64924        .14863       -.21152E-08   -.26808E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Prefactor  = 160.659
  norm       = 1.80424
  Prefactor  = 3.7573
  Prefactor  = 27.2795
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 13.3947
  Prefactor  = 0.0001
  Prefactor  = 24.8129
  norm       = 0.787683
  norm       = 0.0001
  Prefactor  = 5.99935
  Prefactor  = 22.0019
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.28274
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.30951
  norm       = 0.0001
  Prefactor  = 13.6204
  Normalizat = 0.951996
  Prefactor  = 0.649237
 **********
 **   18 **HESSE 
 **********

 FCN=   5801.062     FROM HESSE     STATUS=OK           427 CALLS     3459 TOTAL
                     EDM=   .49E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    42.788        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     160.66        84.176        .15911E-03   -1.3166    
   3  norm          1.8042        .44784        .24345E-04   -1.5439    
   4  Prefactor     3.7573        11.515        .20831E-03   -1.5320    
   5  Prefactor     27.279        19.149        .76703E-04   -1.4663    
   6  Prefactor     .10000E-03    2.2019        .11001E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    37.640        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          13.395        14.268        .10944E-03   -1.4976    
   9  Prefactor     .10000E-03    4.4258        .15646E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     24.813        13.059        .80418E-04   -1.4711    
  11  norm          .78768        .83862        .71235E-03   -1.5530    
  12  norm          .10000E-03    1.0965        .15314E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     5.9993        68.979        .16329E-03   -1.5218    
  14  Prefactor     22.002        11.777        .42696E-03   -1.4769    
  15  norm          .10000E-03    1.2943        .84368E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    4.9681        .16556E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    9.1882        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          1.2827        .61917        .36425E-04   -1.5481    
  19  Prefactor     .10000E-03    16.526        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    3.7494        .14365E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     2.3095        7.6819        .13498E-02   -1.5404    
  22  norm          .10000E-03    1.0868        .77202E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     13.620        33.313        .10858E-03   -1.4970    
  24  Normalizat    .95200        .20282        .22341E-03   -.94656    
  25  Prefactor     .64924        .17530        .24540E-03   -1.0555    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.85595e-10
Minuit parameter uncertainties:
  1  0.000471878
  2  84.2391
  3  0.447837
  4  11.5219
  5  19.1537
  6  1.49155e-07
  7  0.000227215
  8  14.2712
  9  1.00454e-06
  10  13.061
  11  0.838629
  12  4.02958e-05
  13  40.7445
  14  11.7781
  15  3.99769e-06
  16  9.90677e-06
  17  4.82603e-05
  18  0.619171
  19  1.28355e-05
  20  8.92562e-07
  21  7.68522
  22  2.38655e-06
  23  33.3584
  24  0.202984
  25  0.175446
Done.

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

Extracting fit parameters...

4FGL J2243.4-2544
   Spectrum: LogParabola
252         norm:  1.000e-04  4.030e-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:  6.492e-01  1.754e-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:  9.520e-01  2.030e-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.85e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.45e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/434018/likelihoodResults_340934401_341193601_4FGL_J2243.4-2544_daily_bin392.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) = 5801.06617029
delta logL = -0.00432772030854

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5801.06184077
delta logL = 1.7997881514e-06

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     '    2.0296       1.0000          .0000       5.0000    
     3 'Normalizat'    .95199       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .64924       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=   5800.382     FROM MIGRAD    STATUS=CONVERGED    161 CALLS      310 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .40134E-01    .76481        .30423E-02    .47529E-02
   2  alpha         4.6060        4.1534        .42112        .35112E-04
   3  Normalizat    .88865        .41820E-01    .45563E-01    .11288E-04
   4  Prefactor     .68325        .38765E-01    .41722E-01    .16583E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0401342
  alpha      = 4.60599
  Normalizat = 0.888649
  Prefactor  = 0.683255
 **********
 **   18 **HESSE 
 **********

 FCN=   5800.382     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      345 TOTAL
                     EDM=   .37E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .40134E-01    1.6543        .13803E-03   -1.5668    
   2  alpha         4.6060        3.1405        .28756E-01    1.0017    
   3  Normalizat    .88865        .13669        .22988E-03   -.96860    
   4  Prefactor     .68325        .12515        .23948E-03   -1.0419    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.73786e-11
Minuit parameter uncertainties:
  1  0.514721
  2  6.03474
  3  0.136741
  4  0.1252
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/434018': 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): 102
logL (Free Index) = 5800.38239204
delta logL = 0.679450535909

Extracting fit parameters...

4FGL J2243.4-2544
   Spectrum: LogParabola
252         norm:  4.013e-02  5.147e-01  1.000e-04  1.000e+04 ( 1.000e-12)
253        alpha:  4.606e+00  6.035e+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:  6.833e-01  1.252e-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.886e-01  1.367e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.43
Ra Dec: 340.865 -25.736
Photon Index (Free Index): 4.61 +/- 6.03
Photon Flux (Free Index): 5.35e-08 +/- 4.83e-08
Energy Flux (Free Index): 7.82e-06 +/- 8.32e-06

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/434018/cmap_HighResolution_340934401_341193601_4FGL_J2243.4-2544_daily_bin392.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.45e-05', comment='SUCCESS', energy_flux2='7.82e-06', dlogl='6.79e-01', photon_flux2='5.35e-08', job_status='DONE', time_completed='2021-09-28 18:40:37.113121', photon_index_error2='6.03', photon_index2='4.61', ts='-0.00', fit_tolerance='1e-08', GAL='0.65', photon_index_error='0.00', photon_flux_upper_limit='3.85e-08', energy_flux_error2='8.32e-06', EG='0.95', time_epoch_completed='1632879637.11', return_code='0', job_id='434018', GAL2='0.68', EG2='0.89', return_code2='102', photon_flux_error2='4.83e-08', ts2='1.43', photon_index='2.00' WHERE bin_id='392' AND source_name='4FGL J2243.4-2544' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 18:40:37 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0274>
Subject: Job 434018: <4FGL_J2243.4-2544_daily_bin392> in cluster <slac> Done

Job <4FGL_J2243.4-2544_daily_bin392> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Tue Sep 28 18:26:06 2021
Job was executed on host(s) <bullet0274>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 18:26:08 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:26:08 2021
Terminated at Tue Sep 28 18:40:37 2021
Results reported at Tue Sep 28 18:40:37 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2243.4-2544_daily_bin392 340.865 -25.7363 340934401 341193601 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 :                                   647.11 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             258.44 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   869 sec.
    Turnaround time :                            871 sec.

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

