/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 237 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 = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2228.6-1636_daily_bin161
RA = 337.166, Dec = -16.6073
tmin = 281059201, tmax = 281318401
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='303012', job_status='RUN', time_executed='2021-09-28 11:34:23.202411', time_epoch_executed='1632854063.2' WHERE source_name='4FGL J2228.6-1636' and cadence='daily' and bin_id='161'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/303012

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/303012/ft1_4FGL_J2228.6-1636_daily_bin161.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/303012/ft2_4FGL_J2228.6-1636_daily_bin161.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/303012/ft1_4FGL_J2228.6-1636_daily_bin161.fits outfile=/scratch/kocevski/303012/ft1_filteredMKT_4FGL_J2228.6-1636_daily_bin161.fits ra=337.166 dec=-16.6073 rad=12.0 tmin=281059201.0 tmax=281318401.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 4.47
user 4.23
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/303012/ft2_4FGL_J2228.6-1636_daily_bin161.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/303012/ft2_4FGL_J2228.6-1636_daily_bin161.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/303012/ft1_filteredMKT_4FGL_J2228.6-1636_daily_bin161.fits evtable="EVENTS" outfile="/scratch/kocevski/303012/ft1_filtered_4FGL_J2228.6-1636_daily_bin161.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.32
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/303012/ft1_filtered_4FGL_J2228.6-1636_daily_bin161.fits" evtable="EVENTS" scfile=/scratch/kocevski/303012/ft2_4FGL_J2228.6-1636_daily_bin161.fits sctable="SC_DATA" outfile=/scratch/kocevski/303012/ltcube_281059201_281318401_4FGL_J2228.6-1636_daily_bin161.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/303012/ft2_4FGL_J2228.6-1636_daily_bin161.fits
.....................!
real 11.89
user 11.56
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/303012/ft1_filtered_4FGL_J2228.6-1636_daily_bin161.fits evtable="EVENTS" scfile=/scratch/kocevski/303012/ft2_4FGL_J2228.6-1636_daily_bin161.fits sctable="SC_DATA" expcube=/scratch/kocevski/303012/ltcube_281059201_281318401_4FGL_J2228.6-1636_daily_bin161.fits outfile=/scratch/kocevski/303012/expmap_281059201_281318401_4FGL_J2228.6-1636_daily_bin161.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/303012/ltcube_281059201_281318401_4FGL_J2228.6-1636_daily_bin161.fits
.....................!
real 191.81
user 185.98
sys 5.51

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 152 point sources and 0 extended sources

Setting source of interest to:
4FGL J2228.6-1636 @ 337.166 -16.6073

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/303012/ft1_filtered_4FGL_J2228.6-1636_daily_bin161.fits scfile=/scratch/kocevski/303012/ft2_4FGL_J2228.6-1636_daily_bin161.fits outfile=/scratch/kocevski/303012/cmap_281059201_281318401_4FGL_J2228.6-1636_daily_bin161.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=337.166 yref=-16.6073 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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/303012/ft1_filtered_4FGL_J2228.6-1636_daily_bin161.fits scfile=/scratch/kocevski/303012/ft2_4FGL_J2228.6-1636_daily_bin161.fits outfile=/scratch/kocevski/303012/cmap_HighResolution_281059201_281318401_4FGL_J2228.6-1636_daily_bin161.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=337.166 yref=-16.6073 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/303012/ft1_filtered_4FGL_J2228.6-1636_daily_bin161.fits evtable="EVENTS" scfile=/scratch/kocevski/303012/ft2_4FGL_J2228.6-1636_daily_bin161.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/303012/Model_4FGL_J2228.6-1636_daily_bin161.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/303012/ft1_filtered_4FGL_J2228.6-1636_daily_bin161.fits.....................!
real 65.77
user 56.69
sys 1.40

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/303012/ft1_filtered_4FGL_J2228.6-1636_daily_bin161.fits', '/scratch/kocevski/303012/ft2_4FGL_J2228.6-1636_daily_bin161.fits', expMap='/scratch/kocevski/303012/expmap_281059201_281318401_4FGL_J2228.6-1636_daily_bin161.fits', expCube='/scratch/kocevski/303012/ltcube_281059201_281318401_4FGL_J2228.6-1636_daily_bin161.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/303012/Model_4FGL_J2228.6-1636_daily_bin161.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2228.6-1636'

4FGL J2228.6-1636
   Spectrum: PowerLaw
228    Prefactor:  6.423e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
229        Index:  2.058e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
230        Scale:  2.181e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/303012/ft1_filtered_4FGL_J2228.6-1636_daily_bin161.fits
Spacecraft file(s): /scratch/kocevski/303012/ft2_4FGL_J2228.6-1636_daily_bin161.fits
Exposure map: /scratch/kocevski/303012/expmap_281059201_281318401_4FGL_J2228.6-1636_daily_bin161.fits
Exposure cube: /scratch/kocevski/303012/ltcube_281059201_281318401_4FGL_J2228.6-1636_daily_bin161.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/303012/Model_4FGL_J2228.6-1636_daily_bin161.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) = 6981.36862343

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    28.690       1.0000         .10000E-03   10000.    
     2 'norm      '    6.4630       1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.5462       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .17479E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    32.735       1.0000         .10000E-03   10000.    
     8 'Prefactor '    75.162       1.0000         .10000E-03   10000.    
     9 'Prefactor '    5.3932       1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.2525       1.0000         .10000E-03   10000.    
    11 'norm      '    4.0611       1.0000         .10000E-03   10000.    
    12 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    18.850       1.0000         .10000E-03   10000.    
    15 'norm      '    1.8217       1.0000         .10000E-03   10000.    
    16 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    45.090       1.0000         .10000E-03   10000.    
    18 'Prefactor '    8.5789       1.0000         .10000E-03   10000.    
    19 'norm      '    .10202E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    2.8995       1.0000         .10000E-03   10000.    
    21 'Prefactor '    24.513       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .61602       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.1095       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4880E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6981.359     FROM MIGRAD    STATUS=CONVERGED    529 CALLS     2726 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     28.689        17.085        .27036E-07    .47907E-04
   2  norm          6.4627        6.2348       -.15995E-07   -.47645E-04
   3  Prefactor     1.5459        4.5146       -.83151E-06   -.82883E-03
   4  Prefactor     .10000E-03    5.5331       -.19681E-06** at limit **
   5  Prefactor     .10000E-03    17.041        .59713E-06** at limit **
   6  Prefactor     .10000E-03    4.2434        .25780E-06** at limit **
   7  Prefactor     32.736        17.012        .75746E-06   -.28942E-03
   8  Prefactor     75.160        80.004       -.21504E-05    .12087E-03
   9  Prefactor     5.3930        4.0984        .15604E-06   -.33321E-03
  10  Prefactor     4.2507        80.469       -.64274E-05    .65047E-04
  11  norm          4.0610        3.3293       -.27079E-07   -.14636E-03
  12  norm          .10000E-03    7.4060        .21951E-06** at limit **
  13  Prefactor     .10000E-03    22.139       -.41319E-07** at limit **
  14  Prefactor     18.851        11.009       -.14496E-07    .28811E-04
  15  norm          1.8217        .82630        .20057E-07    .65722E-03
  16  norm          .10000E-03    .80212       -.13571E-08** at limit **
  17  Prefactor     45.090        39.447        .58611E-07    .10792E-04
  18  Prefactor     8.5814        8.8131        .43279E-06    .68485E-03
  19  norm          .10000E-03    .47111       -.89773E-06** at limit **
  20  Prefactor     2.9042        35.927        .13681E-04   -.63571E-04
  21  Prefactor     24.513        11.557       -.35976E-06    .20968E-03
  22  Prefactor     .10000E-03    4.1578       -.27671E-06** at limit **
  23  Normalizat    .61596        .18150       -.87438E-06    .20549E-03
  24  Prefactor     1.1096        .13889        .25917E-06    .32896E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 28.6894
  norm       = 6.46273
  Prefactor  = 1.54593
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 32.7361
  Prefactor  = 75.16
  Prefactor  = 5.39301
  Prefactor  = 4.25073
  norm       = 4.06096
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 18.8511
  norm       = 1.82171
  norm       = 0.0001
  Prefactor  = 45.0896
  Prefactor  = 8.58135
  norm       = 0.000100002
  Prefactor  = 2.90415
  Prefactor  = 24.5133
  Prefactor  = 0.0001
  Normalizat = 0.615955
  Prefactor  = 1.10959
 **********
 **   18 **HESSE 
 **********

 FCN=   6981.359     FROM HESSE     STATUS=OK           397 CALLS     3123 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     28.689        17.074        .74798E-04   -1.4636    
   2  norm          6.4627        6.2359        .15787E-03   -1.5199    
   3  Prefactor     1.5459        4.7122        .30264E-03   -1.5459    
   4  Prefactor     .10000E-03    5.5412        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    17.759        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    4.2573        .16804E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     32.736        16.926        .70036E-04   -1.4563    
   8  Prefactor     75.160        79.591        .46314E-04   -1.3972    
   9  Prefactor     5.3930        4.0889        .14238E-03   -1.5243    
  10  Prefactor     4.2507        79.667        .19539E-03   -1.5296    
  11  norm          4.0610        3.3196        .12851E-03   -1.5305    
  12  norm          .10000E-03    7.4186        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    22.144        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     18.851        11.024        .92249E-04   -1.4839    
  15  norm          1.8217        .82289        .48701E-04   -1.5438    
  16  norm          .10000E-03    .80410        .72773E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     45.090        39.384        .59707E-04   -1.4364    
  18  Prefactor     8.5814        8.3836        .13686E-03   -1.5122    
  19  norm          .10000E-03    1.8584        .98771E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     2.9042        31.790        .23863E-03   -1.5367    
  21  Prefactor     24.513        11.528        .80907E-04   -1.4717    
  22  Prefactor     .10000E-03    4.1813        .16636E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .61596        .20654        .31804E-03   -1.0731    
  24  Prefactor     1.1096        .16008        .19491E-03   -.89161    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.21511e-09
Minuit parameter uncertainties:
  1  17.0771
  2  6.23657
  3  4.71337
  4  2.04677e-05
  5  0.000114618
  6  9.24875e-06
  7  16.9288
  8  79.7042
  9  4.08912
  10  36.8611
  11  3.31971
  12  2.0091e-05
  13  5.44048e-06
  14  11.0256
  15  0.822899
  16  3.63541e-07
  17  39.4065
  18  8.38477
  19  0.000122066
  20  19.2295
  21  11.529
  22  9.9481e-06
  23  0.206797
  24  0.160146
Done.

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

Extracting fit parameters...

4FGL J2228.6-1636
   Spectrum: PowerLaw
228    Prefactor:  4.251e+00  3.686e+01  1.000e-04  1.000e+04 ( 1.000e-14)
229        Index:  2.058e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
230        Scale:  2.181e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
485    Prefactor:  1.110e+00  1.601e-01  0.000e+00  1.000e+01 ( 1.000e+00)
486        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
487        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
484   Normalization:  6.160e-01  2.068e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.01
Ra Dec: 337.166 -16.607
Photon Flux Upper Limit: 5.80e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.37e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/303012/likelihoodResults_281059201_281318401_4FGL_J2228.6-1636_daily_bin161.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) = 6980.89786734
delta logL = 0.460775285169

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6980.79413085
delta logL = 0.564511774712

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .20328E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    6.7903       1.0000          .0000       10.000    
     3 'Normalizat'    .55881       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1398       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4880E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6980.794     FROM MIGRAD    STATUS=CONVERGED    115 CALLS      426 TOTAL
                     EDM=   .66E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .19902E-03    .59174E-02    .26504E-03** at limit **
   2  Index         6.7980        2.0744        .95107E-01    .13428E-03
   3  Normalizat    .55859        .34010E-01    .75191E-01    .10368E-03
   4  Prefactor     1.1401        .27415E-01    .36239E-01    .17008E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000199019
  Index      = 6.79799
  Normalizat = 0.558587
  Prefactor  = 1.14008
 **********
 **   18 **HESSE 
 **********

 FCN=   6980.794     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      457 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .19902E-03    .22191E-01    .16475E-05   -1.5706    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         6.7980        7.5267        .49348E-02    .36784    
   3  Normalizat    .55859        .15274        .33291E-03   -1.0977    
   4  Prefactor     1.1401        .12170        .19256E-03   -.88196    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.45797e-09
Minuit parameter uncertainties:
  1  0.00296469
  2  5.02401
  3  0.15286
  4  0.121731
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/303012': 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) = 6980.79412765
delta logL = 0.564514981671

Extracting fit parameters...

4FGL J2228.6-1636
   Spectrum: PowerLaw
228    Prefactor:  1.990e-04  2.965e-03  1.000e-04  1.000e+04 ( 1.000e-14)
229        Index:  6.798e+00  5.024e+00  0.000e+00  1.000e+01 (-1.000e+00)
230        Scale:  2.181e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
485    Prefactor:  1.140e+00  1.217e-01  0.000e+00  1.000e+01 ( 1.000e+00)
486        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
487        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
484   Normalization:  5.586e-01  1.529e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.22
Ra Dec: 337.166 -16.607
Photon Index (Free Index): 6.80 +/- 5.02
Photon Flux (Free Index): 4.37e-08 +/- 4.49e-08
Energy Flux (Free Index): 5.26e-06 +/- 5.72e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to -9.398e-02 [aplpy.core]
INFO: Auto-setting vmax to  1.043e+00 [aplpy.core]
Saving /scratch/kocevski/303012/cmap_HighResolution_281059201_281318401_4FGL_J2228.6-1636_daily_bin161.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.37e-03', comment='SUCCESS', energy_flux2='5.26e-06', dlogl='5.65e-01', photon_flux2='4.37e-08', job_status='DONE', time_completed='2021-09-28 11:45:48.267871', photon_index_error2='5.02', photon_index2='6.80', ts='0.01', fit_tolerance='1e-08', GAL='1.11', photon_index_error='0.00', photon_flux_upper_limit='5.80e-08', energy_flux_error2='5.72e-06', EG='0.62', time_epoch_completed='1632854748.27', return_code='0', job_id='303012', GAL2='1.14', EG2='0.56', return_code2='102', photon_flux_error2='4.49e-08', ts2='1.22', photon_index='2.06' WHERE bin_id='161' AND source_name='4FGL J2228.6-1636' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 11:45:48 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0239>
Subject: Job 303012: <4FGL_J2228.6-1636_daily_bin161> in cluster <slac> Done

Job <4FGL_J2228.6-1636_daily_bin161> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Tue Sep 28 11:30:18 2021
Job was executed on host(s) <bullet0239>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 11:30:20 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 28 11:30:20 2021
Terminated at Tue Sep 28 11:45:49 2021
Results reported at Tue Sep 28 11:45:49 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2228.6-1636_daily_bin161 337.166 -16.6073 281059201 281318401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2228.6-1636 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   676.24 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             230.45 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   928 sec.
    Turnaround time :                            931 sec.

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

