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


Performing analysis on: 4FGL_J2243.9+2021_daily_bin193
RA = 340.99, Dec = 20.3565
tmin = 289353601, tmax = 289612801
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='446795', job_status='RUN', time_executed='2021-09-28 19:07:53.385592', time_epoch_executed='1632881273.39' WHERE source_name='4FGL J2243.9+2021' and cadence='daily' and bin_id='193'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/446795

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/446795/ft1_4FGL_J2243.9+2021_daily_bin193.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/446795/ft2_4FGL_J2243.9+2021_daily_bin193.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/446795/ft1_4FGL_J2243.9+2021_daily_bin193.fits outfile=/scratch/kocevski/446795/ft1_filteredMKT_4FGL_J2243.9+2021_daily_bin193.fits ra=340.99 dec=20.3565 rad=12.0 tmin=289353601.0 tmax=289612801.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.51
user 3.29
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/446795/ft2_4FGL_J2243.9+2021_daily_bin193.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/446795/ft1_filteredMKT_4FGL_J2243.9+2021_daily_bin193.fits evtable="EVENTS" outfile="/scratch/kocevski/446795/ft1_filtered_4FGL_J2243.9+2021_daily_bin193.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/446795/ft1_filtered_4FGL_J2243.9+2021_daily_bin193.fits" evtable="EVENTS" scfile=/scratch/kocevski/446795/ft2_4FGL_J2243.9+2021_daily_bin193.fits sctable="SC_DATA" outfile=/scratch/kocevski/446795/ltcube_289353601_289612801_4FGL_J2243.9+2021_daily_bin193.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/446795/ft2_4FGL_J2243.9+2021_daily_bin193.fits
.....................!
real 12.01
user 11.66
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/446795/ft1_filtered_4FGL_J2243.9+2021_daily_bin193.fits evtable="EVENTS" scfile=/scratch/kocevski/446795/ft2_4FGL_J2243.9+2021_daily_bin193.fits sctable="SC_DATA" expcube=/scratch/kocevski/446795/ltcube_289353601_289612801_4FGL_J2243.9+2021_daily_bin193.fits outfile=/scratch/kocevski/446795/expmap_289353601_289612801_4FGL_J2243.9+2021_daily_bin193.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/446795/ltcube_289353601_289612801_4FGL_J2243.9+2021_daily_bin193.fits
.....................!
real 193.00
user 187.57
sys 5.11

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/446795/ft1_filtered_4FGL_J2243.9+2021_daily_bin193.fits scfile=/scratch/kocevski/446795/ft2_4FGL_J2243.9+2021_daily_bin193.fits outfile=/scratch/kocevski/446795/cmap_289353601_289612801_4FGL_J2243.9+2021_daily_bin193.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/446795/ft1_filtered_4FGL_J2243.9+2021_daily_bin193.fits scfile=/scratch/kocevski/446795/ft2_4FGL_J2243.9+2021_daily_bin193.fits outfile=/scratch/kocevski/446795/cmap_HighResolution_289353601_289612801_4FGL_J2243.9+2021_daily_bin193.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/446795/ft1_filtered_4FGL_J2243.9+2021_daily_bin193.fits evtable="EVENTS" scfile=/scratch/kocevski/446795/ft2_4FGL_J2243.9+2021_daily_bin193.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/446795/Model_4FGL_J2243.9+2021_daily_bin193.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/446795/ft1_filtered_4FGL_J2243.9+2021_daily_bin193.fits.....................!
real 113.08
user 111.62
sys 1.27

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    13.197       1.0000         .10000E-03   10000.    
     2 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10202E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    4.4674       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    69.278       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10361E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .57452E-01   1.0000         .10000E-03   10000.    
     9 'Prefactor '    17.620       1.0000         .10000E-03   10000.    
    10 'norm      '    .10042E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10134E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    2.9295       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10061E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10290E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    10.870       1.0000         .10000E-03   10000.    
    16 'Prefactor '    7.3648       1.0000         .10000E-03   10000.    
    17 'Prefactor '    4.1667       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .31923E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10103E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10079E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    10.441       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10583E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.3780       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .79284       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=   10173.74     FROM MIGRAD    STATUS=CONVERGED    558 CALLS     2849 TOTAL
                     EDM=   .22E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     13.206        41.914        .77767E-06    .25538E-04
   2  norm          .10000E-03    .26516        .40010E-07** at limit **
   3  Prefactor     .10000E-03    5.9790       -.71411E-07** at limit **
   4  norm          4.4673        4.0816        .24287E-07   -.13326E-03
   5  Prefactor     .10000E-03    6.9945       -.59766E-07** at limit **
   6  Prefactor     69.231        78.434       -.59086E-06   -.10662E-03
   7  Prefactor     .10000E-03    11.253       -.22057E-06** at limit **
   8  Prefactor     .57044E-01    .13235        .28316E-06    .74853E-03
   9  Prefactor     17.625        10.256       -.23406E-06   -.12535E-03
  10  norm          .10000E-03    .42865       -.11113E-06** at limit **
  11  Prefactor     .10000E-03    6.8069       -.50570E-07** at limit **
  12  norm          2.9313        1.7624        .89454E-08   -.12683E-05
  13  Prefactor     .10000E-03    13.825        .32140E-07** at limit **
  14  Prefactor     .10000E-03    3.5156        .20865E-07** at limit **
  15  Prefactor     10.867        18.824        .14555E-07   -.57739E-05
  16  Prefactor     7.3653        .44163       -.12696E-07    .89998E-03
  17  Prefactor     4.1681        5.3013        .25031E-07    .19566E-05
  18  Prefactor     .10027E-03    4.9223       -.69076E-06** at limit **
  19  Prefactor     .10000E-03    5.1884        .63458E-07** at limit **
  20  Prefactor     .10000E-03    5.1365        .69084E-08** at limit **
  21  Prefactor     .10000E-03    8.4275        .16143E-06** at limit **
  22  Prefactor     10.445        7.6699        .15290E-05   -.11520E-03
  23  Prefactor     .10000E-03    14.029       -.52390E-07** at limit **
  24  Normalizat    1.3780        .22597       -.28067E-06   -.35784E-04
  25  Prefactor     .79274        .11657       -.52624E-06    .17830E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 13.206
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 4.46735
  Prefactor  = 0.0001
  Prefactor  = 69.2314
  Prefactor  = 0.0001
  Prefactor  = 0.0570438
  Prefactor  = 17.6254
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 2.93131
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.8673
  Prefactor  = 7.36535
  Prefactor  = 4.16805
  Prefactor  = 0.000100271
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.4453
  Prefactor  = 0.0001
  Normalizat = 1.37799
  Prefactor  = 0.792739
 **********
 **   18 **HESSE 
 **********

 FCN=   10173.74     FROM HESSE     STATUS=OK           431 CALLS     3280 TOTAL
                     EDM=   .40E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     13.206        41.971        .11026E-03   -1.4981    
   2  norm          .10000E-03    .27140        .50704E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    5.9932        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          4.4673        4.0820        .18877E-03   -1.5285    
   5  Prefactor     .10000E-03    7.0263        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     69.231        78.837        .24113E-03   -1.4042    
   7  Prefactor     .10000E-03    11.361        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .57044E-01    .13026        .55019E-03   -1.5660    
   9  Prefactor     17.625        10.240        .95415E-04   -1.4868    
  10  norm          .10000E-03    .43934        .12845E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    6.8124        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          2.9313        1.7626        .10105E-03   -1.5366    
  13  Prefactor     .10000E-03    13.830        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    3.5221        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     10.867        18.831        .12152E-03   -1.5049    
  16  Prefactor     7.3653        .43986        .15292E-04   -1.5165    
  17  Prefactor     4.1681        5.2976        .19745E-03   -1.5300    
  18  Prefactor     .10027E-03    68.330        .41938E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    5.1981        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    5.1428        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    8.4420        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     10.445        7.6153        .62000E-03   -1.5061    
  23  Prefactor     .10000E-03    14.107        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.3780        .26722        .36787E-03   -.81267    
  25  Prefactor     .79274        .13754        .24594E-03   -.99997    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.97057e-09
Minuit parameter uncertainties:
  1  42.0648
  2  2.2915e-07
  3  9.63521e-06
  4  4.08223
  5  1.77005e-05
  6  78.9567
  7  3.45164e-05
  8  0.130259
  9  10.2409
  10  1.94355e-06
  11  8.31132e-06
  12  1.76259
  13  9.30031e-06
  14  9.84806e-07
  15  18.8412
  16  0.439862
  17  5.29819
  18  0.00861627
  19  8.98911e-06
  20  5.58348e-06
  21  3.51393e-05
  22  7.61596
  23  9.47428e-06
  24  0.267495
  25  0.137604
Done.

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

Extracting fit parameters...

4FGL J2243.9+2021
   Spectrum: LogParabola
288         norm:  2.931e+00  1.763e+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:  7.927e-01  1.376e-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.378e+00  2.675e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 12.19
Ra Dec: 340.990 20.357
Photon Index (Fixed Index): 1.72 +/- 0.00
Photon Flux (Fixed Index): 3.31e-08 +/- 1.99e-08
Energy Flux (Fixed Index): 4.29e-05 +/- 2.58e-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) = 10173.4091756
delta logL = 0.326403211597

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10173.3986757
delta logL = 0.336903142432

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.5938       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2057       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3506       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .79904       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=   10173.40     FROM MIGRAD    STATUS=CONVERGED     96 CALLS      281 TOTAL
                     EDM=   .15E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.5940        1.7857        .82480E-04    .20400E-04
   2  alpha         2.2059        .61139        .14712E-01    .16554E-04
   3  Normalizat    1.3505        .26148        .37053E-03    .40501E-05
   4  Prefactor     .79910        .13616        .24483E-03   -.15788E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 2.59397
  alpha      = 2.20589
  Normalizat = 1.35049
  Prefactor  = 0.799096
 **********
 **   18 **HESSE 
 **********

 FCN=   10173.40     FROM HESSE     STATUS=OK            25 CALLS      306 TOTAL
                     EDM=   .17E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.5940        1.6935        .32992E-05   -1.5386    
   2  alpha         2.2059        .58001        .58848E-03   -.11792    
   3  Normalizat    1.3505        .26126        .14821E-04   -.82071    
   4  Prefactor     .79910        .13620        .97930E-05   -.99762    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.65855e-13
Minuit parameter uncertainties:
  1  1.69356
  2  0.585422
  3  0.261517
  4  0.136258
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/446795': 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) = 10173.3986755
delta logL = 0.336903309571

Extracting fit parameters...

4FGL J2243.9+2021
   Spectrum: LogParabola
288         norm:  2.594e+00  1.694e+00  1.000e-04  1.000e+04 ( 1.000e-12)
289        alpha:  2.206e+00  5.854e-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:  7.991e-01  1.363e-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.350e+00  2.615e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 12.84
Ra Dec: 340.990 20.357
Photon Index (Free Index): 2.21 +/- 0.59
Photon Flux (Free Index): 6.21e-08 +/- 5.14e-08
Energy Flux (Free Index): 2.98e-05 +/- 1.75e-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/446795/cmap_HighResolution_289353601_289612801_4FGL_J2243.9+2021_daily_bin193.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.31e-08', energy_flux2='2.98e-05', photon_flux_error='1.99e-08', dlogl='3.37e-01', energy_flux='4.29e-05', photon_flux2='6.21e-08', job_status='DONE', time_completed='2021-09-28 19:22:17.386834', photon_index_error2='0.59', photon_index2='2.21', ts='12.19', fit_tolerance='1e-08', GAL='0.79', photon_index_error='0.00', energy_flux_error2='1.75e-05', EG='1.38', time_epoch_completed='1632882137.39', return_code='0', job_id='446795', GAL2='0.80', EG2='1.35', return_code2='0', energy_flux_error='2.58e-05', photon_flux_error2='5.14e-08', ts2='12.84', photon_index='1.72' WHERE bin_id='193' AND source_name='4FGL J2243.9+2021' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 19:22:17 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0213>
Subject: Job 446795: <4FGL_J2243.9+2021_daily_bin193> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2243.9+2021_daily_bin193 340.99 20.3565 289353601 289612801 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 :                                   863.31 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             288.19 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   991 sec.
    Turnaround time :                            994 sec.

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

