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


Performing analysis on: 4FGL_J2243.9+2021_daily_bin1654
RA = 340.99, Dec = 20.3565
tmin = 668044801, tmax = 668304001
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='101563', job_status='RUN', time_executed='2022-03-07 01:25:56.538336', time_epoch_executed='1646645156.54' WHERE source_name='4FGL J2243.9+2021' and cadence='daily' and bin_id='1654'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/101563

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/101563/ft1_4FGL_J2243.9+2021_daily_bin1654.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/101563/ft2_4FGL_J2243.9+2021_daily_bin1654.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/101563/ft1_4FGL_J2243.9+2021_daily_bin1654.fits outfile=/scratch/kocevski/101563/ft1_filteredMKT_4FGL_J2243.9+2021_daily_bin1654.fits ra=340.99 dec=20.3565 rad=12.0 tmin=668044801.0 tmax=668304001.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.67
user 3.47
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/101563/ft2_4FGL_J2243.9+2021_daily_bin1654.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/101563/ft1_filteredMKT_4FGL_J2243.9+2021_daily_bin1654.fits evtable="EVENTS" outfile="/scratch/kocevski/101563/ft1_filtered_4FGL_J2243.9+2021_daily_bin1654.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.51
user 0.36
sys 0.14
Number of photons that survived the gtmktime cut: 865

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/101563/ft1_filtered_4FGL_J2243.9+2021_daily_bin1654.fits evtable="EVENTS" scfile=/scratch/kocevski/101563/ft2_4FGL_J2243.9+2021_daily_bin1654.fits sctable="SC_DATA" expcube=/scratch/kocevski/101563/ltcube_668044801_668304001_4FGL_J2243.9+2021_daily_bin1654.fits outfile=/scratch/kocevski/101563/expmap_668044801_668304001_4FGL_J2243.9+2021_daily_bin1654.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/101563/ltcube_668044801_668304001_4FGL_J2243.9+2021_daily_bin1654.fits
.....................!
real 191.85
user 187.28
sys 4.19

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/101563/ft1_filtered_4FGL_J2243.9+2021_daily_bin1654.fits scfile=/scratch/kocevski/101563/ft2_4FGL_J2243.9+2021_daily_bin1654.fits outfile=/scratch/kocevski/101563/cmap_668044801_668304001_4FGL_J2243.9+2021_daily_bin1654.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.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/101563/ft1_filtered_4FGL_J2243.9+2021_daily_bin1654.fits scfile=/scratch/kocevski/101563/ft2_4FGL_J2243.9+2021_daily_bin1654.fits outfile=/scratch/kocevski/101563/cmap_HighResolution_668044801_668304001_4FGL_J2243.9+2021_daily_bin1654.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.56
user 0.42
sys 0.13

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10204E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .36952       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .70284       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.1153       1.0000         .10000E-03   10000.    
     9 'Prefactor '    15.388       1.0000         .10000E-03   10000.    
    10 'norm      '    2.8918       1.0000         .10000E-03   10000.    
    11 'Prefactor '    10.358       1.0000         .10000E-03   10000.    
    12 'norm      '    .31337       1.0000         .10000E-03   10000.    
    13 'Prefactor '    58.281       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.0289       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10301E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    32.726       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .61185E-01   1.0000         .10000E-03   10000.    
    23 'Prefactor '    5.6716       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.0332       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0586       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=   9225.712     FROM MIGRAD    STATUS=CONVERGED    608 CALLS     2976 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    44.974        .70153E-05** at limit **
   2  norm          .10000E-03    .26180       -.74729E-08** at limit **
   3  Prefactor     .10000E-03    3.8113        .46515E-07** at limit **
   4  norm          .40675        3.6274       -.15984E-05   -.14110E-03
   5  Prefactor     .54664        10.700        .24960E-05   -.81355E-03
   6  Prefactor     .10000E-03    52.125       -.22604E-04** at limit **
   7  Prefactor     .10000E-03    5.7525       -.93404E-07** at limit **
   8  Prefactor     2.1160        .34779        .46932E-07   -.45718E-02
   9  Prefactor     15.386        10.168       -.41166E-05   -.57767E-04
  10  norm          2.8917        1.4109       -.20344E-06   -.18220E-03
  11  Prefactor     10.339        25.580        .41302E-05   -.11576E-04
  12  norm          .31251        .93719       -.56174E-06   -.14336E-02
  13  Prefactor     58.274        42.022       -.49802E-05    .11887E-04
  14  Prefactor     .10000E-03    2.2991        .57769E-07** at limit **
  15  Prefactor     .10000E-03    6.2334        .15073E-05** at limit **
  16  Prefactor     1.0288        .21212        .50409E-07   -.76850E-03
  17  Prefactor     .10000E-03    12.494       -.24773E-06** at limit **
  18  Prefactor     .10000E-03    5.0678        .20068E-07** at limit **
  19  Prefactor     .10000E-03    6.2425       -.13888E-05** at limit **
  20  Prefactor     32.726        22.303        .69106E-06    .39751E-05
  21  Prefactor     .10000E-03    8.0126       -.16437E-06** at limit **
  22  Prefactor     .10017E-03    4.1172       -.10387E-06** at limit **
  23  Prefactor     5.6951        16.274       -.66722E-06   -.38796E-04
  24  Normalizat    1.0337        .22944       -.55170E-06    .68099E-04
  25  Prefactor     1.0585        .11884        .55218E-06    .55441E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.406753
  Prefactor  = 0.546637
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.11596
  Prefactor  = 15.3863
  norm       = 2.89171
  Prefactor  = 10.3392
  norm       = 0.312509
  Prefactor  = 58.2738
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.02882
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 32.7261
  Prefactor  = 0.0001
  Prefactor  = 0.00010017
  Prefactor  = 5.6951
  Normalizat = 1.03367
  Prefactor  = 1.0585
 **********
 **   18 **HESSE 
 **********

 FCN=   9225.712     FROM HESSE     STATUS=OK           437 CALLS     3413 TOTAL
                     EDM=   .90E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    45.112        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    .26711        .47955E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    3.8146        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .40675        12.634        .34829E-02   -1.5580    
   5  Prefactor     .54664        119.29        .56596E-02   -1.5560    
   6  Prefactor     .10000E-03    51.578        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    5.7927        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     2.1160        .35307        .20686E-04   -1.5417    
   9  Prefactor     15.386        10.159        .10210E-03   -1.4923    
  10  norm          2.8917        1.4085        .69779E-04   -1.5368    
  11  Prefactor     10.339        25.462        .12450E-03   -1.5065    
  12  norm          .31251        1.0877        .15842E-02   -1.5596    
  13  Prefactor     58.274        42.099        .52551E-04   -1.4180    
  14  Prefactor     .10000E-03    2.3003        .14223E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    6.2348        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     1.0288        .21293        .18409E-04   -1.5505    
  17  Prefactor     .10000E-03    12.946        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    5.1213        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    6.2590        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     32.726        22.298        .70045E-04   -1.4563    
  21  Prefactor     .10000E-03    8.0235        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10017E-03    5.2535        .57117E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     5.6951        16.266        .16867E-03   -1.5231    
  24  Normalizat    1.0337        .26508        .38172E-03   -.91911    
  25  Prefactor     1.0585        .13898        .20377E-03   -.90804    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.04866e-08
Minuit parameter uncertainties:
  1  2.972e-05
  2  1.9391e-07
  3  4.52692e-07
  4  4.53426
  5  16.1816
  6  8.54309e-06
  7  7.08796e-06
  8  0.353071
  9  10.1601
  10  1.40854
  11  25.4886
  12  1.08776
  13  42.1208
  14  1.38756e-06
  15  3.24898e-06
  16  0.212932
  17  6.04598e-06
  18  2.64379e-06
  19  5.77636e-07
  20  22.304
  21  3.10878e-06
  22  0.00188889
  23  16.279
  24  0.265418
  25  0.139024
Done.

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

Extracting fit parameters...

4FGL J2243.9+2021
   Spectrum: LogParabola
288         norm:  3.125e-01  1.088e+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:  1.059e+00  1.390e-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.034e+00  2.654e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/101563/likelihoodResults_668044801_668304001_4FGL_J2243.9+2021_daily_bin1654.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) = 9225.70366172
delta logL = 0.00880574800976

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9225.70340444
delta logL = 0.00906302915791

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .33657       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9192       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0329       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0583       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=   9225.703     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      211 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .33588        19.662        .40635E-01    .19025E-02
   2  alpha         1.9193        2.6933        .42651        .18658E-04
   3  Normalizat    1.0329        .30984E-01    .86234E-01   -.82817E-04
   4  Prefactor     1.0583        .16818E-01    .39444E-01   -.21806E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.335876
  alpha      = 1.91926
  Normalizat = 1.03288
  Prefactor  = 1.05834
 **********
 **   18 **HESSE 
 **********

 FCN=   9225.703     FROM HESSE     STATUS=OK            33 CALLS      244 TOTAL
                     EDM=   .21E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .33588        1.1176        .15279E-02   -1.5592    
   2  alpha         1.9193        1.4298        .43227E-01   -.23444    
   3  Normalizat    1.0329        .25282        .38184E-03   -.91937    
   4  Prefactor     1.0583        .13764        .20378E-03   -.90809    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.09388e-08
Minuit parameter uncertainties:
  1  1.11766
  2  1.52851
  3  0.253112
  4  0.137683
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/101563': 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) = 9225.70340423
delta logL = 0.00906324573771

Extracting fit parameters...

4FGL J2243.9+2021
   Spectrum: LogParabola
288         norm:  3.359e-01  1.118e+00  1.000e-04  1.000e+04 ( 1.000e-12)
289        alpha:  1.919e+00  1.529e+00  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.058e+00  1.377e-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.033e+00  2.531e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.10
Ra Dec: 340.990 20.357

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/101563/cmap_HighResolution_668044801_668304001_4FGL_J2243.9+2021_daily_bin1654.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.90e-05', job_status='DONE', photon_flux_upper_limit='4.54e-08', time_completed='2022-03-07 01:40:29.244029', job_id='101563', GAL2='1.06', fit_tolerance='1e-08', EG2='1.03', EG='1.03', time_epoch_completed='1646646029.24', return_code2='0', ts='0.10', comment='SUCCESS', return_code='0', GAL='1.06', dlogl='9.06e-03', ts2='0.12', photon_index_error='0.00', photon_index='1.72' WHERE bin_id='1654' AND source_name='4FGL J2243.9+2021' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Mar  7 01:40:29 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0209>
Subject: Job 101563: <4FGL_J2243.9+2021_daily_bin1654> in cluster <slac> Done

Job <4FGL_J2243.9+2021_daily_bin1654> was submitted from host <rhel6-64n> by user <kocevski> in cluster <slac> at Mon Mar  7 01:25:22 2022
Job was executed on host(s) <bullet0209>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Mar  7 01:25:43 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Mar  7 01:25:43 2022
Terminated at Mon Mar  7 01:40:29 2022
Results reported at Mon Mar  7 01:40:29 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2243.9+2021_daily_bin1654 340.99 20.3565 668044801 668304001 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 :                                   874.05 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             359.37 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   886 sec.
    Turnaround time :                            907 sec.

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

