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


Performing analysis on: 4FGL_J2243.9+2021_daily_bin1281
RA = 340.99, Dec = 20.3565
tmin = 571363201, tmax = 571622401
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='452759', job_status='RUN', time_executed='2021-09-28 19:25:43.601673', time_epoch_executed='1632882343.6' WHERE source_name='4FGL J2243.9+2021' and cadence='daily' and bin_id='1281'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/452759

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/452759/ft1_4FGL_J2243.9+2021_daily_bin1281.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/452759/ft2_4FGL_J2243.9+2021_daily_bin1281.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/452759/ft1_4FGL_J2243.9+2021_daily_bin1281.fits outfile=/scratch/kocevski/452759/ft1_filteredMKT_4FGL_J2243.9+2021_daily_bin1281.fits ra=340.99 dec=20.3565 rad=12.0 tmin=571363201.0 tmax=571622401.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 2.85
user 2.63
sys 0.19

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/452759/ft2_4FGL_J2243.9+2021_daily_bin1281.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/452759/ft2_4FGL_J2243.9+2021_daily_bin1281.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/452759/ft1_filteredMKT_4FGL_J2243.9+2021_daily_bin1281.fits evtable="EVENTS" outfile="/scratch/kocevski/452759/ft1_filtered_4FGL_J2243.9+2021_daily_bin1281.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.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/452759/ft1_filtered_4FGL_J2243.9+2021_daily_bin1281.fits" evtable="EVENTS" scfile=/scratch/kocevski/452759/ft2_4FGL_J2243.9+2021_daily_bin1281.fits sctable="SC_DATA" outfile=/scratch/kocevski/452759/ltcube_571363201_571622401_4FGL_J2243.9+2021_daily_bin1281.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/452759/ft2_4FGL_J2243.9+2021_daily_bin1281.fits
.....................!
real 12.38
user 12.02
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/452759/ft1_filtered_4FGL_J2243.9+2021_daily_bin1281.fits evtable="EVENTS" scfile=/scratch/kocevski/452759/ft2_4FGL_J2243.9+2021_daily_bin1281.fits sctable="SC_DATA" expcube=/scratch/kocevski/452759/ltcube_571363201_571622401_4FGL_J2243.9+2021_daily_bin1281.fits outfile=/scratch/kocevski/452759/expmap_571363201_571622401_4FGL_J2243.9+2021_daily_bin1281.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/452759/ltcube_571363201_571622401_4FGL_J2243.9+2021_daily_bin1281.fits
.....................!
real 190.02
user 185.22
sys 4.43

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

Setting source of interest to:
4FGL J2243.9+2021 @ 340.99 20.3565

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/452759/ft1_filtered_4FGL_J2243.9+2021_daily_bin1281.fits scfile=/scratch/kocevski/452759/ft2_4FGL_J2243.9+2021_daily_bin1281.fits outfile=/scratch/kocevski/452759/cmap_571363201_571622401_4FGL_J2243.9+2021_daily_bin1281.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.99 yref=20.3565 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/452759/ft1_filtered_4FGL_J2243.9+2021_daily_bin1281.fits scfile=/scratch/kocevski/452759/ft2_4FGL_J2243.9+2021_daily_bin1281.fits outfile=/scratch/kocevski/452759/cmap_HighResolution_571363201_571622401_4FGL_J2243.9+2021_daily_bin1281.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.99 yref=20.3565 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.35
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/452759/ft1_filtered_4FGL_J2243.9+2021_daily_bin1281.fits evtable="EVENTS" scfile=/scratch/kocevski/452759/ft2_4FGL_J2243.9+2021_daily_bin1281.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/452759/Model_4FGL_J2243.9+2021_daily_bin1281.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/452759/ft1_filtered_4FGL_J2243.9+2021_daily_bin1281.fits.....................!
real 114.80
user 113.39
sys 1.17

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/452759/ft1_filtered_4FGL_J2243.9+2021_daily_bin1281.fits', '/scratch/kocevski/452759/ft2_4FGL_J2243.9+2021_daily_bin1281.fits', expMap='/scratch/kocevski/452759/expmap_571363201_571622401_4FGL_J2243.9+2021_daily_bin1281.fits', expCube='/scratch/kocevski/452759/ltcube_571363201_571622401_4FGL_J2243.9+2021_daily_bin1281.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/452759/Model_4FGL_J2243.9+2021_daily_bin1281.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2243.9+2021'

4FGL J2243.9+2021
   Spectrum: LogParabola
288         norm:  1.733e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
289        alpha:  1.716e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
290         beta:  8.229e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
291           Eb:  1.517e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/452759/ft1_filtered_4FGL_J2243.9+2021_daily_bin1281.fits
Spacecraft file(s): /scratch/kocevski/452759/ft2_4FGL_J2243.9+2021_daily_bin1281.fits
Exposure map: /scratch/kocevski/452759/expmap_571363201_571622401_4FGL_J2243.9+2021_daily_bin1281.fits
Exposure cube: /scratch/kocevski/452759/ltcube_571363201_571622401_4FGL_J2243.9+2021_daily_bin1281.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/452759/Model_4FGL_J2243.9+2021_daily_bin1281.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) = 10969.9943272

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .28663       1.0000         .10000E-03   10000.    
     3 'Prefactor '    15.515       1.0000         .10000E-03   10000.    
     4 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.5055       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .53542       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    5.5065       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    8.2407       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.8462       1.0000         .10000E-03   10000.    
    17 'Prefactor '    15.849       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    2.7841       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.3721       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .71397       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5160E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   10969.96     FROM MIGRAD    STATUS=CONVERGED    571 CALLS     2481 TOTAL
                     EDM=   .38E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    10.576       -.25242E-06** at limit **
   2  norm          .28683        .83438        .22191E-06   -.74188E-03
   3  Prefactor     15.515        14.387        .69953E-06   -.16474E-03
   4  norm          .10000E-03    4.0873        .11484E-07** at limit **
   5  Prefactor     2.5054        11.344        .57952E-06   -.43218E-04
   6  Prefactor     .10000E-03    39.318       -.11237E-05** at limit **
   7  Prefactor     .10000E-03    2.9680       -.77546E-07** at limit **
   8  Prefactor     .53543        .20245        .18403E-08   -.33122E-03
   9  Prefactor     .10000E-03    2.9921        .67895E-07** at limit **
  10  norm          5.5064        1.1742        .97270E-08    .16993E-03
  11  Prefactor     .10000E-03    6.8252       -.13240E-05** at limit **
  12  norm          .10000E-03    .42420       -.97367E-07** at limit **
  13  Prefactor     .10000E-03    24.703        .11463E-05** at limit **
  14  Prefactor     8.2410        9.5896        .19505E-05   -.48668E-03
  15  Prefactor     .10000E-03    7.6864        .36703E-06** at limit **
  16  Prefactor     1.8462        .23055       -.40490E-09   -.66367E-03
  17  Prefactor     15.850        8.3105       -.47995E-07    .31566E-05
  18  Prefactor     .10000E-03    2.1536        .26789E-07** at limit **
  19  Prefactor     .10000E-03    5.9283        .52723E-06** at limit **
  20  Prefactor     .10000E-03    10.609       -.17174E-05** at limit **
  21  Prefactor     2.7852        14.054        .59481E-06   -.22396E-04
  22  Prefactor     .10000E-03    1.1193        .10330E-07** at limit **
  23  Prefactor     .10000E-03    8.7439        .24431E-05** at limit **
  24  Normalizat    1.3721        .19342       -.50728E-06   -.38424E-04
  25  Prefactor     .71398        .96047E-01   -.22096E-06   -.62055E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.28683
  Prefactor  = 15.5145
  norm       = 0.0001
  Prefactor  = 2.50544
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.535432
  Prefactor  = 0.0001
  norm       = 5.50641
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.24099
  Prefactor  = 0.0001
  Prefactor  = 1.84618
  Prefactor  = 15.8501
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 2.78516
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Normalizat = 1.37206
  Prefactor  = 0.713982
 **********
 **   18 **HESSE 
 **********

 FCN=   10969.96     FROM HESSE     STATUS=OK           425 CALLS     2906 TOTAL
                     EDM=   .36E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    10.585        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .28683        1.1164        .15341E-02   -1.5601    
   3  Prefactor     15.515        14.519        .50841E-03   -1.4920    
   4  norm          .10000E-03    4.1633        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     2.5054        11.307        .25816E-03   -1.5391    
   6  Prefactor     .10000E-03    39.512        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    2.9739        .17622E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .53543        .20062        .27637E-04   -1.5562    
   9  Prefactor     .10000E-03    2.9993        .17695E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          5.5064        1.1745        .50227E-04   -1.5239    
  11  Prefactor     .10000E-03    7.0751        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    .42973        .66742E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    24.933        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     8.2410        10.276        .69829E-03   -1.5134    
  15  Prefactor     .10000E-03    7.7086        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     1.8462        .23165        .16713E-04   -1.5436    
  17  Prefactor     15.850        8.3126        .10060E-03   -1.4912    
  18  Prefactor     .10000E-03    2.1631        .15008E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    6.0465        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    11.016        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     2.7852        14.083        .24387E-03   -1.5374    
  22  Prefactor     .10000E-03    1.1215        .10821E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    9.5057        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.3721        .22968        .31872E-03   -.81440    
  25  Prefactor     .71398        .11388        .21793E-03   -1.0298    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.57539e-08
Minuit parameter uncertainties:
  1  3.10925e-05
  2  1.1165
  3  14.5219
  4  3.23042e-06
  5  10.6479
  6  0.00027216
  7  4.95716e-06
  8  0.200621
  9  4.5523e-06
  10  1.17454
  11  0.000131929
  12  2.47502e-06
  13  0.000218737
  14  10.2782
  15  3.91767e-05
  16  0.231647
  17  8.31319
  18  1.30431e-06
  19  4.61806e-05
  20  0.000214796
  21  12.5302
  22  9.14542e-08
  23  0.000277951
  24  0.229857
  25  0.113916
Done.

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

Extracting fit parameters...

4FGL J2243.9+2021
   Spectrum: LogParabola
288         norm:  1.000e-04  2.475e-06  1.000e-04  1.000e+04 ( 1.000e-12)
289        alpha:  1.716e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
290         beta:  8.229e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
291           Eb:  1.517e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
513    Prefactor:  7.140e-01  1.139e-01  0.000e+00  1.000e+01 ( 1.000e+00)
514        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
515        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
512   Normalization:  1.372e+00  2.299e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 340.990 20.357
Photon Flux Upper Limit: 2.56e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.32e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/452759/likelihoodResults_571363201_571622401_4FGL_J2243.9+2021_daily_bin1281.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) = 10969.9616738
delta logL = -3.31367118633e-07

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10969.9616734
delta logL = 9.58043528954e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.7225       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3721       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .71399       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5160E+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=   10969.57     FROM MIGRAD    STATUS=CONVERGED    129 CALLS      275 TOTAL
                     EDM=   .38E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .47144E-02    .53282E-02    .18074E-02   -.25343E-01
   2  alpha         5.0000        1.0254        .50000    ** at limit **
   3  Normalizat    1.3016        .23340        .31872E-03    .26467E-04
   4  Prefactor     .73729        .11653        .21793E-03    .19823E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.00471443
  alpha      = 5
  Normalizat = 1.30164
  Prefactor  = 0.737286
 **********
 **   18 **HESSE 
 **********

 FCN=   10969.57     FROM HESSE     STATUS=OK            31 CALLS      306 TOTAL
                     EDM=   .19E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .47144E-02    .58821E-02    .78942E-05   -1.5722    
   2  alpha         5.0000        1.0806        .50000        1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    1.3016        .23905        .12749E-04   -.83517    
   4  Prefactor     .73729        .11781        .87173E-05   -1.0208    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.86978e-11
Minuit parameter uncertainties:
  1  0.00588206
  2  8.77095e-06
  3  0.239253
  4  0.117853
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/452759': 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) = 10969.571632
delta logL = 0.390041470511

Extracting fit parameters...

4FGL J2243.9+2021
   Spectrum: LogParabola
288         norm:  4.714e-03  5.882e-03  1.000e-04  1.000e+04 ( 1.000e-12)
289        alpha:  5.000e+00  8.771e-06  0.000e+00  5.000e+00 ( 1.000e+00)
290         beta:  8.229e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
291           Eb:  1.517e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
513    Prefactor:  7.373e-01  1.179e-01  0.000e+00  1.000e+01 ( 1.000e+00)
514        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
515        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
512   Normalization:  1.302e+00  2.393e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 340.990 20.357

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/452759/cmap_HighResolution_571363201_571622401_4FGL_J2243.9+2021_daily_bin1281.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.32e-05', job_status='DONE', photon_flux_upper_limit='2.56e-08', time_completed='2021-09-28 19:40:46.630952', job_id='452759', GAL2='0.74', fit_tolerance='1e-08', EG2='1.30', EG='1.37', time_epoch_completed='1632883246.63', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.71', dlogl='3.90e-01', ts2='0.86', photon_index_error='0.00', photon_index='1.72' WHERE bin_id='1281' AND source_name='4FGL J2243.9+2021' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 19:40:46 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0282>
Subject: Job 452759: <4FGL_J2243.9+2021_daily_bin1281> in cluster <slac> Done

Job <4FGL_J2243.9+2021_daily_bin1281> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Tue Sep 28 19:25:28 2021
Job was executed on host(s) <bullet0282>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 19:25:30 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 28 19:25:30 2021
Terminated at Tue Sep 28 19:40:47 2021
Results reported at Tue Sep 28 19:40:47 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2243.9+2021_daily_bin1281 340.99 20.3565 571363201 571622401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2243.9+2021 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   896.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             341.59 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   916 sec.
    Turnaround time :                            919 sec.

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

