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


Performing analysis on: 4FGL_J2228.6-1636_daily_bin1468
RA = 337.166, Dec = -16.6073
tmin = 619833601, tmax = 620092801
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='308044', job_status='RUN', time_executed='2021-09-28 11:48:57.748671', time_epoch_executed='1632854937.75' WHERE source_name='4FGL J2228.6-1636' and cadence='daily' and bin_id='1468'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/308044

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/308044/ft1_4FGL_J2228.6-1636_daily_bin1468.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/308044/ft2_4FGL_J2228.6-1636_daily_bin1468.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/308044/ft1_4FGL_J2228.6-1636_daily_bin1468.fits outfile=/scratch/kocevski/308044/ft1_filteredMKT_4FGL_J2228.6-1636_daily_bin1468.fits ra=337.166 dec=-16.6073 rad=12.0 tmin=619833601.0 tmax=620092801.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.43
user 3.22
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/308044/ft1_filtered_4FGL_J2228.6-1636_daily_bin1468.fits" evtable="EVENTS" scfile=/scratch/kocevski/308044/ft2_4FGL_J2228.6-1636_daily_bin1468.fits sctable="SC_DATA" outfile=/scratch/kocevski/308044/ltcube_619833601_620092801_4FGL_J2228.6-1636_daily_bin1468.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/308044/ft2_4FGL_J2228.6-1636_daily_bin1468.fits
.....................!
real 11.78
user 11.43
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/308044/ft1_filtered_4FGL_J2228.6-1636_daily_bin1468.fits evtable="EVENTS" scfile=/scratch/kocevski/308044/ft2_4FGL_J2228.6-1636_daily_bin1468.fits sctable="SC_DATA" expcube=/scratch/kocevski/308044/ltcube_619833601_620092801_4FGL_J2228.6-1636_daily_bin1468.fits outfile=/scratch/kocevski/308044/expmap_619833601_620092801_4FGL_J2228.6-1636_daily_bin1468.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/308044/ltcube_619833601_620092801_4FGL_J2228.6-1636_daily_bin1468.fits
.....................!
real 190.22
user 184.91
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/308044/ft1_filtered_4FGL_J2228.6-1636_daily_bin1468.fits scfile=/scratch/kocevski/308044/ft2_4FGL_J2228.6-1636_daily_bin1468.fits outfile=/scratch/kocevski/308044/cmap_619833601_620092801_4FGL_J2228.6-1636_daily_bin1468.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/308044/ft1_filtered_4FGL_J2228.6-1636_daily_bin1468.fits scfile=/scratch/kocevski/308044/ft2_4FGL_J2228.6-1636_daily_bin1468.fits outfile=/scratch/kocevski/308044/cmap_HighResolution_619833601_620092801_4FGL_J2228.6-1636_daily_bin1468.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.37
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    43.842       1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.7264       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .32344       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    49.601       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    1.6383       1.0000         .10000E-03   10000.    
    12 'norm      '    12.295       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    15.107       1.0000         .10000E-03   10000.    
    15 'norm      '    11.846       1.0000         .10000E-03   10000.    
    16 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    22.340       1.0000         .10000E-03   10000.    
    19 'norm      '    .10034E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    12.468       1.0000         .10000E-03   10000.    
    21 'Prefactor '    14.145       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .76212E-02   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.0928       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .86344       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=   5487.341     FROM MIGRAD    STATUS=CONVERGED    617 CALLS     2868 TOTAL
                     EDM=   .30E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    17.313       -.30717E-06** at limit **
   2  norm          .10000E-03    3.6041       -.32349E-07** at limit **
   3  Prefactor     .10000E-03    4.8564       -.12924E-06** at limit **
   4  Prefactor     43.891        25.407       -.14613E-06   -.11509E-03
   5  Prefactor     3.7290        7.1503        .20430E-05    .18302E-03
   6  Prefactor     .26713        9.2028       -.24594E-06    .93605E-04
   7  Prefactor     .10000E-03    10.161        .67583E-07** at limit **
   8  Prefactor     49.599        93.090        .23023E-06    .20857E-04
   9  Prefactor     .10000E-03    2.3056        .19547E-07** at limit **
  10  Prefactor     .10000E-03    33.051        .21495E-08** at limit **
  11  norm          1.6378        3.9822        .39628E-06    .70515E-04
  12  norm          12.283        19.725        .12436E-07   -.14148E-05
  13  Prefactor     .10000E-03    29.681        .45069E-07** at limit **
  14  Prefactor     15.114        17.378        .16912E-06    .62277E-04
  15  norm          11.847        2.0238       -.22133E-09    .11255E-03
  16  norm          .10000E-03    .74690        .44438E-07** at limit **
  17  Prefactor     .10000E-03    18.413        .13932E-06** at limit **
  18  Prefactor     22.329        23.965       -.11271E-05    .13208E-03
  19  norm          .10000E-03    .87729        .13910E-06** at limit **
  20  Prefactor     12.314        49.940       -.69790E-06   -.19619E-04
  21  Prefactor     14.152        12.061       -.44836E-07    .24261E-04
  22  Prefactor     .36776        11.282        .10635E-05   -.16038E-03
  23  Normalizat    1.0926        .23067        .44593E-06   -.15132E-04
  24  Prefactor     .86314        .16783       -.65948E-06    .41102E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 43.8905
  Prefactor  = 3.72898
  Prefactor  = 0.26713
  Prefactor  = 0.0001
  Prefactor  = 49.5993
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.6378
  norm       = 12.2826
  Prefactor  = 0.0001
  Prefactor  = 15.1141
  norm       = 11.8466
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 22.3286
  norm       = 0.000100003
  Prefactor  = 12.3141
  Prefactor  = 14.1521
  Prefactor  = 0.367757
  Normalizat = 1.09261
  Prefactor  = 0.863136
 **********
 **   18 **HESSE 
 **********

 FCN=   5487.341     FROM HESSE     STATUS=OK           401 CALLS     3269 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    17.415        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    3.6103        .13734E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    4.8931        .15930E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     43.891        25.708        .60547E-04   -1.4382    
   5  Prefactor     3.7290        7.2320        .10459E-02   -1.5322    
   6  Prefactor     .26713        163.41        .41692E-02   -1.5605    
   7  Prefactor     .10000E-03    10.173        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     49.599        92.608        .56940E-04   -1.4298    
   9  Prefactor     .10000E-03    2.3188        .10982E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    33.065        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          1.6378        3.9404        .21108E-03   -1.5452    
  12  norm          12.283        19.725        .11424E-03   -1.5007    
  13  Prefactor     .10000E-03    29.687        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     15.114        17.564        .10305E-03   -1.4930    
  15  norm          11.847        2.0245        .41120E-04   -1.5019    
  16  norm          .10000E-03    .74906        .62501E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    18.421        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     22.329        24.235        .84746E-04   -1.4763    
  19  norm          .10000E-03    2.8421        .12093E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     12.314        50.898        .11345E-03   -1.5006    
  21  Prefactor     14.152        12.067        .10650E-03   -1.4955    
  22  Prefactor     .36776        104.47        .45561E-02   -1.5587    
  23  Normalizat    1.0926        .27441        .28744E-03   -.89989    
  24  Prefactor     .86314        .20009        .23882E-03   -.97441    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.57309e-09
Minuit parameter uncertainties:
  1  4.79157e-06
  2  3.72774e-07
  3  4.89724e-07
  4  25.7143
  5  7.23371
  6  13.2477
  7  4.33816e-06
  8  92.8787
  9  4.54936e-07
  10  1.38254e-05
  11  3.94098
  12  19.7352
  13  1.18164e-05
  14  17.5699
  15  2.02447
  16  3.22459e-07
  17  2.68508e-06
  18  24.2453
  19  0.000171703
  20  50.1437
  21  12.0688
  22  12.4172
  23  0.27477
  24  0.200263
Done.

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

Extracting fit parameters...

4FGL J2228.6-1636
   Spectrum: PowerLaw
228    Prefactor:  1.000e-04  1.383e-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:  8.631e-01  2.003e-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.093e+00  2.748e-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: 7.60e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.73e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/308044/likelihoodResults_619833601_620092801_4FGL_J2228.6-1636_daily_bin1468.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5487.3407101
delta logL = -0.000143986070725

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5487.34056614
delta logL = -2.34040271607e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1270       1.0000          .0000       10.000    
     3 'Normalizat'    1.0926       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86314       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=   5487.341     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      234 TOTAL
                     EDM=   .41E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7041.9        .90712E-02** at limit **
   2  Index         2.1210        5.7927        .50000        .14848E-05
   3  Normalizat    1.0926        .85739E-01    .64978E-01    .98610E-05
   4  Prefactor     .86314        .64425E-01    .44533E-01    .86505E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.12101
  Normalizat = 1.09261
  Prefactor  = 0.863135
 **********
 **   18 **HESSE 
 **********

 FCN=   5487.341     FROM HESSE     STATUS=OK            33 CALLS      267 TOTAL
                     EDM=   .28E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    45.526        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1210        5.9934        .50000       -.61358    
   3  Normalizat    1.0926        .25813        .28744E-03   -.89989    
   4  Prefactor     .86314        .19421        .23882E-03   -.97441    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.77482e-12
Minuit parameter uncertainties:
  1  1.32803e-05
  2  4.86204
  3  0.258432
  4  0.194361
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/308044': 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): 0
logL (Free Index) = 5487.34056613
delta logL = -2.07191988011e-08

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
485    Prefactor:  8.631e-01  1.944e-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.093e+00  2.584e-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/308044/cmap_HighResolution_619833601_620092801_4FGL_J2228.6-1636_daily_bin1468.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.73e-03', job_status='DONE', photon_flux_upper_limit='7.60e-08', time_completed='2021-09-28 11:58:46.716137', job_id='308044', GAL2='0.86', fit_tolerance='1e-08', EG2='1.09', EG='1.09', time_epoch_completed='1632855526.72', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.86', dlogl='-2.07e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.06' WHERE bin_id='1468' AND source_name='4FGL J2228.6-1636' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 11:58:46 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0281>
Subject: Job 308044: <4FGL_J2228.6-1636_daily_bin1468> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2228.6-1636_daily_bin1468 337.166 -16.6073 619833601 620092801 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 :                                   583.47 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             234.25 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   790 sec.
    Turnaround time :                            792 sec.

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

