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


Performing analysis on: 4FGL_J1228.7+4858_daily_bin1216
RA = 187.179, Dec = 48.9827
tmin = 554515201, tmax = 554774401
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='703086', job_status='RUN', time_executed='2021-09-05 18:44:28.220564', time_epoch_executed='1630892668.22' WHERE source_name='4FGL J1228.7+4858' and cadence='daily' and bin_id='1216'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/703086

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/703086/ft1_4FGL_J1228.7+4858_daily_bin1216.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/703086/ft2_4FGL_J1228.7+4858_daily_bin1216.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/703086/ft1_4FGL_J1228.7+4858_daily_bin1216.fits outfile=/scratch/kocevski/703086/ft1_filteredMKT_4FGL_J1228.7+4858_daily_bin1216.fits ra=187.179 dec=48.9827 rad=12.0 tmin=554515201.0 tmax=554774401.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 4.10
user 3.87
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/703086/ft2_4FGL_J1228.7+4858_daily_bin1216.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/703086/ft1_filteredMKT_4FGL_J1228.7+4858_daily_bin1216.fits evtable="EVENTS" outfile="/scratch/kocevski/703086/ft1_filtered_4FGL_J1228.7+4858_daily_bin1216.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.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/703086/ft1_filtered_4FGL_J1228.7+4858_daily_bin1216.fits" evtable="EVENTS" scfile=/scratch/kocevski/703086/ft2_4FGL_J1228.7+4858_daily_bin1216.fits sctable="SC_DATA" outfile=/scratch/kocevski/703086/ltcube_554515201_554774401_4FGL_J1228.7+4858_daily_bin1216.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/703086/ft2_4FGL_J1228.7+4858_daily_bin1216.fits
.....................!
real 11.95
user 11.56
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/703086/ft1_filtered_4FGL_J1228.7+4858_daily_bin1216.fits evtable="EVENTS" scfile=/scratch/kocevski/703086/ft2_4FGL_J1228.7+4858_daily_bin1216.fits sctable="SC_DATA" expcube=/scratch/kocevski/703086/ltcube_554515201_554774401_4FGL_J1228.7+4858_daily_bin1216.fits outfile=/scratch/kocevski/703086/expmap_554515201_554774401_4FGL_J1228.7+4858_daily_bin1216.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/703086/ltcube_554515201_554774401_4FGL_J1228.7+4858_daily_bin1216.fits
.....................!
real 193.83
user 186.45
sys 6.07

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/703086/ft1_filtered_4FGL_J1228.7+4858_daily_bin1216.fits scfile=/scratch/kocevski/703086/ft2_4FGL_J1228.7+4858_daily_bin1216.fits outfile=/scratch/kocevski/703086/cmap_554515201_554774401_4FGL_J1228.7+4858_daily_bin1216.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.35
sys 0.18

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/703086/ft1_filtered_4FGL_J1228.7+4858_daily_bin1216.fits scfile=/scratch/kocevski/703086/ft2_4FGL_J1228.7+4858_daily_bin1216.fits outfile=/scratch/kocevski/703086/cmap_HighResolution_554515201_554774401_4FGL_J1228.7+4858_daily_bin1216.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.57
user 0.37
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/703086/ft1_filtered_4FGL_J1228.7+4858_daily_bin1216.fits evtable="EVENTS" scfile=/scratch/kocevski/703086/ft2_4FGL_J1228.7+4858_daily_bin1216.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/703086/Model_4FGL_J1228.7+4858_daily_bin1216.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/703086/ft1_filtered_4FGL_J1228.7+4858_daily_bin1216.fits.....................!
real 18.84
user 17.39
sys 1.23

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/703086/ft1_filtered_4FGL_J1228.7+4858_daily_bin1216.fits', '/scratch/kocevski/703086/ft2_4FGL_J1228.7+4858_daily_bin1216.fits', expMap='/scratch/kocevski/703086/expmap_554515201_554774401_4FGL_J1228.7+4858_daily_bin1216.fits', expCube='/scratch/kocevski/703086/ltcube_554515201_554774401_4FGL_J1228.7+4858_daily_bin1216.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/703086/Model_4FGL_J1228.7+4858_daily_bin1216.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/703086/ft1_filtered_4FGL_J1228.7+4858_daily_bin1216.fits
Spacecraft file(s): /scratch/kocevski/703086/ft2_4FGL_J1228.7+4858_daily_bin1216.fits
Exposure map: /scratch/kocevski/703086/expmap_554515201_554774401_4FGL_J1228.7+4858_daily_bin1216.fits
Exposure cube: /scratch/kocevski/703086/ltcube_554515201_554774401_4FGL_J1228.7+4858_daily_bin1216.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/703086/Model_4FGL_J1228.7+4858_daily_bin1216.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 796.00433453

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 794.467712054

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .22076       1.0000         .10000E-03   10000.    
     2 'norm      '    6.3986       1.0000         .10000E-03   10000.    
     3 'norm      '    17.406       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10706E-02   1.0000         .10000E-03   10000.    
     5 'Prefactor '    163.95       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .23174       1.0000         .10000E-03   10000.    
     7 'norm      '    .20019       1.0000         .10000E-03   10000.    
     8 'norm      '    4.9797       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .70398E-01   1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.1042       1.0000         .10000E-03   10000.    
    11 'norm      '    3.6111       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .30410       1.0000         .10000E-03   10000.    
    13 'norm      '    .92440E-02   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .32775E-01   1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.9880       1.0000         .10000E-03   10000.    
    16 'norm      '    .46069E-02   1.0000         .10000E-03   10000.    
    17 'norm      '    .26396E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .37163       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .62377       1.0000         .10000E-03   10000.    
    20 'Prefactor '    1.0682       1.0000         .10000E-03   10000.    
    21 'norm      '    .29382E-02   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    23 'Prefactor '    2.2920       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6900E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   794.4507     FROM MIGRAD    STATUS=CONVERGED    180 CALLS      498 TOTAL
                     EDM=   .20E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10199E-03    328.03       -.15024E-04** at limit **
   2  norm          6.2829        4.5324        .12432E-05    .10997E-03
   3  norm          16.254        24.549        .14136E-06    .22614E-02
   4  Prefactor     .10000E-03    18.147       -.18296E-06** at limit **
   5  Prefactor     180.73        249.30        .10543E-07    .60630E-03
   6  Prefactor     .10000E-03    59.231        .14112E-06** at limit **
   7  norm          .10021E-03    103.60        .81187E-05** at limit **
   8  norm          5.1063        109.59        .10736E-04    .50680E-03
   9  Prefactor     .10003E-03    193.42        .91376E-05** at limit **
  10  Prefactor     1.1042        1.1851         .0000         .0000    
  11  norm          3.6111        1.0099         .0000         .0000    
  12  Prefactor     .10004E-03    179.85       -.90000E-06** at limit **
  13  norm          .10000E-03    19.358        .24593E-06** at limit **
  14  Prefactor     .10001E-03    79.893       -.10887E-05** at limit **
  15  Prefactor     1.9880        1.0358         .0000         .0000    
  16  norm          .10000E-03    15.855       -.52250E-07** at limit **
  17  norm          .10000E-03    19.212       -.28158E-06** at limit **
  18  Prefactor     .11164E-03    55.215        .65486E-06** at limit **
  19  Prefactor     .10850E-03    105.81        .17972E-05** at limit **
  20  Prefactor     .10000E-03    81.698        .18260E-05** at limit **
  21  norm          .10000E-03    24.341       -.17914E-06** at limit **
  22  Normalizat    .10000E-01    .85773        .29241E-04** at limit **
  23  Prefactor     2.2879        .37717        .13526E-05    .11854E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000101994
  norm       = 6.28286
  norm       = 16.2536
  Prefactor  = 0.0001
  Prefactor  = 180.73
  Prefactor  = 0.0001
  norm       = 0.00010021
  norm       = 5.10633
  Prefactor  = 0.00010003
  Prefactor  = 1.10422
  norm       = 3.61115
  Prefactor  = 0.000100042
  norm       = 0.0001
  Prefactor  = 0.000100012
  Prefactor  = 1.98797
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000111641
  Prefactor  = 0.000108503
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 0.01
  Prefactor  = 2.28788
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   794.4507     FROM HESSE     STATUS=FAILED        45 CALLS      543 TOTAL
                     EDM=   .20E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10199E-03    359.59        .10072E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          6.2829        4.1485        .39668E-02   -1.5207    
   3  norm          16.254        35.560        .24000E-02   -1.4901    
   4  Prefactor     .10000E-03    18.131        .10358E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     180.73        192.53        .78748E-03   -1.3011    
   6  Prefactor     .10000E-03    59.188        .10122E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10021E-03    105.16        .99785E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          5.1063        114.89        .45054E-02   -1.5256    
   9  Prefactor     .10003E-03    195.92        .93691E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     585.95        584.53         .0000       -1.5498    
  11  norm          3.6111        1.0099         .0000       -1.5328    
  12  Prefactor     .10004E-03    .27264       -.90000E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    .20747        .24593E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10001E-03    .21094       -.10887E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     1.9880        1.0358         .0000       -1.5426    
  16  norm          .10000E-03    .23312       -.52250E-07   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    .28737       -.28158E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .11164E-03    .28809        .65486E-06   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10850E-03    .34610        .17972E-05   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    .34643        .18260E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    .24628       -.17914E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .10000E-01    .25505        .29241E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     2.2879        1.0124        .13526E-05   -.57332    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 2.01919e-10
Minuit parameter uncertainties:
  1  0.0538859
  2  4.1487
  3  35.6067
  4  2.91877e-06
  5  193.21
  6  3.73782e-06
  7  0.00940478
  8  48.5487
  9  0.00490458
  10  1.18513
  11  1.00992
  12  0.000213306
  13  2.91094e-07
  14  0.000100508
  15  1.03576
  16  1.04991e-07
  17  4.27906e-07
  18  0.00366264
  19  0.00343108
  20  1.35059e-06
  21  3.08645e-07
  22  1.36328e-06
  23  1.02247
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 794.45070368

Extracting fit parameters...

4FGL J1228.7+4858
   Spectrum: PowerLaw
359    Prefactor:  1.000e-04  4.905e-03  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:  2.288e+00  1.022e+00  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.000e-02  1.363e-06  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.48e-07 ph cm-2 s-1
Energy Flux Upper Limit: 5.83e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/703086/likelihoodResults_554515201_554774401_4FGL_J1228.7+4858_daily_bin1216.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) = 794.450728234
delta logL = -2.45535456997e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 794.450708644
delta logL = -4.96367317737e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10066E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.9072       1.0000          .0000       10.000    
     3 'Normalizat'    .10008E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    2.2880       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   794.4507     FROM MIGRAD    STATUS=CONVERGED     98 CALLS      291 TOTAL
                     EDM=   .44E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10409E-03    120.65        .18142E-01** at limit **
   2  Index         2.8104        5.8780        .50000        .19251E-05
   3  Normalizat    .10000E-01    .13940E-02    .11653E-01** at limit **
   4  Prefactor     2.2879        .14467E-01    .23802E-03    .22867E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000104088
  Index      = 2.81043
  Normalizat = 0.01
  Prefactor  = 2.28788
 **********
 **   18 **HESSE 
 **********

 FCN=   794.4507     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      320 TOTAL
                     EDM=   .23E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10409E-03    628.24        .34020E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.8104        8.5661        .50000       -.45328    
   3  Normalizat    .10000E-01    .74113E-02    .23306E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     2.2879        .33309E-01    .95208E-05   -.57332    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.28207e-10
Minuit parameter uncertainties:
  1  0.102444
  2  782.399
  3  6.26718e-07
  4  0.0333098
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/703086': 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) = 794.450703766
delta logL = -8.54248582982e-08

Extracting fit parameters...

4FGL J1228.7+4858
   Spectrum: PowerLaw
359    Prefactor:  1.041e-04  1.024e-01  1.000e-04  1.000e+04 ( 1.000e-13)
360        Index:  2.810e+00  7.824e+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:  2.288e+00  3.331e-02  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.000e-02  6.267e-07  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/703086/cmap_HighResolution_554515201_554774401_4FGL_J1228.7+4858_daily_bin1216.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.83e-02', job_status='DONE', photon_flux_upper_limit='7.48e-07', time_completed='2021-09-05 18:50:25.069889', job_id='703086', GAL2='2.29', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1630893025.07', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='101', GAL='2.29', dlogl='-8.54e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.56' WHERE bin_id='1216' AND source_name='4FGL J1228.7+4858' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 18:50:25 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0212>
Subject: Job 703086: <4FGL_J1228.7+4858_daily_bin1216> in cluster <slac> Done

Job <4FGL_J1228.7+4858_daily_bin1216> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Sun Sep  5 18:40:24 2021
Job was executed on host(s) <bullet0212>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 18:40:25 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:40:25 2021
Terminated at Sun Sep  5 18:50:25 2021
Results reported at Sun Sep  5 18:50:25 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1228.7+4858_daily_bin1216 187.179 48.9827 554515201 554774401 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 :                                   351.54 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             333.70 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   600 sec.
    Turnaround time :                            601 sec.

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

