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


Performing analysis on: 4FGL_J1228.7+4858_daily_bin1263
RA = 187.179, Dec = 48.9827
tmin = 566697601, tmax = 566956801
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='703159', job_status='RUN', time_executed='2021-09-05 18:40:49.125703', time_epoch_executed='1630892449.13' WHERE source_name='4FGL J1228.7+4858' and cadence='daily' and bin_id='1263'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/703159

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/703159/ft1_4FGL_J1228.7+4858_daily_bin1263.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/703159/ft2_4FGL_J1228.7+4858_daily_bin1263.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/703159/ft1_4FGL_J1228.7+4858_daily_bin1263.fits outfile=/scratch/kocevski/703159/ft1_filteredMKT_4FGL_J1228.7+4858_daily_bin1263.fits ra=187.179 dec=48.9827 rad=12.0 tmin=566697601.0 tmax=566956801.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.98
user 1.81
sys 0.16

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/703159/ft1_filtered_4FGL_J1228.7+4858_daily_bin1263.fits" evtable="EVENTS" scfile=/scratch/kocevski/703159/ft2_4FGL_J1228.7+4858_daily_bin1263.fits sctable="SC_DATA" outfile=/scratch/kocevski/703159/ltcube_566697601_566956801_4FGL_J1228.7+4858_daily_bin1263.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/703159/ft2_4FGL_J1228.7+4858_daily_bin1263.fits
.....................!
real 12.69
user 12.33
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/703159/ft1_filtered_4FGL_J1228.7+4858_daily_bin1263.fits evtable="EVENTS" scfile=/scratch/kocevski/703159/ft2_4FGL_J1228.7+4858_daily_bin1263.fits sctable="SC_DATA" expcube=/scratch/kocevski/703159/ltcube_566697601_566956801_4FGL_J1228.7+4858_daily_bin1263.fits outfile=/scratch/kocevski/703159/expmap_566697601_566956801_4FGL_J1228.7+4858_daily_bin1263.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/703159/ltcube_566697601_566956801_4FGL_J1228.7+4858_daily_bin1263.fits
.....................!
real 190.85
user 184.85
sys 5.68

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/703159/ft1_filtered_4FGL_J1228.7+4858_daily_bin1263.fits scfile=/scratch/kocevski/703159/ft2_4FGL_J1228.7+4858_daily_bin1263.fits outfile=/scratch/kocevski/703159/cmap_566697601_566956801_4FGL_J1228.7+4858_daily_bin1263.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.53
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/703159/ft1_filtered_4FGL_J1228.7+4858_daily_bin1263.fits scfile=/scratch/kocevski/703159/ft2_4FGL_J1228.7+4858_daily_bin1263.fits outfile=/scratch/kocevski/703159/cmap_HighResolution_566697601_566956801_4FGL_J1228.7+4858_daily_bin1263.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.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/703159/ft1_filtered_4FGL_J1228.7+4858_daily_bin1263.fits evtable="EVENTS" scfile=/scratch/kocevski/703159/ft2_4FGL_J1228.7+4858_daily_bin1263.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/703159/Model_4FGL_J1228.7+4858_daily_bin1263.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/703159/ft1_filtered_4FGL_J1228.7+4858_daily_bin1263.fits.....................!
real 71.64
user 70.29
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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      '    4.3967       1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .24485       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    15.554       1.0000         .10000E-03   10000.    
     7 'norm      '    .72128       1.0000         .10000E-03   10000.    
     8 'norm      '    1.8460       1.0000         .10000E-03   10000.    
     9 'Prefactor '    18.047       1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.0076       1.0000         .10000E-03   10000.    
    11 'norm      '    3.3989       1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.1338       1.0000         .10000E-03   10000.    
    13 'norm      '    3.7286       1.0000         .10000E-03   10000.    
    14 'Prefactor '    47.729       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    10.904       1.0000         .10000E-03   10000.    
    17 'norm      '    2.6614       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .18805E-02   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    7.2431       1.0000         .10000E-03   10000.    
    21 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.0362       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .80967       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   9187.069     FROM MIGRAD    STATUS=CONVERGED    522 CALLS     2553 TOTAL
                     EDM=   .88E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    20.667         .0000    ** at limit **
   2  norm          4.3972        1.2992         .0000        .33805E-04
   3  norm          .10000E-03    2.5744         .0000    ** at limit **
   4  Prefactor     .25339        1.1791         .0000        .11610E-02
   5  Prefactor     .10000E-03    24.739         .0000    ** at limit **
   6  Prefactor     15.546        12.650         .0000       -.12775E-02
   7  norm          .72138        1.0478         .0000        .46735E-02
   8  norm          1.8519        7.6131         .0000        .24448E-01
   9  Prefactor     18.034        22.153         .0000        .73230E-03
  10  Prefactor     1.0071        2.9243         .0000        .16201E-02
  11  norm          3.3991        1.6025         .0000       -.54849E-04
  12  Prefactor     4.1344        7.0988         .0000        .50076E-03
  13  norm          3.7287        1.5403         .0000       -.93714E-05
  14  Prefactor     47.730        50.872         .0000       -.64392E-03
  15  Prefactor     .10000E-03    3.2726         .0000    ** at limit **
  16  norm          10.904        10.001         .0000       -.23370E-03
  17  norm          2.6600        2.4702         .0000        .34301E-03
  18  Prefactor     .10001E-03    98.949         .0000    ** at limit **
  19  Prefactor     .10000E-03    7.5746         .0000    ** at limit **
  20  Prefactor     7.2264        16.845         .0000       -.12864E-02
  21  norm          .10000E-03    .71910         .0000    ** at limit **
  22  Normalizat    1.0361        .12620         .0000       -.23468E-04
  23  Prefactor     .80981        .15118         .0000        .47060E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 4.39716
  norm       = 0.0001
  Prefactor  = 0.253388
  Prefactor  = 0.000100001
  Prefactor  = 15.5461
  norm       = 0.721378
  norm       = 1.85186
  Prefactor  = 18.0344
  Prefactor  = 1.00715
  norm       = 3.3991
  Prefactor  = 4.13443
  norm       = 3.72867
  Prefactor  = 47.7296
  Prefactor  = 0.0001
  norm       = 10.9036
  norm       = 2.65998
  Prefactor  = 0.000100012
  Prefactor  = 0.0001
  Prefactor  = 7.22643
  norm       = 0.0001
  Normalizat = 1.03606
  Prefactor  = 0.80981
 **********
 **   18 **HESSE 
 **********

 FCN=   9187.069     FROM HESSE     STATUS=OK           372 CALLS     2925 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    20.680        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          4.3972        1.2990        .57386E-04   -1.5289    
   3  norm          .10000E-03    2.5789        .15019E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .25339        3.8840        .18786E-02   -1.5607    
   5  Prefactor     .10000E-03    24.784        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     15.546        12.662        .10155E-03   -1.4919    
   7  norm          .72138        1.0477        .24286E-03   -1.5538    
   8  norm          1.8519        7.1008        .15346E-02   -1.5436    
   9  Prefactor     18.034        21.005        .94280E-04   -1.4858    
  10  Prefactor     1.0071        2.8576        .25910E-03   -1.5507    
  11  norm          3.3991        1.5880        .77669E-04   -1.5339    
  12  Prefactor     4.1344        7.0855        .19826E-03   -1.5301    
  13  norm          3.7287        1.5401        .74146E-04   -1.5322    
  14  Prefactor     47.730        50.970        .58041E-04   -1.4325    
  15  Prefactor     .10000E-03    3.2991        .16927E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          10.904        9.9990        .60666E-03   -1.5047    
  17  norm          2.6600        2.4608        .13951E-03   -1.5382    
  18  Prefactor     .10001E-03    102.54        .40567E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    7.7351        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     7.2264        16.786        .14904E-03   -1.5170    
  21  norm          .10000E-03    .72309        .79358E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.0361        .14847        .20939E-03   -.91832    
  23  Prefactor     .80981        .17747        .28815E-03   -.99368    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.27042e-08
Minuit parameter uncertainties:
  1  8.85334e-05
  2  1.29905
  3  9.88912e-07
  4  1.98386
  5  0.000235429
  6  12.6637
  7  1.04768
  8  7.10407
  9  21.0133
  10  2.858
  11  1.58805
  12  7.08698
  13  1.54014
  14  51.0169
  15  2.1722e-06
  16  10.0005
  17  2.46084
  18  0.00221241
  19  2.77246e-07
  20  16.7969
  21  4.69519e-08
  22  0.148527
  23  0.177591
Done.

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

Extracting fit parameters...

4FGL J1228.7+4858
   Spectrum: PowerLaw
359    Prefactor:  1.803e+01  2.101e+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:  8.098e-01  1.776e-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.036e+00  1.485e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.57
Ra Dec: 187.179 48.983
Photon Index (Fixed Index): 2.56 +/- 0.00
Photon Flux (Fixed Index): 3.01e-08 +/- 3.50e-08
Energy Flux (Fixed Index): 8.24e-06 +/- 9.60e-06

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

Saving results to:
/scratch/kocevski/703159/likelihoodResults_566697601_566956801_4FGL_J1228.7+4858_daily_bin1263.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) = 9187.06428081
delta logL = 0.00424503655631

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9187.06105292
delta logL = 0.00747292550113

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    16.462       1.0000         .10000E-03   10000.    
     2 'Index     '    2.6390       1.0000          .0000       10.000    
     3 'Normalizat'    1.0339       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .81202       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=   9187.061     FROM MIGRAD    STATUS=CONVERGED    100 CALLS      259 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     16.453        22.152        .98713E-04    .11978E-05
   2  Index         2.6387        .76610        .85418E-02    .56884E-03
   3  Normalizat    1.0342        .14503        .20956E-03   -.43509E-04
   4  Prefactor     .81165        .17746        .28787E-03    .29541E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 16.4529
  Index      = 2.63867
  Normalizat = 1.03418
  Prefactor  = 0.811652
 **********
 **   18 **HESSE 
 **********

 FCN=   9187.061     FROM HESSE     STATUS=OK            25 CALLS      284 TOTAL
                     EDM=   .31E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     16.453        20.344        .19743E-04   -1.4896    
   2  Index         2.6387        .70374        .17084E-02   -.49186    
   3  Normalizat    1.0342        .14513        .83823E-05   -.91894    
   4  Prefactor     .81165        .17750        .11515E-04   -.99300    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.06958e-11
Minuit parameter uncertainties:
  1  20.3527
  2  0.706764
  3  0.145184
  4  0.17763
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/703159': 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) = 9187.06104996
delta logL = 0.00747588521881

Extracting fit parameters...

4FGL J1228.7+4858
   Spectrum: PowerLaw
359    Prefactor:  1.645e+01  2.035e+01  1.000e-04  1.000e+04 ( 1.000e-13)
360        Index:  2.639e+00  7.068e-01  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:  8.117e-01  1.776e-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.034e+00  1.452e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.59
Ra Dec: 187.179 48.983
Photon Index (Free Index): 2.64 +/- 0.71
Photon Flux (Free Index): 3.12e-08 +/- 2.88e-08
Energy Flux (Free Index): 7.91e-06 +/- 7.61e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/703159/cmap_HighResolution_566697601_566956801_4FGL_J1228.7+4858_daily_bin1263.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.59e-03', comment='SUCCESS', photon_flux='3.01e-08', energy_flux2='7.91e-06', photon_flux_error='3.50e-08', dlogl='7.48e-03', energy_flux='8.24e-06', photon_flux2='3.12e-08', job_status='DONE', time_completed='2021-09-05 18:56:36.479167', photon_index_error2='0.71', photon_index2='2.64', ts='1.57', fit_tolerance='1e-08', GAL='0.81', photon_index_error='0.00', photon_flux_upper_limit='8.45e-08', energy_flux_error2='7.61e-06', EG='1.04', time_epoch_completed='1630893396.48', return_code='0', job_id='703159', GAL2='0.81', EG2='1.03', return_code2='0', energy_flux_error='9.60e-06', photon_flux_error2='2.88e-08', ts2='1.59', photon_index='2.56' WHERE bin_id='1263' AND source_name='4FGL J1228.7+4858' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 18:56:36 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0273>
Subject: Job 703159: <4FGL_J1228.7+4858_daily_bin1263> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1228.7+4858_daily_bin1263 187.179 48.9827 566697601 566956801 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 :                                   939.12 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             318.69 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   964 sec.
    Turnaround time :                            967 sec.

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

