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


Performing analysis on: 4FGL_J2228.6-1636_daily_bin1185
RA = 337.166, Dec = -16.6073
tmin = 546480001, tmax = 546739201
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='306573', job_status='RUN', time_executed='2021-09-28 11:41:34.574511', time_epoch_executed='1632854494.57' WHERE source_name='4FGL J2228.6-1636' and cadence='daily' and bin_id='1185'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/306573

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/306573/ft1_4FGL_J2228.6-1636_daily_bin1185.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/306573/ft2_4FGL_J2228.6-1636_daily_bin1185.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/306573/ft1_4FGL_J2228.6-1636_daily_bin1185.fits outfile=/scratch/kocevski/306573/ft1_filteredMKT_4FGL_J2228.6-1636_daily_bin1185.fits ra=337.166 dec=-16.6073 rad=12.0 tmin=546480001.0 tmax=546739201.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.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/306573/ft2_4FGL_J2228.6-1636_daily_bin1185.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/306573/ft1_filteredMKT_4FGL_J2228.6-1636_daily_bin1185.fits evtable="EVENTS" outfile="/scratch/kocevski/306573/ft1_filtered_4FGL_J2228.6-1636_daily_bin1185.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/306573/ft1_filtered_4FGL_J2228.6-1636_daily_bin1185.fits" evtable="EVENTS" scfile=/scratch/kocevski/306573/ft2_4FGL_J2228.6-1636_daily_bin1185.fits sctable="SC_DATA" outfile=/scratch/kocevski/306573/ltcube_546480001_546739201_4FGL_J2228.6-1636_daily_bin1185.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/306573/ft2_4FGL_J2228.6-1636_daily_bin1185.fits
.....................!
real 12.29
user 11.93
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/306573/ft1_filtered_4FGL_J2228.6-1636_daily_bin1185.fits evtable="EVENTS" scfile=/scratch/kocevski/306573/ft2_4FGL_J2228.6-1636_daily_bin1185.fits sctable="SC_DATA" expcube=/scratch/kocevski/306573/ltcube_546480001_546739201_4FGL_J2228.6-1636_daily_bin1185.fits outfile=/scratch/kocevski/306573/expmap_546480001_546739201_4FGL_J2228.6-1636_daily_bin1185.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/306573/ltcube_546480001_546739201_4FGL_J2228.6-1636_daily_bin1185.fits
.....................!
real 190.42
user 185.98
sys 4.05

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/306573/ft1_filtered_4FGL_J2228.6-1636_daily_bin1185.fits scfile=/scratch/kocevski/306573/ft2_4FGL_J2228.6-1636_daily_bin1185.fits outfile=/scratch/kocevski/306573/cmap_546480001_546739201_4FGL_J2228.6-1636_daily_bin1185.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=337.166 yref=-16.6073 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.54
user 0.37
sys 0.15

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/306573/ft1_filtered_4FGL_J2228.6-1636_daily_bin1185.fits evtable="EVENTS" scfile=/scratch/kocevski/306573/ft2_4FGL_J2228.6-1636_daily_bin1185.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/306573/Model_4FGL_J2228.6-1636_daily_bin1185.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/306573/ft1_filtered_4FGL_J2228.6-1636_daily_bin1185.fits.....................!
real 41.87
user 40.33
sys 1.40

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    16.722       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.8515       1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.1316       1.0000         .10000E-03   10000.    
     8 'Prefactor '    62.970       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10182E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    93.915       1.0000         .10000E-03   10000.    
    11 'norm      '    5.9438       1.0000         .10000E-03   10000.    
    12 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    181.86       1.0000         .10000E-03   10000.    
    14 'Prefactor '    19.685       1.0000         .10000E-03   10000.    
    15 'norm      '    3.5185       1.0000         .10000E-03   10000.    
    16 'norm      '    5.1660       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    39.703       1.0000         .10000E-03   10000.    
    19 'norm      '    .13770E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10054E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    1.6768       1.0000         .10000E-03   10000.    
    22 'Prefactor '    15.160       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .62251       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.1636       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=   4664.250     FROM MIGRAD    STATUS=CONVERGED    513 CALLS     2754 TOTAL
                     EDM=   .37E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    15.761        .84015E-06** at limit **
   2  norm          .10000E-03    5.1884       -.36156E-07** at limit **
   3  Prefactor     16.723        13.634        .31159E-06   -.15106E-05
   4  Prefactor     .10000E-03    30.555       -.60105E-06** at limit **
   5  Prefactor     .10000E-03    4.6686        .95816E-07** at limit **
   6  Prefactor     2.8498        18.606        .15622E-05    .14201E-04
   7  Prefactor     1.1290        37.034        .23208E-04    .10991E-04
   8  Prefactor     63.168        129.99       -.23139E-04    .17324E-04
   9  Prefactor     .10000E-03    12.567       -.91618E-06** at limit **
  10  Prefactor     93.809        87.308        .96330E-05   -.17568E-04
  11  norm          5.9415        8.6245        .23172E-05    .10050E-03
  12  norm          .10000E-03    32.710        .18729E-05** at limit **
  13  Prefactor     181.72        195.26        .81279E-05   -.27647E-05
  14  Prefactor     19.682        13.820        .17096E-06   -.93245E-05
  15  norm          3.5188        1.6135       -.27263E-07    .31437E-03
  16  norm          5.1658        2.4612        .28925E-07   -.35998E-04
  17  Prefactor     .10000E-03    17.114       -.75643E-07** at limit **
  18  Prefactor     39.699        23.550        .19707E-06    .56733E-03
  19  norm          .10001E-03    1.0266        .68927E-08** at limit **
  20  Prefactor     .10000E-03    27.322       -.30862E-05** at limit **
  21  Prefactor     1.6784        20.437        .12879E-05    .21030E-04
  22  Prefactor     15.146        17.573        .13591E-05    .82515E-04
  23  Normalizat    .62286        .24918       -.56173E-07    .70238E-04
  24  Prefactor     1.1633        .19477       -.14471E-05    .10205E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 16.7227
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.84982
  Prefactor  = 1.12898
  Prefactor  = 63.1682
  Prefactor  = 0.0001
  Prefactor  = 93.8087
  norm       = 5.94152
  norm       = 0.0001
  Prefactor  = 181.717
  Prefactor  = 19.6821
  norm       = 3.51883
  norm       = 5.16579
  Prefactor  = 0.0001
  Prefactor  = 39.6994
  norm       = 0.000100007
  Prefactor  = 0.0001
  Prefactor  = 1.67844
  Prefactor  = 15.1456
  Normalizat = 0.622859
  Prefactor  = 1.16329
 **********
 **   18 **HESSE 
 **********

 FCN=   4664.250     FROM HESSE     STATUS=OK           403 CALLS     3157 TOTAL
                     EDM=   .97E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    15.792        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    5.1971        .15193E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     16.723        13.639        .97943E-04   -1.4890    
   4  Prefactor     .10000E-03    30.798        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    4.6877        .14409E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     2.8498        18.507        .24077E-03   -1.5370    
   7  Prefactor     1.1290        36.929        .21948E-02   -1.5495    
   8  Prefactor     63.168        129.64        .25284E-03   -1.4117    
   9  Prefactor     .10000E-03    12.635        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     93.809        87.110        .20736E-03   -1.3768    
  11  norm          5.9415        8.6162        .82354E-03   -1.5220    
  12  norm          .10000E-03    33.334        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     181.72        194.90        .14968E-03   -1.3004    
  14  Prefactor     19.682        13.825        .90273E-04   -1.4820    
  15  norm          3.5188        1.6112        .54252E-04   -1.5333    
  16  norm          5.1658        2.4599        .71304E-04   -1.5253    
  17  Prefactor     .10000E-03    17.124        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     39.699        19.611        .63613E-04   -1.4447    
  19  norm          .10001E-03    13.235        .10806E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    27.392        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     1.6784        20.505        .32541E-03   -1.5449    
  22  Prefactor     15.146        17.603        .10287E-03   -1.4929    
  23  Normalizat    .62286        .28045        .34966E-03   -1.0702    
  24  Prefactor     1.1633        .22147        .21106E-03   -.87469    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.68494e-10
Minuit parameter uncertainties:
  1  2.18766e-05
  2  1.39176e-06
  3  13.6417
  4  3.69163e-05
  5  5.97977e-06
  6  14.5311
  7  12.922
  8  130.222
  9  6.66736e-05
  10  87.2293
  11  8.61795
  12  0.000126663
  13  195.596
  14  13.8275
  15  1.61118
  16  2.45995
  17  1.17122e-05
  18  19.6141
  19  0.000617753
  20  5.31968e-05
  21  11.7379
  22  17.6089
  23  0.281089
  24  0.221644
Done.

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

Extracting fit parameters...

4FGL J2228.6-1636
   Spectrum: PowerLaw
228    Prefactor:  9.381e+01  8.723e+01  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.163e+00  2.216e-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:  6.229e-01  2.811e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.71
Ra Dec: 337.166 -16.607
Photon Index (Fixed Index): 2.06 +/- 0.00
Photon Flux (Fixed Index): 5.03e-08 +/- 4.68e-08
Energy Flux (Fixed Index): 3.04e-05 +/- 2.82e-05

TS (Fixed Index): 1.71
Ra Dec: 337.166 -16.607
Photon Flux Upper Limit: 1.51e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.14e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/306573/likelihoodResults_546480001_546739201_4FGL_J2228.6-1636_daily_bin1185.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) = 4663.42652799
delta logL = 0.823257643066

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4663.41737146
delta logL = 0.832414178552

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    34.611       1.0000         .10000E-03   10000.    
     2 'Index     '    2.7999       1.0000          .0000       10.000    
     3 'Normalizat'    .57611       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1802       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=   4663.417     FROM MIGRAD    STATUS=CONVERGED     82 CALLS      305 TOTAL
                     EDM=   .91E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     34.609        63.589        .68117E-04   -.98137E-04
   2  Index         2.8002        .77036        .34447E-02   -.89945E-04
   3  Normalizat    .57572        .26962        .36214E-03   -.95059E-04
   4  Prefactor     1.1805        .21612        .20938E-03   -.22011E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 34.6089
  Index      = 2.80024
  Normalizat = 0.575722
  Prefactor  = 1.18046
 **********
 **   18 **HESSE 
 **********

 FCN=   4663.417     FROM HESSE     STATUS=OK            25 CALLS      330 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     34.609        50.675        .27247E-05   -1.4531    
   2  Index         2.8002        .61417        .13779E-03   -.45555    
   3  Normalizat    .57572        .26921        .14485E-04   -1.0902    
   4  Prefactor     1.1805        .21581        .41876E-04   -.86935    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.19437e-10
Minuit parameter uncertainties:
  1  50.738
  2  0.616097
  3  0.269826
  4  0.21597
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/306573': 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) = 4663.41736999
delta logL = 0.832415640633

Extracting fit parameters...

4FGL J2228.6-1636
   Spectrum: PowerLaw
228    Prefactor:  3.461e+01  5.074e+01  1.000e-04  1.000e+04 ( 1.000e-14)
229        Index:  2.800e+00  6.161e-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.180e+00  2.160e-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.757e-01  2.698e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.41
Ra Dec: 337.166 -16.607
Photon Index (Free Index): 2.80 +/- 0.62
Photon Flux (Free Index): 1.08e-07 +/- 7.60e-08
Energy Flux (Free Index): 2.41e-05 +/- 1.64e-05

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/306573/cmap_HighResolution_546480001_546739201_4FGL_J2228.6-1636_daily_bin1185.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.14e-02', comment='SUCCESS', photon_flux='5.03e-08', energy_flux2='2.41e-05', photon_flux_error='4.68e-08', dlogl='8.32e-01', energy_flux='3.04e-05', photon_flux2='1.08e-07', job_status='DONE', time_completed='2021-09-28 11:50:35.380752', photon_index_error2='0.62', photon_index2='2.80', ts='1.71', fit_tolerance='1e-08', GAL='1.16', photon_index_error='0.00', photon_flux_upper_limit='1.51e-07', energy_flux_error2='1.64e-05', EG='0.62', time_epoch_completed='1632855035.38', return_code='0', job_id='306573', GAL2='1.18', EG2='0.58', return_code2='0', energy_flux_error='2.82e-05', photon_flux_error2='7.60e-08', ts2='3.41', photon_index='2.06' WHERE bin_id='1185' AND source_name='4FGL J2228.6-1636' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 11:50:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0268>
Subject: Job 306573: <4FGL_J2228.6-1636_daily_bin1185> in cluster <slac> Done

Job <4FGL_J2228.6-1636_daily_bin1185> 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) <bullet0268>, 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:50:36 2021
Results reported at Tue Sep 28 11:50:36 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2228.6-1636_daily_bin1185 337.166 -16.6073 546480001 546739201 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 :                                   537.46 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             303.80 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   593 sec.
    Turnaround time :                            595 sec.

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

