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


Performing analysis on: 4FGL_J2243.4-2544_daily_bin1521
RA = 340.865, Dec = -25.7363
tmin = 633571201, tmax = 633830401
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='438546', job_status='RUN', time_executed='2021-09-28 18:41:18.884158', time_epoch_executed='1632879678.88' WHERE source_name='4FGL J2243.4-2544' and cadence='daily' and bin_id='1521'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/438546

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/438546/ft1_4FGL_J2243.4-2544_daily_bin1521.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/438546/ft2_4FGL_J2243.4-2544_daily_bin1521.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/438546/ft1_4FGL_J2243.4-2544_daily_bin1521.fits outfile=/scratch/kocevski/438546/ft1_filteredMKT_4FGL_J2243.4-2544_daily_bin1521.fits ra=340.865 dec=-25.7363 rad=12.0 tmin=633571201.0 tmax=633830401.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.65
user 3.41
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/438546/ft1_filtered_4FGL_J2243.4-2544_daily_bin1521.fits" evtable="EVENTS" scfile=/scratch/kocevski/438546/ft2_4FGL_J2243.4-2544_daily_bin1521.fits sctable="SC_DATA" outfile=/scratch/kocevski/438546/ltcube_633571201_633830401_4FGL_J2243.4-2544_daily_bin1521.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/438546/ft2_4FGL_J2243.4-2544_daily_bin1521.fits
.....................!
real 11.72
user 11.40
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/438546/ft1_filtered_4FGL_J2243.4-2544_daily_bin1521.fits evtable="EVENTS" scfile=/scratch/kocevski/438546/ft2_4FGL_J2243.4-2544_daily_bin1521.fits sctable="SC_DATA" expcube=/scratch/kocevski/438546/ltcube_633571201_633830401_4FGL_J2243.4-2544_daily_bin1521.fits outfile=/scratch/kocevski/438546/expmap_633571201_633830401_4FGL_J2243.4-2544_daily_bin1521.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/438546/ltcube_633571201_633830401_4FGL_J2243.4-2544_daily_bin1521.fits
.....................!
real 190.13
user 185.74
sys 4.08

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/438546/ft1_filtered_4FGL_J2243.4-2544_daily_bin1521.fits scfile=/scratch/kocevski/438546/ft2_4FGL_J2243.4-2544_daily_bin1521.fits outfile=/scratch/kocevski/438546/cmap_633571201_633830401_4FGL_J2243.4-2544_daily_bin1521.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.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/438546/ft1_filtered_4FGL_J2243.4-2544_daily_bin1521.fits scfile=/scratch/kocevski/438546/ft2_4FGL_J2243.4-2544_daily_bin1521.fits outfile=/scratch/kocevski/438546/cmap_HighResolution_633571201_633830401_4FGL_J2243.4-2544_daily_bin1521.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=340.865 yref=-25.7363 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.36
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .14541E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    93.770       1.0000         .10000E-03   10000.    
     3 'norm      '    .56518       1.0000         .10000E-03   10000.    
     4 'Prefactor '    29.160       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10253E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.2070       1.0000         .10000E-03   10000.    
     7 'Prefactor '    56.729       1.0000         .10000E-03   10000.    
     8 'norm      '    .10083E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    36.945       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .51194       1.0000         .10000E-03   10000.    
    11 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    5.1640       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .74603       1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.3426       1.0000         .10000E-03   10000.    
    15 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    25.015       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .17053E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    3.6562       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .71701       1.0000         .10000E-03   10000.    
    23 'Prefactor '    42.582       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.1656       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .90029       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=   5573.600     FROM MIGRAD    STATUS=CONVERGED   1046 CALLS     3406 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    64.002        .18142E-02** at limit **
   2  Prefactor     93.839        82.426        .20751E-03    .23777E-04
   3  norm          .56513        .37271        .35662E-04    .79505E-03
   4  Prefactor     29.160        15.996        .74194E-04    .10496E-03
   5  Prefactor     .10000E-03    8.7702        .18142E-02** at limit **
   6  Prefactor     3.2113        8.7601        .22624E-03    .93968E-05
   7  Prefactor     56.779        57.146        .53261E-04   -.18314E-04
   8  norm          .10000E-03    17.913        .18142E-02** at limit **
   9  Prefactor     36.920        25.885        .65936E-04   -.17259E-03
  10  Prefactor     .53680        37.811        .41428E-02    .14305E-03
  11  norm          .10000E-03    .28048        .38343E-03** at limit **
  12  norm          5.1682        3.2046        .88826E-04    .12066E-02
  13  Prefactor     .61310        79.953        .13586        .17161E-03
  14  Prefactor     4.3454        9.8047        .19329E-03    .10822E-04
  15  norm          .10000E-03    1.4787        .88454E-03** at limit **
  16  Prefactor     25.028        19.309        .80092E-04   -.22586E-03
  17  Prefactor     .10005E-03    59.551        .36773E-02** at limit **
  18  norm          3.6571        1.0744        .36395E-04   -.24368E-02
  19  Prefactor     .10000E-03    15.789        .18142E-02** at limit **
  20  Prefactor     .10000E-03    6.5265        .18142E-02** at limit **
  21  Prefactor     .10000E-03    27.163        .18142E-02** at limit **
  22  norm          .71845        3.9315        .28043E-03    .19994E-03
  23  Prefactor     42.547        36.702        .30717E-03   -.48337E-04
  24  Normalizat    1.1655        .26014        .26042E-03    .55677E-03
  25  Prefactor     .90041        .22593        .26560E-03    .13316E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100004
  Prefactor  = 93.8393
  norm       = 0.565134
  Prefactor  = 29.1596
  Prefactor  = 0.0001
  Prefactor  = 3.21127
  Prefactor  = 56.7787
  norm       = 0.0001
  Prefactor  = 36.9204
  Prefactor  = 0.536799
  norm       = 0.0001
  norm       = 5.16824
  Prefactor  = 0.613097
  Prefactor  = 4.34543
  norm       = 0.0001
  Prefactor  = 25.0276
  Prefactor  = 0.000100047
  norm       = 3.65705
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.718447
  Prefactor  = 42.5468
  Normalizat = 1.1655
  Prefactor  = 0.900414
 **********
 **   18 **HESSE 
 **********

 FCN=   5573.600     FROM HESSE     STATUS=OK           415 CALLS     3821 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    64.004        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     93.839        82.409        .83006E-05   -1.3768    
   3  norm          .56513        .37270        .14265E-05   -1.5558    
   4  Prefactor     29.160        15.995        .29677E-05   -1.4627    
   5  Prefactor     .10000E-03    8.7705        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     3.2113        8.7582        .45248E-04   -1.5350    
   7  Prefactor     56.779        57.144        .10652E-04   -1.4200    
   8  norm          .10000E-03    17.916        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     36.920        25.883        .13187E-04   -1.4492    
  10  Prefactor     .53680        37.483        .16571E-03   -1.5561    
  11  norm          .10000E-03    .28048        .76685E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          5.1682        3.1895        .17765E-04   -1.5253    
  13  Prefactor     .61310        73.764        .14112       -1.5551    
  14  Prefactor     4.3454        9.8031        .77318E-05   -1.5291    
  15  norm          .10000E-03    1.4787        .17691E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     25.028        19.304        .16018E-04   -1.4707    
  17  Prefactor     .10005E-03    59.881        .73546E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          3.6571        1.0715        .72789E-05   -1.5325    
  19  Prefactor     .10000E-03    15.789        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    6.5277        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    27.178        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .71845        3.9291        .11217E-04   -1.5538    
  23  Prefactor     42.547        36.696        .12287E-04   -1.4402    
  24  Normalizat    1.1655        .25999        .52084E-04   -.87676    
  25  Prefactor     .90041        .22610        .10624E-04   -.96127    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.90711e-09
Minuit parameter uncertainties:
  1  0.00103965
  2  82.5093
  3  0.372697
  4  15.9971
  5  2.32257e-05
  6  8.76167
  7  57.1993
  8  8.335e-05
  9  25.8905
  10  8.97632
  11  1.25529e-06
  12  3.18962
  13  13.4657
  14  9.80673
  15  3.35915e-06
  16  19.3086
  17  0.00336958
  18  1.07152
  19  4.50387e-07
  20  3.39195e-05
  21  0.000128972
  22  3.36039
  23  36.7158
  24  0.260282
  25  0.226337
Done.

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

Extracting fit parameters...

4FGL J2243.4-2544
   Spectrum: LogParabola
252         norm:  5.168e+00  3.190e+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

GAL_V02
   Spectrum: PowerLaw
517    Prefactor:  9.004e-01  2.263e-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.166e+00  2.603e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 10.96
Ra Dec: 340.865 -25.736
Photon Index (Fixed Index): 2.00 +/- 0.00
Photon Flux (Fixed Index): 5.00e-08 +/- 3.09e-08
Energy Flux (Fixed Index): 3.18e-05 +/- 1.96e-05

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) = 5573.59053447
delta logL = 0.00988855497963

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5573.58903512
delta logL = 0.0113879047458

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.0308       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0828       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1605       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90271       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=   5573.589     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      231 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.0309        2.9228        .86220E-04   -.57197E-03
   2  alpha         2.0828        .56043        .11655E-01   -.57993E-04
   3  Normalizat    1.1605        .24419        .26087E-03    .55608E-04
   4  Prefactor     .90275        .22128        .26527E-03    .77485E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 5.0309
  alpha      = 2.08283
  Normalizat = 1.16048
  Prefactor  = 0.902751
 **********
 **   18 **HESSE 
 **********

 FCN=   5573.589     FROM HESSE     STATUS=OK            25 CALLS      256 TOTAL
                     EDM=   .19E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.0309        2.8827        .17244E-04   -1.5259    
   2  alpha         2.0828        .55256        .46618E-03   -.16765    
   3  Normalizat    1.1605        .24433        .10435E-04   -.87833    
   4  Prefactor     .90275        .22149        .10611E-04   -.96045    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.93269e-10
Minuit parameter uncertainties:
  1  2.88279
  2  0.557298
  3  0.24457
  4  0.221708
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/438546': 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) = 5573.58903498
delta logL = 0.0113880454319

Extracting fit parameters...

4FGL J2243.4-2544
   Spectrum: LogParabola
252         norm:  5.031e+00  2.883e+00  1.000e-04  1.000e+04 ( 1.000e-12)
253        alpha:  2.083e+00  5.573e-01  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:  9.028e-01  2.217e-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.160e+00  2.446e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 10.97
Ra Dec: 340.865 -25.736
Photon Index (Free Index): 2.08 +/- 0.56
Photon Flux (Free Index): 5.45e-08 +/- 4.21e-08
Energy Flux (Free Index): 3.04e-05 +/- 1.83e-05

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/438546/cmap_HighResolution_633571201_633830401_4FGL_J2243.4-2544_daily_bin1521.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.00e-08', energy_flux2='3.04e-05', photon_flux_error='3.09e-08', dlogl='1.14e-02', energy_flux='3.18e-05', photon_flux2='5.45e-08', job_status='DONE', time_completed='2021-09-28 18:51:07.841132', photon_index_error2='0.56', photon_index2='2.08', ts='10.96', fit_tolerance='1e-08', GAL='0.90', photon_index_error='0.00', energy_flux_error2='1.83e-05', EG='1.17', time_epoch_completed='1632880267.84', return_code='0', job_id='438546', GAL2='0.90', EG2='1.16', return_code2='0', energy_flux_error='1.96e-05', photon_flux_error2='4.21e-08', ts2='10.97', photon_index='2.00' WHERE bin_id='1521' AND source_name='4FGL J2243.4-2544' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 18:51:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0103>
Subject: Job 438546: <4FGL_J2243.4-2544_daily_bin1521> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2243.4-2544_daily_bin1521 340.865 -25.7363 633571201 633830401 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 :                                   582.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             364.42 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   612 sec.
    Turnaround time :                            613 sec.

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

