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


Performing analysis on: 4FGL_J2243.9+2021_daily_bin671
RA = 340.99, Dec = 20.3565
tmin = 413251201, tmax = 413510401
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='449533', job_status='RUN', time_executed='2021-09-28 19:19:04.613806', time_epoch_executed='1632881944.61' WHERE source_name='4FGL J2243.9+2021' and cadence='daily' and bin_id='671'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/449533

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/449533/ft1_4FGL_J2243.9+2021_daily_bin671.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/449533/ft2_4FGL_J2243.9+2021_daily_bin671.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/449533/ft1_4FGL_J2243.9+2021_daily_bin671.fits outfile=/scratch/kocevski/449533/ft1_filteredMKT_4FGL_J2243.9+2021_daily_bin671.fits ra=340.99 dec=20.3565 rad=12.0 tmin=413251201.0 tmax=413510401.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 5.74
user 5.43
sys 0.28

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/449533/ft1_filtered_4FGL_J2243.9+2021_daily_bin671.fits" evtable="EVENTS" scfile=/scratch/kocevski/449533/ft2_4FGL_J2243.9+2021_daily_bin671.fits sctable="SC_DATA" outfile=/scratch/kocevski/449533/ltcube_413251201_413510401_4FGL_J2243.9+2021_daily_bin671.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/449533/ft2_4FGL_J2243.9+2021_daily_bin671.fits
.....................!
real 15.86
user 15.46
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/449533/ft1_filtered_4FGL_J2243.9+2021_daily_bin671.fits evtable="EVENTS" scfile=/scratch/kocevski/449533/ft2_4FGL_J2243.9+2021_daily_bin671.fits sctable="SC_DATA" expcube=/scratch/kocevski/449533/ltcube_413251201_413510401_4FGL_J2243.9+2021_daily_bin671.fits outfile=/scratch/kocevski/449533/expmap_413251201_413510401_4FGL_J2243.9+2021_daily_bin671.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/449533/ltcube_413251201_413510401_4FGL_J2243.9+2021_daily_bin671.fits
.....................!
real 192.31
user 187.01
sys 4.94

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/449533/ft1_filtered_4FGL_J2243.9+2021_daily_bin671.fits scfile=/scratch/kocevski/449533/ft2_4FGL_J2243.9+2021_daily_bin671.fits outfile=/scratch/kocevski/449533/cmap_413251201_413510401_4FGL_J2243.9+2021_daily_bin671.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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/449533/ft1_filtered_4FGL_J2243.9+2021_daily_bin671.fits scfile=/scratch/kocevski/449533/ft2_4FGL_J2243.9+2021_daily_bin671.fits outfile=/scratch/kocevski/449533/cmap_HighResolution_413251201_413510401_4FGL_J2243.9+2021_daily_bin671.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.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.492       1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    12.160       1.0000         .10000E-03   10000.    
     4 'norm      '    14.367       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .33147E-02   1.0000         .10000E-03   10000.    
     7 'Prefactor '    47.442       1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.5624       1.0000         .10000E-03   10000.    
     9 'Prefactor '    6.1413       1.0000         .10000E-03   10000.    
    10 'norm      '    1.6323       1.0000         .10000E-03   10000.    
    11 'Prefactor '    20.947       1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    13.887       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    22.813       1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.7127       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    4.7881       1.0000         .10000E-03   10000.    
    19 'Prefactor '    15.053       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    16.747       1.0000         .10000E-03   10000.    
    23 'Prefactor '    33.342       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .15591       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.2241       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=   3855.824     FROM MIGRAD    STATUS=CONVERGED     54 CALLS     2809 TOTAL
                     EDM=   .47E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.490        1.0540       -.19205E-05    .26299E-02
   2  norm          .10000E-03    .56849        .31633E-05** at limit **
   3  Prefactor     12.159        1.0197       -.10788E-05    .11560E-02
   4  norm          14.367        1.0007       -.63091E-07    .12301E-03
   5  Prefactor     .10008E-03    7.0095        .53595E-04** at limit **
   6  Prefactor     .31546E-02    .28767       -.83283E-05    .10312E-02
   7  Prefactor     47.443        1.0053        .28862E-06   -.13687E-02
   8  Prefactor     1.5624        .42891        .11075E-06   -.76827E-03
   9  Prefactor     6.1412        1.0034       -.16628E-07   -.25116E-04
  10  norm          1.6323        1.5825        .26399E-06   -.12745E-03
  11  Prefactor     20.947        1.0009        .13994E-06   -.31054E-03
  12  norm          .10000E-03    1.9465        .19021E-05** at limit **
  13  Prefactor     13.886        1.0079       -.63356E-06    .95520E-03
  14  Prefactor     .10000E-03    6.5817        .13365E-04** at limit **
  15  Prefactor     22.814        1.0133        .65932E-06   -.14781E-02
  16  Prefactor     1.7127        .37268        .38096E-06   -.13039E-02
  17  Prefactor     .10006E-03    7.1681        .61626E-04** at limit **
  18  Prefactor     4.7881        1.0069       -.45733E-06    .17507E-03
  19  Prefactor     15.054        1.0023        .29543E-06   -.41121E-03
  20  Prefactor     .10000E-03    9.0503       -.58973E-04** at limit **
  21  Prefactor     .10000E-03    24.042       -.14395E-03** at limit **
  22  Prefactor     16.748        1.0009        .86321E-07    .71093E-04
  23  Prefactor     33.342        1.0008       -.12756E-06    .51650E-03
  24  Normalizat    .15594        .35002       -.45209E-04    .46407E-04
  25  Prefactor     1.2240        .19584        .15335E-04   -.37891E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.49
  norm       = 0.0001
  Prefactor  = 12.1586
  norm       = 14.3671
  Prefactor  = 0.000100084
  Prefactor  = 0.00315457
  Prefactor  = 47.4432
  Prefactor  = 1.56244
  Prefactor  = 6.14123
  norm       = 1.63228
  Prefactor  = 20.9471
  norm       = 0.0001
  Prefactor  = 13.8859
  Prefactor  = 0.0001
  Prefactor  = 22.8142
  Prefactor  = 1.71269
  Prefactor  = 0.000100062
  Prefactor  = 4.78811
  Prefactor  = 15.0535
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 16.7481
  Prefactor  = 33.3415
  Normalizat = 0.15594
  Prefactor  = 1.22402
 **********
 **   18 **HESSE 
 **********

 FCN=   3855.824     FROM HESSE     STATUS=NOT POSDEF   493 CALLS     3302 TOTAL
                     EDM=   .51E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.490        184.44        .29543E-02   -1.5030    
   2  norm          .10000E-03    .55937        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     12.159        19.914        .28719E-02   -1.5010    
   4  norm          14.367        14.708        .26418E-02   -1.4950    
   5  Prefactor     .10008E-03    13.721        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .31546E-02    176.97        .20198       -1.5697    
   7  Prefactor     47.443        51.374        .14554E-02   -1.4329    
   8  Prefactor     1.5624        .64890        .46156E-02   -1.5458    
   9  Prefactor     6.1412        8.6834        .40501E-02   -1.5212    
  10  norm          1.6323        1.8697        .82737E-02   -1.5452    
  11  Prefactor     20.947        39.854        .21879E-02   -1.4792    
  12  norm          .10000E-03    1.8533        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     13.886        30.364        .26871E-02   -1.4963    
  14  Prefactor     .10000E-03    6.2979        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     22.814        22.386        .20966E-02   -1.4752    
  16  Prefactor     1.7127        .57745        .37967E-02   -1.5446    
  17  Prefactor     .10006E-03    12.615        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     4.7881        22.738        .45966E-02   -1.5270    
  19  Prefactor     15.054        24.105        .25808E-02   -1.4932    
  20  Prefactor     .10000E-03    8.6786        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    23.063        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     16.748        20.258        .24467E-02   -1.4889    
  23  Prefactor     33.342        37.961        .17349E-02   -1.4552    
  24  Normalizat    .15594        7.8461        .19584       -1.3285    
  25  Prefactor     1.2240        1.1108        .34085E-01   -.85595    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.07001e-07
Minuit parameter uncertainties:
  1  92.4099
  2  7.41955e-06
  3  19.9253
  4  14.7117
  5  0.00215193
  6  1.47482
  7  51.4221
  8  0.648901
  9  8.68515
  10  1.86975
  11  39.9048
  12  1.80962e-05
  13  30.3975
  14  8.77504e-05
  15  22.3946
  16  0.577453
  17  0.00177344
  18  20.8811
  19  24.1202
  20  0.000222649
  21  0.000175649
  22  20.2662
  23  37.9884
  24  2.37893
  25  1.13321
Done.

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

Extracting fit parameters...

4FGL J2243.9+2021
   Spectrum: LogParabola
288         norm:  1.000e-04  1.810e-05  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:  1.224e+00  1.133e+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.559e-01  2.379e+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: 8.48e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.10e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/449533/likelihoodResults_413251201_413510401_4FGL_J2243.9+2021_daily_bin671.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) = 3855.82668087
delta logL = -0.00239122343646

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3855.82428929
delta logL = 3.64713287127e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.7422       1.0000          .0000       5.0000    
     3 'Normalizat'    .15559       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2242       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=   3855.602     FROM MIGRAD    STATUS=CONVERGED    162 CALLS      347 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .13582        .23246        .81732E-02   -.60549E-02
   2  alpha         3.5437        .51577        .38735       -.13347E-03
   3  Normalizat    .10710        .36472        .83634E-02    .52580E-04
   4  Prefactor     1.2360        .20783        .17745E-03    .38160E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.135819
  alpha      = 3.54374
  Normalizat = 0.107101
  Prefactor  = 1.23604
 **********
 **   18 **HESSE 
 **********

 FCN=   3855.602     FROM HESSE     STATUS=OK            33 CALLS      380 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .13582        .33692        .37646E-03   -1.5782    
   2  alpha         3.5437        1.0281        .13750E-01    2.7109    
   3  Normalizat    .10710        .34923        .33453E-03   -1.3733    
   4  Prefactor     1.2360        .19677        .35489E-04   -.85229    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.17626e-09
Minuit parameter uncertainties:
  1  0.33692
  2  1.06692
  3  0.357079
  4  0.196885
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/449533': 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) = 3855.60242201
delta logL = 0.221867643687

Extracting fit parameters...

4FGL J2243.9+2021
   Spectrum: LogParabola
288         norm:  1.358e-01  3.369e-01  1.000e-04  1.000e+04 ( 1.000e-12)
289        alpha:  3.544e+00  1.067e+00  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:  1.236e+00  1.969e-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.071e-01  3.571e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/449533/cmap_HighResolution_413251201_413510401_4FGL_J2243.9+2021_daily_bin671.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.10e-04', job_status='DONE', photon_flux_upper_limit='8.48e-08', time_completed='2021-09-28 19:28:38.191415', job_id='449533', GAL2='1.24', fit_tolerance='1e-08', EG2='0.11', EG='0.16', time_epoch_completed='1632882518.19', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='102', GAL='1.22', dlogl='2.22e-01', ts2='0.46', photon_index_error='0.00', photon_index='1.72' WHERE bin_id='671' AND source_name='4FGL J2243.9+2021' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 19:28:38 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0213>
Subject: Job 449533: <4FGL_J2243.9+2021_daily_bin671> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2243.9+2021_daily_bin671 340.99 20.3565 413251201 413510401 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 :                                   573.18 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             255.58 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   798 sec.
    Turnaround time :                            799 sec.

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

