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


Performing analysis on: 4FGL_J1228.7+4858_daily_bin64
RA = 187.179, Dec = 48.9827
tmin = 255916801, tmax = 256176001
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='692786', job_status='RUN', time_executed='2021-09-05 18:07:42.730967', time_epoch_executed='1630890462.73' WHERE source_name='4FGL J1228.7+4858' and cadence='daily' and bin_id='64'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/692786

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/692786/ft1_4FGL_J1228.7+4858_daily_bin64.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/692786/ft2_4FGL_J1228.7+4858_daily_bin64.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/692786/ft1_4FGL_J1228.7+4858_daily_bin64.fits outfile=/scratch/kocevski/692786/ft1_filteredMKT_4FGL_J1228.7+4858_daily_bin64.fits ra=187.179 dec=48.9827 rad=12.0 tmin=255916801.0 tmax=256176001.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.45
user 1.28
sys 0.16

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/692786/ft1_filtered_4FGL_J1228.7+4858_daily_bin64.fits" evtable="EVENTS" scfile=/scratch/kocevski/692786/ft2_4FGL_J1228.7+4858_daily_bin64.fits sctable="SC_DATA" outfile=/scratch/kocevski/692786/ltcube_255916801_256176001_4FGL_J1228.7+4858_daily_bin64.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/692786/ft2_4FGL_J1228.7+4858_daily_bin64.fits
.....................!
real 13.24
user 12.87
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/692786/ft1_filtered_4FGL_J1228.7+4858_daily_bin64.fits evtable="EVENTS" scfile=/scratch/kocevski/692786/ft2_4FGL_J1228.7+4858_daily_bin64.fits sctable="SC_DATA" expcube=/scratch/kocevski/692786/ltcube_255916801_256176001_4FGL_J1228.7+4858_daily_bin64.fits outfile=/scratch/kocevski/692786/expmap_255916801_256176001_4FGL_J1228.7+4858_daily_bin64.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/692786/ltcube_255916801_256176001_4FGL_J1228.7+4858_daily_bin64.fits
.....................!
real 192.64
user 187.49
sys 4.77

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/692786/ft1_filtered_4FGL_J1228.7+4858_daily_bin64.fits scfile=/scratch/kocevski/692786/ft2_4FGL_J1228.7+4858_daily_bin64.fits outfile=/scratch/kocevski/692786/cmap_255916801_256176001_4FGL_J1228.7+4858_daily_bin64.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/692786/ft1_filtered_4FGL_J1228.7+4858_daily_bin64.fits scfile=/scratch/kocevski/692786/ft2_4FGL_J1228.7+4858_daily_bin64.fits outfile=/scratch/kocevski/692786/cmap_HighResolution_255916801_256176001_4FGL_J1228.7+4858_daily_bin64.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.53
user 0.38
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/692786/ft1_filtered_4FGL_J1228.7+4858_daily_bin64.fits evtable="EVENTS" scfile=/scratch/kocevski/692786/ft2_4FGL_J1228.7+4858_daily_bin64.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/692786/Model_4FGL_J1228.7+4858_daily_bin64.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/692786/ft1_filtered_4FGL_J1228.7+4858_daily_bin64.fits.....................!
real 63.93
user 62.56
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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.9388       1.0000         .10000E-03   10000.    
     3 'norm      '    15.324       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .11145E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10051E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    14.470       1.0000         .10000E-03   10000.    
     7 'norm      '    1.5198       1.0000         .10000E-03   10000.    
     8 'norm      '    2.1866       1.0000         .10000E-03   10000.    
     9 'Prefactor '    43.617       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    1.1178       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    1.6143       1.0000         .10000E-03   10000.    
    14 'Prefactor '    6.1671       1.0000         .10000E-03   10000.    
    15 'Prefactor '    22.205       1.0000         .10000E-03   10000.    
    16 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .19480       1.0000         .10000E-03   10000.    
    18 'Prefactor '    23.841       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    4.1414       1.0000         .10000E-03   10000.    
    21 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.1837       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .97034       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=   7715.010     FROM MIGRAD    STATUS=CONVERGED    517 CALLS     2214 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    14.384       -.33835E-07** at limit **
   2  norm          1.9387        1.1414       -.23010E-07   -.43835E-03
   3  norm          15.325        10.361        .52794E-07   -.66568E-04
   4  Prefactor     .10000E-03    3.5410        .22098E-05** at limit **
   5  Prefactor     .10000E-03    27.521       -.82066E-09** at limit **
   6  Prefactor     14.432        17.860       -.14561E-05   -.81774E-03
   7  norm          1.5193        1.7713       -.50626E-07   -.50949E-03
   8  norm          2.1833        5.5249       -.15105E-06   -.26452E-03
   9  Prefactor     43.616        24.370       -.21861E-06   -.28959E-03
  10  Prefactor     .10000E-03    3.0611       -.15500E-06** at limit **
  11  norm          1.1170        1.9944        .10594E-06    .10474E-04
  12  Prefactor     .10000E-03    10.825        .30453E-06** at limit **
  13  norm          1.6143        1.3498        .13119E-07   -.68578E-04
  14  Prefactor     6.1217        67.403        .12155E-05    .47124E-04
  15  Prefactor     22.203        12.585       -.17988E-06   -.13289E-03
  16  norm          .10000E-03    3.1797        .43299E-06** at limit **
  17  norm          .18524        16.370       -.46109E-05    .22490E-03
  18  Prefactor     23.912        52.976        .20848E-06   -.66974E-04
  19  Prefactor     .10000E-03    6.8002        .48146E-07** at limit **
  20  Prefactor     4.0903        154.23       -.98287E-06   -.25858E-04
  21  norm          .10000E-03    1.2382        .31149E-07** at limit **
  22  Normalizat    1.1841        .16201        .99573E-06   -.10845E-02
  23  Prefactor     .97001        .18604       -.21591E-05   -.82274E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 1.93873
  norm       = 15.3249
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 14.4315
  norm       = 1.5193
  norm       = 2.1833
  Prefactor  = 43.6162
  Prefactor  = 0.0001
  norm       = 1.11705
  Prefactor  = 0.0001
  norm       = 1.61427
  Prefactor  = 6.12175
  Prefactor  = 22.2033
  norm       = 0.0001
  norm       = 0.185238
  Prefactor  = 23.9118
  Prefactor  = 0.0001
  Prefactor  = 4.09033
  norm       = 0.0001
  Normalizat = 1.18405
  Prefactor  = 0.970009
 **********
 **   18 **HESSE 
 **********

 FCN=   7715.010     FROM HESSE     STATUS=OK           372 CALLS     2586 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    14.386        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.9387        1.1352        .69201E-04   -1.5429    
   3  norm          15.325        10.368        .10232E-03   -1.4925    
   4  Prefactor     .10000E-03    3.8673        .23300E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    27.538        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     14.432        18.255        .10529E-03   -1.4948    
   7  norm          1.5193        1.7545        .12050E-03   -1.5461    
   8  norm          2.1833        5.4542        .27836E-03   -1.5412    
   9  Prefactor     43.616        24.205        .60703E-04   -1.4386    
  10  Prefactor     .10000E-03    3.0860        .14990E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          1.1170        1.9388        .15492E-03   -1.5497    
  12  Prefactor     .10000E-03    10.876        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.6143        1.3512        .90787E-04   -1.5454    
  14  Prefactor     6.1217        68.128        .16166E-03   -1.5213    
  15  Prefactor     22.203        12.497        .85003E-04   -1.4765    
  16  norm          .10000E-03    3.1926        .15325E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .18524        17.481        .23117E-02   -1.5622    
  18  Prefactor     23.912        53.673        .82038E-04   -1.4730    
  19  Prefactor     .10000E-03    6.8177        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     4.0903        154.40        .19807E-03   -1.5303    
  21  norm          .10000E-03    1.2436        .95445E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.1841        .18641        .22834E-03   -.87097    
  23  Prefactor     .97001        .21673        .30179E-03   -.93736    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.47265e-09
Minuit parameter uncertainties:
  1  2.28983e-05
  2  1.13524
  3  10.3691
  4  0.000162278
  5  5.36095e-05
  6  18.2619
  7  1.75454
  8  5.45543
  9  24.2105
  10  1.28167e-05
  11  1.93892
  12  3.78906e-05
  13  1.35119
  14  40.903
  15  12.4988
  16  3.85752e-05
  17  3.59908
  18  53.7812
  19  6.39751e-06
  20  50.4013
  21  1.6819e-06
  22  0.186518
  23  0.216923
Done.

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

Extracting fit parameters...

4FGL J1228.7+4858
   Spectrum: PowerLaw
359    Prefactor:  4.362e+01  2.421e+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:  9.700e-01  2.169e-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.184e+00  1.865e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.27
Ra Dec: 187.179 48.983
Photon Index (Fixed Index): 2.56 +/- 0.00
Photon Flux (Fixed Index): 7.28e-08 +/- 4.04e-08
Energy Flux (Fixed Index): 1.99e-05 +/- 1.11e-05

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) = 7715.00944249
delta logL = 0.000631463837635

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7715.00857825
delta logL = 0.00149570359645

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    42.276       1.0000         .10000E-03   10000.    
     2 'Index     '    2.5886       1.0000          .0000       10.000    
     3 'Normalizat'    1.1822       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97168       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=   7715.009     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      278 TOTAL
                     EDM=   .78E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     42.294        36.418        .61654E-04    .10337E-03
   2  Index         2.5884        .66323        .63653E-02    .58892E-03
   3  Normalizat    1.1820        .18278        .22850E-03   -.14810E-03
   4  Prefactor     .97189        .21727        .30154E-03    .50559E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 42.2939
  Index      = 2.58841
  Normalizat = 1.18196
  Prefactor  = 0.971887
 **********
 **   18 **HESSE 
 **********

 FCN=   7715.009     FROM HESSE     STATUS=OK            25 CALLS      303 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     42.294        33.722        .12331E-04   -1.4406    
   2  Index         2.5884        .61378        .12731E-02   -.50330    
   3  Normalizat    1.1820        .18238        .45701E-04   -.87162    
   4  Prefactor     .97189        .21696        .12062E-04   -.93673    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.61047e-10
Minuit parameter uncertainties:
  1  33.7369
  2  0.615802
  3  0.182483
  4  0.217153
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/692786': 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) = 7715.00857748
delta logL = 0.00149647828675

Extracting fit parameters...

4FGL J1228.7+4858
   Spectrum: PowerLaw
359    Prefactor:  4.229e+01  3.374e+01  1.000e-04  1.000e+04 ( 1.000e-13)
360        Index:  2.588e+00  6.158e-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:  9.719e-01  2.172e-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.825e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.27
Ra Dec: 187.179 48.983
Photon Index (Free Index): 2.59 +/- 0.62
Photon Flux (Free Index): 7.43e-08 +/- 4.67e-08
Energy Flux (Free Index): 1.97e-05 +/- 1.13e-05

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/692786/cmap_HighResolution_255916801_256176001_4FGL_J1228.7+4858_daily_bin64.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.28e-08', energy_flux2='1.97e-05', photon_flux_error='4.04e-08', dlogl='1.50e-03', energy_flux='1.99e-05', photon_flux2='7.43e-08', job_status='DONE', time_completed='2021-09-05 18:19:27.675733', photon_index_error2='0.62', photon_index2='2.59', ts='6.27', fit_tolerance='1e-08', GAL='0.97', photon_index_error='0.00', energy_flux_error2='1.13e-05', EG='1.18', time_epoch_completed='1630891167.68', return_code='0', job_id='692786', GAL2='0.97', EG2='1.18', return_code2='0', energy_flux_error='1.11e-05', photon_flux_error2='4.67e-08', ts2='6.27', photon_index='2.56' WHERE bin_id='64' AND source_name='4FGL J1228.7+4858' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 18:19:27 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0143>
Subject: Job 692786: <4FGL_J1228.7+4858_daily_bin64> in cluster <slac> Done

Job <4FGL_J1228.7+4858_daily_bin64> 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) <bullet0143>, 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:19:28 2021
Results reported at Sun Sep  5 18:19:28 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1228.7+4858_daily_bin64 187.179 48.9827 255916801 256176001 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 :                                   704.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             299.44 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   838 sec.
    Turnaround time :                            841 sec.

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

