/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 68 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 = 7406
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2243.9+2021_daily_bin45
RA = 340.99, Dec = 20.3565
tmin = 250992001, tmax = 251251201
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='446580', job_status='RUN', time_executed='2021-09-28 19:06:47.915591', time_epoch_executed='1632881207.92' WHERE source_name='4FGL J2243.9+2021' and cadence='daily' and bin_id='45'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/446580

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/446580/ft1_4FGL_J2243.9+2021_daily_bin45.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/446580/ft2_4FGL_J2243.9+2021_daily_bin45.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/446580/ft1_4FGL_J2243.9+2021_daily_bin45.fits outfile=/scratch/kocevski/446580/ft1_filteredMKT_4FGL_J2243.9+2021_daily_bin45.fits ra=340.99 dec=20.3565 rad=12.0 tmin=250992001.0 tmax=251251201.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 1.45
user 1.24
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/446580/ft2_4FGL_J2243.9+2021_daily_bin45.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/446580/ft1_filteredMKT_4FGL_J2243.9+2021_daily_bin45.fits evtable="EVENTS" outfile="/scratch/kocevski/446580/ft1_filtered_4FGL_J2243.9+2021_daily_bin45.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.51
user 0.33
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/446580/ft1_filtered_4FGL_J2243.9+2021_daily_bin45.fits" evtable="EVENTS" scfile=/scratch/kocevski/446580/ft2_4FGL_J2243.9+2021_daily_bin45.fits sctable="SC_DATA" outfile=/scratch/kocevski/446580/ltcube_250992001_251251201_4FGL_J2243.9+2021_daily_bin45.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/446580/ft2_4FGL_J2243.9+2021_daily_bin45.fits
.....................!
real 12.72
user 12.31
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/446580/ft1_filtered_4FGL_J2243.9+2021_daily_bin45.fits evtable="EVENTS" scfile=/scratch/kocevski/446580/ft2_4FGL_J2243.9+2021_daily_bin45.fits sctable="SC_DATA" expcube=/scratch/kocevski/446580/ltcube_250992001_251251201_4FGL_J2243.9+2021_daily_bin45.fits outfile=/scratch/kocevski/446580/expmap_250992001_251251201_4FGL_J2243.9+2021_daily_bin45.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/446580/ltcube_250992001_251251201_4FGL_J2243.9+2021_daily_bin45.fits
.....................!
real 189.44
user 184.36
sys 4.70

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/446580/ft1_filtered_4FGL_J2243.9+2021_daily_bin45.fits scfile=/scratch/kocevski/446580/ft2_4FGL_J2243.9+2021_daily_bin45.fits outfile=/scratch/kocevski/446580/cmap_250992001_251251201_4FGL_J2243.9+2021_daily_bin45.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.54
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/446580/ft1_filtered_4FGL_J2243.9+2021_daily_bin45.fits scfile=/scratch/kocevski/446580/ft2_4FGL_J2243.9+2021_daily_bin45.fits outfile=/scratch/kocevski/446580/cmap_HighResolution_250992001_251251201_4FGL_J2243.9+2021_daily_bin45.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.54
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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      '    1.2069       1.0000         .10000E-03   10000.    
     3 'Prefactor '    21.167       1.0000         .10000E-03   10000.    
     4 'norm      '    .10022E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.5005       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.4621       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .19247       1.0000         .10000E-03   10000.    
     9 'Prefactor '    5.9225       1.0000         .10000E-03   10000.    
    10 'norm      '    1.4671       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .43116       1.0000         .10000E-03   10000.    
    13 'Prefactor '    27.323       1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.9761       1.0000         .10000E-03   10000.    
    15 'Prefactor '    25.208       1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.7900       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .96011       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    17.442       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.3975       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .75466       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=   9929.281     FROM MIGRAD    STATUS=CONVERGED    568 CALLS     2493 TOTAL
                     EDM=   .74E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    10.808        .45394E-06** at limit **
   2  norm          1.2068        .83187       -.68450E-07   -.31646E-03
   3  Prefactor     21.165        13.000        .58432E-06   -.13305E-03
   4  norm          .10000E-03    2.6543       -.12252E-07** at limit **
   5  Prefactor     3.5005        6.1334        .98213E-07   -.52023E-04
   6  Prefactor     .10000E-03    52.216       -.23160E-05** at limit **
   7  Prefactor     1.4518        20.441        .13856E-04   -.33530E-04
   8  Prefactor     .19246        .12017        .10462E-07    .37655E-04
   9  Prefactor     5.9228        5.5091        .25620E-07   -.38491E-05
  10  norm          1.4668        1.0093        .48859E-07   -.30607E-03
  11  Prefactor     .10000E-03    6.5536        .62435E-05** at limit **
  12  norm          .43011        .96550       -.77235E-07   -.40560E-03
  13  Prefactor     27.321        27.068       -.24252E-05   -.37484E-05
  14  Prefactor     3.9767        5.7414       -.54204E-07   -.36498E-04
  15  Prefactor     25.206        23.103       -.15553E-05    .26402E-05
  16  Prefactor     1.7900        .23607        .43690E-07   -.16126E-02
  17  Prefactor     .10000E-03    3.6034       -.17662E-07** at limit **
  18  Prefactor     .96327        .52029       -.12499E-06   -.31623E-03
  19  Prefactor     .10000E-03    4.2983        .47997E-06** at limit **
  20  Prefactor     .10000E-03    7.5637       -.45376E-05** at limit **
  21  Prefactor     .10000E-03    5.6127       -.28450E-05** at limit **
  22  Prefactor     .10000E-03    1.3553       -.10236E-06** at limit **
  23  Prefactor     17.441        14.495       -.61956E-07   -.53649E-05
  24  Normalizat    1.3976        .20430       -.19853E-05   -.10832E-03
  25  Prefactor     .75456        .10293        .29722E-06   -.33762E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 1.20684
  Prefactor  = 21.1648
  norm       = 0.0001
  Prefactor  = 3.50052
  Prefactor  = 0.0001
  Prefactor  = 1.4518
  Prefactor  = 0.192464
  Prefactor  = 5.92277
  norm       = 1.46684
  Prefactor  = 0.0001
  norm       = 0.430111
  Prefactor  = 27.3209
  Prefactor  = 3.97669
  Prefactor  = 25.2057
  Prefactor  = 1.79002
  Prefactor  = 0.0001
  Prefactor  = 0.963267
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 17.4412
  Normalizat = 1.39764
  Prefactor  = 0.754564
 **********
 **   18 **HESSE 
 **********

 FCN=   9929.281     FROM HESSE     STATUS=OK           435 CALLS     2928 TOTAL
                     EDM=   .68E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    10.811        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.2068        .81665        .72510E-04   -1.5488    
   3  Prefactor     21.165        12.971        .87060E-04   -1.4788    
   4  norm          .10000E-03    2.6934        .15844E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     3.5005        6.1343        .10805E-02   -1.5334    
   6  Prefactor     .10000E-03    52.254        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     1.4518        20.614        .35577E-03   -1.5467    
   8  Prefactor     .19246        .11767        .26164E-04   -1.5620    
   9  Prefactor     5.9228        5.5072        .16501E-03   -1.5221    
  10  norm          1.4668        .99565        .79601E-04   -1.5466    
  11  Prefactor     .10000E-03    6.5745        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .43011        .75997        .14205E-02   -1.5577    
  13  Prefactor     27.321        27.115        .76641E-04   -1.4662    
  14  Prefactor     3.9767        5.7126        .20227E-03   -1.5309    
  15  Prefactor     25.206        23.173        .79786E-04   -1.4703    
  16  Prefactor     1.7900        .24023        .15907E-04   -1.5440    
  17  Prefactor     .10000E-03    3.6117        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .96327        10.292        .26048E-02   -1.5512    
  19  Prefactor     .10000E-03    4.3096        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    7.5666        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    5.6145        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    1.3579        .11326E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     17.441        14.505        .95901E-04   -1.4872    
  24  Normalizat    1.3976        .24184        .31346E-03   -.80697    
  25  Prefactor     .75456        .12290        .21720E-03   -1.0143    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.8177e-09
Minuit parameter uncertainties:
  1  1.20184e-06
  2  0.816661
  3  12.9728
  4  1.67772e-05
  5  6.13542
  6  1.76806e-05
  7  10.9455
  8  0.11767
  9  5.50768
  10  0.995663
  11  2.03929e-08
  12  0.759983
  13  27.1274
  14  5.71339
  15  23.1808
  16  0.240229
  17  2.42706e-06
  18  6.29844
  19  4.61971e-06
  20  9.9571e-06
  21  2.2187e-06
  22  1.65535e-06
  23  14.5079
  24  0.242042
  25  0.122944
Done.

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

Extracting fit parameters...

4FGL J2243.9+2021
   Spectrum: LogParabola
288         norm:  4.301e-01  7.600e-01  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.546e-01  1.229e-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.398e+00  2.420e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/446580/likelihoodResults_250992001_251251201_4FGL_J2243.9+2021_daily_bin45.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) = 9929.27630198
delta logL = 0.00508414843716

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9929.27624599
delta logL = 0.00514013880638

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .43801       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.6128       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3981       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .75447       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   9929.276     FROM MIGRAD    STATUS=CONVERGED     94 CALLS      253 TOTAL
                     EDM=   .68E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .43811        .77269        .14395E-02    .70672E-02
   2  alpha         1.6128        .97364        .35479E-01   -.25199E-05
   3  Normalizat    1.3981        .22684        .31342E-03    .47880E-06
   4  Prefactor     .75447        .12035        .21721E-03    .77463E-06
                               ERR DEF=  .500    
Final values: 
  norm       = 0.438111
  alpha      = 1.61277
  Normalizat = 1.39807
  Prefactor  = 0.754473
 **********
 **   18 **HESSE 
 **********

 FCN=   9929.276     FROM HESSE     STATUS=OK            27 CALLS      280 TOTAL
                     EDM=   .11E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .43811        .76816        .28791E-03   -1.5576    
   2  alpha         1.6128        .97032        .14192E-02   -.36280    
   3  Normalizat    1.3981        .22702        .62684E-04   -.80685    
   4  Prefactor     .75447        .12046        .43442E-04   -1.0143    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.11442e-11
Minuit parameter uncertainties:
  1  0.768178
  2  1.0006
  3  0.227187
  4  0.1205
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/446580': 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) = 9929.27624597
delta logL = 0.00514014899454

Extracting fit parameters...

4FGL J2243.9+2021
   Spectrum: LogParabola
288         norm:  4.381e-01  7.682e-01  1.000e-04  1.000e+04 ( 1.000e-12)
289        alpha:  1.613e+00  1.001e+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:  7.545e-01  1.205e-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.398e+00  2.272e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.52
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/446580/cmap_HighResolution_250992001_251251201_4FGL_J2243.9+2021_daily_bin45.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.43e-05', job_status='DONE', photon_flux_upper_limit='3.42e-08', time_completed='2021-09-28 19:20:54.382818', job_id='446580', GAL2='0.75', fit_tolerance='1e-08', EG2='1.40', EG='1.40', time_epoch_completed='1632882054.38', return_code2='0', ts='0.52', comment='SUCCESS', return_code='0', GAL='0.75', dlogl='5.14e-03', ts2='0.53', photon_index_error='0.00', photon_index='1.72' WHERE bin_id='45' AND source_name='4FGL J2243.9+2021' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 19:20:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0222>
Subject: Job 446580: <4FGL_J2243.9+2021_daily_bin45> in cluster <slac> Done

Job <4FGL_J2243.9+2021_daily_bin45> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Sep 28 19:05:29 2021
Job was executed on host(s) <bullet0222>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 19:05: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:05:30 2021
Terminated at Tue Sep 28 19:20:54 2021
Results reported at Tue Sep 28 19:20:54 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2243.9+2021_daily_bin45 340.99 20.3565 250992001 251251201 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 :                                   845.14 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             347.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   924 sec.
    Turnaround time :                            925 sec.

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

