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


Performing analysis on: 4FGL_J2243.8-2510_daily_bin959
RA = 340.957, Dec = -25.1701
tmin = 487900801, tmax = 488160001
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='443533', job_status='RUN', time_executed='2021-09-28 18:59:15.299080', time_epoch_executed='1632880755.3' WHERE source_name='4FGL J2243.8-2510' and cadence='daily' and bin_id='959'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/443533

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/443533/ft1_4FGL_J2243.8-2510_daily_bin959.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/443533/ft2_4FGL_J2243.8-2510_daily_bin959.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/443533/ft1_4FGL_J2243.8-2510_daily_bin959.fits outfile=/scratch/kocevski/443533/ft1_filteredMKT_4FGL_J2243.8-2510_daily_bin959.fits ra=340.957 dec=-25.1701 rad=12.0 tmin=487900801.0 tmax=488160001.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 6.05
user 5.81
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/443533/ft2_4FGL_J2243.8-2510_daily_bin959.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/443533/ft2_4FGL_J2243.8-2510_daily_bin959.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/443533/ft1_filteredMKT_4FGL_J2243.8-2510_daily_bin959.fits evtable="EVENTS" outfile="/scratch/kocevski/443533/ft1_filtered_4FGL_J2243.8-2510_daily_bin959.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.45
user 0.32
sys 0.12

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/443533/ft1_filtered_4FGL_J2243.8-2510_daily_bin959.fits" evtable="EVENTS" scfile=/scratch/kocevski/443533/ft2_4FGL_J2243.8-2510_daily_bin959.fits sctable="SC_DATA" outfile=/scratch/kocevski/443533/ltcube_487900801_488160001_4FGL_J2243.8-2510_daily_bin959.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/443533/ft2_4FGL_J2243.8-2510_daily_bin959.fits
.....................!
real 11.91
user 11.53
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/443533/ft1_filtered_4FGL_J2243.8-2510_daily_bin959.fits evtable="EVENTS" scfile=/scratch/kocevski/443533/ft2_4FGL_J2243.8-2510_daily_bin959.fits sctable="SC_DATA" expcube=/scratch/kocevski/443533/ltcube_487900801_488160001_4FGL_J2243.8-2510_daily_bin959.fits outfile=/scratch/kocevski/443533/expmap_487900801_488160001_4FGL_J2243.8-2510_daily_bin959.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/443533/ltcube_487900801_488160001_4FGL_J2243.8-2510_daily_bin959.fits
.....................!
real 189.90
user 185.14
sys 4.37

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 164 point sources and 0 extended sources

Setting source of interest to:
4FGL J2243.8-2510 @ 340.957 -25.1701

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/443533/ft1_filtered_4FGL_J2243.8-2510_daily_bin959.fits scfile=/scratch/kocevski/443533/ft2_4FGL_J2243.8-2510_daily_bin959.fits outfile=/scratch/kocevski/443533/cmap_487900801_488160001_4FGL_J2243.8-2510_daily_bin959.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.957 yref=-25.1701 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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/443533/ft1_filtered_4FGL_J2243.8-2510_daily_bin959.fits scfile=/scratch/kocevski/443533/ft2_4FGL_J2243.8-2510_daily_bin959.fits outfile=/scratch/kocevski/443533/cmap_HighResolution_487900801_488160001_4FGL_J2243.8-2510_daily_bin959.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.957 yref=-25.1701 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.57
user 0.36
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/443533/ft1_filtered_4FGL_J2243.8-2510_daily_bin959.fits evtable="EVENTS" scfile=/scratch/kocevski/443533/ft2_4FGL_J2243.8-2510_daily_bin959.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/443533/Model_4FGL_J2243.8-2510_daily_bin959.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/443533/ft1_filtered_4FGL_J2243.8-2510_daily_bin959.fits.....................!
real 34.82
user 33.51
sys 1.12

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/443533/ft1_filtered_4FGL_J2243.8-2510_daily_bin959.fits', '/scratch/kocevski/443533/ft2_4FGL_J2243.8-2510_daily_bin959.fits', expMap='/scratch/kocevski/443533/expmap_487900801_488160001_4FGL_J2243.8-2510_daily_bin959.fits', expCube='/scratch/kocevski/443533/ltcube_487900801_488160001_4FGL_J2243.8-2510_daily_bin959.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/443533/Model_4FGL_J2243.8-2510_daily_bin959.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2243.8-2510'

4FGL J2243.8-2510
   Spectrum: PowerLaw
268    Prefactor:  7.852e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
269        Index:  2.707e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
270        Scale:  6.765e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/443533/ft1_filtered_4FGL_J2243.8-2510_daily_bin959.fits
Spacecraft file(s): /scratch/kocevski/443533/ft2_4FGL_J2243.8-2510_daily_bin959.fits
Exposure map: /scratch/kocevski/443533/expmap_487900801_488160001_4FGL_J2243.8-2510_daily_bin959.fits
Exposure cube: /scratch/kocevski/443533/ltcube_487900801_488160001_4FGL_J2243.8-2510_daily_bin959.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/443533/Model_4FGL_J2243.8-2510_daily_bin959.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) = 3341.28913447

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    1.0303       1.0000         .10000E-03   10000.    
     3 'Prefactor '    15.168       1.0000         .10000E-03   10000.    
     4 'Prefactor '    22.807       1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.9487       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    21.297       1.0000         .10000E-03   10000.    
     8 'Prefactor '    46.828       1.0000         .10000E-03   10000.    
     9 'Prefactor '    11.582       1.0000         .10000E-03   10000.    
    10 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10263E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .15157E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    29.728       1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    5.9313       1.0000         .10000E-03   10000.    
    17 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.8947       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .60921       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .97101       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5290E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   3341.244     FROM MIGRAD    STATUS=CONVERGED    528 CALLS     2311 TOTAL
                     EDM=   .48E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    61.161       -.77230E-06** at limit **
   2  norm          1.0304        .39149        .52360E-08    .53832E-05
   3  Prefactor     15.168        10.706        .51303E-07   -.24201E-06
   4  Prefactor     22.808        24.253        .49900E-07   -.26251E-05
   5  Prefactor     2.9490        14.404        .32511E-05   -.43977E-05
   6  Prefactor     .10000E-03    30.515        .22474E-05** at limit **
   7  norm          21.268        33.417        .25070E-05   -.46510E-05
   8  Prefactor     46.826        36.310       -.16717E-06    .26934E-05
   9  Prefactor     11.585        19.626       -.46237E-06   -.25446E-04
  10  norm          .10000E-03    .32660       -.55936E-08** at limit **
  11  norm          .10000E-03    1.3049       -.11111E-06** at limit **
  12  Prefactor     .10000E-03    71.394        .46858E-05** at limit **
  13  Prefactor     29.729        16.258        .10067E-07    .51658E-05
  14  norm          .10000E-03    3.4023       -.13922E-06** at limit **
  15  Prefactor     .10000E-03    9.0768       -.10302E-06** at limit **
  16  Prefactor     5.9279        8.2511        .22365E-06    .42358E-04
  17  norm          .10000E-03    .30789       -.11601E-06** at limit **
  18  Prefactor     .10000E-03    45.222       -.51371E-05** at limit **
  19  Prefactor     1.8926        19.187        .41909E-06    .67744E-06
  20  Prefactor     .10000E-03    4.7112       -.52951E-07** at limit **
  21  norm          .10000E-03    1.3218       -.93439E-08** at limit **
  22  Prefactor     .10000E-03    20.284       -.33467E-06** at limit **
  23  Normalizat    .60930        .22853       -.11251E-05    .40187E-05
  24  Prefactor     .97099        .19744        .79622E-07   -.80064E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 1.03036
  Prefactor  = 15.1678
  Prefactor  = 22.8084
  Prefactor  = 2.94899
  Prefactor  = 0.0001
  norm       = 21.2678
  Prefactor  = 46.8264
  Prefactor  = 11.5848
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 29.7289
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.92792
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.89263
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.609299
  Prefactor  = 0.970994
 **********
 **   18 **HESSE 
 **********

 FCN=   3341.244     FROM HESSE     STATUS=OK           399 CALLS     2710 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    61.272        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.0304        .39164        .21601E-04   -1.5505    
   3  Prefactor     15.168        10.707        .10284E-03   -1.4929    
   4  Prefactor     22.808        24.252        .83874E-04   -1.4752    
   5  Prefactor     2.9490        14.471        .11825E-02   -1.5364    
   6  Prefactor     .10000E-03    30.528        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          21.268        33.384        .86793E-04   -1.4785    
   8  Prefactor     46.826        36.379        .58594E-04   -1.4338    
   9  Prefactor     11.585        19.692        .11771E-03   -1.5027    
  10  norm          .10000E-03    .32896        .32258E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    1.3176        .64444E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    71.347        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     29.729        16.296        .73482E-04   -1.4617    
  14  norm          .10000E-03    3.4479        .10376E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    9.0838        .16988E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     5.9279        7.9812        .16488E-03   -1.5221    
  17  norm          .10000E-03    .32635        .60103E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    45.228        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     1.8926        19.267        .30223E-03   -1.5433    
  20  Prefactor     .10000E-03    4.7161        .12247E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    1.3254        .64897E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    20.292        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .60930        .27130        .28156E-03   -1.0759    
  24  Prefactor     .97099        .23641        .20674E-03   -.93703    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.17624e-10
Minuit parameter uncertainties:
  1  5.37599e-06
  2  0.391637
  3  10.7083
  4  24.2629
  5  13.0701
  6  5.82638e-06
  7  33.4129
  8  36.3958
  9  19.7029
  10  6.84027e-08
  11  2.90749e-06
  12  5.81744e-05
  13  16.2984
  14  4.36158e-06
  15  4.44777e-06
  16  7.98266
  17  5.91401e-07
  18  1.1356e-05
  19  12.0819
  20  7.97004e-07
  21  3.06192e-07
  22  1.90218e-06
  23  0.27189
  24  0.236667
Done.

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

Extracting fit parameters...

4FGL J2243.8-2510
   Spectrum: PowerLaw
268    Prefactor:  1.000e-04  5.817e-05  1.000e-04  1.000e+04 ( 1.000e-13)
269        Index:  2.707e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
270        Scale:  6.765e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
526    Prefactor:  9.710e-01  2.367e-01  0.000e+00  1.000e+01 ( 1.000e+00)
527        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
528        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
525   Normalization:  6.093e-01  2.719e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 340.957 -25.170
Photon Flux Upper Limit: 1.24e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.74e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/443533/likelihoodResults_487900801_488160001_4FGL_J2243.8-2510_daily_bin959.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) = 3341.24440852
delta logL = -6.66766945869e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3341.24434186
delta logL = -1.69029590324e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6544       1.0000          .0000       10.000    
     3 'Normalizat'    .60931       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97099       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5290E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   3341.244     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      234 TOTAL
                     EDM=   .26E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    9597.8        .90712E-02** at limit **
   2  Index         2.6635        6.9537        .50000       -.11715E-05
   3  Normalizat    .60930        .18164        .63632E-01    .18147E-04
   4  Prefactor     .97099        .16453        .45903E-01    .53406E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.66347
  Normalizat = 0.609299
  Prefactor  = 0.970994
 **********
 **   18 **HESSE 
 **********

 FCN=   3341.244     FROM HESSE     STATUS=OK            33 CALLS      267 TOTAL
                     EDM=   .14E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    75.163        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.6635        6.3302        .50000       -.48624    
   3  Normalizat    .60930        .24873        .28156E-03   -1.0759    
   4  Prefactor     .97099        .22861        .20674E-03   -.93703    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.44202e-12
Minuit parameter uncertainties:
  1  2.28487e-05
  2  4.63692
  3  0.249187
  4  0.228835
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/443533': 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) = 3341.24434185
delta logL = -1.09730535769e-08

Extracting fit parameters...

4FGL J2243.8-2510
   Spectrum: PowerLaw
268    Prefactor:  1.000e-04  2.285e-05  1.000e-04  1.000e+04 ( 1.000e-13)
269        Index:  2.663e+00  4.637e+00  0.000e+00  1.000e+01 (-1.000e+00)
270        Scale:  6.765e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
526    Prefactor:  9.710e-01  2.288e-01  0.000e+00  1.000e+01 ( 1.000e+00)
527        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
528        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
525   Normalization:  6.093e-01  2.492e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 340.957 -25.170

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/443533/cmap_HighResolution_487900801_488160001_4FGL_J2243.8-2510_daily_bin959.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.74e-03', job_status='DONE', photon_flux_upper_limit='1.24e-07', time_completed='2021-09-28 19:07:15.217420', job_id='443533', GAL2='0.97', fit_tolerance='1e-08', EG2='0.61', EG='0.61', time_epoch_completed='1632881235.22', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.97', dlogl='-1.10e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.71' WHERE bin_id='959' AND source_name='4FGL J2243.8-2510' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 19:07:15 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0209>
Subject: Job 443533: <4FGL_J2243.8-2510_daily_bin959> in cluster <slac> Done

Job <4FGL_J2243.8-2510_daily_bin959> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 28 18:55:40 2021
Job was executed on host(s) <bullet0209>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 18:55:41 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:55:41 2021
Terminated at Tue Sep 28 19:07:15 2021
Results reported at Tue Sep 28 19:07:15 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2243.8-2510_daily_bin959 340.957 -25.1701 487900801 488160001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2243.8-2510 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   478.01 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             273.92 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   694 sec.
    Turnaround time :                            695 sec.

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

