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


Performing analysis on: 4FGL_J2228.6-1636_daily_bin1480
RA = 337.166, Dec = -16.6073
tmin = 622944001, tmax = 623203201
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='308062', job_status='RUN', time_executed='2021-09-28 11:48:25.459558', time_epoch_executed='1632854905.46' WHERE source_name='4FGL J2228.6-1636' and cadence='daily' and bin_id='1480'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/308062

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/308062/ft1_4FGL_J2228.6-1636_daily_bin1480.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/308062/ft2_4FGL_J2228.6-1636_daily_bin1480.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/308062/ft1_4FGL_J2228.6-1636_daily_bin1480.fits outfile=/scratch/kocevski/308062/ft1_filteredMKT_4FGL_J2228.6-1636_daily_bin1480.fits ra=337.166 dec=-16.6073 rad=12.0 tmin=622944001.0 tmax=623203201.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.02
user 2.77
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/308062/ft2_4FGL_J2228.6-1636_daily_bin1480.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/308062/ft1_filteredMKT_4FGL_J2228.6-1636_daily_bin1480.fits evtable="EVENTS" outfile="/scratch/kocevski/308062/ft1_filtered_4FGL_J2228.6-1636_daily_bin1480.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.67
user 0.31
sys 0.18

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/308062/ft1_filtered_4FGL_J2228.6-1636_daily_bin1480.fits" evtable="EVENTS" scfile=/scratch/kocevski/308062/ft2_4FGL_J2228.6-1636_daily_bin1480.fits sctable="SC_DATA" outfile=/scratch/kocevski/308062/ltcube_622944001_623203201_4FGL_J2228.6-1636_daily_bin1480.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/308062/ft2_4FGL_J2228.6-1636_daily_bin1480.fits
.....................!
real 12.18
user 11.79
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/308062/ft1_filtered_4FGL_J2228.6-1636_daily_bin1480.fits evtable="EVENTS" scfile=/scratch/kocevski/308062/ft2_4FGL_J2228.6-1636_daily_bin1480.fits sctable="SC_DATA" expcube=/scratch/kocevski/308062/ltcube_622944001_623203201_4FGL_J2228.6-1636_daily_bin1480.fits outfile=/scratch/kocevski/308062/expmap_622944001_623203201_4FGL_J2228.6-1636_daily_bin1480.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/308062/ltcube_622944001_623203201_4FGL_J2228.6-1636_daily_bin1480.fits
.....................!
real 191.59
user 185.63
sys 5.58

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/308062/ft1_filtered_4FGL_J2228.6-1636_daily_bin1480.fits scfile=/scratch/kocevski/308062/ft2_4FGL_J2228.6-1636_daily_bin1480.fits outfile=/scratch/kocevski/308062/cmap_622944001_623203201_4FGL_J2228.6-1636_daily_bin1480.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.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/308062/ft1_filtered_4FGL_J2228.6-1636_daily_bin1480.fits scfile=/scratch/kocevski/308062/ft2_4FGL_J2228.6-1636_daily_bin1480.fits outfile=/scratch/kocevski/308062/cmap_HighResolution_622944001_623203201_4FGL_J2228.6-1636_daily_bin1480.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.53
user 0.38
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/308062/ft1_filtered_4FGL_J2228.6-1636_daily_bin1480.fits evtable="EVENTS" scfile=/scratch/kocevski/308062/ft2_4FGL_J2228.6-1636_daily_bin1480.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/308062/Model_4FGL_J2228.6-1636_daily_bin1480.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/308062/ft1_filtered_4FGL_J2228.6-1636_daily_bin1480.fits.....................!
real 51.81
user 50.48
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    16.351       1.0000         .10000E-03   10000.    
     2 'norm      '    5.8043       1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.7520       1.0000         .10000E-03   10000.    
     4 'Prefactor '    6.7941       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    50.923       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10093E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    6.9448       1.0000         .10000E-03   10000.    
    12 'norm      '    .10079E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    5.2188       1.0000         .10000E-03   10000.    
    16 'norm      '    1.8797       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    44.191       1.0000         .10000E-03   10000.    
    19 'norm      '    .23793E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    43.714       1.0000         .10000E-03   10000.    
    21 'Prefactor '    8.8693       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10983E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.8579       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .57801       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=   5486.206     FROM MIGRAD    STATUS=CONVERGED    546 CALLS     2799 TOTAL
                     EDM=   .35E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     16.349        21.066       -.30656E-07   -.60734E-05
   2  norm          5.8042        5.0746        .89630E-07   -.22013E-04
   3  Prefactor     2.7522        6.0176        .19432E-05   -.38703E-04
   4  Prefactor     6.7840        17.216        .15949E-06   -.70995E-05
   5  Prefactor     .10000E-03    3.7078        .67113E-08** at limit **
   6  Prefactor     50.924        22.920       -.11039E-06   -.22452E-04
   7  Prefactor     .10000E-03    8.3865        .24861E-08** at limit **
   8  Prefactor     .10000E-03    78.243        .15447E-05** at limit **
   9  Prefactor     .10000E-03    3.7618       -.42299E-08** at limit **
  10  Prefactor     .10000E-03    81.630        .12701E-06** at limit **
  11  norm          6.9444        5.5896        .55367E-07   -.53783E-04
  12  norm          .10000E-03    33.809       -.69060E-06** at limit **
  13  Prefactor     .10000E-03    144.30        .17646E-05** at limit **
  14  Prefactor     .10000E-03    6.5126        .24302E-07** at limit **
  15  norm          5.2186        1.7691       -.25886E-08   -.32003E-03
  16  norm          1.8801        1.8814        .47842E-07    .52115E-04
  17  Prefactor     .10000E-03    105.94       -.35676E-05** at limit **
  18  Prefactor     44.153        29.378       -.33922E-05   -.34837E-03
  19  norm          .10000E-03    1.3008        .32455E-06** at limit **
  20  Prefactor     43.589        70.033        .61694E-05   -.19740E-03
  21  Prefactor     8.8567        23.547       -.14019E-05   -.35202E-04
  22  Prefactor     .10000E-03    34.054        .39223E-06** at limit **
  23  Normalizat    1.8578        .25515        .71979E-06   -.10764E-03
  24  Prefactor     .57816        .18171       -.13946E-05   -.48315E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 16.3491
  norm       = 5.80425
  Prefactor  = 2.75221
  Prefactor  = 6.78403
  Prefactor  = 0.0001
  Prefactor  = 50.9238
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 6.94438
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.2186
  norm       = 1.88007
  Prefactor  = 0.0001
  Prefactor  = 44.1535
  norm       = 0.000100005
  Prefactor  = 43.589
  Prefactor  = 8.85675
  Prefactor  = 0.0001
  Normalizat = 1.85779
  Prefactor  = 0.578156
 **********
 **   18 **HESSE 
 **********

 FCN=   5486.206     FROM HESSE     STATUS=OK           393 CALLS     3192 TOTAL
                     EDM=   .84E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     16.349        21.050        .99049E-04   -1.4899    
   2  norm          5.8042        5.0752        .15202E-03   -1.5226    
   3  Prefactor     2.7522        6.0334        .12269E-02   -1.5376    
   4  Prefactor     6.7840        17.180        .15393E-03   -1.5187    
   5  Prefactor     .10000E-03    3.7181        .13928E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     50.924        23.007        .56199E-04   -1.4280    
   7  Prefactor     .10000E-03    8.4089        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    78.227        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    3.7738        .14030E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    81.778        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          6.9444        5.5874        .15160E-03   -1.5181    
  12  norm          .10000E-03    34.279        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    144.30        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    6.5293        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          5.2186        1.7683        .54665E-04   -1.5251    
  16  norm          1.8801        1.8832        .98671E-04   -1.5434    
  17  Prefactor     .10000E-03    105.78        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     44.153        29.095        .60309E-04   -1.4378    
  19  norm          .10000E-03    9.2632        .13277E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     43.589        64.150        .60636E-04   -1.4387    
  21  Prefactor     8.8567        23.512        .13459E-03   -1.5113    
  22  Prefactor     .10000E-03    34.712        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.8578        .29936        .26416E-03   -.68165    
  24  Prefactor     .57816        .21001        .31268E-03   -1.0851    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.41625e-10
Minuit parameter uncertainties:
  1  21.0592
  2  5.07558
  3  6.03475
  4  17.1924
  5  6.8914e-07
  6  23.0109
  7  2.00416e-06
  8  0.000116289
  9  4.76555e-07
  10  1.3937e-05
  11  5.58777
  12  6.14604e-05
  13  0.00017425
  14  1.07354e-06
  15  1.76836
  16  1.88322
  17  0.000360766
  18  29.104
  19  0.000418314
  20  64.2515
  21  23.5365
  22  5.94354e-05
  23  0.299655
  24  0.210297
Done.

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

Extracting fit parameters...

4FGL J2228.6-1636
   Spectrum: PowerLaw
228    Prefactor:  1.000e-04  1.394e-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:  5.782e-01  2.103e-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:  1.858e+00  2.997e-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: 9.94e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.49e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/308062/likelihoodResults_622944001_623203201_4FGL_J2228.6-1636_daily_bin1480.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) = 5486.20564703
delta logL = -5.8142940361e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5486.20559059
delta logL = -1.6967405827e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .28230E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2100       1.0000          .0000       10.000    
     3 'Normalizat'    1.8578       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .57816       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=   5486.206     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      280 TOTAL
                     EDM=   .77E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10211E-03    226.55        .21415E-02** at limit **
   2  Index         2.1858        5.0224        .50000        .62435E-05
   3  Normalizat    1.8578        .11986E-01    .26416E-03   -.13471E-04
   4  Prefactor     .57816        .85216E-02    .31268E-03   -.93077E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000102107
  Index      = 2.18581
  Normalizat = 1.85779
  Prefactor  = 0.578155
 **********
 **   18 **HESSE 
 **********

 FCN=   5486.206     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      309 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10211E-03    984.10        .42830E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1858        8.9030        .50000       -.59781    
   3  Normalizat    1.8578        .25643E-01    .10566E-04   -.68165    
   4  Prefactor     .57816        .18230E-01    .12507E-04   -1.0851    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.4736e-09
Minuit parameter uncertainties:
  1  0.0926453
  2  510.622
  3  0.0256432
  4  0.0182306
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/308062': 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) = 5486.20558908
delta logL = -1.87354999071e-07

Extracting fit parameters...

4FGL J2228.6-1636
   Spectrum: PowerLaw
228    Prefactor:  1.021e-04  9.265e-02  1.000e-04  1.000e+04 ( 1.000e-14)
229        Index:  2.186e+00  5.106e+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:  5.782e-01  1.823e-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:  1.858e+00  2.564e-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/308062/cmap_HighResolution_622944001_623203201_4FGL_J2228.6-1636_daily_bin1480.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.49e-03', job_status='DONE', photon_flux_upper_limit='9.94e-08', time_completed='2021-09-28 11:58:16.910427', job_id='308062', GAL2='0.58', fit_tolerance='1e-08', EG2='1.86', EG='1.86', time_epoch_completed='1632855496.91', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.58', dlogl='-1.87e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.06' WHERE bin_id='1480' AND source_name='4FGL J2228.6-1636' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 11:58:16 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0263>
Subject: Job 308062: <4FGL_J2228.6-1636_daily_bin1480> in cluster <slac> Done

Job <4FGL_J2228.6-1636_daily_bin1480> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Sep 28 11:45:37 2021
Job was executed on host(s) <bullet0263>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 11:45:39 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:45:39 2021
Terminated at Tue Sep 28 11:58:17 2021
Results reported at Tue Sep 28 11:58:17 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2228.6-1636_daily_bin1480 337.166 -16.6073 622944001 623203201 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 :                                   589.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             306.28 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   758 sec.
    Turnaround time :                            760 sec.

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

