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


Performing analysis on: 4FGL_J1228.7+4858_daily_bin574
RA = 187.179, Dec = 48.9827
tmin = 388108801, tmax = 388368001
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='698832', job_status='RUN', time_executed='2021-09-05 18:26:02.807097', time_epoch_executed='1630891562.81' WHERE source_name='4FGL J1228.7+4858' and cadence='daily' and bin_id='574'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/698832

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/698832/ft1_4FGL_J1228.7+4858_daily_bin574.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/698832/ft2_4FGL_J1228.7+4858_daily_bin574.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/698832/ft1_4FGL_J1228.7+4858_daily_bin574.fits outfile=/scratch/kocevski/698832/ft1_filteredMKT_4FGL_J1228.7+4858_daily_bin574.fits ra=187.179 dec=48.9827 rad=12.0 tmin=388108801.0 tmax=388368001.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.39
user 3.14
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/698832/ft2_4FGL_J1228.7+4858_daily_bin574.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/698832/ft2_4FGL_J1228.7+4858_daily_bin574.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/698832/ft1_filteredMKT_4FGL_J1228.7+4858_daily_bin574.fits evtable="EVENTS" outfile="/scratch/kocevski/698832/ft1_filtered_4FGL_J1228.7+4858_daily_bin574.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.50
user 0.33
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/698832/ft1_filtered_4FGL_J1228.7+4858_daily_bin574.fits" evtable="EVENTS" scfile=/scratch/kocevski/698832/ft2_4FGL_J1228.7+4858_daily_bin574.fits sctable="SC_DATA" outfile=/scratch/kocevski/698832/ltcube_388108801_388368001_4FGL_J1228.7+4858_daily_bin574.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/698832/ft2_4FGL_J1228.7+4858_daily_bin574.fits
.....................!
real 12.22
user 11.88
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/698832/ft1_filtered_4FGL_J1228.7+4858_daily_bin574.fits evtable="EVENTS" scfile=/scratch/kocevski/698832/ft2_4FGL_J1228.7+4858_daily_bin574.fits sctable="SC_DATA" expcube=/scratch/kocevski/698832/ltcube_388108801_388368001_4FGL_J1228.7+4858_daily_bin574.fits outfile=/scratch/kocevski/698832/expmap_388108801_388368001_4FGL_J1228.7+4858_daily_bin574.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/698832/ltcube_388108801_388368001_4FGL_J1228.7+4858_daily_bin574.fits
.....................!
real 190.13
user 184.95
sys 4.80

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 217 point sources and 0 extended sources

Setting source of interest to:
4FGL J1228.7+4858 @ 187.179 48.9827

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/698832/ft1_filtered_4FGL_J1228.7+4858_daily_bin574.fits scfile=/scratch/kocevski/698832/ft2_4FGL_J1228.7+4858_daily_bin574.fits outfile=/scratch/kocevski/698832/cmap_388108801_388368001_4FGL_J1228.7+4858_daily_bin574.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=187.179 yref=48.9827 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.58
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/698832/ft1_filtered_4FGL_J1228.7+4858_daily_bin574.fits scfile=/scratch/kocevski/698832/ft2_4FGL_J1228.7+4858_daily_bin574.fits outfile=/scratch/kocevski/698832/cmap_HighResolution_388108801_388368001_4FGL_J1228.7+4858_daily_bin574.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=187.179 yref=48.9827 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/698832/ft1_filtered_4FGL_J1228.7+4858_daily_bin574.fits evtable="EVENTS" scfile=/scratch/kocevski/698832/ft2_4FGL_J1228.7+4858_daily_bin574.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/698832/Model_4FGL_J1228.7+4858_daily_bin574.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/698832/ft1_filtered_4FGL_J1228.7+4858_daily_bin574.fits.....................!
real 52.13
user 50.79
sys 1.18

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/698832/ft1_filtered_4FGL_J1228.7+4858_daily_bin574.fits', '/scratch/kocevski/698832/ft2_4FGL_J1228.7+4858_daily_bin574.fits', expMap='/scratch/kocevski/698832/expmap_388108801_388368001_4FGL_J1228.7+4858_daily_bin574.fits', expCube='/scratch/kocevski/698832/ltcube_388108801_388368001_4FGL_J1228.7+4858_daily_bin574.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/698832/Model_4FGL_J1228.7+4858_daily_bin574.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1228.7+4858'

4FGL J1228.7+4858
   Spectrum: PowerLaw
359    Prefactor:  7.350e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
360        Index:  2.556e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
361        Scale:  8.802e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/698832/ft1_filtered_4FGL_J1228.7+4858_daily_bin574.fits
Spacecraft file(s): /scratch/kocevski/698832/ft2_4FGL_J1228.7+4858_daily_bin574.fits
Exposure map: /scratch/kocevski/698832/expmap_388108801_388368001_4FGL_J1228.7+4858_daily_bin574.fits
Exposure cube: /scratch/kocevski/698832/ltcube_388108801_388368001_4FGL_J1228.7+4858_daily_bin574.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/698832/Model_4FGL_J1228.7+4858_daily_bin574.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) = 5987.00436416

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .13195E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .50989       1.0000         .10000E-03   10000.    
     3 'norm      '    .10783E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.1850       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .35876       1.0000         .10000E-03   10000.    
     6 'Prefactor '    8.9450       1.0000         .10000E-03   10000.    
     7 'norm      '    .10066E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    2.9572       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .17037E-01   1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.2382       1.0000         .10000E-03   10000.    
    11 'norm      '    4.8105       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .39060E-01   1.0000         .10000E-03   10000.    
    13 'norm      '    .58925E-01   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .89605E-01   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .17175E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    10.003       1.0000         .10000E-03   10000.    
    17 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    25.022       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .11106E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .13604E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .23752       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.3000       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .62651       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6900E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5986.969     FROM MIGRAD    STATUS=CONVERGED    580 CALLS     1925 TOTAL
                     EDM=   .20E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    18.923        .33919E-05** at limit **
   2  norm          .51088        .91242       -.21981E-06   -.98302E-03
   3  norm          .10000E-03    2.3567       -.20453E-06** at limit **
   4  Prefactor     2.1710        3.2064        .20117E-05   -.17862E-03
   5  Prefactor     .10237E-03    17.262       -.27048E-05** at limit **
   6  Prefactor     9.0423        15.544       -.15073E-04   -.26120E-04
   7  norm          .10000E-03    .62599       -.61334E-07** at limit **
   8  norm          2.9512        7.3008        .28472E-05    .20700E-03
   9  Prefactor     .10000E-03    60.141       -.19408E-04** at limit **
  10  Prefactor     1.2499        3.1238       -.60014E-06   -.71440E-03
  11  norm          4.8074        2.3157       -.33055E-07    .90350E-04
  12  Prefactor     .10738E-03    9.7324       -.23129E-05** at limit **
  13  norm          .68745E-01    1.0668       -.70622E-06   -.28560E-03
  14  Prefactor     .10000E-03    243.16       -.58148E-04** at limit **
  15  Prefactor     .10000E-03    3.3465       -.44469E-07** at limit **
  16  norm          10.026        10.125        .13094E-04    .15084E-03
  17  norm          .10000E-03    1.7258        .34875E-06** at limit **
  18  Prefactor     25.705        27.852       -.23580E-04   -.30968E-04
  19  Prefactor     .10000E-03    9.0741       -.47946E-06** at limit **
  20  Prefactor     .10000E-03    11.366        .16539E-06** at limit **
  21  norm          .22105        1.9306        .12656E-05   -.66259E-03
  22  Normalizat    1.2996        .16118        .24783E-05    .58294E-03
  23  Prefactor     .62682        .19100       -.66547E-06    .45900E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 0.510877
  norm       = 0.0001
  Prefactor  = 2.171
  Prefactor  = 0.000102374
  Prefactor  = 9.04234
  norm       = 0.0001
  norm       = 2.95117
  Prefactor  = 0.000100002
  Prefactor  = 1.24988
  norm       = 4.80742
  Prefactor  = 0.000107375
  norm       = 0.0687448
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  norm       = 10.0262
  norm       = 0.0001
  Prefactor  = 25.705
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.22105
  Normalizat = 1.29956
  Prefactor  = 0.626823
 **********
 **   18 **HESSE 
 **********

 FCN=   5986.969     FROM HESSE     STATUS=OK           382 CALLS     2307 TOTAL
                     EDM=   .85E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    18.927        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .51088        .77850        .93176E-03   -1.5565    
   3  norm          .10000E-03    2.3574        .11600E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     2.1710        3.1558        .14774E-03   -1.5413    
   5  Prefactor     .10237E-03    194.85        .61017E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     9.0423        15.394        .13401E-03   -1.5106    
   7  norm          .10000E-03    .64627        .11950E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          2.9512        7.2047        .23615E-03   -1.5364    
   9  Prefactor     .10000E-03    60.816        .36432E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     1.2499        3.0584        .20513E-03   -1.5484    
  11  norm          4.8074        2.3099        .77344E-04   -1.5269    
  12  Prefactor     .10738E-03    234.62        .46123E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .68745E-01    3.7212        .15524E-02   -1.5656    
  14  Prefactor     .10000E-03    249.89        .37846E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    3.3579        .13822E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          10.026        10.126        .12669E-03   -1.5075    
  17  norm          .10000E-03    1.7497        .99241E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     25.705        27.801        .80081E-04   -1.4694    
  19  Prefactor     .10000E-03    9.0965        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    11.376        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .22105        11.191        .20542E-02   -1.5614    
  22  Normalizat    1.2996        .18262        .19134E-03   -.83579    
  23  Prefactor     .62682        .21695        .32214E-03   -1.0647    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.51773e-08
Minuit parameter uncertainties:
  1  4.72845e-06
  2  0.778512
  3  6.99534e-07
  4  3.15601
  5  0.0431558
  6  15.4011
  7  2.90577e-06
  8  7.20686
  9  0.000684015
  10  3.05874
  11  2.30994
  12  0.0835256
  13  1.01089
  14  0.00156288
  15  3.58606e-06
  16  10.1281
  17  3.65166e-05
  18  27.8147
  19  1.58864e-05
  20  0.000158021
  21  3.14561
  22  0.182707
  23  0.217239
Done.

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

Extracting fit parameters...

4FGL J1228.7+4858
   Spectrum: PowerLaw
359    Prefactor:  1.000e-04  6.840e-04  1.000e-04  1.000e+04 ( 1.000e-13)
360        Index:  2.556e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
361        Scale:  8.802e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
687    Prefactor:  6.268e-01  2.172e-01  0.000e+00  1.000e+01 ( 1.000e+00)
688        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
689        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
686   Normalization:  1.300e+00  1.827e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 187.179 48.983
Photon Flux Upper Limit: 7.73e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.03e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/698832/likelihoodResults_388108801_388368001_4FGL_J1228.7+4858_daily_bin574.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) = 5986.96874395
delta logL = -7.83496825534e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5986.96866553
delta logL = 7.0319401857e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10071E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7853       1.0000          .0000       10.000    
     3 'Normalizat'    1.2996       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .62683       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6900E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5986.969     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      244 TOTAL
                     EDM=   .20E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .29083        .90712E-01** at limit **
   2  Index         2.7775        7.8408        .50000        .92687E-06
   3  Normalizat    1.2996        .59146E-03    .32813E-01    .51318E-04
   4  Prefactor     .62682        .72061E-03    .72774E-01    .50112E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Index      = 2.77753
  Normalizat = 1.29956
  Prefactor  = 0.62682
 **********
 **   18 **HESSE 
 **********

 FCN=   5986.969     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      277 TOTAL
                     EDM=   .96E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    88.303        .52228E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.7775        5.5010        .50000       -.46061    
   3  Normalizat    1.2996        .43877E-02    .19133E-03   -.83579    
   4  Prefactor     .62682        .53341E-02    .32214E-03   -1.0647    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 9.60407e-10
Minuit parameter uncertainties:
  1  0.000506558
  2  167.892
  3  0.00438767
  4  0.00533413
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/698832': 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) = 5986.96866552
delta logL = 7.99946064944e-08

Extracting fit parameters...

4FGL J1228.7+4858
   Spectrum: PowerLaw
359    Prefactor:  1.000e-04  5.066e-04  1.000e-04  1.000e+04 ( 1.000e-13)
360        Index:  2.778e+00  1.679e+02  0.000e+00  1.000e+01 (-1.000e+00)
361        Scale:  8.802e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
687    Prefactor:  6.268e-01  5.334e-03  0.000e+00  1.000e+01 ( 1.000e+00)
688        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
689        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
686   Normalization:  1.300e+00  4.388e-03  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 187.179 48.983

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/698832/cmap_HighResolution_388108801_388368001_4FGL_J1228.7+4858_daily_bin574.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.03e-03', job_status='DONE', photon_flux_upper_limit='7.73e-08', time_completed='2021-09-05 18:37:32.298212', job_id='698832', GAL2='0.63', fit_tolerance='1e-08', EG2='1.30', EG='1.30', time_epoch_completed='1630892252.3', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.63', dlogl='8.00e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.56' WHERE bin_id='574' AND source_name='4FGL J1228.7+4858' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 18:37:32 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0216>
Subject: Job 698832: <4FGL_J1228.7+4858_daily_bin574> in cluster <slac> Done

Job <4FGL_J1228.7+4858_daily_bin574> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sun Sep  5 18:25:44 2021
Job was executed on host(s) <bullet0216>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 18:25:45 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep  5 18:25:45 2021
Terminated at Sun Sep  5 18:37:33 2021
Results reported at Sun Sep  5 18:37:33 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1228.7+4858_daily_bin574 187.179 48.9827 388108801 388368001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1228.7+4858 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   679.23 sec.
    Max Memory :                                 1009 MB
    Average Memory :                             302.46 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   707 sec.
    Turnaround time :                            709 sec.

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

