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


Performing analysis on: 4FGL_J2243.4-2544_daily_bin1095
RA = 340.865, Dec = -25.7363
tmin = 523152001, tmax = 523411201
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='437930', job_status='RUN', time_executed='2021-09-28 18:40:33.835759', time_epoch_executed='1632879633.84' WHERE source_name='4FGL J2243.4-2544' and cadence='daily' and bin_id='1095'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/437930

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/437930/ft1_4FGL_J2243.4-2544_daily_bin1095.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/437930/ft2_4FGL_J2243.4-2544_daily_bin1095.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/437930/ft1_4FGL_J2243.4-2544_daily_bin1095.fits outfile=/scratch/kocevski/437930/ft1_filteredMKT_4FGL_J2243.4-2544_daily_bin1095.fits ra=340.865 dec=-25.7363 rad=12.0 tmin=523152001.0 tmax=523411201.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 4.23
user 3.96
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/437930/ft1_filtered_4FGL_J2243.4-2544_daily_bin1095.fits" evtable="EVENTS" scfile=/scratch/kocevski/437930/ft2_4FGL_J2243.4-2544_daily_bin1095.fits sctable="SC_DATA" outfile=/scratch/kocevski/437930/ltcube_523152001_523411201_4FGL_J2243.4-2544_daily_bin1095.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/437930/ft2_4FGL_J2243.4-2544_daily_bin1095.fits
.....................!
real 11.99
user 11.58
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/437930/ft1_filtered_4FGL_J2243.4-2544_daily_bin1095.fits evtable="EVENTS" scfile=/scratch/kocevski/437930/ft2_4FGL_J2243.4-2544_daily_bin1095.fits sctable="SC_DATA" expcube=/scratch/kocevski/437930/ltcube_523152001_523411201_4FGL_J2243.4-2544_daily_bin1095.fits outfile=/scratch/kocevski/437930/expmap_523152001_523411201_4FGL_J2243.4-2544_daily_bin1095.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/437930/ltcube_523152001_523411201_4FGL_J2243.4-2544_daily_bin1095.fits
.....................!
real 190.95
user 185.29
sys 5.26

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/437930/ft1_filtered_4FGL_J2243.4-2544_daily_bin1095.fits scfile=/scratch/kocevski/437930/ft2_4FGL_J2243.4-2544_daily_bin1095.fits outfile=/scratch/kocevski/437930/cmap_523152001_523411201_4FGL_J2243.4-2544_daily_bin1095.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.55
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/437930/ft1_filtered_4FGL_J2243.4-2544_daily_bin1095.fits scfile=/scratch/kocevski/437930/ft2_4FGL_J2243.4-2544_daily_bin1095.fits outfile=/scratch/kocevski/437930/cmap_HighResolution_523152001_523411201_4FGL_J2243.4-2544_daily_bin1095.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/437930/ft1_filtered_4FGL_J2243.4-2544_daily_bin1095.fits evtable="EVENTS" scfile=/scratch/kocevski/437930/ft2_4FGL_J2243.4-2544_daily_bin1095.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/437930/Model_4FGL_J2243.4-2544_daily_bin1095.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/437930/ft1_filtered_4FGL_J2243.4-2544_daily_bin1095.fits.....................!
real 41.84
user 40.51
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    14.814       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    1.9048       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    23.048       1.0000         .10000E-03   10000.    
    11 'norm      '    2.6699       1.0000         .10000E-03   10000.    
    12 'norm      '    .11333E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    31.431       1.0000         .10000E-03   10000.    
    14 'Prefactor '    13.689       1.0000         .10000E-03   10000.    
    15 'norm      '    4.9602       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    23.213       1.0000         .10000E-03   10000.    
    18 'norm      '    1.5879       1.0000         .10000E-03   10000.    
    19 'Prefactor '    37.649       1.0000         .10000E-03   10000.    
    20 'Prefactor '    3.6446       1.0000         .10000E-03   10000.    
    21 'Prefactor '    2.4586       1.0000         .10000E-03   10000.    
    22 'norm      '    .10240E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    52.286       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.3737       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .54701       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=   4464.205     FROM MIGRAD    STATUS=CONVERGED    577 CALLS     2915 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     14.817        19.731        .75457E-07    .50450E-04
   2  Prefactor     .10000E-03    24.747       -.20806E-06** at limit **
   3  norm          1.9048        .61583       -.70667E-08    .10878E-03
   4  Prefactor     .10000E-03    25.434        .25522E-06** at limit **
   5  Prefactor     .10000E-03    17.422       -.27895E-06** at limit **
   6  Prefactor     .10000E-03    7.5467        .55905E-07** at limit **
   7  Prefactor     .10000E-03    38.695        .15686E-08** at limit **
   8  norm          .10000E-03    15.360        .81427E-07** at limit **
   9  Prefactor     .10000E-03    37.426        .39940E-06** at limit **
  10  Prefactor     23.051        21.995       -.44917E-07    .60862E-03
  11  norm          2.6699        1.4575       -.14901E-07    .59364E-04
  12  norm          .10002E-03    3.2161       -.39167E-05** at limit **
  13  Prefactor     31.391        64.905        .10126E-04    .33461E-03
  14  Prefactor     13.684        18.108       -.61222E-07    .13943E-04
  15  norm          4.9604        5.1758        .34902E-06    .65789E-03
  16  Prefactor     .10000E-03    11.987       -.21246E-06** at limit **
  17  Prefactor     23.204        21.653       -.12637E-05    .44164E-03
  18  norm          1.5889        1.3919       -.11612E-06    .14411E-02
  19  Prefactor     37.672        53.833        .26133E-05    .40941E-03
  20  Prefactor     3.6436        11.861       -.33969E-07    .79829E-06
  21  Prefactor     2.4492        20.990        .77835E-05   -.59888E-04
  22  norm          .10000E-03    4.9661        .78247E-07** at limit **
  23  Prefactor     52.286        43.406        .17026E-07    .50071E-04
  24  Normalizat    1.3743        .24421        .12627E-06    .66053E-03
  25  Prefactor     .54656        .20046        .33417E-06    .49631E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 14.8166
  Prefactor  = 0.0001
  norm       = 1.90478
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 23.0509
  norm       = 2.66992
  norm       = 0.000100017
  Prefactor  = 31.391
  Prefactor  = 13.6844
  norm       = 4.96038
  Prefactor  = 0.0001
  Prefactor  = 23.204
  norm       = 1.5889
  Prefactor  = 37.6721
  Prefactor  = 3.64361
  Prefactor  = 2.44917
  norm       = 0.0001
  Prefactor  = 52.2864
  Normalizat = 1.37432
  Prefactor  = 0.546563
 **********
 **   18 **HESSE 
 **********

 FCN=   4464.205     FROM HESSE     STATUS=OK           419 CALLS     3334 TOTAL
                     EDM=   .57E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     14.817        19.731        .10406E-03   -1.4938    
   2  Prefactor     .10000E-03    24.755        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          1.9048        .61671        .28774E-04   -1.5432    
   4  Prefactor     .10000E-03    26.414        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    17.599        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    7.5860        .17923E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    38.721        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    15.391        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    37.746        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     23.051        22.145        .83435E-04   -1.4747    
  11  norm          2.6699        1.4540        .57254E-04   -1.5381    
  12  norm          .10002E-03    6.8560        .17669E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     31.391        68.690        .71469E-04   -1.4587    
  14  Prefactor     13.684        18.283        .10826E-03   -1.4968    
  15  norm          4.9604        5.1649        .14276E-03   -1.5262    
  16  Prefactor     .10000E-03    12.000        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     23.204        22.977        .83138E-04   -1.4744    
  18  norm          1.5889        1.4487        .48786E-04   -1.5456    
  19  Prefactor     37.672        55.007        .65319E-04   -1.4480    
  20  Prefactor     3.6436        11.842        .21161E-03   -1.5326    
  21  Prefactor     2.4492        23.547        .13042E-02   -1.5395    
  22  norm          .10000E-03    5.1527        .29018E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     52.286        43.461        .27733E-03   -1.4261    
  24  Normalizat    1.3743        .30111        .24020E-03   -.81374    
  25  Prefactor     .54656        .24271        .31140E-03   -1.0989    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.66731e-09
Minuit parameter uncertainties:
  1  19.7392
  2  0.000133947
  3  0.616713
  4  7.39091e-05
  5  0.000146282
  6  7.88245e-06
  7  2.23677e-05
  8  0.000143831
  9  0.000191943
  10  22.1526
  11  1.45404
  12  0.00069106
  13  68.8639
  14  18.2909
  15  5.16535
  16  6.986e-05
  17  22.9859
  18  1.44869
  19  55.0813
  20  11.8494
  21  15.1956
  22  1.15844e-06
  23  43.4875
  24  0.301496
  25  0.24317
Done.

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

Extracting fit parameters...

4FGL J2243.4-2544
   Spectrum: LogParabola
252         norm:  1.000e-04  6.911e-04  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:  5.466e-01  2.432e-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.374e+00  3.015e-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: 7.30e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.64e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/437930/likelihoodResults_523152001_523411201_4FGL_J2243.4-2544_daily_bin1095.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) = 4464.20582657
delta logL = -0.000698547833963

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4464.20512724
delta logL = 7.74646650825e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10198E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0567       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3743       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .54656       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=   4464.114     FROM MIGRAD    STATUS=CONVERGED    165 CALLS      333 TOTAL
                     EDM=   .48E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .12285E-01    .29443E-01    .16906E-02   -.80939E-02
   2  alpha         5.0000        4.4162        .50000    ** at limit **
   3  Normalizat    1.3356        .29269        .24020E-03   -.18127E-04
   4  Prefactor     .56793        .24129        .31140E-03   -.12632E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0122853
  alpha      = 5
  Normalizat = 1.33562
  Prefactor  = 0.567935
 **********
 **   18 **HESSE 
 **********

 FCN=   4464.114     FROM HESSE     STATUS=OK            31 CALLS      364 TOTAL
                     EDM=   .15E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .12285E-01    .31593E-01    .16495E-04   -1.5730    
   2  alpha         5.0000        4.4635        .50000        1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    1.3356        .29127        .96081E-05   -.82509    
   4  Prefactor     .56793        .24078        .12456E-04   -1.0895    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.51237e-12
Minuit parameter uncertainties:
  1  0.0315927
  2  5.24585e-06
  3  0.29163
  4  0.241221
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/437930': 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) = 4464.11416296
delta logL = 0.0909650585354

Extracting fit parameters...

4FGL J2243.4-2544
   Spectrum: LogParabola
252         norm:  1.229e-02  3.159e-02  1.000e-04  1.000e+04 ( 1.000e-12)
253        alpha:  5.000e+00  5.246e-06  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:  5.679e-01  2.412e-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.336e+00  2.916e-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/437930/cmap_HighResolution_523152001_523411201_4FGL_J2243.4-2544_daily_bin1095.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.64e-05', job_status='DONE', photon_flux_upper_limit='7.30e-08', time_completed='2021-09-28 18:49:56.987296', job_id='437930', GAL2='0.57', fit_tolerance='1e-08', EG2='1.34', EG='1.37', time_epoch_completed='1632880196.99', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.55', dlogl='9.10e-02', ts2='0.20', photon_index_error='0.00', photon_index='2.00' WHERE bin_id='1095' AND source_name='4FGL J2243.4-2544' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 18:49:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0263>
Subject: Job 437930: <4FGL_J2243.4-2544_daily_bin1095> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2243.4-2544_daily_bin1095 340.865 -25.7363 523152001 523411201 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 :                                   560.35 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             285.79 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   584 sec.
    Turnaround time :                            585 sec.

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

