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


Performing analysis on: 4FGL_J2243.9+2021_daily_bin122
RA = 340.99, Dec = 20.3565
tmin = 270950401, tmax = 271209601
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='446691', job_status='RUN', time_executed='2021-09-28 19:09:23.757447', time_epoch_executed='1632881363.76' WHERE source_name='4FGL J2243.9+2021' and cadence='daily' and bin_id='122'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/446691

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/446691/ft1_4FGL_J2243.9+2021_daily_bin122.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/446691/ft2_4FGL_J2243.9+2021_daily_bin122.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/446691/ft1_4FGL_J2243.9+2021_daily_bin122.fits outfile=/scratch/kocevski/446691/ft1_filteredMKT_4FGL_J2243.9+2021_daily_bin122.fits ra=340.99 dec=20.3565 rad=12.0 tmin=270950401.0 tmax=271209601.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.59
user 1.43
sys 0.15

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/446691/ft1_filtered_4FGL_J2243.9+2021_daily_bin122.fits" evtable="EVENTS" scfile=/scratch/kocevski/446691/ft2_4FGL_J2243.9+2021_daily_bin122.fits sctable="SC_DATA" outfile=/scratch/kocevski/446691/ltcube_270950401_271209601_4FGL_J2243.9+2021_daily_bin122.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/446691/ft2_4FGL_J2243.9+2021_daily_bin122.fits
.....................!
real 12.22
user 11.91
sys 0.28

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/446691/ft1_filtered_4FGL_J2243.9+2021_daily_bin122.fits evtable="EVENTS" scfile=/scratch/kocevski/446691/ft2_4FGL_J2243.9+2021_daily_bin122.fits sctable="SC_DATA" expcube=/scratch/kocevski/446691/ltcube_270950401_271209601_4FGL_J2243.9+2021_daily_bin122.fits outfile=/scratch/kocevski/446691/expmap_270950401_271209601_4FGL_J2243.9+2021_daily_bin122.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/446691/ltcube_270950401_271209601_4FGL_J2243.9+2021_daily_bin122.fits
.....................!
real 191.51
user 186.77
sys 4.42

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/446691/ft1_filtered_4FGL_J2243.9+2021_daily_bin122.fits scfile=/scratch/kocevski/446691/ft2_4FGL_J2243.9+2021_daily_bin122.fits outfile=/scratch/kocevski/446691/cmap_270950401_271209601_4FGL_J2243.9+2021_daily_bin122.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.37
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/446691/ft1_filtered_4FGL_J2243.9+2021_daily_bin122.fits scfile=/scratch/kocevski/446691/ft2_4FGL_J2243.9+2021_daily_bin122.fits outfile=/scratch/kocevski/446691/cmap_HighResolution_270950401_271209601_4FGL_J2243.9+2021_daily_bin122.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/446691/ft1_filtered_4FGL_J2243.9+2021_daily_bin122.fits evtable="EVENTS" scfile=/scratch/kocevski/446691/ft2_4FGL_J2243.9+2021_daily_bin122.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/446691/Model_4FGL_J2243.9+2021_daily_bin122.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/446691/ft1_filtered_4FGL_J2243.9+2021_daily_bin122.fits.....................!
real 97.12
user 95.77
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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      '    7.3951       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .67814       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    7.0923       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .11489       1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.9778       1.0000         .10000E-03   10000.    
    10 'norm      '    1.6923       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .95005       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.1010       1.0000         .10000E-03   10000.    
    17 'Prefactor '    5.6238       1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.9174       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    7.0027       1.0000         .10000E-03   10000.    
    21 'Prefactor '    14.711       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10433E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .91304       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .98432       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=   9323.919     FROM MIGRAD    STATUS=CONVERGED    561 CALLS     2872 TOTAL
                     EDM=   .56E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    22.450        .31842E-06** at limit **
   2  norm          7.3952        1.5108       -.15419E-07   -.10414E-03
   3  Prefactor     .10000E-03    15.112        .30773E-05** at limit **
   4  norm          .67863        2.9309        .16214E-05   -.67207E-03
   5  Prefactor     .10000E-03    6.7948       -.24378E-06** at limit **
   6  Prefactor     .10000E-03    22.859       -.15753E-05** at limit **
   7  Prefactor     7.0921        9.7103       -.69913E-07   -.71723E-04
   8  Prefactor     .11490        .12897        .18760E-07   -.48920E-03
   9  Prefactor     4.9779        5.1826        .15315E-09   -.29175E-04
  10  norm          1.6922        1.0966        .15308E-07   -.26662E-04
  11  Prefactor     .10000E-03    13.873       -.61242E-06** at limit **
  12  norm          .95016        .85350       -.71140E-08    .13149E-03
  13  Prefactor     .10000E-03    10.664       -.74257E-06** at limit **
  14  Prefactor     .10000E-03    5.5970        .17614E-07** at limit **
  15  Prefactor     .10000E-03    10.412       -.17858E-06** at limit **
  16  Prefactor     3.1010        .28477       -.33316E-08   -.10484E-02
  17  Prefactor     5.6242        6.7380        .33945E-07   -.37105E-04
  18  Prefactor     3.9176        3.6490        .67839E-06    .72345E-03
  19  Prefactor     .10000E-03    4.6557        .68052E-08** at limit **
  20  Prefactor     7.0021        18.874       -.60818E-06   -.78062E-04
  21  Prefactor     14.712        21.453        .18419E-06    .10341E-05
  22  Prefactor     .10001E-03    3.2441        .10245E-05** at limit **
  23  Prefactor     .10000E-03    11.296       -.20364E-05** at limit **
  24  Normalizat    .91299        .21834       -.38374E-06   -.15518E-03
  25  Prefactor     .98433        .11500       -.90594E-08   -.23806E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 7.39515
  Prefactor  = 0.000100003
  norm       = 0.678631
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 7.0921
  Prefactor  = 0.114898
  Prefactor  = 4.97791
  norm       = 1.69217
  Prefactor  = 0.0001
  norm       = 0.95016
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.101
  Prefactor  = 5.62421
  Prefactor  = 3.91757
  Prefactor  = 0.0001
  Prefactor  = 7.00205
  Prefactor  = 14.7118
  Prefactor  = 0.000100009
  Prefactor  = 0.000100001
  Normalizat = 0.912985
  Prefactor  = 0.984331
 **********
 **   18 **HESSE 
 **********

 FCN=   9323.919     FROM HESSE     STATUS=OK           433 CALLS     3305 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    22.475        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          7.3952        1.5115        .51739E-04   -1.5164    
   3  Prefactor     .10000E-03    16.006        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .67863        4.9790        .41204E-03   -1.5543    
   5  Prefactor     .10000E-03    6.8390        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    23.071        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     7.0921        9.7052        .15063E-03   -1.5175    
   8  Prefactor     .11490        .11613        .35159E-03   -1.5640    
   9  Prefactor     4.9779        5.1726        .18025E-03   -1.5262    
  10  norm          1.6922        1.0967        .32355E-04   -1.5448    
  11  Prefactor     .10000E-03    13.927        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .95016        .92585        .82462E-03   -1.5513    
  13  Prefactor     .10000E-03    10.712        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    5.6454        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    10.441        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     3.1010        .28585        .14733E-04   -1.5356    
  17  Prefactor     5.6242        6.7363        .16940E-03   -1.5234    
  18  Prefactor     3.9176        3.7581        .17801E-03   -1.5312    
  19  Prefactor     .10000E-03    4.6654        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     7.0021        18.935        .15160E-03   -1.5179    
  21  Prefactor     14.712        21.453        .10443E-03   -1.4941    
  22  Prefactor     .10001E-03    9.4966        .31301E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    11.716        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .91299        .25464        .38580E-03   -.96005    
  25  Prefactor     .98433        .13604        .20417E-03   -.93254    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.39271e-09
Minuit parameter uncertainties:
  1  5.3445e-05
  2  1.51148
  3  0.000415659
  4  3.67653
  5  2.15876e-05
  6  0.000268211
  7  9.70733
  8  0.116132
  9  5.17302
  10  1.0967
  11  7.92298e-05
  12  0.925865
  13  8.5655e-05
  14  1.54259e-06
  15  2.09637e-05
  16  0.285851
  17  6.73722
  18  3.75835
  19  7.85315e-07
  20  18.9511
  21  21.4641
  22  0.000590785
  23  0.000254719
  24  0.254978
  25  0.136091
Done.

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

Extracting fit parameters...

4FGL J2243.9+2021
   Spectrum: LogParabola
288         norm:  9.502e-01  9.259e-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:  9.843e-01  1.361e-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:  9.130e-01  2.550e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.05
Ra Dec: 340.990 20.357
Photon Index (Fixed Index): 1.72 +/- 0.00
Photon Flux (Fixed Index): 1.07e-08 +/- 1.05e-08
Energy Flux (Fixed Index): 1.39e-05 +/- 1.36e-05

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) = 9323.76106886
delta logL = 0.15766767805

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9323.75135036
delta logL = 0.167386182529

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .81494       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.2588       1.0000          .0000       5.0000    
     3 'Normalizat'    .91597       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98428       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5160E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   9323.751     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      203 TOTAL
                     EDM=   .21E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .81470        .87320        .18057E-01   -.11334E-02
   2  alpha         1.2587        .67946        .50000       -.48696E-04
   3  Normalizat    .91571        .20803        .87014E-01   -.16276E-03
   4  Prefactor     .98438        .11445        .46070E-01   -.23562E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.8147
  alpha      = 1.25871
  Normalizat = 0.915708
  Prefactor  = 0.984382
 **********
 **   18 **HESSE 
 **********

 FCN=   9323.751     FROM HESSE     STATUS=OK            33 CALLS      236 TOTAL
                     EDM=   .19E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .81470        .91910        .77099E-03   -1.5527    
   2  alpha         1.2587        .73147        .25335E-01   -.51958    
   3  Normalizat    .91571        .24468        .38532E-03   -.95910    
   4  Prefactor     .98438        .13508        .20418E-03   -.93252    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.88063e-10
Minuit parameter uncertainties:
  1  0.919117
  2  0.746084
  3  0.244978
  4  0.135125
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/446691': 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) = 9323.75134964
delta logL = 0.16738690483

Extracting fit parameters...

4FGL J2243.9+2021
   Spectrum: LogParabola
288         norm:  8.147e-01  9.191e-01  1.000e-04  1.000e+04 ( 1.000e-12)
289        alpha:  1.259e+00  7.461e-01  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:  9.844e-01  1.351e-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:  9.157e-01  2.450e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.38
Ra Dec: 340.990 20.357
Photon Index (Free Index): 1.26 +/- 0.75
Photon Flux (Free Index): 6.27e-09 +/- 7.96e-09
Energy Flux (Free Index): 2.75e-05 +/- 4.37e-05

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/446691/cmap_HighResolution_270950401_271209601_4FGL_J2243.9+2021_daily_bin122.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.07e-08', energy_flux2='2.75e-05', photon_flux_error='1.05e-08', dlogl='1.67e-01', energy_flux='1.39e-05', photon_flux2='6.27e-09', job_status='DONE', time_completed='2021-09-28 19:22:08.515810', photon_index_error2='0.75', photon_index2='1.26', ts='6.05', fit_tolerance='1e-08', GAL='0.98', photon_index_error='0.00', energy_flux_error2='4.37e-05', EG='0.91', time_epoch_completed='1632882128.52', return_code='0', job_id='446691', GAL2='0.98', EG2='0.92', return_code2='0', energy_flux_error='1.36e-05', photon_flux_error2='7.96e-09', ts2='6.38', photon_index='1.72' WHERE bin_id='122' AND source_name='4FGL J2243.9+2021' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 19:22:08 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0272>
Subject: Job 446691: <4FGL_J2243.9+2021_daily_bin122> in cluster <slac> Done

Job <4FGL_J2243.9+2021_daily_bin122> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Sep 28 19:05:37 2021
Job was executed on host(s) <bullet0272>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 19:05:38 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:38 2021
Terminated at Tue Sep 28 19:22:09 2021
Results reported at Tue Sep 28 19:22:09 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2243.9+2021_daily_bin122 340.99 20.3565 270950401 271209601 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 :                                   764.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             295.39 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   990 sec.
    Turnaround time :                            992 sec.

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

