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


Performing analysis on: 4FGL_J2243.9+2021_daily_bin726
RA = 340.99, Dec = 20.3565
tmin = 427507201, tmax = 427766401
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='449598', job_status='RUN', time_executed='2021-09-28 19:17:50.865206', time_epoch_executed='1632881870.87' WHERE source_name='4FGL J2243.9+2021' and cadence='daily' and bin_id='726'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/449598

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/449598/ft1_4FGL_J2243.9+2021_daily_bin726.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/449598/ft2_4FGL_J2243.9+2021_daily_bin726.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/449598/ft1_4FGL_J2243.9+2021_daily_bin726.fits outfile=/scratch/kocevski/449598/ft1_filteredMKT_4FGL_J2243.9+2021_daily_bin726.fits ra=340.99 dec=20.3565 rad=12.0 tmin=427507201.0 tmax=427766401.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 5.44
user 5.16
sys 0.22

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/449598/ft1_filtered_4FGL_J2243.9+2021_daily_bin726.fits evtable="EVENTS" scfile=/scratch/kocevski/449598/ft2_4FGL_J2243.9+2021_daily_bin726.fits sctable="SC_DATA" expcube=/scratch/kocevski/449598/ltcube_427507201_427766401_4FGL_J2243.9+2021_daily_bin726.fits outfile=/scratch/kocevski/449598/expmap_427507201_427766401_4FGL_J2243.9+2021_daily_bin726.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/449598/ltcube_427507201_427766401_4FGL_J2243.9+2021_daily_bin726.fits
.....................!
real 190.77
user 184.85
sys 5.60

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/449598/ft1_filtered_4FGL_J2243.9+2021_daily_bin726.fits scfile=/scratch/kocevski/449598/ft2_4FGL_J2243.9+2021_daily_bin726.fits outfile=/scratch/kocevski/449598/cmap_427507201_427766401_4FGL_J2243.9+2021_daily_bin726.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=340.99 yref=20.3565 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.53
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/449598/ft1_filtered_4FGL_J2243.9+2021_daily_bin726.fits scfile=/scratch/kocevski/449598/ft2_4FGL_J2243.9+2021_daily_bin726.fits outfile=/scratch/kocevski/449598/cmap_HighResolution_427507201_427766401_4FGL_J2243.9+2021_daily_bin726.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=340.99 yref=20.3565 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.54
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .94632       1.0000         .10000E-03   10000.    
     3 'Prefactor '    10.934       1.0000         .10000E-03   10000.    
     4 'norm      '    .10060E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .13141E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    46.600       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .13025       1.0000         .10000E-03   10000.    
     9 'Prefactor '    11.220       1.0000         .10000E-03   10000.    
    10 'norm      '    .10113E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10142E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .23963       1.0000         .10000E-03   10000.    
    13 'Prefactor '    37.667       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    6.8551       1.0000         .10000E-03   10000.    
    17 'Prefactor '    15.655       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    15.915       1.0000         .10000E-03   10000.    
    20 'Prefactor '    52.246       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    13.559       1.0000         .10000E-03   10000.    
    23 'Prefactor '    12.330       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .26634       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.2599       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=   5319.449     FROM MIGRAD    STATUS=CONVERGED   1015 CALLS     3795 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    20.261        .18142E-02** at limit **
   2  norm          .94669        1.0027        .73994E-04   -.18606E-03
   3  Prefactor     10.933        14.636        .12116E-03   -.27117E-04
   4  norm          .10000E-03    3.8002        .13863E-02** at limit **
   5  Prefactor     .10000E-03    10.499        .18142E-02** at limit **
   6  Prefactor     .10000E-03    401.57        .18142E-02** at limit **
   7  Prefactor     46.595        24.200        .58736E-04   -.28952E-03
   8  Prefactor     .13032        .23387        .47784E-03   -.18759E-02
   9  Prefactor     11.221        10.980        .59801E-03    .30189E-03
  10  norm          .10000E-03    .79339        .10614E-02** at limit **
  11  Prefactor     .10000E-03    31.454        .18142E-02** at limit **
  12  norm          .24023        2.4691        .22161E-03   -.14145E-02
  13  Prefactor     37.669        42.582        .65304E-04   -.21239E-05
  14  Prefactor     .10000E-03    5.0411        .15984E-02** at limit **
  15  Prefactor     .10000E-03    29.145        .18142E-02** at limit **
  16  Prefactor     6.8552        .59030        .15484E-04   -.28634E-03
  17  Prefactor     15.658        13.306        .10123E-03   -.13814E-04
  18  Prefactor     .10000E-03    4.4584        .15027E-02** at limit **
  19  Prefactor     15.917        17.987        .10040E-03    .76208E-04
  20  Prefactor     52.253        30.514        .55487E-04    .14047E-03
  21  Prefactor     .10000E-03    10.874        .18142E-02** at limit **
  22  Prefactor     13.563        12.502        .10878E-03   -.62395E-04
  23  Prefactor     12.334        29.607        .11408E-03    .25213E-04
  24  Normalizat    .26630        .38096        .75719E-03    .27026E-05
  25  Prefactor     1.2599        .20624        .20412E-03   -.25676E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.946692
  Prefactor  = 10.9325
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 46.5947
  Prefactor  = 0.130317
  Prefactor  = 11.2207
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.240233
  Prefactor  = 37.6686
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.85516
  Prefactor  = 15.6581
  Prefactor  = 0.0001
  Prefactor  = 15.9173
  Prefactor  = 52.2528
  Prefactor  = 0.0001
  Prefactor  = 13.5631
  Prefactor  = 12.3342
  Normalizat = 0.2663
  Prefactor  = 1.25986
 **********
 **   18 **HESSE 
 **********

 FCN=   5319.449     FROM HESSE     STATUS=OK           403 CALLS     4198 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    20.261        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .94669        1.0027        .29598E-05   -1.5513    
   3  Prefactor     10.933        14.635        .48464E-05   -1.5047    
   4  norm          .10000E-03    3.8004        .27727E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    10.500        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    401.63        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     46.595        24.195        .11747E-04   -1.4342    
   8  Prefactor     .13032        .23365        .19114E-04   -1.5636    
   9  Prefactor     11.221        10.979        .23920E-04   -1.5038    
  10  norm          .10000E-03    .79400        .21228E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    31.465        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .24023        2.4688        .88643E-05   -1.5610    
  13  Prefactor     37.669        42.582        .13061E-04   -1.4480    
  14  Prefactor     .10000E-03    5.0412        .31969E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    29.146        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     6.8552        .59026        .61937E-06   -1.5184    
  17  Prefactor     15.658        13.306        .40491E-05   -1.4916    
  18  Prefactor     .10000E-03    4.4586        .30054E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     15.917        17.986        .40159E-05   -1.4910    
  20  Prefactor     52.253        30.513        .11097E-04   -1.4261    
  21  Prefactor     .10000E-03    10.875        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     13.563        12.500        .43511E-05   -1.4971    
  23  Prefactor     12.334        29.608        .45632E-05   -1.5005    
  24  Normalizat    .26630        .38010        .30288E-04   -1.2491    
  25  Prefactor     1.2599        .20587        .81647E-05   -.84509    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.52545e-09
Minuit parameter uncertainties:
  1  2.58213e-06
  2  1.00267
  3  14.6395
  4  1.62384e-05
  5  1.33471e-06
  6  0.000468245
  7  24.2002
  8  0.233654
  9  10.9806
  10  3.08668e-06
  11  5.51814e-05
  12  1.54001
  13  42.6166
  14  1.3897e-06
  15  4.89088e-05
  16  0.590262
  17  13.3083
  18  2.90348e-06
  19  17.9924
  20  30.5218
  21  8.99346e-06
  22  12.5022
  23  29.6433
  24  0.383868
  25  0.206006
Done.

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

Extracting fit parameters...

4FGL J2243.9+2021
   Spectrum: LogParabola
288         norm:  2.402e-01  1.540e+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.260e+00  2.060e-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:  2.663e-01  3.839e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/449598/likelihoodResults_427507201_427766401_4FGL_J2243.9+2021_daily_bin726.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) = 5319.0796811
delta logL = 0.368978248705

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5319.07468445
delta logL = 0.373974895816

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .26996       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.1070       1.0000          .0000       5.0000    
     3 'Normalizat'    .23527       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2663       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=   5319.075     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      218 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .27004        8.5967        .10292E-01    .21255E-03
   2  alpha         3.1072        4.0442        .31396        .72172E-04
   3  Normalizat    .23548        .59844E-01    .18285        .72878E-04
   4  Prefactor     1.2662        .33808E-01    .33224E-01    .45051E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.270044
  alpha      = 3.10718
  Normalizat = 0.235475
  Prefactor  = 1.26622
 **********
 **   18 **HESSE 
 **********

 FCN=   5319.075     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      253 TOTAL
                     EDM=   .43E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .27004        28.638        .56128E-03   -1.5604    
   2  alpha         3.1072        3.2423        .16203E-01    .24532    
   3  Normalizat    .23548        .35161        .79983E-03   -1.2692    
   4  Prefactor     1.2662        .19223        .20339E-03   -.84317    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.34581e-08
Minuit parameter uncertainties:
  1  5.56359
  2  10.6176
  3  0.354983
  4  0.19234
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/449598': 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): 102
logL (Free Index) = 5319.07468416
delta logL = 0.373975186392

Extracting fit parameters...

4FGL J2243.9+2021
   Spectrum: LogParabola
288         norm:  2.700e-01  5.564e+00  1.000e-04  1.000e+04 ( 1.000e-12)
289        alpha:  3.107e+00  1.062e+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:  1.266e+00  1.923e-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:  2.355e-01  3.550e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

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

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.95e-05', job_status='DONE', photon_flux_upper_limit='6.90e-08', time_completed='2021-09-28 19:29:41.372661', job_id='449598', GAL2='1.27', fit_tolerance='1e-08', EG2='0.24', EG='0.27', time_epoch_completed='1632882581.37', return_code2='102', ts='0.03', comment='SUCCESS', return_code='0', GAL='1.26', dlogl='3.74e-01', ts2='0.78', photon_index_error='0.00', photon_index='1.72' WHERE bin_id='726' AND source_name='4FGL J2243.9+2021' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 19:29:41 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0073>
Subject: Job 449598: <4FGL_J2243.9+2021_daily_bin726> in cluster <slac> Done

Job <4FGL_J2243.9+2021_daily_bin726> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Tue Sep 28 19:15:25 2021
Job was executed on host(s) <bullet0073>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 19:15:26 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 28 19:15:26 2021
Terminated at Tue Sep 28 19:29:42 2021
Results reported at Tue Sep 28 19:29:42 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2243.9+2021_daily_bin726 340.99 20.3565 427507201 427766401 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 :                                   709.32 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             274.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   855 sec.
    Turnaround time :                            857 sec.

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

