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


Performing analysis on: 4FGL_J2228.6-1636_daily_bin1100
RA = 337.166, Dec = -16.6073
tmin = 524448001, tmax = 524707201
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='306450', job_status='RUN', time_executed='2021-09-28 11:41:51.533722', time_epoch_executed='1632854511.53' WHERE source_name='4FGL J2228.6-1636' and cadence='daily' and bin_id='1100'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/306450

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/306450/ft1_4FGL_J2228.6-1636_daily_bin1100.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/306450/ft2_4FGL_J2228.6-1636_daily_bin1100.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/306450/ft1_4FGL_J2228.6-1636_daily_bin1100.fits outfile=/scratch/kocevski/306450/ft1_filteredMKT_4FGL_J2228.6-1636_daily_bin1100.fits ra=337.166 dec=-16.6073 rad=12.0 tmin=524448001.0 tmax=524707201.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.41
user 3.21
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/306450/ft1_filtered_4FGL_J2228.6-1636_daily_bin1100.fits" evtable="EVENTS" scfile=/scratch/kocevski/306450/ft2_4FGL_J2228.6-1636_daily_bin1100.fits sctable="SC_DATA" outfile=/scratch/kocevski/306450/ltcube_524448001_524707201_4FGL_J2228.6-1636_daily_bin1100.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/306450/ft2_4FGL_J2228.6-1636_daily_bin1100.fits
.....................!
real 11.80
user 11.44
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/306450/ft1_filtered_4FGL_J2228.6-1636_daily_bin1100.fits evtable="EVENTS" scfile=/scratch/kocevski/306450/ft2_4FGL_J2228.6-1636_daily_bin1100.fits sctable="SC_DATA" expcube=/scratch/kocevski/306450/ltcube_524448001_524707201_4FGL_J2228.6-1636_daily_bin1100.fits outfile=/scratch/kocevski/306450/expmap_524448001_524707201_4FGL_J2228.6-1636_daily_bin1100.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/306450/ltcube_524448001_524707201_4FGL_J2228.6-1636_daily_bin1100.fits
.....................!
real 189.64
user 184.33
sys 5.00

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/306450/ft1_filtered_4FGL_J2228.6-1636_daily_bin1100.fits scfile=/scratch/kocevski/306450/ft2_4FGL_J2228.6-1636_daily_bin1100.fits outfile=/scratch/kocevski/306450/cmap_524448001_524707201_4FGL_J2228.6-1636_daily_bin1100.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.52
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/306450/ft1_filtered_4FGL_J2228.6-1636_daily_bin1100.fits scfile=/scratch/kocevski/306450/ft2_4FGL_J2228.6-1636_daily_bin1100.fits outfile=/scratch/kocevski/306450/cmap_HighResolution_524448001_524707201_4FGL_J2228.6-1636_daily_bin1100.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.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/306450/ft1_filtered_4FGL_J2228.6-1636_daily_bin1100.fits evtable="EVENTS" scfile=/scratch/kocevski/306450/ft2_4FGL_J2228.6-1636_daily_bin1100.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/306450/Model_4FGL_J2228.6-1636_daily_bin1100.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/306450/ft1_filtered_4FGL_J2228.6-1636_daily_bin1100.fits.....................!
real 48.89
user 47.62
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    12.503       1.0000         .10000E-03   10000.    
     2 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    9.2806       1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.1328       1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.3552       1.0000         .10000E-03   10000.    
     6 'Prefactor '    8.8956       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    45.891       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .79748       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    4.6186       1.0000         .10000E-03   10000.    
    12 'norm      '    19.189       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10083E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.5087       1.0000         .10000E-03   10000.    
    15 'norm      '    .59868       1.0000         .10000E-03   10000.    
    16 'norm      '    1.2335       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .16417E-02   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10063E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    2.6601       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10146E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    3.8555       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .53437       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.1233       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=   5661.286     FROM MIGRAD    STATUS=CONVERGED    546 CALLS     2759 TOTAL
                     EDM=   .47E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     12.517        15.091        .44337E-06    .16107E-03
   2  norm          .10000E-03    2.9308        .37641E-07** at limit **
   3  Prefactor     9.2833        6.5253        .19081E-06    .21840E-03
   4  Prefactor     4.1323        15.867        .12139E-05   -.34779E-04
   5  Prefactor     1.3546        9.8989        .65934E-05   -.10900E-03
   6  Prefactor     8.8996        11.583        .12320E-06   -.61145E-05
   7  Prefactor     .10000E-03    16.250       -.12892E-05** at limit **
   8  Prefactor     45.910        52.482       -.11036E-05   -.13718E-03
   9  Prefactor     .79739        4.3653        .30177E-06    .10970E-04
  10  Prefactor     .10000E-03    27.239       -.34547E-06** at limit **
  11  norm          4.6186        3.0362        .54692E-07   -.41675E-04
  12  norm          19.181        24.765       -.84275E-08   -.62372E-04
  13  Prefactor     .10000E-03    121.90       -.77257E-06** at limit **
  14  Prefactor     5.5060        10.179        .31420E-06   -.89680E-04
  15  norm          .59864        .61540       -.39894E-07   -.61366E-03
  16  norm          1.2340        1.9838        .84749E-06   -.61763E-04
  17  Prefactor     .10008E-03    164.48       -.72793E-05** at limit **
  18  Prefactor     .10000E-03    17.364       -.45066E-06** at limit **
  19  norm          2.6600        1.0820        .18424E-06   -.13217E-02
  20  Prefactor     .10000E-03    10.234       -.27698E-06** at limit **
  21  Prefactor     .10000E-03    3.8243       -.70262E-07** at limit **
  22  Prefactor     3.8559        8.1163        .96008E-06   -.84920E-04
  23  Normalizat    .53425        .18630       -.11220E-05   -.98215E-04
  24  Prefactor     1.1234        .14725       -.45015E-07    .12635E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 12.5168
  norm       = 0.0001
  Prefactor  = 9.28332
  Prefactor  = 4.13233
  Prefactor  = 1.35456
  Prefactor  = 8.89958
  Prefactor  = 0.000100001
  Prefactor  = 45.9098
  Prefactor  = 0.797389
  Prefactor  = 0.0001
  norm       = 4.61863
  norm       = 19.1811
  Prefactor  = 0.0001
  Prefactor  = 5.50602
  norm       = 0.598639
  norm       = 1.23405
  Prefactor  = 0.000100083
  Prefactor  = 0.000100001
  norm       = 2.65998
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.85591
  Normalizat = 0.534254
  Prefactor  = 1.12337
 **********
 **   18 **HESSE 
 **********

 FCN=   5661.286     FROM HESSE     STATUS=OK           405 CALLS     3164 TOTAL
                     EDM=   .99E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     12.517        15.091        .11329E-03   -1.5000    
   2  norm          .10000E-03    2.9475        .12579E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     9.2833        6.5229        .13156E-03   -1.5099    
   4  Prefactor     4.1323        15.822        .99141E-03   -1.5301    
   5  Prefactor     1.3546        9.9754        .18776E-02   -1.5475    
   6  Prefactor     8.8996        11.560        .13439E-03   -1.5111    
   7  Prefactor     .10000E-03    16.460        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     45.910        52.707        .59187E-04   -1.4352    
   9  Prefactor     .79739        4.4234        .30125E-03   -1.5529    
  10  Prefactor     .10000E-03    27.264        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          4.6186        3.0305        .10174E-03   -1.5278    
  12  norm          19.181        24.729        .91432E-04   -1.4832    
  13  Prefactor     .10000E-03    122.50        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     5.5060        10.155        .17119E-03   -1.5239    
  15  norm          .59864        .58707        .57587E-03   -1.5553    
  16  norm          1.2340        1.9755        .12923E-03   -1.5486    
  17  Prefactor     .10008E-03    176.78        .40797E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    17.558        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          2.6600        1.0693        .47241E-04   -1.5382    
  20  Prefactor     .10000E-03    10.266        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    3.8340        .14371E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     3.8559        8.1090        .10276E-02   -1.5315    
  23  Normalizat    .53425        .20946        .31732E-03   -1.1085    
  24  Prefactor     1.1234        .16867        .18382E-03   -.88723    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.89402e-10
Minuit parameter uncertainties:
  1  15.0952
  2  9.10531e-06
  3  6.52338
  4  15.8379
  5  7.35329
  6  11.5629
  7  0.000223822
  8  52.7607
  9  3.75633
  10  8.56514e-05
  11  3.03064
  12  24.742
  13  0.000409813
  14  10.1583
  15  0.587071
  16  1.97564
  17  0.0076611
  18  0.00027312
  19  1.06935
  20  6.86894e-05
  21  7.77487e-06
  22  8.11135
  23  0.209768
  24  0.16875
Done.

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

Extracting fit parameters...

4FGL J2228.6-1636
   Spectrum: PowerLaw
228    Prefactor:  1.000e-04  8.565e-05  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.123e+00  1.688e-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.343e-01  2.098e-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: 5.75e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.33e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/306450/likelihoodResults_524448001_524707201_4FGL_J2228.6-1636_daily_bin1100.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) = 5661.28659988
delta logL = -0.000174684118065

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5661.28642561
delta logL = -4.22641278419e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11816E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1306       1.0000          .0000       10.000    
     3 'Normalizat'    .53425       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1234       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=   5661.286     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      234 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2012.4        .90712E-02** at limit **
   2  Index         2.1163        7.1604        .50000        .43810E-05
   3  Normalizat    .53426        .43407E-01    .71677E-01    .32574E-04
   4  Prefactor     1.1234        .35663E-01    .36760E-01   -.93018E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.11632
  Normalizat = 0.534256
  Prefactor  = 1.12337
 **********
 **   18 **HESSE 
 **********

 FCN=   5661.286     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      267 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7433.1        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1163        6.4515        .50000       -.61473    
   3  Normalizat    .53426        .12857        .31732E-03   -1.1085    
   4  Prefactor     1.1234        .10591        .18382E-03   -.88723    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.99229e-09
Minuit parameter uncertainties:
  1  0.000605857
  2  61.6663
  3  0.128642
  4  0.105925
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/306450': 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) = 5661.28642525
delta logL = -5.97501639277e-08

Extracting fit parameters...

4FGL J2228.6-1636
   Spectrum: PowerLaw
228    Prefactor:  1.000e-04  6.059e-04  1.000e-04  1.000e+04 ( 1.000e-14)
229        Index:  2.116e+00  6.167e+01  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.123e+00  1.059e-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.343e-01  1.286e-01  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/306450/cmap_HighResolution_524448001_524707201_4FGL_J2228.6-1636_daily_bin1100.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.33e-03', job_status='DONE', photon_flux_upper_limit='5.75e-08', time_completed='2021-09-28 11:51:41.501918', job_id='306450', GAL2='1.12', fit_tolerance='1e-08', EG2='0.53', EG='0.53', time_epoch_completed='1632855101.5', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.12', dlogl='-5.98e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.06' WHERE bin_id='1100' AND source_name='4FGL J2228.6-1636' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 11:51:41 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0214>
Subject: Job 306450: <4FGL_J2228.6-1636_daily_bin1100> in cluster <slac> Done

Job <4FGL_J2228.6-1636_daily_bin1100> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Sep 28 11:40:33 2021
Job was executed on host(s) <bullet0214>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 11:40:35 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:35 2021
Terminated at Tue Sep 28 11:51:42 2021
Results reported at Tue Sep 28 11:51:42 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2228.6-1636_daily_bin1100 337.166 -16.6073 524448001 524707201 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 :                                   588.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             310.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   666 sec.
    Turnaround time :                            669 sec.

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

