/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 175 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 = 7658
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1228.7+4858_daily_bin68
RA = 187.179, Dec = 48.9827
tmin = 256953601, tmax = 257212801
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='692792', job_status='RUN', time_executed='2021-09-05 18:08:40.143680', time_epoch_executed='1630890520.14' WHERE source_name='4FGL J1228.7+4858' and cadence='daily' and bin_id='68'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/692792

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/692792/ft1_4FGL_J1228.7+4858_daily_bin68.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/692792/ft2_4FGL_J1228.7+4858_daily_bin68.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/692792/ft1_4FGL_J1228.7+4858_daily_bin68.fits outfile=/scratch/kocevski/692792/ft1_filteredMKT_4FGL_J1228.7+4858_daily_bin68.fits ra=187.179 dec=48.9827 rad=12.0 tmin=256953601.0 tmax=257212801.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 1.46
user 1.25
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/692792/ft1_filtered_4FGL_J1228.7+4858_daily_bin68.fits" evtable="EVENTS" scfile=/scratch/kocevski/692792/ft2_4FGL_J1228.7+4858_daily_bin68.fits sctable="SC_DATA" outfile=/scratch/kocevski/692792/ltcube_256953601_257212801_4FGL_J1228.7+4858_daily_bin68.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/692792/ft2_4FGL_J1228.7+4858_daily_bin68.fits
.....................!
real 12.29
user 11.92
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/692792/ft1_filtered_4FGL_J1228.7+4858_daily_bin68.fits evtable="EVENTS" scfile=/scratch/kocevski/692792/ft2_4FGL_J1228.7+4858_daily_bin68.fits sctable="SC_DATA" expcube=/scratch/kocevski/692792/ltcube_256953601_257212801_4FGL_J1228.7+4858_daily_bin68.fits outfile=/scratch/kocevski/692792/expmap_256953601_257212801_4FGL_J1228.7+4858_daily_bin68.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/692792/ltcube_256953601_257212801_4FGL_J1228.7+4858_daily_bin68.fits
.....................!
real 190.68
user 185.03
sys 5.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 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/692792/ft1_filtered_4FGL_J1228.7+4858_daily_bin68.fits scfile=/scratch/kocevski/692792/ft2_4FGL_J1228.7+4858_daily_bin68.fits outfile=/scratch/kocevski/692792/cmap_256953601_257212801_4FGL_J1228.7+4858_daily_bin68.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.57
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/692792/ft1_filtered_4FGL_J1228.7+4858_daily_bin68.fits scfile=/scratch/kocevski/692792/ft2_4FGL_J1228.7+4858_daily_bin68.fits outfile=/scratch/kocevski/692792/cmap_HighResolution_256953601_257212801_4FGL_J1228.7+4858_daily_bin68.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.56
user 0.36
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/692792/ft1_filtered_4FGL_J1228.7+4858_daily_bin68.fits evtable="EVENTS" scfile=/scratch/kocevski/692792/ft2_4FGL_J1228.7+4858_daily_bin68.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/692792/Model_4FGL_J1228.7+4858_daily_bin68.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/692792/ft1_filtered_4FGL_J1228.7+4858_daily_bin68.fits.....................!
real 54.47
user 53.07
sys 1.20

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/692792/ft1_filtered_4FGL_J1228.7+4858_daily_bin68.fits', '/scratch/kocevski/692792/ft2_4FGL_J1228.7+4858_daily_bin68.fits', expMap='/scratch/kocevski/692792/expmap_256953601_257212801_4FGL_J1228.7+4858_daily_bin68.fits', expCube='/scratch/kocevski/692792/ltcube_256953601_257212801_4FGL_J1228.7+4858_daily_bin68.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/692792/Model_4FGL_J1228.7+4858_daily_bin68.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/692792/ft1_filtered_4FGL_J1228.7+4858_daily_bin68.fits
Spacecraft file(s): /scratch/kocevski/692792/ft2_4FGL_J1228.7+4858_daily_bin68.fits
Exposure map: /scratch/kocevski/692792/expmap_256953601_257212801_4FGL_J1228.7+4858_daily_bin68.fits
Exposure cube: /scratch/kocevski/692792/ltcube_256953601_257212801_4FGL_J1228.7+4858_daily_bin68.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/692792/Model_4FGL_J1228.7+4858_daily_bin68.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) = 6357.49971714

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .71099       1.0000         .10000E-03   10000.    
     3 'norm      '    11.884       1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.2942       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.0187       1.0000         .10000E-03   10000.    
     7 'norm      '    .96624       1.0000         .10000E-03   10000.    
     8 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    23.769       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    3.5116       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10203E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .70002       1.0000         .10000E-03   10000.    
    14 'Prefactor '    54.880       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10058E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    31.014       1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    16.930       1.0000         .10000E-03   10000.    
    21 'norm      '    3.1760       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.0931       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .72368       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=   6357.498     FROM MIGRAD    STATUS=CONVERGED    501 CALLS     2565 TOTAL
                     EDM=   .41E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    12.461       -.11410E-05** at limit **
   2  norm          .71093        1.0015        .21657E-06   -.11101E-03
   3  norm          11.884        7.0461       -.16811E-07   -.43860E-05
   4  Prefactor     1.2908        3.5102        .14959E-05   -.20564E-03
   5  Prefactor     .10000E-03    15.005        .18710E-05** at limit **
   6  Prefactor     3.0273        33.277       -.23718E-05   -.29503E-04
   7  norm          .96646        1.6822        .26868E-06   -.10235E-03
   8  norm          .10000E-03    4.9569        .23172E-06** at limit **
   9  Prefactor     23.774        19.411        .68670E-06    .29028E-04
  10  Prefactor     .10000E-03    3.9080        .97548E-08** at limit **
  11  norm          3.5116        2.2956        .45304E-07   -.73674E-04
  12  Prefactor     .10000E-03    25.087       -.61834E-06** at limit **
  13  norm          .69955        1.6312        .45382E-06   -.33981E-04
  14  Prefactor     54.870        63.653       -.13024E-05   -.33662E-04
  15  Prefactor     .10000E-03    9.6347       -.58606E-07** at limit **
  16  norm          31.014        19.022        .17602E-06   -.95695E-05
  17  norm          .10000E-03    1.4990       -.77340E-08** at limit **
  18  Prefactor     .10000E-03    10.458       -.11437E-05** at limit **
  19  Prefactor     .10000E-03    9.2495        .10307E-05** at limit **
  20  Prefactor     16.930        25.895        .23025E-06    .25544E-05
  21  norm          3.1762        3.3771        .11798E-06   -.13614E-03
  22  Normalizat    1.0931        .15379       -.65707E-06   -.11860E-03
  23  Prefactor     .72367        .17830       -.10396E-06   -.96210E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 0.710932
  norm       = 11.8844
  Prefactor  = 1.29078
  Prefactor  = 0.0001
  Prefactor  = 3.02726
  norm       = 0.966464
  norm       = 0.0001
  Prefactor  = 23.7743
  Prefactor  = 0.0001
  norm       = 3.51158
  Prefactor  = 0.0001
  norm       = 0.69955
  Prefactor  = 54.8705
  Prefactor  = 0.0001
  norm       = 31.0143
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 16.9304
  norm       = 3.17621
  Normalizat = 1.09307
  Prefactor  = 0.723672
 **********
 **   18 **HESSE 
 **********

 FCN=   6357.498     FROM HESSE     STATUS=OK           376 CALLS     2941 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    12.551        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .71093        .94467        .91219E-03   -1.5539    
   3  norm          11.884        7.0451        .11620E-03   -1.5018    
   4  Prefactor     1.2908        3.4567        .19474E-03   -1.5481    
   5  Prefactor     .10000E-03    15.239        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     3.0273        31.231        .23358E-03   -1.5360    
   7  norm          .96646        1.5478        .12924E-02   -1.5511    
   8  norm          .10000E-03    5.0243        .17269E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     23.774        19.469        .82161E-04   -1.4732    
  10  Prefactor     .10000E-03    3.9584        .15362E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          3.5116        2.2877        .94067E-04   -1.5333    
  12  Prefactor     .10000E-03    25.576        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .69955        1.5400        .15087E-02   -1.5541    
  14  Prefactor     54.870        64.097        .54146E-04   -1.4225    
  15  Prefactor     .10000E-03    9.8421        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          31.014        19.023        .71947E-04   -1.4594    
  17  norm          .10000E-03    1.5210        .95305E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    10.540        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    9.3733        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     16.930        25.901        .97340E-04   -1.4885    
  21  norm          3.1762        3.3675        .14569E-03   -1.5352    
  22  Normalizat    1.0931        .17862        .20300E-03   -.89975    
  23  Prefactor     .72367        .20743        .29612E-03   -1.0261    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.54194e-08
Minuit parameter uncertainties:
  1  5.3795e-05
  2  0.944687
  3  7.04558
  4  3.45723
  5  9.33792e-05
  6  19.4597
  7  1.54783
  8  2.81424e-05
  9  19.4744
  10  8.08681e-07
  11  2.28774
  12  3.06189e-05
  13  1.54011
  14  64.1773
  15  4.37793e-06
  16  19.0267
  17  1.90378e-06
  18  4.59593e-05
  19  4.33376e-05
  20  25.9184
  21  3.36774
  22  0.178716
  23  0.207652
Done.

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

Extracting fit parameters...

4FGL J1228.7+4858
   Spectrum: PowerLaw
359    Prefactor:  2.377e+01  1.947e+01  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:  7.237e-01  2.077e-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.093e+00  1.787e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.02
Ra Dec: 187.179 48.983
Photon Index (Fixed Index): 2.56 +/- 0.00
Photon Flux (Fixed Index): 3.97e-08 +/- 3.25e-08
Energy Flux (Fixed Index): 1.09e-05 +/- 8.90e-06

TS (Fixed Index): 2.02
Ra Dec: 187.179 48.983
Photon Flux Upper Limit: 1.07e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.32e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/692792/likelihoodResults_256953601_257212801_4FGL_J1228.7+4858_daily_bin68.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) = 6356.99449214
delta logL = 0.503757297867

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6356.97923459
delta logL = 0.519014846998

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.1498       1.0000         .10000E-03   10000.    
     2 'Index     '    3.4579       1.0000          .0000       10.000    
     3 'Normalizat'    1.0626       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .75087       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=   6356.979     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      257 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.1093        105.32        .35110E-02    .24102E-03
   2  Index         3.4603        3.1073        .13842        .13241E-03
   3  Normalizat    1.0625        .50887E-01    .39781E-01    .21051E-05
   4  Prefactor     .75098        .59051E-01    .65819E-01    .20513E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.1093
  Index      = 3.46027
  Normalizat = 1.06247
  Prefactor  = 0.75098
 **********
 **   18 **HESSE 
 **********

 FCN=   6356.979     FROM HESSE     STATUS=OK            33 CALLS      290 TOTAL
                     EDM=   .90E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.1093        29.233        .14044E-03   -1.5138    
   2  Index         3.4603        2.0142        .50164E-02   -.31303    
   3  Normalizat    1.0625        .17640        .20544E-03   -.90966    
   4  Prefactor     .75098        .21115        .29119E-03   -1.0156    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.95169e-11
Minuit parameter uncertainties:
  1  29.2851
  2  2.0798
  3  0.176501
  4  0.211374
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/692792': 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) = 6356.97922971
delta logL = 0.519019727642

Extracting fit parameters...

4FGL J1228.7+4858
   Spectrum: PowerLaw
359    Prefactor:  8.109e+00  2.929e+01  1.000e-04  1.000e+04 ( 1.000e-13)
360        Index:  3.460e+00  2.080e+00  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:  7.510e-01  2.114e-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.062e+00  1.765e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.11
Ra Dec: 187.179 48.983
Photon Index (Free Index): 3.46 +/- 2.08
Photon Flux (Free Index): 6.13e-08 +/- 4.24e-08
Energy Flux (Free Index): 1.03e-05 +/- 8.39e-06

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/692792/cmap_HighResolution_256953601_257212801_4FGL_J1228.7+4858_daily_bin68.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.32e-03', comment='SUCCESS', photon_flux='3.97e-08', energy_flux2='1.03e-05', photon_flux_error='3.25e-08', dlogl='5.19e-01', energy_flux='1.09e-05', photon_flux2='6.13e-08', job_status='DONE', time_completed='2021-09-05 18:21:00.178719', photon_index_error2='2.08', photon_index2='3.46', ts='2.02', fit_tolerance='1e-08', GAL='0.72', photon_index_error='0.00', photon_flux_upper_limit='1.07e-07', energy_flux_error2='8.39e-06', EG='1.09', time_epoch_completed='1630891260.18', return_code='0', job_id='692792', GAL2='0.75', EG2='1.06', return_code2='0', energy_flux_error='8.90e-06', photon_flux_error2='4.24e-08', ts2='3.11', photon_index='2.56' WHERE bin_id='68' AND source_name='4FGL J1228.7+4858' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 18:21:00 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0207>
Subject: Job 692792: <4FGL_J1228.7+4858_daily_bin68> in cluster <slac> Done

Job <4FGL_J1228.7+4858_daily_bin68> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sun Sep  5 18:05:27 2021
Job was executed on host(s) <bullet0207>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 18:05:29 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:05:29 2021
Terminated at Sun Sep  5 18:21:00 2021
Results reported at Sun Sep  5 18:21:00 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1228.7+4858_daily_bin68 187.179 48.9827 256953601 257212801 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 :                                   738.48 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             280.39 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   931 sec.
    Turnaround time :                            933 sec.

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

