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


Performing analysis on: 4FGL_J2228.6-1636_daily_bin1180
RA = 337.166, Dec = -16.6073
tmin = 545184001, tmax = 545443201
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='306566', job_status='RUN', time_executed='2021-09-28 11:41:18.544969', time_epoch_executed='1632854478.54' WHERE source_name='4FGL J2228.6-1636' and cadence='daily' and bin_id='1180'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/306566

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/306566/ft1_4FGL_J2228.6-1636_daily_bin1180.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/306566/ft2_4FGL_J2228.6-1636_daily_bin1180.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/306566/ft1_4FGL_J2228.6-1636_daily_bin1180.fits outfile=/scratch/kocevski/306566/ft1_filteredMKT_4FGL_J2228.6-1636_daily_bin1180.fits ra=337.166 dec=-16.6073 rad=12.0 tmin=545184001.0 tmax=545443201.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.97
user 3.75
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/306566/ft1_filtered_4FGL_J2228.6-1636_daily_bin1180.fits" evtable="EVENTS" scfile=/scratch/kocevski/306566/ft2_4FGL_J2228.6-1636_daily_bin1180.fits sctable="SC_DATA" outfile=/scratch/kocevski/306566/ltcube_545184001_545443201_4FGL_J2228.6-1636_daily_bin1180.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/306566/ft2_4FGL_J2228.6-1636_daily_bin1180.fits
.....................!
real 11.46
user 11.07
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/306566/ft1_filtered_4FGL_J2228.6-1636_daily_bin1180.fits evtable="EVENTS" scfile=/scratch/kocevski/306566/ft2_4FGL_J2228.6-1636_daily_bin1180.fits sctable="SC_DATA" expcube=/scratch/kocevski/306566/ltcube_545184001_545443201_4FGL_J2228.6-1636_daily_bin1180.fits outfile=/scratch/kocevski/306566/expmap_545184001_545443201_4FGL_J2228.6-1636_daily_bin1180.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/306566/ltcube_545184001_545443201_4FGL_J2228.6-1636_daily_bin1180.fits
.....................!
real 190.77
user 184.76
sys 5.64

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/306566/ft1_filtered_4FGL_J2228.6-1636_daily_bin1180.fits scfile=/scratch/kocevski/306566/ft2_4FGL_J2228.6-1636_daily_bin1180.fits outfile=/scratch/kocevski/306566/cmap_545184001_545443201_4FGL_J2228.6-1636_daily_bin1180.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/306566/ft1_filtered_4FGL_J2228.6-1636_daily_bin1180.fits scfile=/scratch/kocevski/306566/ft2_4FGL_J2228.6-1636_daily_bin1180.fits outfile=/scratch/kocevski/306566/cmap_HighResolution_545184001_545443201_4FGL_J2228.6-1636_daily_bin1180.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/306566/ft1_filtered_4FGL_J2228.6-1636_daily_bin1180.fits evtable="EVENTS" scfile=/scratch/kocevski/306566/ft2_4FGL_J2228.6-1636_daily_bin1180.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/306566/Model_4FGL_J2228.6-1636_daily_bin1180.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/306566/ft1_filtered_4FGL_J2228.6-1636_daily_bin1180.fits.....................!
real 45.63
user 44.31
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.6331       1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    4.0833       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .18857E-01   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    37.714       1.0000         .10000E-03   10000.    
     7 'Prefactor '    21.480       1.0000         .10000E-03   10000.    
     8 'Prefactor '    119.94       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    4.3710       1.0000         .10000E-03   10000.    
    12 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    65.152       1.0000         .10000E-03   10000.    
    14 'Prefactor '    15.272       1.0000         .10000E-03   10000.    
    15 'norm      '    5.4113       1.0000         .10000E-03   10000.    
    16 'norm      '    .10725E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    72.715       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .20889E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    6.9651       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .36247E-02   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .94036E-01   1.0000         .10000E-03   10000.    
    22 'Prefactor '    10.417       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .93994       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .92319       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=   5113.104     FROM MIGRAD    STATUS=CONVERGED   1020 CALLS     3232 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.6345        17.754        .18698E-03    .86701E-04
   2  norm          .10000E-03    7.2670        .36285E-03** at limit **
   3  Prefactor     4.0820        7.0861        .19952E-03    .23795E-03
   4  Prefactor     .10079E-03    20.227        .83661E-01** at limit **
   5  Prefactor     .10000E-03    6.8137        .18142E-02** at limit **
   6  Prefactor     37.705        19.659        .65263E-04    .10034E-03
   7  Prefactor     21.479        16.773        .86422E-04    .16970E-04
   8  Prefactor     120.11        135.40        .18372E-03   -.48946E-04
   9  Prefactor     .10000E-03    3.1386        .12368E-02** at limit **
  10  Prefactor     .10000E-03    24.629        .18142E-02** at limit **
  11  norm          4.3695        4.3431        .14199E-03    .15677E-03
  12  norm          .10000E-03    17.597        .18142E-02** at limit **
  13  Prefactor     65.118        86.800        .24860E-03    .13674E-04
  14  Prefactor     15.273        13.376        .10249E-03    .11880E-03
  15  norm          5.4110        1.7380        .50687E-04    .15588E-03
  16  norm          .10000E-03    3.2246        .18902E-02** at limit **
  17  Prefactor     72.595        58.477        .47081E-04    .10963E-03
  18  Prefactor     .10001E-03    81.926        .18142E-02** at limit **
  19  norm          6.9660        2.1661        .55209E-04    .20036E-03
  20  Prefactor     .10000E-03    210.81        .19614E-02** at limit **
  21  Prefactor     .11842E-03    26.431        .97274E-01** at limit **
  22  Prefactor     10.417        20.563        .12414E-03   -.97073E-05
  23  Normalizat    .93984        .28504        .30586E-03    .20231E-03
  24  Prefactor     .92334        .20521        .23299E-03    .31298E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.63454
  norm       = 0.0001
  Prefactor  = 4.082
  Prefactor  = 0.00010079
  Prefactor  = 0.0001
  Prefactor  = 37.7046
  Prefactor  = 21.4792
  Prefactor  = 120.107
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.36951
  norm       = 0.0001
  Prefactor  = 65.1183
  Prefactor  = 15.2733
  norm       = 5.411
  norm       = 0.0001
  Prefactor  = 72.5951
  Prefactor  = 0.000100007
  norm       = 6.96602
  Prefactor  = 0.000100003
  Prefactor  = 0.000118422
  Prefactor  = 10.4168
  Normalizat = 0.939844
  Prefactor  = 0.923337
 **********
 **   18 **HESSE 
 **********

 FCN=   5113.104     FROM HESSE     STATUS=OK           393 CALLS     3625 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.6345        17.753        .74794E-05   -1.5277    
   2  norm          .10000E-03    7.2674        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     4.0820        7.0856        .79806E-05   -1.5304    
   4  Prefactor     .10079E-03    19.531        .85717E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    6.8153        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     37.705        19.661        .26105E-05   -1.4479    
   7  Prefactor     21.479        16.773        .34569E-05   -1.4781    
   8  Prefactor     120.11        135.42        .73490E-05   -1.3512    
   9  Prefactor     .10000E-03    3.1386        .24736E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    24.629        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          4.3695        4.3429        .56796E-05   -1.5290    
  12  norm          .10000E-03    17.599        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     65.118        86.810        .99440E-05   -1.4092    
  14  Prefactor     15.273        13.376        .40996E-05   -1.4926    
  15  norm          5.4110        1.7380        .20275E-05   -1.5243    
  16  norm          .10000E-03    3.2265        .37803E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     72.595        58.430        .94162E-05   -1.4002    
  18  Prefactor     .10001E-03    81.939        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          6.9660        2.1651        .22084E-05   -1.5180    
  20  Prefactor     .10000E-03    210.89        .39228E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .11842E-03    24.861        .10154       -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     10.417        20.563        .49657E-05   -1.5062    
  23  Normalizat    .93984        .28532        .12235E-04   -.95074    
  24  Prefactor     .92334        .20538        .46598E-04   -.95330    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.20184e-09
Minuit parameter uncertainties:
  1  17.7729
  2  7.0037e-06
  3  7.08703
  4  0.00785665
  5  2.03177e-05
  6  19.6645
  7  16.7762
  8  135.774
  9  5.00746e-06
  10  9.14734e-07
  11  4.34324
  12  3.03761e-05
  13  86.9796
  14  13.379
  15  1.73803
  16  5.51982e-05
  17  58.4761
  18  0.00149219
  19  2.16514
  20  0.00168366
  21  0.0428188
  22  20.5768
  23  0.28578
  24  0.205549
Done.

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

Extracting fit parameters...

4FGL J2228.6-1636
   Spectrum: PowerLaw
228    Prefactor:  1.000e-04  9.147e-07  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:  9.233e-01  2.055e-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:  9.398e-01  2.858e-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.72e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.07e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/306566/likelihoodResults_545184001_545443201_4FGL_J2228.6-1636_daily_bin1180.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) = 5113.10392969
delta logL = -0.000193355262127

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5113.1039296
delta logL = -0.000193257994397

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96272E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0575       1.0000          .0000       10.000    
     3 'Normalizat'    .93984       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92334       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   5113.104     FROM MIGRAD    STATUS=FAILED        93 CALLS      237 TOTAL
                     EDM=   .44E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10069E-03    77.403        .18144E-01** at limit **
   2  Index         1.6082        6.9591        .50000        .20307E-06
   3  Normalizat    .93984        .92294E-02    .30586E-03    .30479E-05
   4  Prefactor     .92334        .70203E-02    .23299E-03    .22933E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5113.104     FROM SIMPLEX   STATUS=UNCHANGED    127 CALLS      364 TOTAL
                     EDM=   .12E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10069E-03    77.403        .95194E-03** at limit **
   2  Index         1.6082        6.9591        .91461E-03    .20307E-06
   3  Normalizat    .93984        .92294E-02    .30074E-05    .30479E-05
   4  Prefactor     .92334        .70203E-02    .15059E-05    .22933E-05
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5113.104     FROM MIGRAD    STATUS=CONVERGED     33 CALLS      397 TOTAL
                     EDM=   .29E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10016E-03    709.36        .36288E-02** at limit **
   2  Index         1.6428        9.0531        .50000        .62162E-06
   3  Normalizat    .93984        .28952E-01    .12234E-04    .31594E-05
   4  Prefactor     .92334        .22023E-01    .93196E-05    .24397E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00010016
  Index      = 1.64281
  Normalizat = 0.939845
  Prefactor  = 0.923336
 **********
 **   18 **HESSE 
 **********

 FCN=   5113.104     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      426 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     .10016E-03    6408.5        .72577E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.6428        5.2973        .50000       -.73615    
   3  Normalizat    .93984        .67927E-01    .24469E-05   -.95074    
   4  Prefactor     .92334        .51647E-01    .18639E-05   -.95330    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.50917e-09
Minuit parameter uncertainties:
  1  0.0447518
  2  4569.84
  3  0.0679328
  4  0.0516502
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/306566': 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) = 5113.10373601
delta logL = 3.24474967783e-07

Extracting fit parameters...

4FGL J2228.6-1636
   Spectrum: PowerLaw
228    Prefactor:  1.002e-04  4.475e-02  1.000e-04  1.000e+04 ( 1.000e-14)
229        Index:  1.643e+00  4.570e+03  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:  9.233e-01  5.165e-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:  9.398e-01  6.793e-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/306566/cmap_HighResolution_545184001_545443201_4FGL_J2228.6-1636_daily_bin1180.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.07e-03', job_status='DONE', photon_flux_upper_limit='6.72e-08', time_completed='2021-09-28 11:51:12.735778', job_id='306566', GAL2='0.92', fit_tolerance='1e-08', EG2='0.94', EG='0.94', time_epoch_completed='1632855072.74', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.92', dlogl='3.24e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.06' WHERE bin_id='1180' AND source_name='4FGL J2228.6-1636' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 11:51:12 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0115>
Subject: Job 306566: <4FGL_J2228.6-1636_daily_bin1180> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2228.6-1636_daily_bin1180 337.166 -16.6073 545184001 545443201 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 :                                   592.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             331.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   631 sec.
    Turnaround time :                            632 sec.

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

