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


Performing analysis on: 4FGL_J2228.6-1636_daily_bin1132
RA = 337.166, Dec = -16.6073
tmin = 532742401, tmax = 533001601
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='306498', job_status='RUN', time_executed='2021-09-28 11:42:15.709213', time_epoch_executed='1632854535.71' WHERE source_name='4FGL J2228.6-1636' and cadence='daily' and bin_id='1132'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/306498

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/306498/ft1_4FGL_J2228.6-1636_daily_bin1132.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/306498/ft2_4FGL_J2228.6-1636_daily_bin1132.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/306498/ft1_4FGL_J2228.6-1636_daily_bin1132.fits outfile=/scratch/kocevski/306498/ft1_filteredMKT_4FGL_J2228.6-1636_daily_bin1132.fits ra=337.166 dec=-16.6073 rad=12.0 tmin=532742401.0 tmax=533001601.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.64
user 3.43
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/306498/ft1_filtered_4FGL_J2228.6-1636_daily_bin1132.fits" evtable="EVENTS" scfile=/scratch/kocevski/306498/ft2_4FGL_J2228.6-1636_daily_bin1132.fits sctable="SC_DATA" outfile=/scratch/kocevski/306498/ltcube_532742401_533001601_4FGL_J2228.6-1636_daily_bin1132.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/306498/ft2_4FGL_J2228.6-1636_daily_bin1132.fits
.....................!
real 11.96
user 11.61
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/306498/ft1_filtered_4FGL_J2228.6-1636_daily_bin1132.fits evtable="EVENTS" scfile=/scratch/kocevski/306498/ft2_4FGL_J2228.6-1636_daily_bin1132.fits sctable="SC_DATA" expcube=/scratch/kocevski/306498/ltcube_532742401_533001601_4FGL_J2228.6-1636_daily_bin1132.fits outfile=/scratch/kocevski/306498/expmap_532742401_533001601_4FGL_J2228.6-1636_daily_bin1132.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/306498/ltcube_532742401_533001601_4FGL_J2228.6-1636_daily_bin1132.fits
.....................!
real 190.89
user 185.89
sys 4.66

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/306498/ft1_filtered_4FGL_J2228.6-1636_daily_bin1132.fits scfile=/scratch/kocevski/306498/ft2_4FGL_J2228.6-1636_daily_bin1132.fits outfile=/scratch/kocevski/306498/cmap_532742401_533001601_4FGL_J2228.6-1636_daily_bin1132.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.54
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/306498/ft1_filtered_4FGL_J2228.6-1636_daily_bin1132.fits scfile=/scratch/kocevski/306498/ft2_4FGL_J2228.6-1636_daily_bin1132.fits outfile=/scratch/kocevski/306498/cmap_HighResolution_532742401_533001601_4FGL_J2228.6-1636_daily_bin1132.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.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/306498/ft1_filtered_4FGL_J2228.6-1636_daily_bin1132.fits evtable="EVENTS" scfile=/scratch/kocevski/306498/ft2_4FGL_J2228.6-1636_daily_bin1132.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/306498/Model_4FGL_J2228.6-1636_daily_bin1132.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/306498/ft1_filtered_4FGL_J2228.6-1636_daily_bin1132.fits.....................!
real 53.74
user 52.22
sys 1.33

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/306498/ft1_filtered_4FGL_J2228.6-1636_daily_bin1132.fits', '/scratch/kocevski/306498/ft2_4FGL_J2228.6-1636_daily_bin1132.fits', expMap='/scratch/kocevski/306498/expmap_532742401_533001601_4FGL_J2228.6-1636_daily_bin1132.fits', expCube='/scratch/kocevski/306498/ltcube_532742401_533001601_4FGL_J2228.6-1636_daily_bin1132.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/306498/Model_4FGL_J2228.6-1636_daily_bin1132.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/306498/ft1_filtered_4FGL_J2228.6-1636_daily_bin1132.fits
Spacecraft file(s): /scratch/kocevski/306498/ft2_4FGL_J2228.6-1636_daily_bin1132.fits
Exposure map: /scratch/kocevski/306498/expmap_532742401_533001601_4FGL_J2228.6-1636_daily_bin1132.fits
Exposure cube: /scratch/kocevski/306498/ltcube_532742401_533001601_4FGL_J2228.6-1636_daily_bin1132.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/306498/Model_4FGL_J2228.6-1636_daily_bin1132.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) = 5630.45446705

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    42.382       1.0000         .10000E-03   10000.    
     2 'norm      '    .10042E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    16.244       1.0000         .10000E-03   10000.    
     4 'Prefactor '    8.6210       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    37.471       1.0000         .10000E-03   10000.    
     8 'Prefactor '    17.245       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .42758E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10146E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    66.830       1.0000         .10000E-03   10000.    
    13 'Prefactor '    165.29       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    1.7253       1.0000         .10000E-03   10000.    
    16 'norm      '    .10026E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10534E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    31.338       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    21.111       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .73254       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0413       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=   5630.448     FROM MIGRAD    STATUS=CONVERGED    521 CALLS     2672 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     42.381        25.724       -.13249E-05    .18632E-04
   2  norm          .10000E-03    3.8420        .16626E-07** at limit **
   3  Prefactor     16.243        9.3081       -.26196E-06    .83251E-05
   4  Prefactor     8.6206        14.433       -.17404E-05   -.63153E-03
   5  Prefactor     .10000E-03    5.5040       -.47784E-06** at limit **
   6  Prefactor     .10000E-03    5.2430        .11625E-05** at limit **
   7  Prefactor     37.469        27.923       -.20067E-05    .18295E-04
   8  Prefactor     17.178        84.630       -.14535E-03    .12455E-04
   9  Prefactor     .10028E-03    2.8650       -.21403E-05** at limit **
  10  Prefactor     .10000E-03    28.376       -.14625E-04** at limit **
  11  norm          .10000E-03    2.9527        .53388E-06** at limit **
  12  norm          66.828        34.748       -.14536E-05    .15285E-04
  13  Prefactor     165.33        97.529        .25380E-04    .90668E-04
  14  Prefactor     .10000E-03    5.4326       -.41499E-06** at limit **
  15  norm          1.7253        1.0463        .19611E-06   -.28171E-03
  16  norm          .10000E-03    1.1045       -.16845E-07** at limit **
  17  Prefactor     .10000E-03    64.122       -.38302E-05** at limit **
  18  Prefactor     .10000E-03    31.130        .18101E-04** at limit **
  19  norm          31.340        3.3408        .30588E-08   -.70734E-03
  20  Prefactor     .10000E-03    17.078        .11662E-05** at limit **
  21  Prefactor     .10000E-03    4.7627       -.30806E-06** at limit **
  22  Prefactor     21.112        17.971       -.10609E-05   -.42633E-04
  23  Normalizat    .73220        .25321        .38313E-05    .14018E-03
  24  Prefactor     1.0416        .18641        .25971E-05    .14559E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 42.3806
  norm       = 0.0001
  Prefactor  = 16.2432
  Prefactor  = 8.62063
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 37.469
  Prefactor  = 17.1776
  Prefactor  = 0.000100283
  Prefactor  = 0.0001
  norm       = 0.000100001
  norm       = 66.8275
  Prefactor  = 165.328
  Prefactor  = 0.0001
  norm       = 1.72528
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 31.3402
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 21.1116
  Normalizat = 0.732197
  Prefactor  = 1.04159
 **********
 **   18 **HESSE 
 **********

 FCN=   5630.448     FROM HESSE     STATUS=OK           393 CALLS     3065 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     42.381        25.710        .61577E-04   -1.4405    
   2  norm          .10000E-03    3.8614        .14363E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     16.243        9.3080        .99374E-04   -1.4902    
   4  Prefactor     8.6206        14.454        .68261E-03   -1.5121    
   5  Prefactor     .10000E-03    5.5138        .17191E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    5.2680        .16780E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     37.469        27.940        .65474E-04   -1.4483    
   8  Prefactor     17.178        84.673        .96446E-04   -1.4879    
   9  Prefactor     .10028E-03    30.629        .24456E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    28.386        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    3.0065        .12576E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          66.828        34.761        .24548E-03   -1.4071    
  13  Prefactor     165.33        97.133        .15686E-03   -1.3129    
  14  Prefactor     .10000E-03    5.4386        .17080E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          1.7253        1.0461        .15986E-03   -1.5445    
  16  norm          .10000E-03    1.1088        .76990E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    64.283        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    31.165        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          31.340        3.3347        .21173E-03   -1.4588    
  20  Prefactor     .10000E-03    17.084        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    4.7678        .15993E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     21.112        17.971        .87174E-04   -1.4789    
  23  Normalizat    .73220        .29156        .37845E-03   -1.0264    
  24  Prefactor     1.0416        .21638        .24104E-03   -.91356    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.02055e-08
Minuit parameter uncertainties:
  1  25.7165
  2  7.22265e-07
  3  9.30878
  4  14.4595
  5  9.90673e-06
  6  2.94383e-05
  7  27.95
  8  76.4494
  9  0.00589616
  10  1.11284e-06
  11  9.04288e-05
  12  34.7715
  13  97.2271
  14  1.26314e-05
  15  1.04606
  16  3.40989e-06
  17  0.000186103
  18  4.43626e-06
  19  3.33469
  20  1.05122e-05
  21  6.03921e-06
  22  17.976
  23  0.292176
  24  0.216557
Done.

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

Extracting fit parameters...

4FGL J2228.6-1636
   Spectrum: PowerLaw
228    Prefactor:  1.000e-04  1.113e-06  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.042e+00  2.166e-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:  7.322e-01  2.922e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/306498/likelihoodResults_532742401_533001601_4FGL_J2228.6-1636_daily_bin1132.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) = 5630.44768849
delta logL = -0.000167718761077

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5630.44752132
delta logL = -5.46369847143e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2948       1.0000          .0000       10.000    
     3 'Normalizat'    .73219       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0416       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5630.448     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      271 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10136E-03    117.00        .18142E-02** at limit **
   2  Index         2.2362        6.1136        .50000        .11269E-04
   3  Normalizat    .73220        .13393E-01    .37845E-03   -.28415E-03
   4  Prefactor     1.0416        .10098E-01    .24104E-03   -.76023E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101361
  Index      = 2.23623
  Normalizat = 0.7322
  Prefactor  = 1.04159
 **********
 **   18 **HESSE 
 **********

 FCN=   5630.448     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      300 TOTAL
                     EDM=   .97E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10136E-03    518.43        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2362        5.0738        .50000       -.58567    
   3  Normalizat    .73220        .28923E-01    .15138E-04   -1.0264    
   4  Prefactor     1.0416        .21807E-01    .48208E-04   -.91356    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 9.74364e-09
Minuit parameter uncertainties:
  1  0.0535987
  2  453.125
  3  0.0289235
  4  0.0218069
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/306498': 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) = 5630.44752118
delta logL = -4.02686055168e-07

Extracting fit parameters...

4FGL J2228.6-1636
   Spectrum: PowerLaw
228    Prefactor:  1.014e-04  5.360e-02  1.000e-04  1.000e+04 ( 1.000e-14)
229        Index:  2.236e+00  4.531e+02  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.042e+00  2.181e-02  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:  7.322e-01  2.892e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 337.166 -16.607

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/306498/cmap_HighResolution_532742401_533001601_4FGL_J2228.6-1636_daily_bin1132.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.08e-03', job_status='DONE', photon_flux_upper_limit='6.74e-08', time_completed='2021-09-28 11:52:16.005951', job_id='306498', GAL2='1.04', fit_tolerance='1e-08', EG2='0.73', EG='0.73', time_epoch_completed='1632855136.01', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.04', dlogl='-4.03e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.06' WHERE bin_id='1132' AND source_name='4FGL J2228.6-1636' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 11:52:16 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0054>
Subject: Job 306498: <4FGL_J2228.6-1636_daily_bin1132> in cluster <slac> Done

Job <4FGL_J2228.6-1636_daily_bin1132> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Sep 28 11:40:36 2021
Job was executed on host(s) <bullet0054>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 11:40:38 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:40:38 2021
Terminated at Tue Sep 28 11:52:16 2021
Results reported at Tue Sep 28 11:52:16 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2228.6-1636_daily_bin1132 337.166 -16.6073 532742401 533001601 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 :                                   594.35 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             327.30 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   698 sec.
    Turnaround time :                            700 sec.

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

