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


Performing analysis on: 4FGL_J2243.9+2021_daily_bin974
RA = 340.99, Dec = 20.3565
tmin = 491788801, tmax = 492048001
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='449954', job_status='RUN', time_executed='2021-09-28 19:19:31.268541', time_epoch_executed='1632881971.27' WHERE source_name='4FGL J2243.9+2021' and cadence='daily' and bin_id='974'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/449954

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/449954/ft1_4FGL_J2243.9+2021_daily_bin974.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/449954/ft2_4FGL_J2243.9+2021_daily_bin974.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/449954/ft1_4FGL_J2243.9+2021_daily_bin974.fits outfile=/scratch/kocevski/449954/ft1_filteredMKT_4FGL_J2243.9+2021_daily_bin974.fits ra=340.99 dec=20.3565 rad=12.0 tmin=491788801.0 tmax=492048001.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 3.30
user 3.00
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/449954/ft1_filtered_4FGL_J2243.9+2021_daily_bin974.fits" evtable="EVENTS" scfile=/scratch/kocevski/449954/ft2_4FGL_J2243.9+2021_daily_bin974.fits sctable="SC_DATA" outfile=/scratch/kocevski/449954/ltcube_491788801_492048001_4FGL_J2243.9+2021_daily_bin974.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/449954/ft2_4FGL_J2243.9+2021_daily_bin974.fits
.....................!
real 8.51
user 8.20
sys 0.26

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/449954/ft1_filtered_4FGL_J2243.9+2021_daily_bin974.fits evtable="EVENTS" scfile=/scratch/kocevski/449954/ft2_4FGL_J2243.9+2021_daily_bin974.fits sctable="SC_DATA" expcube=/scratch/kocevski/449954/ltcube_491788801_492048001_4FGL_J2243.9+2021_daily_bin974.fits outfile=/scratch/kocevski/449954/expmap_491788801_492048001_4FGL_J2243.9+2021_daily_bin974.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/449954/ltcube_491788801_492048001_4FGL_J2243.9+2021_daily_bin974.fits
.....................!
real 140.05
user 136.16
sys 3.63

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/449954/ft1_filtered_4FGL_J2243.9+2021_daily_bin974.fits scfile=/scratch/kocevski/449954/ft2_4FGL_J2243.9+2021_daily_bin974.fits outfile=/scratch/kocevski/449954/cmap_491788801_492048001_4FGL_J2243.9+2021_daily_bin974.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.45
user 0.28
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/449954/ft1_filtered_4FGL_J2243.9+2021_daily_bin974.fits scfile=/scratch/kocevski/449954/ft2_4FGL_J2243.9+2021_daily_bin974.fits outfile=/scratch/kocevski/449954/cmap_HighResolution_491788801_492048001_4FGL_J2243.9+2021_daily_bin974.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.44
user 0.29
sys 0.14

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/449954/ft1_filtered_4FGL_J2243.9+2021_daily_bin974.fits', '/scratch/kocevski/449954/ft2_4FGL_J2243.9+2021_daily_bin974.fits', expMap='/scratch/kocevski/449954/expmap_491788801_492048001_4FGL_J2243.9+2021_daily_bin974.fits', expCube='/scratch/kocevski/449954/ltcube_491788801_492048001_4FGL_J2243.9+2021_daily_bin974.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/449954/Model_4FGL_J2243.9+2021_daily_bin974.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/449954/ft1_filtered_4FGL_J2243.9+2021_daily_bin974.fits
Spacecraft file(s): /scratch/kocevski/449954/ft2_4FGL_J2243.9+2021_daily_bin974.fits
Exposure map: /scratch/kocevski/449954/expmap_491788801_492048001_4FGL_J2243.9+2021_daily_bin974.fits
Exposure cube: /scratch/kocevski/449954/ltcube_491788801_492048001_4FGL_J2243.9+2021_daily_bin974.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/449954/Model_4FGL_J2243.9+2021_daily_bin974.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) = 872.76146487

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    300.96       1.0000         .10000E-03   10000.    
     2 'norm      '    .12388E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .12228E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    14.538       1.0000         .10000E-03   10000.    
     6 'Prefactor '    568.09       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10647E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.0156       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10068E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10908E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .13355E-02   1.0000         .10000E-03   10000.    
    12 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .16006E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10520E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    10.391       1.0000         .10000E-03   10000.    
    17 'Prefactor '    15.437       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10436E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10280E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .11386E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .14723E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.9685       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .29789E-01   1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5160E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   872.7271     FROM MIGRAD    STATUS=CONVERGED    110 CALLS     2390 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     300.96        1.1026        .17779E-06   -.10965E-02
   2  norm          .10003E-03    11.752        .10814E-04** at limit **
   3  Prefactor     .10264E-03    38.729       -.18640E-04** at limit **
   4  norm          .10024E-03    9.1063       -.98670E-05** at limit **
   5  Prefactor     14.558        5.1457        .82675E-05   -.18827E-02
   6  Prefactor     568.09        1.2715       -.22142E-06    .24807E-02
   7  Prefactor     .10080E-03    16.541       -.18986E-04** at limit **
   8  Prefactor     1.0156        .77438       -.33567E-06   -.78752E-03
   9  Prefactor     .10034E-03    9.3387        .15330E-04** at limit **
  10  norm          .10000E-03    5.3657        .10079E-05** at limit **
  11  Prefactor     .30519E-03    32.242       -.70882E-04** at limit **
  12  norm          .10000E-03    10.468        .29920E-06** at limit **
  13  Prefactor     .10010E-03    30.063        .42632E-04** at limit **
  14  Prefactor     .10379E-03    35.210        .32594E-04** at limit **
  15  Prefactor     .10008E-03    26.181       -.30849E-04** at limit **
  16  Prefactor     10.391        1.7928        .76880E-07   -.30718E-02
  17  Prefactor     15.480        14.170        .23292E-04   -.70371E-02
  18  Prefactor     .10023E-03    15.258        .53088E-05** at limit **
  19  Prefactor     .10016E-03    22.200       -.24277E-04** at limit **
  20  Prefactor     .10103E-03    26.687        .16470E-04** at limit **
  21  Prefactor     .10197E-03    67.405       -.56274E-04** at limit **
  22  Prefactor     .10001E-03    11.977       -.10496E-04** at limit **
  23  Prefactor     .10128E-03    19.303        .41647E-04** at limit **
  24  Normalizat    1.9729        1.0101        .28914E-07   -.44682E-04
  25  Prefactor     .28012E-01    1.8064       -.17923E-04   -.34445E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 300.961
  norm       = 0.000100034
  Prefactor  = 0.000102636
  norm       = 0.000100239
  Prefactor  = 14.5576
  Prefactor  = 568.087
  Prefactor  = 0.0001008
  Prefactor  = 1.01562
  Prefactor  = 0.000100339
  norm       = 0.000100002
  Prefactor  = 0.000305188
  norm       = 0.000100002
  Prefactor  = 0.0001001
  Prefactor  = 0.000103792
  Prefactor  = 0.000100079
  Prefactor  = 10.3909
  Prefactor  = 15.4798
  Prefactor  = 0.000100232
  Prefactor  = 0.000100163
  Prefactor  = 0.000101031
  Prefactor  = 0.000101968
  Prefactor  = 0.000100011
  Prefactor  = 0.000101279
  Normalizat = 1.97285
  Prefactor  = 0.0280122
 **********
 **   18 **HESSE 
 **********

 FCN=   872.7271     FROM HESSE     STATUS=NOT POSDEF   467 CALLS     2857 TOTAL
                     EDM=   .40E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     300.96        347.60        .58530E-03   -1.2221    
   2  norm          .10003E-03    13.639        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10264E-03    114.51        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10024E-03    14.738        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     14.558        148.54        .26261E-02   -1.4945    
   6  Prefactor     568.09        657.21        .43201E-03   -1.0895    
   7  Prefactor     .10080E-03    35.780        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     1.0156        .89438        .49185E-02   -1.5506    
   9  Prefactor     .10034E-03    14.482        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    4.9059        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .30519E-03    612.21        .10280E-01   -1.5705    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    9.5940        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10010E-03    84.400        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10379E-03    63.919        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10008E-03    46.065        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     10.391        1.7659        .31074E-02   -1.5063    
  17  Prefactor     15.480        160.78        .25485E-02   -1.4921    
  18  Prefactor     .10023E-03    32.653        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10016E-03    22.353        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10103E-03    99.525        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10197E-03    130.63        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10001E-03    11.112        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10128E-03    25.999        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.9729        5.5101        .72278E-01   -.65233    
  25  Prefactor     .28012E-01    8.2433        .18001       -1.4649    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.04907e-06
Minuit parameter uncertainties:
  1  350.049
  2  0.00136104
  3  0.034812
  4  0.00375274
  5  93.3022
  6  666.38
  7  0.010704
  8  0.894387
  9  0.00443295
  10  0.000171789
  11  0.716292
  12  0.000272278
  13  0.0058143
  14  0.0311685
  15  0.00381872
  16  1.76595
  17  100.124
  18  0.00550212
  19  0.00382121
  20  0.0202933
  21  0.0321402
  22  0.000702504
  23  0.0115381
  24  6.11083
  25  2.38394
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 872.727062724

Extracting fit parameters...

4FGL J2243.9+2021
   Spectrum: LogParabola
288         norm:  1.000e-04  2.723e-04  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:  2.801e-02  2.384e+00  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.973e+00  6.111e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 340.990 20.357
Photon Flux Upper Limit: 5.22e-07 ph cm-2 s-1
Energy Flux Upper Limit: 6.77e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/449954/likelihoodResults_491788801_492048001_4FGL_J2243.9+2021_daily_bin974.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) = 872.727126073
delta logL = -6.3348298454e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 872.425463318
delta logL = 0.301599406448

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .20932E-01   1.0000         .10000E-03   10000.    
     2 'alpha     '    5.0000       1.0000          .0000       5.0000    
     3 'Normalizat'    1.8434       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .73073E-01   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.

 FCN=   872.4255     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      311 TOTAL
                     EDM=   .74E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .20947E-01    3.5298        .15831E-02    .12093E-02
   2  alpha         5.0000        3.0366        .46267    ** at limit **
   3  Normalizat    1.8435        1.6604        .73796E-01    .20564E-04
   4  Prefactor     .73032E-01    1.7869        .15572        .29064E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0209469
  alpha      = 5
  Normalizat = 1.84352
  Prefactor  = 0.0730323
 **********
 **   18 **HESSE 
 **********

 FCN=   872.4255     FROM HESSE     STATUS=OK            33 CALLS      344 TOTAL
                     EDM=   .19E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .20947E-01    .35242E-01    .71675E-04   -1.5679    
   2  alpha         5.0000        3.8823        .34261E-01    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    1.8435        1.0626        .32631E-03   -.68533    
   4  Prefactor     .73032E-01    .82065        .66456E-02   -1.3997    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.87921e-11
Minuit parameter uncertainties:
  1  0.0352423
  2  1.75384e-05
  3  1.0764
  4  0.498529
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/449954': 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) = 872.425462387
delta logL = 0.301600337295

Extracting fit parameters...

4FGL J2243.9+2021
   Spectrum: LogParabola
288         norm:  2.095e-02  3.524e-02  1.000e-04  1.000e+04 ( 1.000e-12)
289        alpha:  5.000e+00  1.754e-05  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.303e-02  4.985e-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.844e+00  1.076e+00  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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/449954/cmap_HighResolution_491788801_492048001_4FGL_J2243.9+2021_daily_bin974.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.77e-04', job_status='DONE', photon_flux_upper_limit='5.22e-07', time_completed='2021-09-28 19:24:17.222527', job_id='449954', GAL2='0.07', fit_tolerance='1e-08', EG2='1.84', EG='1.97', time_epoch_completed='1632882257.22', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='102', GAL='0.03', dlogl='3.02e-01', ts2='0.61', photon_index_error='0.00', photon_index='1.72' WHERE bin_id='974' AND source_name='4FGL J2243.9+2021' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 19:24:17 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0086>
Subject: Job 449954: <4FGL_J2243.9+2021_daily_bin974> in cluster <slac> Done

Job <4FGL_J2243.9+2021_daily_bin974> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Tue Sep 28 19:15:50 2021
Job was executed on host(s) <bullet0086>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 19:15:51 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:15:51 2021
Terminated at Tue Sep 28 19:24:17 2021
Results reported at Tue Sep 28 19:24:17 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2243.9+2021_daily_bin974 340.99 20.3565 491788801 492048001 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 :                                   287.58 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             226.38 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   506 sec.
    Turnaround time :                            507 sec.

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

