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


Performing analysis on: 4FGL_J2243.9+2021_daily_bin99
RA = 340.99, Dec = 20.3565
tmin = 264988801, tmax = 265248001
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='446658', job_status='RUN', time_executed='2021-09-28 19:07:02.027936', time_epoch_executed='1632881222.03' WHERE source_name='4FGL J2243.9+2021' and cadence='daily' and bin_id='99'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/446658

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/446658/ft1_4FGL_J2243.9+2021_daily_bin99.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/446658/ft2_4FGL_J2243.9+2021_daily_bin99.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/446658/ft1_4FGL_J2243.9+2021_daily_bin99.fits outfile=/scratch/kocevski/446658/ft1_filteredMKT_4FGL_J2243.9+2021_daily_bin99.fits ra=340.99 dec=20.3565 rad=12.0 tmin=264988801.0 tmax=265248001.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.46
user 1.25
sys 0.18

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/446658/ft1_filtered_4FGL_J2243.9+2021_daily_bin99.fits evtable="EVENTS" scfile=/scratch/kocevski/446658/ft2_4FGL_J2243.9+2021_daily_bin99.fits sctable="SC_DATA" expcube=/scratch/kocevski/446658/ltcube_264988801_265248001_4FGL_J2243.9+2021_daily_bin99.fits outfile=/scratch/kocevski/446658/expmap_264988801_265248001_4FGL_J2243.9+2021_daily_bin99.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/446658/ltcube_264988801_265248001_4FGL_J2243.9+2021_daily_bin99.fits
.....................!
real 191.66
user 185.84
sys 5.40

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/446658/ft1_filtered_4FGL_J2243.9+2021_daily_bin99.fits scfile=/scratch/kocevski/446658/ft2_4FGL_J2243.9+2021_daily_bin99.fits outfile=/scratch/kocevski/446658/cmap_264988801_265248001_4FGL_J2243.9+2021_daily_bin99.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.36
sys 0.18

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/446658/ft1_filtered_4FGL_J2243.9+2021_daily_bin99.fits scfile=/scratch/kocevski/446658/ft2_4FGL_J2243.9+2021_daily_bin99.fits outfile=/scratch/kocevski/446658/cmap_HighResolution_264988801_265248001_4FGL_J2243.9+2021_daily_bin99.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.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.4124       1.0000         .10000E-03   10000.    
     2 'norm      '    3.4137       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    53.453       1.0000         .10000E-03   10000.    
     7 'Prefactor '    14.415       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .64755       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    3.7926       1.0000         .10000E-03   10000.    
    11 'Prefactor '    8.5833       1.0000         .10000E-03   10000.    
    12 'norm      '    2.5240       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.5494       1.0000         .10000E-03   10000.    
    15 'Prefactor '    18.847       1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.5739       1.0000         .10000E-03   10000.    
    17 'Prefactor '    5.7882       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .50163       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10205E-02   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10587E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    8.5402       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.1676       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .80812       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=   9735.744     FROM MIGRAD    STATUS=CONVERGED    571 CALLS     2949 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.4146        59.473        .47930E-02   -.37086E-03
   2  norm          3.4138        1.0779        .54737E-02    .76903E-04
   3  Prefactor     .10000E-03    5.7808        .90712E-02** at limit **
   4  norm          .10000E-03    3.9834        .90712E-02** at limit **
   5  Prefactor     .10000E-03    7.6309        .90712E-02** at limit **
   6  Prefactor     53.454        76.832        .13715E-02   -.60861E-03
   7  Prefactor     14.414        11.826        .26373E-02   -.42245E-04
   8  Prefactor     .64758        .20283        .53144E-02    .87604E-03
   9  Prefactor     .10000E-03    3.5162        .90712E-02** at limit **
  10  norm          3.7926        1.2791        .51820E-02   -.14526E-03
  11  Prefactor     8.5850        19.522        .34206E-02   -.36879E-04
  12  norm          2.5242        1.9921        .64282E-02    .41517E-03
  13  Prefactor     .10000E-03    13.566        .90712E-02** at limit **
  14  Prefactor     2.5491        8.0052        .63932E-02    .33644E-03
  15  Prefactor     18.847        22.707        .23064E-02    .20630E-03
  16  Prefactor     2.5738        .26686        .34155E-02   -.87362E-04
  17  Prefactor     5.7878        6.5224        .41735E-02    .42605E-03
  18  Prefactor     .50189        3.2788        .58201E-01    .56807E-03
  19  Prefactor     .10181E-03    5.7943        .10375    ** at limit **
  20  Prefactor     .10013E-03    60.400        .90712E-02** at limit **
  21  Prefactor     .10003E-03    21.403        .90712E-02** at limit **
  22  Prefactor     8.5390        6.9728        .34293E-02    .61861E-03
  23  Prefactor     .10002E-03    16.206        .90712E-02** at limit **
  24  Normalizat    1.1678        .21416        .78868E-01    .26987E-04
  25  Prefactor     .80793        .10825        .43823E-01   -.18679E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.4146
  norm       = 3.41384
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 53.4541
  Prefactor  = 14.4143
  Prefactor  = 0.647577
  Prefactor  = 0.0001
  norm       = 3.7926
  Prefactor  = 8.58496
  norm       = 2.52423
  Prefactor  = 0.000100002
  Prefactor  = 2.54911
  Prefactor  = 18.8466
  Prefactor  = 2.5738
  Prefactor  = 5.7878
  Prefactor  = 0.501885
  Prefactor  = 0.000101812
  Prefactor  = 0.000100128
  Prefactor  = 0.000100026
  Prefactor  = 8.53903
  Prefactor  = 0.000100018
  Normalizat = 1.16784
  Prefactor  = 0.807932
 **********
 **   18 **HESSE 
 **********

 FCN=   9735.744     FROM HESSE     STATUS=OK           433 CALLS     3382 TOTAL
                     EDM=   .42E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.4146        59.498        .19172E-03   -1.5288    
   2  norm          3.4138        1.0779        .55408E-04   -1.5338    
   3  Prefactor     .10000E-03    5.7982        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    4.0722        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    7.6737        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     53.454        76.868        .54860E-04   -1.4244    
   7  Prefactor     14.414        11.893        .10549E-03   -1.4948    
   8  Prefactor     .64758        .20166        .23649E-04   -1.5547    
   9  Prefactor     .10000E-03    3.5378        .18065E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          3.7926        1.2785        .60094E-04   -1.5318    
  11  Prefactor     8.5850        19.502        .13682E-03   -1.5122    
  12  norm          2.5242        1.9787        .11594E-03   -1.5390    
  13  Prefactor     .10000E-03    13.576        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     2.5491        7.9535        .25573E-03   -1.5389    
  15  Prefactor     18.847        22.772        .92256E-04   -1.4839    
  16  Prefactor     2.5738        .26843        .15095E-04   -1.5387    
  17  Prefactor     5.7878        6.5206        .16694E-03   -1.5227    
  18  Prefactor     .50189        8.5100        .34278E-02   -1.5566    
  19  Prefactor     .10181E-03    58.065        .45946E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10013E-03    62.436        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10003E-03    21.504        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     8.5390        6.9929        .13717E-03   -1.5123    
  23  Prefactor     .10002E-03    16.333        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.1678        .25245        .34911E-03   -.87603    
  25  Prefactor     .80793        .12787        .21828E-03   -.99437    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.22922e-08
Minuit parameter uncertainties:
  1  32.4527
  2  1.07787
  3  4.04869e-06
  4  6.17282e-06
  5  2.39632e-05
  6  77.0109
  7  11.8946
  8  0.201659
  9  3.76149e-06
  10  1.27853
  11  19.5168
  12  1.97878
  13  0.000316961
  14  7.95678
  15  22.7821
  16  0.268431
  17  6.5214
  18  4.13358
  19  0.0205343
  20  0.00565692
  21  0.00150414
  22  6.9936
  23  0.00106973
  24  0.252713
  25  0.127914
Done.

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

Extracting fit parameters...

4FGL J2243.9+2021
   Spectrum: LogParabola
288         norm:  2.524e+00  1.979e+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.079e-01  1.279e-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.168e+00  2.527e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.28
Ra Dec: 340.990 20.357
Photon Index (Fixed Index): 1.72 +/- 0.00
Photon Flux (Fixed Index): 2.85e-08 +/- 2.23e-08
Energy Flux (Fixed Index): 3.70e-05 +/- 2.90e-05

TS (Fixed Index): 3.28
Ra Dec: 340.990 20.357
Photon Flux Upper Limit: 7.84e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.02e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/446658/likelihoodResults_264988801_265248001_4FGL_J2243.9+2021_daily_bin99.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) = 9733.28874929
delta logL = 2.45520304424

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9733.24542154
delta logL = 2.49853079492

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.2603       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.9011       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0749       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .83322       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=   9733.245     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      248 TOTAL
                     EDM=   .48E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.2583        6.8213        .99337E-02    .11189E-02
   2  alpha         2.9019        1.8805        .20335        .14971E-03
   3  Normalizat    1.0746        .66749E-01    .81443E-01    .38326E-03
   4  Prefactor     .83333        .33947E-01    .44148E-01    .62806E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.25833
  alpha      = 2.9019
  Normalizat = 1.07462
  Prefactor  = 0.833327
 **********
 **   18 **HESSE 
 **********

 FCN=   9733.245     FROM HESSE     STATUS=OK            31 CALLS      279 TOTAL
                     EDM=   .23E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.2583        1.6994        .48039E-04   -1.5484    
   2  alpha         2.9019        .71130        .79584E-02    .16146    
   3  Normalizat    1.0746        .24112        .36055E-03   -.90571    
   4  Prefactor     .83333        .12714        .21479E-03   -.98511    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.2528e-10
Minuit parameter uncertainties:
  1  1.69947
  2  0.72154
  3  0.241362
  4  0.127185
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/446658': 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) = 9733.24541978
delta logL = 2.49853255039

Extracting fit parameters...

4FGL J2243.9+2021
   Spectrum: LogParabola
288         norm:  1.258e+00  1.699e+00  1.000e-04  1.000e+04 ( 1.000e-12)
289        alpha:  2.902e+00  7.215e-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:  8.333e-01  1.272e-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.075e+00  2.414e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.34
Ra Dec: 340.990 20.357
Photon Index (Free Index): 2.90 +/- 0.72
Photon Flux (Free Index): 1.18e-07 +/- 6.04e-08
Energy Flux (Free Index): 2.78e-05 +/- 1.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/446658/cmap_HighResolution_264988801_265248001_4FGL_J2243.9+2021_daily_bin99.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.02e-04', comment='SUCCESS', photon_flux='2.85e-08', energy_flux2='2.78e-05', photon_flux_error='2.23e-08', dlogl='2.50e+00', energy_flux='3.70e-05', photon_flux2='1.18e-07', job_status='DONE', time_completed='2021-09-28 19:22:06.937931', photon_index_error2='0.72', photon_index2='2.90', ts='3.28', fit_tolerance='1e-08', GAL='0.81', photon_index_error='0.00', photon_flux_upper_limit='7.84e-08', energy_flux_error2='1.37e-05', EG='1.17', time_epoch_completed='1632882126.94', return_code='0', job_id='446658', GAL2='0.83', EG2='1.07', return_code2='0', energy_flux_error='2.90e-05', photon_flux_error2='6.04e-08', ts2='8.34', photon_index='1.72' WHERE bin_id='99' AND source_name='4FGL J2243.9+2021' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 19:22:06 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0069>
Subject: Job 446658: <4FGL_J2243.9+2021_daily_bin99> in cluster <slac> Done

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

Your job looked like:

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

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

