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


Performing analysis on: 4FGL_J2243.9+2021_daily_bin329
RA = 340.99, Dec = 20.3565
tmin = 324604801, tmax = 324864001
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='448013', job_status='RUN', time_executed='2021-09-28 19:12:33.050954', time_epoch_executed='1632881553.05' WHERE source_name='4FGL J2243.9+2021' and cadence='daily' and bin_id='329'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/448013

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/448013/ft1_4FGL_J2243.9+2021_daily_bin329.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/448013/ft2_4FGL_J2243.9+2021_daily_bin329.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/448013/ft1_4FGL_J2243.9+2021_daily_bin329.fits outfile=/scratch/kocevski/448013/ft1_filteredMKT_4FGL_J2243.9+2021_daily_bin329.fits ra=340.99 dec=20.3565 rad=12.0 tmin=324604801.0 tmax=324864001.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 9.52
user 9.27
sys 0.23

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/448013/ft1_filtered_4FGL_J2243.9+2021_daily_bin329.fits evtable="EVENTS" scfile=/scratch/kocevski/448013/ft2_4FGL_J2243.9+2021_daily_bin329.fits sctable="SC_DATA" expcube=/scratch/kocevski/448013/ltcube_324604801_324864001_4FGL_J2243.9+2021_daily_bin329.fits outfile=/scratch/kocevski/448013/expmap_324604801_324864001_4FGL_J2243.9+2021_daily_bin329.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/448013/ltcube_324604801_324864001_4FGL_J2243.9+2021_daily_bin329.fits
.....................!
real 189.09
user 184.96
sys 3.68

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/448013/ft1_filtered_4FGL_J2243.9+2021_daily_bin329.fits scfile=/scratch/kocevski/448013/ft2_4FGL_J2243.9+2021_daily_bin329.fits outfile=/scratch/kocevski/448013/cmap_324604801_324864001_4FGL_J2243.9+2021_daily_bin329.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.55
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/448013/ft1_filtered_4FGL_J2243.9+2021_daily_bin329.fits scfile=/scratch/kocevski/448013/ft2_4FGL_J2243.9+2021_daily_bin329.fits outfile=/scratch/kocevski/448013/cmap_HighResolution_324604801_324864001_4FGL_J2243.9+2021_daily_bin329.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/448013/ft1_filtered_4FGL_J2243.9+2021_daily_bin329.fits evtable="EVENTS" scfile=/scratch/kocevski/448013/ft2_4FGL_J2243.9+2021_daily_bin329.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/448013/Model_4FGL_J2243.9+2021_daily_bin329.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/448013/ft1_filtered_4FGL_J2243.9+2021_daily_bin329.fits.....................!
real 84.58
user 83.19
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.5988       1.0000         .10000E-03   10000.    
     2 'norm      '    .68052       1.0000         .10000E-03   10000.    
     3 'Prefactor '    16.545       1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    17.609       1.0000         .10000E-03   10000.    
     6 'Prefactor '    44.076       1.0000         .10000E-03   10000.    
     7 'Prefactor '    12.782       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .83959       1.0000         .10000E-03   10000.    
     9 'Prefactor '    11.564       1.0000         .10000E-03   10000.    
    10 'norm      '    7.5042       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .52581       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .81280       1.0000         .10000E-03   10000.    
    17 'Prefactor '    34.872       1.0000         .10000E-03   10000.    
    18 'Prefactor '    5.7092       1.0000         .10000E-03   10000.    
    19 'Prefactor '    20.775       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    19.622       1.0000         .10000E-03   10000.    
    22 'Prefactor '    28.342       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10165E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.1327       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .85377       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=   8016.161     FROM MIGRAD    STATUS=CONVERGED     56 CALLS     2395 TOTAL
                     EDM=   .20E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 12.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.5920        4.9516       -.21294E-04    .29531E-02
   2  norm          .68121        .85440        .47425E-08    .71670E-03
   3  Prefactor     16.548        1.9725        .23228E-05   -.26307E-02
   4  norm          .10000E-03    1.4670        .89239E-07** at limit **
   5  Prefactor     17.608        1.0136       -.21686E-06    .26862E-03
   6  Prefactor     44.076        1.0063       -.93674E-07    .47023E-03
   7  Prefactor     12.781        1.0251       -.34720E-06    .31792E-03
   8  Prefactor     .83958        .26042        .10542E-07    .48612E-04
   9  Prefactor     11.563        1.0013       -.39208E-07   -.37341E-04
  10  norm          7.5042        1.7298        .39616E-06    .39049E-03
  11  Prefactor     .10034E-03    8.1151        .24209E-04** at limit **
  12  norm          .52636        1.7140       -.65236E-06    .97971E-05
  13  Prefactor     .10010E-03    3.3794       -.11480E-04** at limit **
  14  Prefactor     .10001E-03    6.0582        .42491E-05** at limit **
  15  Prefactor     .10001E-03    2.6619       -.44712E-05** at limit **
  16  Prefactor     .81281        .19281        .41023E-07    .51011E-02
  17  Prefactor     34.872        1.0317        .23882E-06   -.40519E-03
  18  Prefactor     5.7090        1.0047        .89149E-07    .13418E-03
  19  Prefactor     20.776        1.2051        .81923E-06   -.11423E-02
  20  Prefactor     .10003E-03    2.7299        .38153E-05** at limit **
  21  Prefactor     19.630        5.7142        .70590E-05   -.11955E-01
  22  Prefactor     28.338        1.4275       -.10561E-05   -.19090E-04
  23  Prefactor     .10033E-03    10.780       -.18409E-04** at limit **
  24  Normalizat    1.1327        .26726       -.59691E-06    .16187E-03
  25  Prefactor     .85377        .13995        .16830E-06    .22493E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.59202
  norm       = 0.681208
  Prefactor  = 16.5484
  norm       = 0.0001
  Prefactor  = 17.6085
  Prefactor  = 44.0755
  Prefactor  = 12.7815
  Prefactor  = 0.839577
  Prefactor  = 11.5632
  norm       = 7.50418
  Prefactor  = 0.000100342
  norm       = 0.526362
  Prefactor  = 0.000100101
  Prefactor  = 0.000100006
  Prefactor  = 0.000100007
  Prefactor  = 0.812812
  Prefactor  = 34.872
  Prefactor  = 5.70903
  Prefactor  = 20.7764
  Prefactor  = 0.000100032
  Prefactor  = 19.6302
  Prefactor  = 28.3383
  Prefactor  = 0.000100327
  Normalizat = 1.13268
  Prefactor  = 0.853768
 **********
 **   18 **HESSE 
 **********

 FCN=   8016.161     FROM HESSE     STATUS=OK           487 CALLS     2882 TOTAL
                     EDM=   .15E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.5920        271.96        .83834E-02   -1.5456    
   2  norm          .68121        .94619        .20924E-01   -1.5543    
   3  Prefactor     16.548        16.911        .24616E-02   -1.4894    
   4  norm          .10000E-03    1.4638        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     17.608        18.426        .23861E-02   -1.4868    
   6  Prefactor     44.076        67.458        .15097E-02   -1.4379    
   7  Prefactor     12.781        13.103        .28010E-02   -1.4993    
   8  Prefactor     .83958        .28223        .54685E-02   -1.5525    
   9  Prefactor     11.563        7.7026        .29452E-02   -1.5028    
  10  norm          7.5042        1.7389        .36600E-02   -1.5160    
  11  Prefactor     .10034E-03    9.6761        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .52636        1.7326        .11376E-01   -1.5563    
  13  Prefactor     .10010E-03    7.1849        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10001E-03    6.0548        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10001E-03    7.4096        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .81281        .19381        .41081E-02   -1.5528    
  17  Prefactor     34.872        13.830        .16966E-02   -1.4526    
  18  Prefactor     5.7090        5.1924        .42027E-02   -1.5230    
  19  Prefactor     20.776        16.717        .21969E-02   -1.4796    
  20  Prefactor     .10003E-03    7.6579        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     19.630        24.406        .22605E-02   -1.4822    
  22  Prefactor     28.338        10.183        .18813E-02   -1.4643    
  23  Prefactor     .10033E-03    11.365        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.1327        .24329        .80733E-01   -.88709    
  25  Prefactor     .85377        .12273        .44413E-01   -.97776    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.47556e-06
Minuit parameter uncertainties:
  1  41.8085
  2  0.946215
  3  16.9157
  4  1.5381e-06
  5  18.4316
  6  67.5755
  7  13.1056
  8  0.282228
  9  7.70324
  10  1.7389
  11  0.0036368
  12  1.73276
  13  0.00169991
  14  0.000395276
  15  0.000449478
  16  0.193813
  17  13.8316
  18  5.19279
  19  16.7209
  20  0.000986717
  21  24.4185
  22  10.184
  23  0.00385681
  24  0.24353
  25  0.12277
Done.

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

Extracting fit parameters...

4FGL J2243.9+2021
   Spectrum: LogParabola
288         norm:  5.264e-01  1.733e+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:  8.538e-01  1.228e-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.133e+00  2.435e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/448013/likelihoodResults_324604801_324864001_4FGL_J2243.9+2021_daily_bin329.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) = 8015.44514463
delta logL = 0.715953803557

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8015.15705914
delta logL = 1.00403929445

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .91130E-02   1.0000         .10000E-03   10000.    
     2 'alpha     '    4.9528       1.0000          .0000       5.0000    
     3 'Normalizat'    .99854       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90075       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=   8015.157     FROM MIGRAD    STATUS=CONVERGED    177 CALLS      480 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .81348E-02    .75157E-02    .60055E-04    .73094E-02
   2  alpha         5.0000        .80918        .50000    ** at limit **
   3  Normalizat    .99871        .28100        .37747E-03    .26031E-03
   4  Prefactor     .90089        .14418        .20985E-03    .27538E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.00813482
  alpha      = 5
  Normalizat = 0.998705
  Prefactor  = 0.900895
 **********
 **   18 **HESSE 
 **********

 FCN=   8015.157     FROM HESSE     STATUS=OK            31 CALLS      511 TOTAL
                     EDM=   .19E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .81348E-02    .72421E-02    .24022E-05   -1.5690    
   2  alpha         5.0000        .75567        .50000        1.5706    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .99871        .28177        .15099E-04   -.93074    
   4  Prefactor     .90089        .14441        .41971E-04   -.96110    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.88762e-10
Minuit parameter uncertainties:
  1  0.00724207
  2  0.000380249
  3  0.282194
  4  0.144471
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/448013': 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) = 8015.15698425
delta logL = 1.00411418079

Extracting fit parameters...

4FGL J2243.9+2021
   Spectrum: LogParabola
288         norm:  8.135e-03  7.242e-03  1.000e-04  1.000e+04 ( 1.000e-12)
289        alpha:  5.000e+00  3.802e-04  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.009e-01  1.445e-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.987e-01  2.822e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.32
Ra Dec: 340.990 20.357
Photon Index (Free Index): 5.00 +/- 0.00
Photon Flux (Free Index): 9.95e-08 +/- 8.82e-08
Energy Flux (Free Index): 1.37e-05 +/- 1.21e-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/448013/cmap_HighResolution_324604801_324864001_4FGL_J2243.9+2021_daily_bin329.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.65e-05', comment='SUCCESS', energy_flux2='1.37e-05', dlogl='1.00e+00', photon_flux2='9.95e-08', job_status='DONE', time_completed='2021-09-28 19:25:38.692996', photon_index_error2='0.00', photon_index2='5.00', ts='0.11', fit_tolerance='1e-08', GAL='0.85', photon_index_error='0.00', photon_flux_upper_limit='5.90e-08', energy_flux_error2='1.21e-05', EG='1.13', time_epoch_completed='1632882338.69', return_code='0', job_id='448013', GAL2='0.90', EG2='1.00', return_code2='0', photon_flux_error2='8.82e-08', ts2='2.32', photon_index='1.72' WHERE bin_id='329' AND source_name='4FGL J2243.9+2021' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 19:25:38 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0278>
Subject: Job 448013: <4FGL_J2243.9+2021_daily_bin329> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2243.9+2021_daily_bin329 340.99 20.3565 324604801 324864001 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 :                                   783.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             318.47 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   909 sec.
    Turnaround time :                            911 sec.

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

