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


Performing analysis on: 4FGL_J2243.9+2021_daily_bin969
RA = 340.99, Dec = 20.3565
tmin = 490492801, tmax = 490752001
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='449947', job_status='RUN', time_executed='2021-09-28 19:19:30.917714', time_epoch_executed='1632881970.92' WHERE source_name='4FGL J2243.9+2021' and cadence='daily' and bin_id='969'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/449947

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/449947/ft1_4FGL_J2243.9+2021_daily_bin969.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/449947/ft2_4FGL_J2243.9+2021_daily_bin969.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/449947/ft1_4FGL_J2243.9+2021_daily_bin969.fits outfile=/scratch/kocevski/449947/ft1_filteredMKT_4FGL_J2243.9+2021_daily_bin969.fits ra=340.99 dec=20.3565 rad=12.0 tmin=490492801.0 tmax=490752001.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.86
user 5.57
sys 0.26

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/449947/ft2_4FGL_J2243.9+2021_daily_bin969.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/449947/ft1_filteredMKT_4FGL_J2243.9+2021_daily_bin969.fits evtable="EVENTS" outfile="/scratch/kocevski/449947/ft1_filtered_4FGL_J2243.9+2021_daily_bin969.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.48
user 0.31
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/449947/ft1_filtered_4FGL_J2243.9+2021_daily_bin969.fits" evtable="EVENTS" scfile=/scratch/kocevski/449947/ft2_4FGL_J2243.9+2021_daily_bin969.fits sctable="SC_DATA" outfile=/scratch/kocevski/449947/ltcube_490492801_490752001_4FGL_J2243.9+2021_daily_bin969.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/449947/ft2_4FGL_J2243.9+2021_daily_bin969.fits
.....................!
real 11.89
user 11.55
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/449947/ft1_filtered_4FGL_J2243.9+2021_daily_bin969.fits evtable="EVENTS" scfile=/scratch/kocevski/449947/ft2_4FGL_J2243.9+2021_daily_bin969.fits sctable="SC_DATA" expcube=/scratch/kocevski/449947/ltcube_490492801_490752001_4FGL_J2243.9+2021_daily_bin969.fits outfile=/scratch/kocevski/449947/expmap_490492801_490752001_4FGL_J2243.9+2021_daily_bin969.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/449947/ltcube_490492801_490752001_4FGL_J2243.9+2021_daily_bin969.fits
.....................!
real 190.63
user 185.41
sys 4.85

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/449947/ft1_filtered_4FGL_J2243.9+2021_daily_bin969.fits scfile=/scratch/kocevski/449947/ft2_4FGL_J2243.9+2021_daily_bin969.fits outfile=/scratch/kocevski/449947/cmap_490492801_490752001_4FGL_J2243.9+2021_daily_bin969.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.52
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/449947/ft1_filtered_4FGL_J2243.9+2021_daily_bin969.fits scfile=/scratch/kocevski/449947/ft2_4FGL_J2243.9+2021_daily_bin969.fits outfile=/scratch/kocevski/449947/cmap_HighResolution_490492801_490752001_4FGL_J2243.9+2021_daily_bin969.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.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    37.975       1.0000         .10000E-03   10000.    
     2 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    14.356       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    5.5940       1.0000         .10000E-03   10000.    
     9 'Prefactor '    8.2538       1.0000         .10000E-03   10000.    
    10 'norm      '    6.5938       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    109.84       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    8.3090       1.0000         .10000E-03   10000.    
    16 'Prefactor '    4.6671       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .99049       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    12.179       1.0000         .10000E-03   10000.    
    21 'Prefactor '    26.739       1.0000         .10000E-03   10000.    
    22 'Prefactor '    11.514       1.0000         .10000E-03   10000.    
    23 'Prefactor '    33.949       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.1621       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .76920       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=   5801.788     FROM MIGRAD    STATUS=CONVERGED    569 CALLS     2905 TOTAL
                     EDM=   .75E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     37.927        67.863       -.64084E-04    .12004E-04
   2  norm          .10000E-03    .33775        .28620E-07** at limit **
   3  Prefactor     .10000E-03    7.3542       -.54331E-06** at limit **
   4  norm          .10000E-03    4.0983       -.80926E-07** at limit **
   5  Prefactor     14.356        24.919       -.11157E-05   -.15036E-04
   6  Prefactor     .10000E-03    85.446        .36311E-05** at limit **
   7  Prefactor     .10000E-03    7.1557        .18074E-06** at limit **
   8  Prefactor     5.5939        .70650       -.30874E-07    .31433E-03
   9  Prefactor     8.2545        13.816       -.55146E-06   -.26651E-04
  10  norm          6.5936        2.1586       -.17229E-06    .24578E-03
  11  Prefactor     .10000E-03    24.825        .11993E-06** at limit **
  12  norm          .10000E-03    .87864       -.36238E-07** at limit **
  13  Prefactor     109.84        66.527        .39937E-06    .36323E-05
  14  Prefactor     .10000E-03    7.5055        .26452E-06** at limit **
  15  Prefactor     8.3021        33.377       -.97850E-05   -.11691E-04
  16  Prefactor     4.6669        .51504       -.22150E-07    .67880E-03
  17  Prefactor     1.0043        9.8248       -.15802E-05   -.14333E-04
  18  Prefactor     .10000E-03    11.492       -.18516E-06** at limit **
  19  Prefactor     .10000E-03    41.242       -.15200E-05** at limit **
  20  Prefactor     12.167        30.786       -.12934E-04    .28847E-04
  21  Prefactor     26.740        27.659        .82614E-06    .22608E-04
  22  Prefactor     11.513        9.9875        .90807E-07   -.13854E-04
  23  Prefactor     33.946        25.294       -.11518E-05    .11937E-04
  24  Normalizat    1.1625        .31743        .25158E-05    .12478E-03
  25  Prefactor     .76901        .15930        .43623E-05    .38905E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 37.9267
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 14.3558
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.59392
  Prefactor  = 8.25455
  norm       = 6.59356
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 109.843
  Prefactor  = 0.0001
  Prefactor  = 8.3021
  Prefactor  = 4.66694
  Prefactor  = 1.00426
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.1668
  Prefactor  = 26.7401
  Prefactor  = 11.5125
  Prefactor  = 33.9457
  Normalizat = 1.16255
  Prefactor  = 0.769006
 **********
 **   18 **HESSE 
 **********

 FCN=   5801.788     FROM HESSE     STATUS=OK           425 CALLS     3330 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     37.927        67.952        .65039E-04   -1.4475    
   2  norm          .10000E-03    .34381        .43217E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    7.3595        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    4.1289        .15057E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     14.356        25.011        .10571E-03   -1.4950    
   6  Prefactor     .10000E-03    85.476        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    7.1698        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     5.5939        .71106        .20969E-04   -1.5235    
   9  Prefactor     8.2545        13.836        .13955E-03   -1.5133    
  10  norm          6.5936        2.1627        .61221E-04   -1.5194    
  11  Prefactor     .10000E-03    24.881        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    .88368        .69721E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     109.84        66.625        .38378E-04   -1.3608    
  14  Prefactor     .10000E-03    7.5284        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     8.3021        33.500        .13908E-03   -1.5132    
  16  Prefactor     4.6669        .51861        .16670E-04   -1.5276    
  17  Prefactor     1.0043        59.729        .44875E-02   -1.5508    
  18  Prefactor     .10000E-03    11.614        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    41.806        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     12.167        30.803        .11479E-03   -1.5010    
  21  Prefactor     26.740        27.659        .77472E-04   -1.4673    
  22  Prefactor     11.513        10.000        .11806E-03   -1.5029    
  23  Prefactor     33.946        25.313        .34388E-03   -1.4542    
  24  Normalizat    1.1625        .37074        .40983E-03   -.87768    
  25  Prefactor     .76901        .18608        .25526E-03   -1.0088    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.69707e-08
Minuit parameter uncertainties:
  1  68.0908
  2  1.60508e-06
  3  4.68751e-06
  4  9.92582e-06
  5  25.0293
  6  9.6915e-05
  7  4.35013e-06
  8  0.711061
  9  13.8414
  10  2.16271
  11  6.01195e-05
  12  3.00852e-06
  13  66.6702
  14  1.89739e-05
  15  33.3864
  16  0.518608
  17  15.5053
  18  5.69053e-05
  19  0.000243309
  20  30.8436
  21  27.672
  22  10.0015
  23  25.3214
  24  0.371577
  25  0.186228
Done.

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

Extracting fit parameters...

4FGL J2243.9+2021
   Spectrum: LogParabola
288         norm:  1.000e-04  3.009e-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.690e-01  1.862e-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.163e+00  3.716e-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: 5.23e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.79e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/449947/likelihoodResults_490492801_490752001_4FGL_J2243.9+2021_daily_bin969.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) = 5801.78826063
delta logL = -2.64047230303e-07

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5801.7882604
delta logL = -3.15294528264e-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.7091       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1625       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .76907       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=   5801.788     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      235 TOTAL
                     EDM=   .18E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1.7108        .69763E-03** at limit **
   2  alpha         1.6419        3.3111        .17646       -.74090E-08
   3  Normalizat    1.1625        .35047        .40983E-03   -.27740E-06
   4  Prefactor     .76901        .18282        .25526E-03   -.24496E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.64193
  Normalizat = 1.16254
  Prefactor  = 0.769008
 **********
 **   18 **HESSE 
 **********

 FCN=   5801.788     FROM HESSE     STATUS=OK            23 CALLS      258 TOTAL
                     EDM=   .66E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    .88791        .13953E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.6419        3.9081        .70584E-02   -.35035    
   3  Normalizat    1.1625        .35085        .16393E-04   -.87768    
   4  Prefactor     .76901        .18302        .10210E-04   -1.0088    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.57858e-13
Minuit parameter uncertainties:
  1  1.29868e-06
  2  100.34
  3  0.351556
  4  0.183163
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/449947': 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) = 5801.7882601
delta logL = 2.66067218035e-07

Extracting fit parameters...

4FGL J2243.9+2021
   Spectrum: LogParabola
288         norm:  1.000e-04  1.299e-06  1.000e-04  1.000e+04 ( 1.000e-12)
289        alpha:  1.642e+00  1.003e+02  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.690e-01  1.832e-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.163e+00  3.516e-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/449947/cmap_HighResolution_490492801_490752001_4FGL_J2243.9+2021_daily_bin969.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.79e-05', job_status='DONE', photon_flux_upper_limit='5.23e-08', time_completed='2021-09-28 19:31:09.042127', job_id='449947', GAL2='0.77', fit_tolerance='1e-08', EG2='1.16', EG='1.16', time_epoch_completed='1632882669.04', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.77', dlogl='2.66e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.72' WHERE bin_id='969' AND source_name='4FGL J2243.9+2021' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 19:31:09 PDT 2021


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

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2243.9+2021_daily_bin969 340.99 20.3565 490492801 490752001 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 :                                   695.41 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             256.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   919 sec.
    Turnaround time :                            920 sec.

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

