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


Performing analysis on: 4FGL_J2243.9+2021_daily_bin769
RA = 340.99, Dec = 20.3565
tmin = 438652801, tmax = 438912001
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='449658', job_status='RUN', time_executed='2021-09-28 19:19:09.246524', time_epoch_executed='1632881949.25' WHERE source_name='4FGL J2243.9+2021' and cadence='daily' and bin_id='769'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/449658

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/449658/ft1_4FGL_J2243.9+2021_daily_bin769.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/449658/ft2_4FGL_J2243.9+2021_daily_bin769.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/449658/ft1_4FGL_J2243.9+2021_daily_bin769.fits outfile=/scratch/kocevski/449658/ft1_filteredMKT_4FGL_J2243.9+2021_daily_bin769.fits ra=340.99 dec=20.3565 rad=12.0 tmin=438652801.0 tmax=438912001.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 6.35
user 6.07
sys 0.26

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/449658/ft1_filtered_4FGL_J2243.9+2021_daily_bin769.fits" evtable="EVENTS" scfile=/scratch/kocevski/449658/ft2_4FGL_J2243.9+2021_daily_bin769.fits sctable="SC_DATA" outfile=/scratch/kocevski/449658/ltcube_438652801_438912001_4FGL_J2243.9+2021_daily_bin769.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/449658/ft2_4FGL_J2243.9+2021_daily_bin769.fits
.....................!
real 12.05
user 11.66
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/449658/ft1_filtered_4FGL_J2243.9+2021_daily_bin769.fits evtable="EVENTS" scfile=/scratch/kocevski/449658/ft2_4FGL_J2243.9+2021_daily_bin769.fits sctable="SC_DATA" expcube=/scratch/kocevski/449658/ltcube_438652801_438912001_4FGL_J2243.9+2021_daily_bin769.fits outfile=/scratch/kocevski/449658/expmap_438652801_438912001_4FGL_J2243.9+2021_daily_bin769.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/449658/ltcube_438652801_438912001_4FGL_J2243.9+2021_daily_bin769.fits
.....................!
real 190.14
user 185.13
sys 4.65

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/449658/ft1_filtered_4FGL_J2243.9+2021_daily_bin769.fits scfile=/scratch/kocevski/449658/ft2_4FGL_J2243.9+2021_daily_bin769.fits outfile=/scratch/kocevski/449658/cmap_438652801_438912001_4FGL_J2243.9+2021_daily_bin769.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.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/449658/ft1_filtered_4FGL_J2243.9+2021_daily_bin769.fits scfile=/scratch/kocevski/449658/ft2_4FGL_J2243.9+2021_daily_bin769.fits outfile=/scratch/kocevski/449658/cmap_HighResolution_438652801_438912001_4FGL_J2243.9+2021_daily_bin769.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.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    1.2772       1.0000         .10000E-03   10000.    
     3 'Prefactor '    8.6758       1.0000         .10000E-03   10000.    
     4 'norm      '    33.417       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    7.3719       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.1001       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .34945E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    55.980       1.0000         .10000E-03   10000.    
    12 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    11.409       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    27.403       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    9.1558       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .44580       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.1935       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5160E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6154.522     FROM MIGRAD    STATUS=CONVERGED    107 CALLS     2464 TOTAL
                     EDM=   .16E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  9.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    51.762        .23479E-04** at limit **
   2  norm          1.2772        2.1229        .12257E-05    .53977E-04
   3  Prefactor     8.6502        9.5942       -.99352E-05   -.33962E-02
   4  norm          33.416        1.1895        .47627E-06    .72684E-05
   5  Prefactor     .10000E-03    5.5830        .90081E-05** at limit **
   6  Prefactor     7.3876        8.1041        .13986E-04   -.14317E-02
   7  Prefactor     .10000E-03    20.899        .35770E-04** at limit **
   8  Prefactor     3.1000        .57904        .11946E-06    .55646E-03
   9  Prefactor     .10004E-03    4.2626       -.10287E-04** at limit **
  10  norm          .10000E-03    4.2170        .26224E-06** at limit **
  11  Prefactor     56.073        43.489        .24868E-04   -.12942E-02
  12  norm          .10000E-03    1.2825        .37331E-06** at limit **
  13  Prefactor     .10000E-03    33.125       -.28757E-04** at limit **
  14  Prefactor     .10000E-03    8.4300        .76955E-06** at limit **
  15  Prefactor     .10000E-03    7.2432       -.16872E-04** at limit **
  16  Prefactor     11.409        .78006       -.18804E-08   -.65148E-03
  17  Prefactor     .10000E-03    12.044       -.30041E-05** at limit **
  18  Prefactor     .10000E-03    6.7981       -.50809E-06** at limit **
  19  Prefactor     .10000E-03    7.1337       -.17190E-04** at limit **
  20  Prefactor     27.402        1.0214       -.21924E-07   -.44345E-03
  21  Prefactor     .10002E-03    8.3207        .20265E-04** at limit **
  22  Prefactor     .10000E-03    8.1289        .17411E-06** at limit **
  23  Prefactor     9.1502        1.8665       -.63968E-06   -.12543E-02
  24  Normalizat    .44575        .42526       -.36093E-05   -.25795E-04
  25  Prefactor     1.1935        .22035       -.20050E-05   -.51381E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100012
  norm       = 1.27723
  Prefactor  = 8.65019
  norm       = 33.4161
  Prefactor  = 0.000100001
  Prefactor  = 7.38764
  Prefactor  = 0.0001
  Prefactor  = 3.10005
  Prefactor  = 0.000100036
  norm       = 0.0001
  Prefactor  = 56.0727
  norm       = 0.0001
  Prefactor  = 0.000100005
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 11.4087
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 27.4022
  Prefactor  = 0.000100017
  Prefactor  = 0.0001
  Prefactor  = 9.15018
  Normalizat = 0.445753
  Prefactor  = 1.19349
 **********
 **   18 **HESSE 
 **********

 FCN=   6154.522     FROM HESSE     STATUS=OK           479 CALLS     2943 TOTAL
                     EDM=   .94E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    51.859        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.2772        2.1828        .98267E-02   -1.5482    
   3  Prefactor     8.6502        28.177        .34022E-02   -1.5120    
   4  norm          33.416        15.394        .17330E-02   -1.4551    
   5  Prefactor     .10000E-03    14.871        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     7.3876        1028.6        .36930E-02   -1.5164    
   7  Prefactor     .10000E-03    21.258        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     3.1000        .58466        .55942E-02   -1.5356    
   9  Prefactor     .10004E-03    15.581        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    1.6771        .29584E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     56.073        49.224        .13404E-02   -1.4209    
  12  norm          .10000E-03    1.2728        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    33.224        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    8.4231        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    17.086        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     11.409        .79333        .29651E-02   -1.5032    
  17  Prefactor     .10000E-03    12.015        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    6.7842        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    16.966        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     27.402        27.311        .19133E-02   -1.4661    
  21  Prefactor     .10002E-03    14.531        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    8.0817        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     9.1502        23.575        .33113E-02   -1.5103    
  24  Normalizat    .44575        .47446        .17371       -1.1500    
  25  Prefactor     1.1935        .22754        .57186E-01   -.86532    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.35042e-07
Minuit parameter uncertainties:
  1  0.00160641
  2  2.18293
  3  28.2204
  4  15.3954
  5  0.000254878
  6  177.547
  7  0.000124164
  8  0.584661
  9  0.00149824
  10  1.58307e-05
  11  49.26
  12  2.37436e-06
  13  0.000795213
  14  2.46144e-05
  15  0.000381996
  16  0.793329
  17  6.72563e-05
  18  2.11311e-05
  19  0.000242124
  20  27.3231
  21  0.000996228
  22  9.93642e-06
  23  23.5985
  24  0.478838
  25  0.227724
Done.

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

Extracting fit parameters...

4FGL J2243.9+2021
   Spectrum: LogParabola
288         norm:  1.000e-04  2.374e-06  1.000e-04  1.000e+04 ( 1.000e-12)
289        alpha:  1.716e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
290         beta:  8.229e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
291           Eb:  1.517e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
513    Prefactor:  1.193e+00  2.277e-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:  4.458e-01  4.788e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/449658/likelihoodResults_438652801_438912001_4FGL_J2243.9+2021_daily_bin769.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) = 6154.52472327
delta logL = -0.00320188548994

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6154.4161919
delta logL = 0.105329484429

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .53657E-02   1.0000         .10000E-03   10000.    
     2 'alpha     '    4.9999       1.0000          .0000       5.0000    
     3 'Normalizat'    .38510       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2132       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=   6154.416     FROM MIGRAD    STATUS=CONVERGED    108 CALLS      356 TOTAL
                     EDM=   .16E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .53702E-02    .14226E-01    .11424E-03    .24168E-02
   2  alpha         5.0000        4.5376        .50000    ** at limit **
   3  Normalizat    .38555        .44093        .82407E-03    .27040E-05
   4  Prefactor     1.2130        .22510        .25087E-03    .60271E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0053702
  alpha      = 5
  Normalizat = 0.385549
  Prefactor  = 1.21297
 **********
 **   18 **HESSE 
 **********

 FCN=   6154.416     FROM HESSE     STATUS=OK            31 CALLS      387 TOTAL
                     EDM=   .41E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .53702E-02    .13283E-01    .45695E-05   -1.5693    
   2  alpha         5.0000        4.3913        .50000        1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .38555        .44185        .32963E-04   -1.1805    
   4  Prefactor     1.2130        .22519        .10035E-04   -.85933    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.07159e-12
Minuit parameter uncertainties:
  1  0.0132831
  2  8.71004e-05
  3  0.445934
  4  0.225373
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/449658': 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) = 6154.41618885
delta logL = 0.10533252676

Extracting fit parameters...

4FGL J2243.9+2021
   Spectrum: LogParabola
288         norm:  5.370e-03  1.328e-02  1.000e-04  1.000e+04 ( 1.000e-12)
289        alpha:  5.000e+00  8.710e-05  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.213e+00  2.254e-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:  3.855e-01  4.459e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 340.990 20.357

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/449658/cmap_HighResolution_438652801_438912001_4FGL_J2243.9+2021_daily_bin769.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.15e-05', job_status='DONE', photon_flux_upper_limit='7.06e-08', time_completed='2021-09-28 19:30:46.356192', job_id='449658', GAL2='1.21', fit_tolerance='1e-08', EG2='0.39', EG='0.45', time_epoch_completed='1632882646.36', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.19', dlogl='1.05e-01', ts2='0.23', photon_index_error='0.00', photon_index='1.72' WHERE bin_id='769' AND source_name='4FGL J2243.9+2021' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 19:30:46 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0283>
Subject: Job 449658: <4FGL_J2243.9+2021_daily_bin769> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2243.9+2021_daily_bin769 340.99 20.3565 438652801 438912001 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 :                                   696.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             285.97 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   916 sec.
    Turnaround time :                            918 sec.

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

