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


Performing analysis on: 4FGL_J2243.4-2544_daily_bin1021
RA = 340.865, Dec = -25.7363
tmin = 503971201, tmax = 504230401
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='436743', job_status='RUN', time_executed='2021-09-28 18:38:11.173514', time_epoch_executed='1632879491.17' WHERE source_name='4FGL J2243.4-2544' and cadence='daily' and bin_id='1021'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/436743

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/436743/ft1_4FGL_J2243.4-2544_daily_bin1021.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/436743/ft2_4FGL_J2243.4-2544_daily_bin1021.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/436743/ft1_4FGL_J2243.4-2544_daily_bin1021.fits outfile=/scratch/kocevski/436743/ft1_filteredMKT_4FGL_J2243.4-2544_daily_bin1021.fits ra=340.865 dec=-25.7363 rad=12.0 tmin=503971201.0 tmax=504230401.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.08
user 3.82
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/436743/ft1_filtered_4FGL_J2243.4-2544_daily_bin1021.fits" evtable="EVENTS" scfile=/scratch/kocevski/436743/ft2_4FGL_J2243.4-2544_daily_bin1021.fits sctable="SC_DATA" outfile=/scratch/kocevski/436743/ltcube_503971201_504230401_4FGL_J2243.4-2544_daily_bin1021.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/436743/ft2_4FGL_J2243.4-2544_daily_bin1021.fits
.....................!
real 11.52
user 11.14
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/436743/ft1_filtered_4FGL_J2243.4-2544_daily_bin1021.fits evtable="EVENTS" scfile=/scratch/kocevski/436743/ft2_4FGL_J2243.4-2544_daily_bin1021.fits sctable="SC_DATA" expcube=/scratch/kocevski/436743/ltcube_503971201_504230401_4FGL_J2243.4-2544_daily_bin1021.fits outfile=/scratch/kocevski/436743/expmap_503971201_504230401_4FGL_J2243.4-2544_daily_bin1021.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/436743/ltcube_503971201_504230401_4FGL_J2243.4-2544_daily_bin1021.fits
.....................!
real 190.45
user 185.50
sys 4.65

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/436743/ft1_filtered_4FGL_J2243.4-2544_daily_bin1021.fits scfile=/scratch/kocevski/436743/ft2_4FGL_J2243.4-2544_daily_bin1021.fits outfile=/scratch/kocevski/436743/cmap_503971201_504230401_4FGL_J2243.4-2544_daily_bin1021.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.52
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/436743/ft1_filtered_4FGL_J2243.4-2544_daily_bin1021.fits scfile=/scratch/kocevski/436743/ft2_4FGL_J2243.4-2544_daily_bin1021.fits outfile=/scratch/kocevski/436743/cmap_HighResolution_503971201_504230401_4FGL_J2243.4-2544_daily_bin1021.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.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/436743/ft1_filtered_4FGL_J2243.4-2544_daily_bin1021.fits evtable="EVENTS" scfile=/scratch/kocevski/436743/ft2_4FGL_J2243.4-2544_daily_bin1021.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/436743/Model_4FGL_J2243.4-2544_daily_bin1021.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/436743/ft1_filtered_4FGL_J2243.4-2544_daily_bin1021.fits.....................!
real 54.50
user 53.19
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .40504E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .36124       1.0000         .10000E-03   10000.    
     3 'norm      '    1.3188       1.0000         .10000E-03   10000.    
     4 'Prefactor '    7.6642       1.0000         .10000E-03   10000.    
     5 'Prefactor '    17.543       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .14467E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .14722E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10359E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .12074E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .38983       1.0000         .10000E-03   10000.    
    12 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .12625E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.9751       1.0000         .10000E-03   10000.    
    15 'norm      '    .12291E-02   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .43281E-02   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10028E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .11057E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .17515E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10101E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    4.2600       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.1994       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.1442       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=   6894.509     FROM MIGRAD    STATUS=CONVERGED    667 CALLS     2601 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10188E-03    28.406        .67562E-05** at limit **
   2  Prefactor     .23169E-01    78.629       -.64327E-05    .12119E-04
   3  norm          1.3191        .40910        .27545E-08   -.75091E-03
   4  Prefactor     7.6684        7.2865       -.12551E-06   -.43124E-04
   5  Prefactor     17.578        15.203       -.24607E-05   -.30050E-04
   6  Prefactor     .10000E-03    3.2890       -.42906E-07** at limit **
   7  Prefactor     .10000E-03    82.101       -.36333E-05** at limit **
   8  norm          .10000E-03    21.734        .14057E-04** at limit **
   9  Prefactor     .10000E-03    14.958       -.20249E-06** at limit **
  10  Prefactor     .10000E-03    11.282        .15295E-07** at limit **
  11  norm          .39000        .67168       -.15888E-06   -.17508E-02
  12  norm          .10000E-03    .96813       -.44548E-07** at limit **
  13  Prefactor     .10000E-03    24.974       -.20895E-05** at limit **
  14  Prefactor     3.9689        15.072       -.47278E-05   -.85714E-04
  15  norm          .10000E-03    2.3713        .61428E-07** at limit **
  16  Prefactor     .10000E-03    8.7660       -.99593E-07** at limit **
  17  Prefactor     .10000E-03    4.2337       -.42883E-07** at limit **
  18  norm          .10000E-03    .21367       -.17576E-07** at limit **
  19  Prefactor     .10000E-03    21.049       -.12896E-04** at limit **
  20  Prefactor     .10000E-03    4.7325        .26051E-06** at limit **
  21  Prefactor     .10000E-03    2.7500        .49772E-07** at limit **
  22  norm          4.2596        2.7635       -.10750E-07    .27317E-04
  23  Prefactor     .10000E-03    12.406        .98123E-07** at limit **
  24  Normalizat    1.1995        .19198        .91818E-06   -.12753E-03
  25  Prefactor     1.1442        .17177       -.68496E-07   -.99455E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101885
  Prefactor  = 0.0231689
  norm       = 1.31914
  Prefactor  = 7.66841
  Prefactor  = 17.5775
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.389995
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.96891
  norm       = 0.000100003
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  norm       = 4.25961
  Prefactor  = 0.0001
  Normalizat = 1.19951
  Prefactor  = 1.1442
 **********
 **   18 **HESSE 
 **********

 FCN=   6894.509     FROM HESSE     STATUS=OK           445 CALLS     3046 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10188E-03    135.63        .72052E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .23169E-01    55.077        .17580       -1.5678    
   3  norm          1.3191        .40937        .28566E-04   -1.5478    
   4  Prefactor     7.6684        7.2840        .14485E-03   -1.5154    
   5  Prefactor     17.578        15.217        .95624E-04   -1.4869    
   6  Prefactor     .10000E-03    3.3017        .14705E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    82.415        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    21.728        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    15.008        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    11.376        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .39000        .55582        .86624E-03   -1.5583    
  12  norm          .10000E-03    .97824        .79736E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    25.016        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     3.9689        15.273        .20230E-03   -1.5309    
  15  norm          .10000E-03    55.728        .22636E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    84.575        .43738E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    4.2648        .16643E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    .37964        .71811E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    21.008        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    16.943        .35001E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    2.7552        .13444E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          4.2596        2.7635        .10837E-03   -1.5295    
  23  Prefactor     .10000E-03    12.413        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.1995        .23670        .26329E-03   -.86618    
  25  Prefactor     1.1442        .21224        .24580E-03   -.88066    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.40769e-08
Minuit parameter uncertainties:
  1  0.0320497
  2  2.25646
  3  0.409376
  4  7.28484
  5  15.2206
  6  1.02068e-06
  7  5.1929e-06
  8  3.66168e-05
  9  9.22928e-06
  10  8.09934e-06
  11  0.555828
  12  1.08758e-06
  13  6.54329e-06
  14  15.2882
  15  0.000813707
  16  0.00109643
  17  4.7499e-06
  18  2.2747e-06
  19  6.16907e-06
  20  0.000431686
  21  5.53251e-08
  22  2.76363
  23  1.96466e-06
  24  0.236916
  25  0.212397
Done.

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

Extracting fit parameters...

4FGL J2243.4-2544
   Spectrum: LogParabola
252         norm:  1.000e-04  1.088e-06  1.000e-04  1.000e+04 ( 1.000e-12)
253        alpha:  1.999e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
254         beta:  1.309e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
255           Eb:  1.191e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
517    Prefactor:  1.144e+00  2.124e-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.200e+00  2.369e-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: 4.28e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.73e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/436743/likelihoodResults_503971201_504230401_4FGL_J2243.4-2544_daily_bin1021.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) = 6894.51425376
delta logL = -0.00477105229947

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6894.48021566
delta logL = 0.0292670420486

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .44993E-02   1.0000         .10000E-03   10000.    
     2 'alpha     '    4.9983       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1798       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1554       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=   6894.480     FROM MIGRAD    STATUS=CONVERGED     65 CALLS      400 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .44622E-02    .52847        .30926E-02    .54210E-03
   2  alpha         5.0000        4.9806        .46309    ** at limit **
   3  Normalizat    1.1798        .36545E-01    .59975E-01   -.63084E-03
   4  Prefactor     1.1554        .33078E-01    .55361E-01   -.41158E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.00446223
  alpha      = 5
  Normalizat = 1.17984
  Prefactor  = 1.15539
 **********
 **   18 **HESSE 
 **********

 FCN=   6894.480     FROM HESSE     STATUS=OK            33 CALLS      433 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .44622E-02    .35736E-01    .16495E-03   -1.5695    
   2  alpha         5.0000        2.9687        .50000        1.5704    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    1.1798        .24540        .26526E-03   -.87228    
   4  Prefactor     1.1554        .21609        .24479E-03   -.87715    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.75546e-09
Minuit parameter uncertainties:
  1  0.0249711
  2  0.00496052
  3  0.245642
  4  0.216254
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/436743': 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) = 6894.48021126
delta logL = 0.0292714390807

Extracting fit parameters...

4FGL J2243.4-2544
   Spectrum: LogParabola
252         norm:  4.462e-03  2.497e-02  1.000e-04  1.000e+04 ( 1.000e-12)
253        alpha:  5.000e+00  4.961e-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:  1.155e+00  2.163e-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.180e+00  2.456e-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 -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/436743/cmap_HighResolution_503971201_504230401_4FGL_J2243.4-2544_daily_bin1021.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.73e-05', job_status='DONE', photon_flux_upper_limit='4.28e-08', time_completed='2021-09-28 18:49:26.549692', job_id='436743', GAL2='1.16', fit_tolerance='1e-08', EG2='1.18', EG='1.20', time_epoch_completed='1632880166.55', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.14', dlogl='2.93e-02', ts2='0.07', photon_index_error='0.00', photon_index='2.00' WHERE bin_id='1021' AND source_name='4FGL J2243.4-2544' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 18:49:26 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0235>
Subject: Job 436743: <4FGL_J2243.4-2544_daily_bin1021> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2243.4-2544_daily_bin1021 340.865 -25.7363 503971201 504230401 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 :                                   674.27 sec.
    Max Memory :                                 1069 MB
    Average Memory :                             296.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   828 sec.
    Turnaround time :                            830 sec.

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

