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


Performing analysis on: 4FGL_J2243.9+2021_daily_bin1572
RA = 340.99, Dec = 20.3565
tmin = 646790401, tmax = 647049601
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='453867', job_status='RUN', time_executed='2021-09-28 19:30:36.933557', time_epoch_executed='1632882636.93' WHERE source_name='4FGL J2243.9+2021' and cadence='daily' and bin_id='1572'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/453867

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/453867/ft1_4FGL_J2243.9+2021_daily_bin1572.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/453867/ft2_4FGL_J2243.9+2021_daily_bin1572.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/453867/ft1_4FGL_J2243.9+2021_daily_bin1572.fits outfile=/scratch/kocevski/453867/ft1_filteredMKT_4FGL_J2243.9+2021_daily_bin1572.fits ra=340.99 dec=20.3565 rad=12.0 tmin=646790401.0 tmax=647049601.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.82
user 3.38
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/453867/ft2_4FGL_J2243.9+2021_daily_bin1572.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/453867/ft1_filteredMKT_4FGL_J2243.9+2021_daily_bin1572.fits evtable="EVENTS" outfile="/scratch/kocevski/453867/ft1_filtered_4FGL_J2243.9+2021_daily_bin1572.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/453867/ft1_filtered_4FGL_J2243.9+2021_daily_bin1572.fits" evtable="EVENTS" scfile=/scratch/kocevski/453867/ft2_4FGL_J2243.9+2021_daily_bin1572.fits sctable="SC_DATA" outfile=/scratch/kocevski/453867/ltcube_646790401_647049601_4FGL_J2243.9+2021_daily_bin1572.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/453867/ft2_4FGL_J2243.9+2021_daily_bin1572.fits
.....................!
real 11.71
user 11.33
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/453867/ft1_filtered_4FGL_J2243.9+2021_daily_bin1572.fits evtable="EVENTS" scfile=/scratch/kocevski/453867/ft2_4FGL_J2243.9+2021_daily_bin1572.fits sctable="SC_DATA" expcube=/scratch/kocevski/453867/ltcube_646790401_647049601_4FGL_J2243.9+2021_daily_bin1572.fits outfile=/scratch/kocevski/453867/expmap_646790401_647049601_4FGL_J2243.9+2021_daily_bin1572.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/453867/ltcube_646790401_647049601_4FGL_J2243.9+2021_daily_bin1572.fits
.....................!
real 191.26
user 186.04
sys 4.88

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/453867/ft1_filtered_4FGL_J2243.9+2021_daily_bin1572.fits scfile=/scratch/kocevski/453867/ft2_4FGL_J2243.9+2021_daily_bin1572.fits outfile=/scratch/kocevski/453867/cmap_646790401_647049601_4FGL_J2243.9+2021_daily_bin1572.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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/453867/ft1_filtered_4FGL_J2243.9+2021_daily_bin1572.fits scfile=/scratch/kocevski/453867/ft2_4FGL_J2243.9+2021_daily_bin1572.fits outfile=/scratch/kocevski/453867/cmap_HighResolution_646790401_647049601_4FGL_J2243.9+2021_daily_bin1572.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/453867/ft1_filtered_4FGL_J2243.9+2021_daily_bin1572.fits evtable="EVENTS" scfile=/scratch/kocevski/453867/ft2_4FGL_J2243.9+2021_daily_bin1572.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/453867/Model_4FGL_J2243.9+2021_daily_bin1572.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/453867/ft1_filtered_4FGL_J2243.9+2021_daily_bin1572.fits.....................!
real 87.16
user 85.81
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11720E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10683       1.0000         .10000E-03   10000.    
     3 'Prefactor '    9.5591       1.0000         .10000E-03   10000.    
     4 'norm      '    5.8677       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10189E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    78.742       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .33037       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10061E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    12.081       1.0000         .10000E-03   10000.    
    12 'norm      '    .86993E-01   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10297E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    25.594       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .60547       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10051E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .73082       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .43295E-01   1.0000         .10000E-03   10000.    
    21 'Prefactor '    12.769       1.0000         .10000E-03   10000.    
    22 'Prefactor '    6.0097       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .83689       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.1099       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=   8550.002     FROM MIGRAD    STATUS=CONVERGED    619 CALLS     3064 TOTAL
                     EDM=   .21E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    75.212       -.16140E-06** at limit **
   2  norm          .10698        .35596        .25805E-06   -.73679E-03
   3  Prefactor     9.5613        11.527        .17335E-05   -.67103E-04
   4  norm          5.8686        5.2124        .14816E-06   -.67678E-04
   5  Prefactor     .10000E-03    25.400        .32624E-06** at limit **
   6  Prefactor     78.660        69.027       -.90308E-06   -.16969E-03
   7  Prefactor     .10000E-03    10.628        .18680E-07** at limit **
   8  Prefactor     .33041        .16694        .21892E-07   -.21912E-03
   9  Prefactor     .10000E-03    1.9337        .77608E-08** at limit **
  10  norm          .10000E-03    .35817       -.13403E-06** at limit **
  11  Prefactor     12.079        11.524        .99435E-07    .10211E-04
  12  norm          .90682E-01    1.0180        .29670E-06   -.45373E-03
  13  Prefactor     .10000E-03    55.403        .35856E-06** at limit **
  14  Prefactor     25.591        12.378       -.13932E-06   -.11425E-03
  15  Prefactor     .10000E-03    5.6669        .10374E-07** at limit **
  16  Prefactor     .60552        .15446       -.10686E-07   -.15806E-02
  17  Prefactor     .10000E-03    6.2462        .10586E-06** at limit **
  18  Prefactor     .73000        4.9251        .38154E-05   -.82597E-04
  19  Prefactor     .10000E-03    12.186        .10020E-06** at limit **
  20  Prefactor     .10023E-03    12.918        .12106E-05** at limit **
  21  Prefactor     12.728        24.542        .64062E-07   -.35512E-04
  22  Prefactor     6.0108        5.2901        .12597E-06   -.82198E-04
  23  Prefactor     .10000E-03    7.2128        .49130E-07** at limit **
  24  Normalizat    .83696        .21328       -.12639E-05   -.20787E-03
  25  Prefactor     1.1098        .11507       -.15129E-06   -.37061E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.106978
  Prefactor  = 9.56125
  norm       = 5.86856
  Prefactor  = 0.0001
  Prefactor  = 78.6602
  Prefactor  = 0.0001
  Prefactor  = 0.330408
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 12.0792
  norm       = 0.0906822
  Prefactor  = 0.0001
  Prefactor  = 25.5907
  Prefactor  = 0.0001
  Prefactor  = 0.605517
  Prefactor  = 0.0001
  Prefactor  = 0.730003
  Prefactor  = 0.0001
  Prefactor  = 0.000100235
  Prefactor  = 12.7277
  Prefactor  = 6.0108
  Prefactor  = 0.0001
  Normalizat = 0.836957
  Prefactor  = 1.1098
 **********
 **   18 **HESSE 
 **********

 FCN=   8550.002     FROM HESSE     STATUS=OK           439 CALLS     3503 TOTAL
                     EDM=   .88E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    76.549        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10698        .42697        .95906E-03   -1.5643    
   3  Prefactor     9.5613        11.537        .64808E-03   -1.5089    
   4  norm          5.8686        5.2019        .16579E-03   -1.5223    
   5  Prefactor     .10000E-03    26.340        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     78.660        68.940        .22628E-03   -1.3932    
   7  Prefactor     .10000E-03    10.811        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .33041        .16484        .25695E-04   -1.5593    
   9  Prefactor     .10000E-03    1.9343        .12557E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    .36917        .10760E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     12.079        11.520        .11525E-03   -1.5013    
  12  norm          .90682E-01    2.9402        .17363E-02   -1.5648    
  13  Prefactor     .10000E-03    55.994        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     25.591        12.299        .79184E-04   -1.4696    
  15  Prefactor     .10000E-03    5.6748        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .60552        .15388        .17429E-04   -1.5552    
  17  Prefactor     .10000E-03    6.2966        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .73000        4.9740        .39857E-03   -1.5537    
  19  Prefactor     .10000E-03    12.426        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10023E-03    15.443        .96837E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     12.728        24.522        .11210E-03   -1.4994    
  22  Prefactor     6.0108        5.2921        .16379E-03   -1.5218    
  23  Prefactor     .10000E-03    7.2300        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .83696        .24563        .36692E-03   -.98712    
  25  Prefactor     1.1098        .13368        .18138E-03   -.89154    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.81574e-08
Minuit parameter uncertainties:
  1  0.000115147
  2  0.426986
  3  11.5397
  4  5.2023
  5  2.90962e-05
  6  69.0106
  7  8.85858e-06
  8  0.164844
  9  1.78635e-07
  10  1.84904e-06
  11  11.5226
  12  1.0322
  13  0.000100492
  14  12.3002
  15  5.71202e-07
  16  0.153878
  17  7.25303e-06
  18  3.81126
  19  1.25744e-06
  20  0.00380957
  21  24.541
  22  5.29247
  23  1.00747e-06
  24  0.245956
  25  0.133723
Done.

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

Extracting fit parameters...

4FGL J2243.9+2021
   Spectrum: LogParabola
288         norm:  9.068e-02  1.032e+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

GAL_V02
   Spectrum: PowerLaw
513    Prefactor:  1.110e+00  1.337e-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:  8.370e-01  2.460e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/453867/likelihoodResults_646790401_647049601_4FGL_J2243.9+2021_daily_bin1572.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) = 8549.96760662
delta logL = 0.0347220180884

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8549.94815452
delta logL = 0.0541741241777

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .22189       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.5995       1.0000          .0000       5.0000    
     3 'Normalizat'    .82905       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1106       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=   8549.948     FROM MIGRAD    STATUS=CONVERGED     98 CALLS      269 TOTAL
                     EDM=   .52E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .22132        1.2671        .12792E-03    .76431E-05
   2  alpha         2.6009        3.6255        .33595E-01    .68474E-05
   3  Normalizat    .82914        .23857        .36841E-03   -.86404E-06
   4  Prefactor     1.1106        .13341        .18128E-03   -.18814E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.22132
  alpha      = 2.6009
  Normalizat = 0.829137
  Prefactor  = 1.11062
 **********
 **   18 **HESSE 
 **********

 FCN=   8549.948     FROM HESSE     STATUS=OK            25 CALLS      294 TOTAL
                     EDM=   .57E-14    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .22132        .83865        .51168E-05   -1.5614    
   2  alpha         2.6009        1.8811        .13438E-02    .40370E-01
   3  Normalizat    .82914        .23775        .14736E-04   -.98997    
   4  Prefactor     1.1106        .13314        .72511E-05   -.89128    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.67635e-15
Minuit parameter uncertainties:
  1  0.83869
  2  2.12996
  3  0.238053
  4  0.133176
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/453867': 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) = 8549.94815402
delta logL = 0.0541746240215

Extracting fit parameters...

4FGL J2243.9+2021
   Spectrum: LogParabola
288         norm:  2.213e-01  8.387e-01  1.000e-04  1.000e+04 ( 1.000e-12)
289        alpha:  2.601e+00  2.130e+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.111e+00  1.332e-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:  8.291e-01  2.381e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.01
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/453867/cmap_HighResolution_646790401_647049601_4FGL_J2243.9+2021_daily_bin1572.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.42e-05', job_status='DONE', photon_flux_upper_limit='4.18e-08', time_completed='2021-09-28 19:44:35.237001', job_id='453867', GAL2='1.11', fit_tolerance='1e-08', EG2='0.83', EG='0.84', time_epoch_completed='1632883475.24', return_code2='0', ts='0.01', comment='SUCCESS', return_code='0', GAL='1.11', dlogl='5.42e-02', ts2='0.12', photon_index_error='0.00', photon_index='1.72' WHERE bin_id='1572' AND source_name='4FGL J2243.9+2021' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 19:44:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0098>
Subject: Job 453867: <4FGL_J2243.9+2021_daily_bin1572> in cluster <slac> Done

Job <4FGL_J2243.9+2021_daily_bin1572> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Tue Sep 28 19:30:26 2021
Job was executed on host(s) <bullet0098>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 19:30:27 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:30:27 2021
Terminated at Tue Sep 28 19:44:36 2021
Results reported at Tue Sep 28 19:44:36 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2243.9+2021_daily_bin1572 340.99 20.3565 646790401 647049601 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 :                                   833.37 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             361.07 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   848 sec.
    Turnaround time :                            850 sec.

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

