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


Performing analysis on: 4FGL_J1228.7+4858_daily_bin19
RA = 187.179, Dec = 48.9827
tmin = 244252801, tmax = 244512001
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='692719', job_status='RUN', time_executed='2021-09-05 18:07:35.766245', time_epoch_executed='1630890455.77' WHERE source_name='4FGL J1228.7+4858' and cadence='daily' and bin_id='19'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/692719

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/692719/ft1_4FGL_J1228.7+4858_daily_bin19.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/692719/ft2_4FGL_J1228.7+4858_daily_bin19.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/692719/ft1_4FGL_J1228.7+4858_daily_bin19.fits outfile=/scratch/kocevski/692719/ft1_filteredMKT_4FGL_J1228.7+4858_daily_bin19.fits ra=187.179 dec=48.9827 rad=12.0 tmin=244252801.0 tmax=244512001.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 2.43
user 2.22
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/692719/ft1_filtered_4FGL_J1228.7+4858_daily_bin19.fits" evtable="EVENTS" scfile=/scratch/kocevski/692719/ft2_4FGL_J1228.7+4858_daily_bin19.fits sctable="SC_DATA" outfile=/scratch/kocevski/692719/ltcube_244252801_244512001_4FGL_J1228.7+4858_daily_bin19.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/692719/ft2_4FGL_J1228.7+4858_daily_bin19.fits
.....................!
real 12.86
user 12.53
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/692719/ft1_filtered_4FGL_J1228.7+4858_daily_bin19.fits evtable="EVENTS" scfile=/scratch/kocevski/692719/ft2_4FGL_J1228.7+4858_daily_bin19.fits sctable="SC_DATA" expcube=/scratch/kocevski/692719/ltcube_244252801_244512001_4FGL_J1228.7+4858_daily_bin19.fits outfile=/scratch/kocevski/692719/expmap_244252801_244512001_4FGL_J1228.7+4858_daily_bin19.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/692719/ltcube_244252801_244512001_4FGL_J1228.7+4858_daily_bin19.fits
.....................!
real 193.34
user 187.50
sys 5.36

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/692719/ft1_filtered_4FGL_J1228.7+4858_daily_bin19.fits scfile=/scratch/kocevski/692719/ft2_4FGL_J1228.7+4858_daily_bin19.fits outfile=/scratch/kocevski/692719/cmap_244252801_244512001_4FGL_J1228.7+4858_daily_bin19.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.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/692719/ft1_filtered_4FGL_J1228.7+4858_daily_bin19.fits scfile=/scratch/kocevski/692719/ft2_4FGL_J1228.7+4858_daily_bin19.fits outfile=/scratch/kocevski/692719/cmap_HighResolution_244252801_244512001_4FGL_J1228.7+4858_daily_bin19.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/692719/ft1_filtered_4FGL_J1228.7+4858_daily_bin19.fits evtable="EVENTS" scfile=/scratch/kocevski/692719/ft2_4FGL_J1228.7+4858_daily_bin19.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/692719/Model_4FGL_J1228.7+4858_daily_bin19.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/692719/ft1_filtered_4FGL_J1228.7+4858_daily_bin19.fits.....................!
real 43.07
user 41.77
sys 1.16

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .12048E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    1.7952       1.0000         .10000E-03   10000.    
     3 'norm      '    5.7187       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .13745       1.0000         .10000E-03   10000.    
     5 'Prefactor '    10.630       1.0000         .10000E-03   10000.    
     6 'Prefactor '    9.3945       1.0000         .10000E-03   10000.    
     7 'norm      '    4.8426       1.0000         .10000E-03   10000.    
     8 'norm      '    1.5171       1.0000         .10000E-03   10000.    
     9 'Prefactor '    17.751       1.0000         .10000E-03   10000.    
    10 'Prefactor '    7.1437       1.0000         .10000E-03   10000.    
    11 'norm      '    1.4033       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .11274E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    3.8105       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .11155E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10153E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    10.020       1.0000         .10000E-03   10000.    
    17 'norm      '    .10017E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    20.737       1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.7771       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    8.9194       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.1749       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .80535       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=   4777.317     FROM MIGRAD    STATUS=CONVERGED    533 CALLS     2561 TOTAL
                     EDM=   .26E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    24.316       -.69816E-05** at limit **
   2  norm          1.7949        1.8414       -.18730E-05   -.98273E-04
   3  norm          5.7187        8.6671        .37276E-06   -.29291E-05
   4  Prefactor     .96446E-01    2.4722        .59053E-07    .45517E-03
   5  Prefactor     10.655        81.237        .42554E-04   -.81693E-06
   6  Prefactor     9.4664        27.675       -.25747E-05   -.11557E-04
   7  norm          4.8426        2.8969        .38897E-07   -.19746E-04
   8  norm          1.5148        1.7302        .30403E-06   -.11536E-02
   9  Prefactor     17.753        26.295       -.15749E-06   -.77048E-05
  10  Prefactor     7.1429        6.9638       -.16400E-06   -.88409E-05
  11  norm          1.4032        1.5361        .60872E-07    .17417E-04
  12  Prefactor     .10000E-03    68.599        .12067E-05** at limit **
  13  norm          3.8105        2.5926        .22602E-07   -.18886E-05
  14  Prefactor     .10000E-03    22.946        .77980E-05** at limit **
  15  Prefactor     .10000E-03    9.5559        .34894E-07** at limit **
  16  norm          10.024        10.167        .90220E-06   -.19418E-05
  17  norm          .10000E-03    2.0970        .19441E-06** at limit **
  18  Prefactor     20.777        29.314        .17326E-05   -.24474E-05
  19  Prefactor     1.7765        35.842       -.32723E-05   -.10301E-04
  20  Prefactor     .10000E-03    11.524        .18553E-06** at limit **
  21  norm          8.9158        5.3316        .15191E-06    .40845E-04
  22  Normalizat    1.1747        .19378       -.47555E-06   -.19473E-04
  23  Prefactor     .80562        .22454        .10413E-07   -.34691E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 1.79487
  norm       = 5.71866
  Prefactor  = 0.0964456
  Prefactor  = 10.6546
  Prefactor  = 9.46642
  norm       = 4.84257
  norm       = 1.51479
  Prefactor  = 17.7526
  Prefactor  = 7.14292
  norm       = 1.40316
  Prefactor  = 0.0001
  norm       = 3.81046
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 10.024
  norm       = 0.0001
  Prefactor  = 20.7773
  Prefactor  = 1.77649
  Prefactor  = 0.0001
  norm       = 8.91579
  Normalizat = 1.17468
  Prefactor  = 0.805619
 **********
 **   18 **HESSE 
 **********

 FCN=   4777.317     FROM HESSE     STATUS=OK           382 CALLS     2943 TOTAL
                     EDM=   .85E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    24.315        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.7949        1.8302        .76852E-04   -1.5440    
   3  norm          5.7187        8.6583        .16796E-03   -1.5230    
   4  Prefactor     .96446E-01    40.632        .18005E-02   -1.5646    
   5  Prefactor     10.655        81.040        .12289E-03   -1.5055    
   6  Prefactor     9.4664        30.307        .13075E-03   -1.5093    
   7  norm          4.8426        2.8981        .86354E-04   -1.5268    
   8  norm          1.5148        8.6920        .17351E-02   -1.5462    
   9  Prefactor     17.753        28.240        .95061E-04   -1.4865    
  10  Prefactor     7.1429        6.9587        .15008E-03   -1.5173    
  11  norm          1.4032        1.5397        .86905E-04   -1.5471    
  12  Prefactor     .10000E-03    70.524        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          3.8105        2.5914        .88810E-04   -1.5318    
  14  Prefactor     .10000E-03    22.961        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    9.6240        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          10.024        10.169        .12659E-03   -1.5075    
  17  norm          .10000E-03    2.1154        .97691E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     20.777        29.319        .87957E-04   -1.4796    
  19  Prefactor     1.7765        35.502        .31401E-03   -1.5441    
  20  Prefactor     .10000E-03    11.526        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          8.9158        5.2937        .11507E-03   -1.5111    
  22  Normalizat    1.1747        .22450        .21594E-03   -.87389    
  23  Prefactor     .80562        .25901        .30822E-03   -.99522    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.46413e-09
Minuit parameter uncertainties:
  1  1.0664e-05
  2  1.83024
  3  8.66018
  4  3.95982
  5  58.88
  6  30.3563
  7  2.89815
  8  7.25851
  9  28.2608
  10  6.95944
  11  1.53977
  12  3.78257e-05
  13  2.59152
  14  9.37617e-06
  15  6.51597e-06
  16  10.1708
  17  2.37333e-06
  18  29.3388
  19  15.8935
  20  3.88086e-06
  21  5.29401
  22  0.224679
  23  0.259405
Done.

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

Extracting fit parameters...

4FGL J1228.7+4858
   Spectrum: PowerLaw
359    Prefactor:  1.775e+01  2.826e+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.056e-01  2.594e-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.175e+00  2.247e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/692719/likelihoodResults_244252801_244512001_4FGL_J1228.7+4858_daily_bin19.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) = 4776.15529797
delta logL = 1.16212393964

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4776.04073207
delta logL = 1.2766898394

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .78576       1.0000         .10000E-03   10000.    
     2 'Index     '    4.9257       1.0000          .0000       10.000    
     3 'Normalizat'    1.0946       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87402       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=   4776.041     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      274 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .77472        8.4187        .85785E-02    .73154E-03
   2  Index         4.9330        2.7854        .99845E-01    .13359E-03
   3  Normalizat    1.0943        .53576E-01    .38226E-01    .71277E-05
   4  Prefactor     .87431        .64901E-01    .67157E-01    .13469E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.774723
  Index      = 4.93299
  Normalizat = 1.09428
  Prefactor  = 0.874312
 **********
 **   18 **HESSE 
 **********

 FCN=   4776.041     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      307 TOTAL
                     EDM=   .26E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .77472        16.841        .38777E-04   -1.5532    
   2  Index         4.9330        4.0948        .39471E-02   -.13402E-01
   3  Normalizat    1.0943        .19413        .22215E-03   -.89936    
   4  Prefactor     .87431        .23184        .29708E-03   -.97045    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.61546e-10
Minuit parameter uncertainties:
  1  7.22606
  2  4.7982
  3  0.194257
  4  0.232103
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/692719': 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) = 4776.04072523
delta logL = 1.27669667803

Extracting fit parameters...

4FGL J1228.7+4858
   Spectrum: PowerLaw
359    Prefactor:  7.747e-01  7.226e+00  1.000e-04  1.000e+04 ( 1.000e-13)
360        Index:  4.933e+00  4.798e+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:  8.743e-01  2.321e-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.094e+00  1.943e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.27
Ra Dec: 187.179 48.983
Photon Index (Free Index): 4.93 +/- 4.80
Photon Flux (Free Index): 9.05e-08 +/- 5.90e-08
Energy Flux (Free Index): 1.21e-05 +/- 9.92e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/692719/cmap_HighResolution_244252801_244512001_4FGL_J1228.7+4858_daily_bin19.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.71e-03', comment='SUCCESS', energy_flux2='1.21e-05', dlogl='1.28e+00', photon_flux2='9.05e-08', job_status='DONE', time_completed='2021-09-05 18:18:26.871008', photon_index_error2='4.80', photon_index2='4.93', ts='0.55', fit_tolerance='1e-08', GAL='0.81', photon_index_error='0.00', photon_flux_upper_limit='1.24e-07', energy_flux_error2='9.92e-06', EG='1.17', time_epoch_completed='1630891106.87', return_code='0', job_id='692719', GAL2='0.87', EG2='1.09', return_code2='102', photon_flux_error2='5.90e-08', ts2='3.27', photon_index='2.56' WHERE bin_id='19' AND source_name='4FGL J1228.7+4858' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 18:18:26 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0243>
Subject: Job 692719: <4FGL_J1228.7+4858_daily_bin19> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1228.7+4858_daily_bin19 187.179 48.9827 244252801 244512001 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 :                                   650.00 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             322.15 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   783 sec.
    Turnaround time :                            785 sec.

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

