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


Performing analysis on: 4FGL_J1228.7+4858_daily_bin673
RA = 187.179, Dec = 48.9827
tmin = 413769601, tmax = 414028801
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='698976', job_status='RUN', time_executed='2021-09-05 18:26:05.861107', time_epoch_executed='1630891565.86' WHERE source_name='4FGL J1228.7+4858' and cadence='daily' and bin_id='673'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/698976

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/698976/ft1_4FGL_J1228.7+4858_daily_bin673.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/698976/ft2_4FGL_J1228.7+4858_daily_bin673.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/698976/ft1_4FGL_J1228.7+4858_daily_bin673.fits outfile=/scratch/kocevski/698976/ft1_filteredMKT_4FGL_J1228.7+4858_daily_bin673.fits ra=187.179 dec=48.9827 rad=12.0 tmin=413769601.0 tmax=414028801.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 6.26
user 5.96
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/698976/ft1_filtered_4FGL_J1228.7+4858_daily_bin673.fits" evtable="EVENTS" scfile=/scratch/kocevski/698976/ft2_4FGL_J1228.7+4858_daily_bin673.fits sctable="SC_DATA" outfile=/scratch/kocevski/698976/ltcube_413769601_414028801_4FGL_J1228.7+4858_daily_bin673.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/698976/ft2_4FGL_J1228.7+4858_daily_bin673.fits
.....................!
real 12.07
user 11.72
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/698976/ft1_filtered_4FGL_J1228.7+4858_daily_bin673.fits evtable="EVENTS" scfile=/scratch/kocevski/698976/ft2_4FGL_J1228.7+4858_daily_bin673.fits sctable="SC_DATA" expcube=/scratch/kocevski/698976/ltcube_413769601_414028801_4FGL_J1228.7+4858_daily_bin673.fits outfile=/scratch/kocevski/698976/expmap_413769601_414028801_4FGL_J1228.7+4858_daily_bin673.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/698976/ltcube_413769601_414028801_4FGL_J1228.7+4858_daily_bin673.fits
.....................!
real 193.65
user 187.94
sys 5.20

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/698976/ft1_filtered_4FGL_J1228.7+4858_daily_bin673.fits scfile=/scratch/kocevski/698976/ft2_4FGL_J1228.7+4858_daily_bin673.fits outfile=/scratch/kocevski/698976/cmap_413769601_414028801_4FGL_J1228.7+4858_daily_bin673.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.36
sys 0.16

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/698976/ft1_filtered_4FGL_J1228.7+4858_daily_bin673.fits evtable="EVENTS" scfile=/scratch/kocevski/698976/ft2_4FGL_J1228.7+4858_daily_bin673.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/698976/Model_4FGL_J1228.7+4858_daily_bin673.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/698976/ft1_filtered_4FGL_J1228.7+4858_daily_bin673.fits.....................!
real 47.63
user 46.24
sys 1.24

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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.9532       1.0000         .10000E-03   10000.    
     3 'norm      '    .10201E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    127.25       1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.1574       1.0000         .10000E-03   10000.    
     7 'norm      '    .41213E-01   1.0000         .10000E-03   10000.    
     8 'norm      '    .10736E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.0901       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    3.3885       1.0000         .10000E-03   10000.    
    12 'Prefactor '    45.894       1.0000         .10000E-03   10000.    
    13 'norm      '    7.2038       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10302E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    20.105       1.0000         .10000E-03   10000.    
    16 'norm      '    18.898       1.0000         .10000E-03   10000.    
    17 'norm      '    2.0898       1.0000         .10000E-03   10000.    
    18 'Prefactor '    35.600       1.0000         .10000E-03   10000.    
    19 'Prefactor '    17.122       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .12151E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    2.2834       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.0891       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0041       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=   5266.399     FROM MIGRAD    STATUS=CONVERGED    508 CALLS     2546 TOTAL
                     EDM=   .12E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    28.331       -.60248E-07** at limit **
   2  norm          4.9541        2.1544        .34885E-07   -.17508E-04
   3  norm          .10000E-03    7.1920       -.12712E-06** at limit **
   4  Prefactor     .10000E-03    2.9081       -.33055E-06** at limit **
   5  Prefactor     127.24        81.723       -.23985E-06   -.48364E-04
   6  Prefactor     5.1572        17.284        .65961E-05   -.44825E-05
   7  norm          .41439E-01    1.1628        .15884E-06   -.29708E-03
   8  norm          .10000E-03    6.8213       -.56118E-07** at limit **
   9  Prefactor     1.0751        16.754        .35646E-06   -.92359E-04
  10  Prefactor     .10000E-03    4.1453        .33155E-07** at limit **
  11  norm          3.3876        2.3113        .82995E-08   -.10684E-04
  12  Prefactor     45.869        30.216        .14800E-06   -.21102E-03
  13  norm          7.2038        2.9128        .13574E-07   -.20623E-04
  14  Prefactor     .10000E-03    35.920       -.20069E-07** at limit **
  15  Prefactor     20.103        12.402        .55125E-07   -.98155E-05
  16  norm          18.896        21.386        .89345E-07   -.13561E-04
  17  norm          2.0897        2.6915        .40006E-07   -.14190E-04
  18  Prefactor     35.622        41.194        .53242E-06    .82574E-04
  19  Prefactor     17.117        18.280       -.86698E-07   -.28287E-04
  20  Prefactor     .10000E-03    34.905        .23439E-05** at limit **
  21  norm          2.2845        3.7683        .30999E-06   -.81864E-05
  22  Normalizat    1.0891        .19344       -.41438E-06   -.37820E-04
  23  Prefactor     1.0041        .23190       -.17161E-06   -.33069E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 4.95408
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 127.235
  Prefactor  = 5.15719
  norm       = 0.0414386
  norm       = 0.0001
  Prefactor  = 1.07512
  Prefactor  = 0.0001
  norm       = 3.38756
  Prefactor  = 45.869
  norm       = 7.20382
  Prefactor  = 0.0001
  Prefactor  = 20.1027
  norm       = 18.8957
  norm       = 2.0897
  Prefactor  = 35.6215
  Prefactor  = 17.1168
  Prefactor  = 0.0001
  norm       = 2.28445
  Normalizat = 1.08908
  Prefactor  = 1.00411
 **********
 **   18 **HESSE 
 **********

 FCN=   5266.399     FROM HESSE     STATUS=OK           378 CALLS     2924 TOTAL
                     EDM=   .44E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    28.361        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          4.9541        2.1589        .63790E-04   -1.5263    
   3  norm          .10000E-03    7.2454        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    3.0379        .24247E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     127.24        81.867        .17844E-03   -1.3447    
   6  Prefactor     5.1572        17.322        .88512E-03   -1.5254    
   7  norm          .41439E-01    5.5591        .15031E-02   -1.5667    
   8  norm          .10000E-03    7.0011        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     1.0751        79.530        .54653E-02   -1.5501    
  10  Prefactor     .10000E-03    4.1805        .14411E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          3.3876        2.3094        .87250E-04   -1.5340    
  12  Prefactor     45.869        30.016        .59184E-04   -1.4352    
  13  norm          7.2038        2.9129        .76282E-04   -1.5171    
  14  Prefactor     .10000E-03    35.993        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     20.103        12.393        .89327E-04   -1.4811    
  16  norm          18.896        21.390        .92134E-04   -1.4838    
  17  norm          2.0897        2.6782        .13054E-03   -1.5419    
  18  Prefactor     35.622        41.099        .67166E-04   -1.4514    
  19  Prefactor     17.117        18.240        .96794E-04   -1.4880    
  20  Prefactor     .10000E-03    34.828        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          2.2845        3.7365        .17076E-03   -1.5406    
  22  Normalizat    1.0891        .22676        .23399E-03   -.90103    
  23  Prefactor     1.0041        .27285        .30231E-03   -.92593    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.40365e-08
Minuit parameter uncertainties:
  1  4.30217e-05
  2  2.15891
  3  4.61618e-06
  4  3.58366e-05
  5  81.9403
  6  17.3385
  7  0.958851
  8  1.50231e-05
  9  18.5184
  10  1.28725e-06
  11  2.30946
  12  30.0259
  13  2.91301
  14  1.92135e-05
  15  12.3943
  16  21.3983
  17  2.67832
  18  41.1312
  19  18.2463
  20  4.05869e-05
  21  3.73687
  22  0.226962
  23  0.273226
Done.

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

Extracting fit parameters...

4FGL J1228.7+4858
   Spectrum: PowerLaw
359    Prefactor:  1.075e+00  1.852e+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:  1.004e+00  2.732e-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.089e+00  2.270e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/698976/likelihoodResults_413769601_414028801_4FGL_J1228.7+4858_daily_bin673.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) = 5266.38336299
delta logL = 0.0155746876617

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5266.38114974
delta logL = 0.0177879281218

Fit tolerance = 1e-08

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

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

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5266.381     FROM MIGRAD    STATUS=CONVERGED     98 CALLS      274 TOTAL
                     EDM=   .73E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.6706        28.284        .16308E-02   -.13167E-03
   2  Index         3.1592        3.2233        .59754E-02    .19087E-04
   3  Normalizat    1.0827        .21947        .23458E-03   -.92080E-06
   4  Prefactor     1.0079        .27037        .30178E-03   -.22603E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.67057
  Index      = 3.15915
  Normalizat = 1.0827
  Prefactor  = 1.00794
 **********
 **   18 **HESSE 
 **********

 FCN=   5266.381     FROM HESSE     STATUS=OK            27 CALLS      301 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.6706        18.679        .65231E-04   -1.5449    
   2  Index         3.1592        2.7136        .11951E-02   -.37704    
   3  Normalizat    1.0827        .21969        .93834E-05   -.90309    
   4  Prefactor     1.0079        .27068        .12071E-04   -.92465    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.63665e-10
Minuit parameter uncertainties:
  1  11.1763
  2  2.89761
  3  0.219878
  4  0.271048
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/698976': 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) = 5266.38114971
delta logL = 0.0177879647299

Extracting fit parameters...

4FGL J1228.7+4858
   Spectrum: PowerLaw
359    Prefactor:  1.671e+00  1.118e+01  1.000e-04  1.000e+04 ( 1.000e-13)
360        Index:  3.159e+00  2.898e+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:  1.008e+00  2.710e-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.083e+00  2.199e-01  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/698976/cmap_HighResolution_413769601_414028801_4FGL_J1228.7+4858_daily_bin673.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.89e-03', job_status='DONE', photon_flux_upper_limit='8.82e-08', time_completed='2021-09-05 18:38:07.597143', job_id='698976', GAL2='1.01', fit_tolerance='1e-08', EG2='1.08', EG='1.09', time_epoch_completed='1630892287.6', return_code2='0', ts='0.00', comment='SUCCESS', return_code='0', GAL='1.00', dlogl='1.78e-02', ts2='0.04', photon_index_error='0.00', photon_index='2.56' WHERE bin_id='673' AND source_name='4FGL J1228.7+4858' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 18:38:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0217>
Subject: Job 698976: <4FGL_J1228.7+4858_daily_bin673> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1228.7+4858_daily_bin673 187.179 48.9827 413769601 414028801 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 :                                   707.39 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             341.68 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   731 sec.
    Turnaround time :                            733 sec.

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

