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


Performing analysis on: 4FGL_J1228.7+4858_daily_bin454
RA = 187.179, Dec = 48.9827
tmin = 357004801, tmax = 357264001
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='698659', job_status='RUN', time_executed='2021-09-05 18:25:46.346341', time_epoch_executed='1630891546.35' WHERE source_name='4FGL J1228.7+4858' and cadence='daily' and bin_id='454'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/698659

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/698659/ft1_4FGL_J1228.7+4858_daily_bin454.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/698659/ft2_4FGL_J1228.7+4858_daily_bin454.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/698659/ft1_4FGL_J1228.7+4858_daily_bin454.fits outfile=/scratch/kocevski/698659/ft1_filteredMKT_4FGL_J1228.7+4858_daily_bin454.fits ra=187.179 dec=48.9827 rad=12.0 tmin=357004801.0 tmax=357264001.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.03
user 3.75
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/698659/ft2_4FGL_J1228.7+4858_daily_bin454.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/698659/ft1_filteredMKT_4FGL_J1228.7+4858_daily_bin454.fits evtable="EVENTS" outfile="/scratch/kocevski/698659/ft1_filtered_4FGL_J1228.7+4858_daily_bin454.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.52
user 0.31
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/698659/ft1_filtered_4FGL_J1228.7+4858_daily_bin454.fits" evtable="EVENTS" scfile=/scratch/kocevski/698659/ft2_4FGL_J1228.7+4858_daily_bin454.fits sctable="SC_DATA" outfile=/scratch/kocevski/698659/ltcube_357004801_357264001_4FGL_J1228.7+4858_daily_bin454.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/698659/ft2_4FGL_J1228.7+4858_daily_bin454.fits
.....................!
real 11.89
user 11.53
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/698659/ft1_filtered_4FGL_J1228.7+4858_daily_bin454.fits evtable="EVENTS" scfile=/scratch/kocevski/698659/ft2_4FGL_J1228.7+4858_daily_bin454.fits sctable="SC_DATA" expcube=/scratch/kocevski/698659/ltcube_357004801_357264001_4FGL_J1228.7+4858_daily_bin454.fits outfile=/scratch/kocevski/698659/expmap_357004801_357264001_4FGL_J1228.7+4858_daily_bin454.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/698659/ltcube_357004801_357264001_4FGL_J1228.7+4858_daily_bin454.fits
.....................!
real 195.63
user 189.80
sys 5.44

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/698659/ft1_filtered_4FGL_J1228.7+4858_daily_bin454.fits scfile=/scratch/kocevski/698659/ft2_4FGL_J1228.7+4858_daily_bin454.fits outfile=/scratch/kocevski/698659/cmap_357004801_357264001_4FGL_J1228.7+4858_daily_bin454.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.63
user 0.37
sys 0.15

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/698659/ft1_filtered_4FGL_J1228.7+4858_daily_bin454.fits evtable="EVENTS" scfile=/scratch/kocevski/698659/ft2_4FGL_J1228.7+4858_daily_bin454.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/698659/Model_4FGL_J1228.7+4858_daily_bin454.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/698659/ft1_filtered_4FGL_J1228.7+4858_daily_bin454.fits.....................!
real 53.77
user 50.53
sys 1.34

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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      '    1.6568       1.0000         .10000E-03   10000.    
     3 'norm      '    16.827       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .11794E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .36228E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.0514       1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10486E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.7842       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    1.1053       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    4.1605       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10131E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    29.447       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10508E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    6.6123       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.1823       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .84725       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=   6086.032     FROM MIGRAD    STATUS=CONVERGED    510 CALLS     2525 TOTAL
                     EDM=   .54E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    15.565        .92097E-06** at limit **
   2  norm          1.6529        1.7123       -.22157E-06    .76683E-03
   3  norm          16.809        16.323       -.41115E-06    .18475E-03
   4  Prefactor     .10000E-03    2.2511        .14709E-05** at limit **
   5  Prefactor     .10002E-03    273.15       -.13646E-04** at limit **
   6  Prefactor     2.0821        45.708       -.53506E-05   -.17837E-03
   7  norm          .10000E-03    .49197        .96436E-08** at limit **
   8  norm          .10000E-03    7.4438       -.13805E-05** at limit **
   9  Prefactor     4.7845        21.808        .68649E-05   -.17219E-03
  10  Prefactor     .10000E-03    4.1319        .13746E-06** at limit **
  11  norm          1.1055        1.8006        .28981E-06    .17931E-03
  12  Prefactor     .10000E-03    7.8747        .24273E-06** at limit **
  13  norm          4.1605        1.8655       -.82277E-08   -.15060E-04
  14  Prefactor     .10000E-03    18.913       -.13708E-05** at limit **
  15  Prefactor     .10000E-03    5.8737        .64413E-07** at limit **
  16  norm          .10000E-03    4.2296       -.13256E-06** at limit **
  17  norm          .10000E-03    2.0238       -.79743E-07** at limit **
  18  Prefactor     29.437        29.554       -.48541E-06   -.65555E-04
  19  Prefactor     .10000E-03    25.403        .11415E-05** at limit **
  20  Prefactor     .10000E-03    16.879       -.53455E-06** at limit **
  21  norm          6.6141        4.4660        .17745E-06   -.14966E-03
  22  Normalizat    1.1823        .16523       -.72076E-06   -.13829E-03
  23  Prefactor     .84720        .19643       -.12340E-06   -.94549E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 1.65293
  norm       = 16.809
  Prefactor  = 0.0001
  Prefactor  = 0.000100019
  Prefactor  = 2.08208
  norm       = 0.0001
  norm       = 0.000100001
  Prefactor  = 4.7845
  Prefactor  = 0.0001
  norm       = 1.1055
  Prefactor  = 0.0001
  norm       = 4.1605
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 29.4371
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 6.61409
  Normalizat = 1.18234
  Prefactor  = 0.847203
 **********
 **   18 **HESSE 
 **********

 FCN=   6086.032     FROM HESSE     STATUS=OK           366 CALLS     2891 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    15.619        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.6529        1.6805        .92407E-04   -1.5451    
   3  norm          16.809        16.241        .97637E-04   -1.4888    
   4  Prefactor     .10000E-03    3.2897        .20266E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10002E-03    280.63        .21308E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     2.0821        41.156        .28861E-03   -1.5419    
   7  norm          .10000E-03    .49587        .53415E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    7.6872        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     4.7845        21.585        .91970E-03   -1.5270    
  10  Prefactor     .10000E-03    4.1913        .15461E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          1.1055        1.5492        .12932E-02   -1.5498    
  12  Prefactor     .10000E-03    7.8937        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          4.1605        1.8675        .69424E-04   -1.5300    
  14  Prefactor     .10000E-03    19.030        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    5.9147        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    4.2323        .15671E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    2.0466        .10828E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     29.437        29.621        .73832E-04   -1.4622    
  19  Prefactor     .10000E-03    25.712        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    16.895        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          6.6141        4.4527        .13016E-03   -1.5194    
  22  Normalizat    1.1823        .19248        .20930E-03   -.87150    
  23  Prefactor     .84720        .22894        .29700E-03   -.98011    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.08366e-09
Minuit parameter uncertainties:
  1  0.000105393
  2  1.68056
  3  16.2453
  4  6.2824e-05
  5  0.00462466
  6  18.528
  7  1.49627e-07
  8  0.000127677
  9  20.3365
  10  4.82833e-06
  11  1.5493
  12  2.0148e-05
  13  1.86755
  14  0.00016669
  15  2.842e-06
  16  6.89312e-06
  17  5.8776e-06
  18  29.6357
  19  0.000160324
  20  2.07749e-05
  21  4.45295
  22  0.192592
  23  0.229194
Done.

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

Extracting fit parameters...

4FGL J1228.7+4858
   Spectrum: PowerLaw
359    Prefactor:  4.785e+00  2.034e+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.472e-01  2.292e-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.182e+00  1.926e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/698659/likelihoodResults_357004801_357264001_4FGL_J1228.7+4858_daily_bin454.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) = 6085.89772856
delta logL = 0.134611159059

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6085.87775066
delta logL = 0.154589053395

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.7807       1.0000         .10000E-03   10000.    
     2 'Index     '    3.5784       1.0000          .0000       10.000    
     3 'Normalizat'    1.1597       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86350       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=   6085.878     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      221 TOTAL
                     EDM=   .77E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.7693        113.74        .61007E-02    .68367E-03
   2  Index         3.5811        3.4796        .21058        .71742E-04
   3  Normalizat    1.1597        .33079E-01    .35964E-01    .32150E-05
   4  Prefactor     .86355        .40525E-01    .66562E-01    .15921E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.76931
  Index      = 3.58109
  Normalizat = 1.15968
  Prefactor  = 0.863553
 **********
 **   18 **HESSE 
 **********

 FCN=   6085.878     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      254 TOTAL
                     EDM=   .57E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.7693        388.64        .20989E-03   -1.5375    
   2  Index         3.5811        5.2401        .79734E-02   -.28774    
   3  Normalizat    1.1597        .18383        .21104E-03   -.87858    
   4  Prefactor     .86355        .22805        .29445E-03   -.97427    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.69968e-07
Minuit parameter uncertainties:
  1  66.0537
  2  12.7771
  3  0.183934
  4  0.228297
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/698659': 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) = 6085.87774981
delta logL = 0.154589902845

Extracting fit parameters...

4FGL J1228.7+4858
   Spectrum: PowerLaw
359    Prefactor:  2.769e+00  6.605e+01  1.000e-04  1.000e+04 ( 1.000e-13)
360        Index:  3.581e+00  1.278e+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.636e-01  2.283e-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.160e+00  1.839e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.06
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/698659/cmap_HighResolution_357004801_357264001_4FGL_J1228.7+4858_daily_bin454.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.79e-03', job_status='DONE', photon_flux_upper_limit='8.70e-08', time_completed='2021-09-05 18:38:16.133869', job_id='698659', GAL2='0.86', fit_tolerance='1e-08', EG2='1.16', EG='1.18', time_epoch_completed='1630892296.13', return_code2='102', ts='0.06', comment='SUCCESS', return_code='0', GAL='0.85', dlogl='1.55e-01', ts2='0.39', photon_index_error='0.00', photon_index='2.56' WHERE bin_id='454' AND source_name='4FGL J1228.7+4858' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 18:38:16 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0256>
Subject: Job 698659: <4FGL_J1228.7+4858_daily_bin454> in cluster <slac> Done

Job <4FGL_J1228.7+4858_daily_bin454> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sun Sep  5 18:25:32 2021
Job was executed on host(s) <bullet0256>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 18:25:33 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:33 2021
Terminated at Sun Sep  5 18:38:16 2021
Results reported at Sun Sep  5 18:38:16 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1228.7+4858_daily_bin454 187.179 48.9827 357004801 357264001 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 :                                   733.12 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             364.08 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   763 sec.
    Turnaround time :                            764 sec.

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

