/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 179 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 = 7400
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2243.9+2021_daily_bin403
RA = 340.99, Dec = 20.3565
tmin = 343785601, tmax = 344044801
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='448131', job_status='RUN', time_executed='2021-09-28 19:13:47.339058', time_epoch_executed='1632881627.34' WHERE source_name='4FGL J2243.9+2021' and cadence='daily' and bin_id='403'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/448131

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/448131/ft1_4FGL_J2243.9+2021_daily_bin403.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/448131/ft2_4FGL_J2243.9+2021_daily_bin403.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/448131/ft1_4FGL_J2243.9+2021_daily_bin403.fits outfile=/scratch/kocevski/448131/ft1_filteredMKT_4FGL_J2243.9+2021_daily_bin403.fits ra=340.99 dec=20.3565 rad=12.0 tmin=343785601.0 tmax=344044801.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.41
user 3.19
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/448131/ft1_filtered_4FGL_J2243.9+2021_daily_bin403.fits" evtable="EVENTS" scfile=/scratch/kocevski/448131/ft2_4FGL_J2243.9+2021_daily_bin403.fits sctable="SC_DATA" outfile=/scratch/kocevski/448131/ltcube_343785601_344044801_4FGL_J2243.9+2021_daily_bin403.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/448131/ft2_4FGL_J2243.9+2021_daily_bin403.fits
.....................!
real 11.75
user 11.38
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/448131/ft1_filtered_4FGL_J2243.9+2021_daily_bin403.fits evtable="EVENTS" scfile=/scratch/kocevski/448131/ft2_4FGL_J2243.9+2021_daily_bin403.fits sctable="SC_DATA" expcube=/scratch/kocevski/448131/ltcube_343785601_344044801_4FGL_J2243.9+2021_daily_bin403.fits outfile=/scratch/kocevski/448131/expmap_343785601_344044801_4FGL_J2243.9+2021_daily_bin403.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/448131/ltcube_343785601_344044801_4FGL_J2243.9+2021_daily_bin403.fits
.....................!
real 190.11
user 185.33
sys 4.48

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/448131/ft1_filtered_4FGL_J2243.9+2021_daily_bin403.fits scfile=/scratch/kocevski/448131/ft2_4FGL_J2243.9+2021_daily_bin403.fits outfile=/scratch/kocevski/448131/cmap_343785601_344044801_4FGL_J2243.9+2021_daily_bin403.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.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/448131/ft1_filtered_4FGL_J2243.9+2021_daily_bin403.fits scfile=/scratch/kocevski/448131/ft2_4FGL_J2243.9+2021_daily_bin403.fits outfile=/scratch/kocevski/448131/cmap_HighResolution_343785601_344044801_4FGL_J2243.9+2021_daily_bin403.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.55
user 0.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .49748       1.0000         .10000E-03   10000.    
     3 'Prefactor '    9.6037       1.0000         .10000E-03   10000.    
     4 'norm      '    .53093E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.8635       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .72596       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10079E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    2.1462       1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.9177       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10073E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    6.0590       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    8.2020       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10460E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    2.0722       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.1698       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .95599       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=   7546.369     FROM MIGRAD    STATUS=CONVERGED    575 CALLS     2507 TOTAL
                     EDM=   .41E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    14.944        .71212E-06** at limit **
   2  norm          .49714        .75936        .26877E-06    .31845E-03
   3  Prefactor     9.6033        8.8088       -.82583E-08   -.12865E-04
   4  norm          .10000E-03    2.5334        .34545E-07** at limit **
   5  Prefactor     .10000E-03    6.5163        .51908E-06** at limit **
   6  Prefactor     5.8638        158.63        .91603E-06    .26061E-05
   7  Prefactor     .10000E-03    3.7346        .83461E-06** at limit **
   8  Prefactor     .72593        .21285        .48411E-08    .22190E-03
   9  Prefactor     .10000E-03    2.8802        .59282E-07** at limit **
  10  norm          .10000E-03    .40007        .38725E-07** at limit **
  11  Prefactor     .10000E-03    12.045       -.46626E-06** at limit **
  12  norm          2.1464        1.4174       -.24327E-07    .10260E-04
  13  Prefactor     1.9065        141.64       -.27891E-05   -.36083E-04
  14  Prefactor     .10000E-03    5.2141        .74090E-07** at limit **
  15  Prefactor     .10000E-03    5.4400       -.41734E-06** at limit **
  16  Prefactor     .10000E-03    .44399E-01   -.65541E-07** at limit **
  17  Prefactor     6.0596        8.8860        .33375E-05   -.35061E-03
  18  Prefactor     .10000E-03    2.1943        .26314E-07** at limit **
  19  Prefactor     .10000E-03    2.7080       -.82112E-08** at limit **
  20  Prefactor     8.1832        19.693       -.33542E-05   -.23641E-03
  21  Prefactor     .10000E-03    33.619       -.37816E-07** at limit **
  22  Prefactor     .10000E-03    3.6092       -.70410E-06** at limit **
  23  Prefactor     2.0488        22.171        .56637E-06   -.13082E-04
  24  Normalizat    1.1698        .20525        .23532E-06    .17981E-04
  25  Prefactor     .95608        .11118       -.39712E-06    .12045E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.497145
  Prefactor  = 9.60329
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 5.86381
  Prefactor  = 0.0001
  Prefactor  = 0.725928
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 2.14639
  Prefactor  = 1.90647
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.05964
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.18319
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.04876
  Normalizat = 1.16979
  Prefactor  = 0.95608
 **********
 **   18 **HESSE 
 **********

 FCN=   7546.369     FROM HESSE     STATUS=OK           427 CALLS     2934 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    14.982        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .49714        .68308        .91194E-03   -1.5567    
   3  Prefactor     9.6033        8.8085        .12931E-03   -1.5088    
   4  norm          .10000E-03    19.068        .26514E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    6.5860        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     5.8638        158.46        .16585E-03   -1.5224    
   7  Prefactor     .10000E-03    3.7883        .16482E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .72593        .21244        .20847E-04   -1.5538    
   9  Prefactor     .10000E-03    2.8849        .14398E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    .41464        .10714E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    12.100        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          2.1464        1.4243        .81791E-04   -1.5415    
  13  Prefactor     1.9065        142.76        .30010E-03   -1.5432    
  14  Prefactor     .10000E-03    5.2551        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    5.4512        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    .74383E-01    .34256E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     6.0596        9.0719        .81557E-03   -1.5216    
  18  Prefactor     .10000E-03    2.2084        .12566E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    2.7091        .13961E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     8.1832        20.393        .13999E-03   -1.5136    
  21  Prefactor     .10000E-03    33.947        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    3.6812        .16167E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     2.0488        22.234        .28695E-03   -1.5422    
  24  Normalizat    1.1698        .24397        .30441E-03   -.87541    
  25  Prefactor     .95608        .13358        .18527E-03   -.94208    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.0545e-09
Minuit parameter uncertainties:
  1  9.21445e-05
  2  0.683094
  3  8.80965
  4  0.000241395
  5  3.80186e-05
  6  61.1442
  7  5.19465e-05
  8  0.212439
  9  2.53433e-06
  10  7.28451e-07
  11  6.94548e-05
  12  1.42436
  13  33.0759
  14  2.84677e-06
  15  2.78656e-05
  16  2.57107e-06
  17  9.07401
  18  2.19235e-07
  19  1.18903e-06
  20  20.4106
  21  0.000145585
  22  4.51725e-05
  23  13.5045
  24  0.24421
  25  0.133622
Done.

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

Extracting fit parameters...

4FGL J2243.9+2021
   Spectrum: LogParabola
288         norm:  2.146e+00  1.424e+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:  9.561e-01  1.336e-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.170e+00  2.442e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 14.54
Ra Dec: 340.990 20.357
Photon Index (Fixed Index): 1.72 +/- 0.00
Photon Flux (Fixed Index): 2.42e-08 +/- 1.61e-08
Energy Flux (Fixed Index): 3.14e-05 +/- 2.09e-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) = 7546.05875677
delta logL = 0.310482701485

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7545.99823663
delta logL = 0.371002838215

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.5980       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.1982       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1772       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95718       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=   7545.998     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      205 TOTAL
                     EDM=   .68E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.5933        1.1089        .83862E-02   -.67456E-03
   2  alpha         1.1964        .41160        .40553       -.24210E-04
   3  Normalizat    1.1770        .19774        .68629E-01    .53528E-04
   4  Prefactor     .95727        .11056        .45730E-01    .30767E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.59332
  alpha      = 1.19642
  Normalizat = 1.17701
  Prefactor  = 0.95727
 **********
 **   18 **HESSE 
 **********

 FCN=   7545.998     FROM HESSE     STATUS=OK            33 CALLS      238 TOTAL
                     EDM=   .95E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.5933        1.4578        .74397E-04   -1.5456    
   2  alpha         1.1964        .57919        .16413E-01   -.54853    
   3  Normalizat    1.1770        .23783        .30364E-03   -.87316    
   4  Prefactor     .95727        .13321        .18520E-03   -.94168    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.52993e-12
Minuit parameter uncertainties:
  1  1.45781
  2  0.586549
  3  0.238045
  4  0.133255
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/448131': 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) = 7545.99823074
delta logL = 0.371008725105

Extracting fit parameters...

4FGL J2243.9+2021
   Spectrum: LogParabola
288         norm:  1.593e+00  1.458e+00  1.000e-04  1.000e+04 ( 1.000e-12)
289        alpha:  1.196e+00  5.865e-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.573e-01  1.333e-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.177e+00  2.380e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 15.28
Ra Dec: 340.990 20.357
Photon Index (Free Index): 1.20 +/- 0.59
Photon Flux (Free Index): 1.21e-08 +/- 1.19e-08
Energy Flux (Free Index): 6.26e-05 +/- 6.97e-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/448131/cmap_HighResolution_343785601_344044801_4FGL_J2243.9+2021_daily_bin403.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.42e-08', energy_flux2='6.26e-05', photon_flux_error='1.61e-08', dlogl='3.71e-01', energy_flux='3.14e-05', photon_flux2='1.21e-08', job_status='DONE', time_completed='2021-09-28 19:24:27.422104', photon_index_error2='0.59', photon_index2='1.20', ts='14.54', fit_tolerance='1e-08', GAL='0.96', photon_index_error='0.00', energy_flux_error2='6.97e-05', EG='1.17', time_epoch_completed='1632882267.42', return_code='0', job_id='448131', GAL2='0.96', EG2='1.18', return_code2='0', energy_flux_error='2.09e-05', photon_flux_error2='1.19e-08', ts2='15.28', photon_index='1.72' WHERE bin_id='403' AND source_name='4FGL J2243.9+2021' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 19:24:27 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0252>
Subject: Job 448131: <4FGL_J2243.9+2021_daily_bin403> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2243.9+2021_daily_bin403 340.99 20.3565 343785601 344044801 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 :                                   639.36 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             311.82 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   828 sec.
    Turnaround time :                            830 sec.

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

