/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 5 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 = 7396
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1228.7+4858_daily_bin385
RA = 187.179, Dec = 48.9827
tmin = 339120001, tmax = 339379201
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='698556', job_status='RUN', time_executed='2021-09-05 18:25:39.553961', time_epoch_executed='1630891539.55' WHERE source_name='4FGL J1228.7+4858' and cadence='daily' and bin_id='385'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/698556

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

Retrieving the FT1 file...

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

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

Retrieving 52 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/698556/ft1_4FGL_J1228.7+4858_daily_bin385.fits


Retrieving the FT1 file...

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

Retrieving 52 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/698556/ft2_4FGL_J1228.7+4858_daily_bin385.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/698556/ft1_4FGL_J1228.7+4858_daily_bin385.fits outfile=/scratch/kocevski/698556/ft1_filteredMKT_4FGL_J1228.7+4858_daily_bin385.fits ra=187.179 dec=48.9827 rad=12.0 tmin=339120001.0 tmax=339379201.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.59
user 6.12
sys 0.31

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/698556/ft2_4FGL_J1228.7+4858_daily_bin385.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/698556/ft1_filteredMKT_4FGL_J1228.7+4858_daily_bin385.fits evtable="EVENTS" outfile="/scratch/kocevski/698556/ft1_filtered_4FGL_J1228.7+4858_daily_bin385.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.51
user 0.33
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/698556/ft1_filtered_4FGL_J1228.7+4858_daily_bin385.fits" evtable="EVENTS" scfile=/scratch/kocevski/698556/ft2_4FGL_J1228.7+4858_daily_bin385.fits sctable="SC_DATA" outfile=/scratch/kocevski/698556/ltcube_339120001_339379201_4FGL_J1228.7+4858_daily_bin385.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/698556/ft2_4FGL_J1228.7+4858_daily_bin385.fits
.....................!
real 11.99
user 11.48
sys 0.42

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/698556/ft1_filtered_4FGL_J1228.7+4858_daily_bin385.fits evtable="EVENTS" scfile=/scratch/kocevski/698556/ft2_4FGL_J1228.7+4858_daily_bin385.fits sctable="SC_DATA" expcube=/scratch/kocevski/698556/ltcube_339120001_339379201_4FGL_J1228.7+4858_daily_bin385.fits outfile=/scratch/kocevski/698556/expmap_339120001_339379201_4FGL_J1228.7+4858_daily_bin385.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/698556/ltcube_339120001_339379201_4FGL_J1228.7+4858_daily_bin385.fits
.....................!
real 193.34
user 185.25
sys 6.12

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/698556/ft1_filtered_4FGL_J1228.7+4858_daily_bin385.fits scfile=/scratch/kocevski/698556/ft2_4FGL_J1228.7+4858_daily_bin385.fits outfile=/scratch/kocevski/698556/cmap_339120001_339379201_4FGL_J1228.7+4858_daily_bin385.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.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/698556/ft1_filtered_4FGL_J1228.7+4858_daily_bin385.fits scfile=/scratch/kocevski/698556/ft2_4FGL_J1228.7+4858_daily_bin385.fits outfile=/scratch/kocevski/698556/cmap_HighResolution_339120001_339379201_4FGL_J1228.7+4858_daily_bin385.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.60
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/698556/ft1_filtered_4FGL_J1228.7+4858_daily_bin385.fits evtable="EVENTS" scfile=/scratch/kocevski/698556/ft2_4FGL_J1228.7+4858_daily_bin385.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/698556/Model_4FGL_J1228.7+4858_daily_bin385.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/698556/ft1_filtered_4FGL_J1228.7+4858_daily_bin385.fits.....................!
real 48.91
user 47.41
sys 1.28

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    13.780       1.0000         .10000E-03   10000.    
     2 'norm      '    3.4004       1.0000         .10000E-03   10000.    
     3 'norm      '    .36447E-02   1.0000         .10000E-03   10000.    
     4 'Prefactor '    16.084       1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.1736       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .20287E-02   1.0000         .10000E-03   10000.    
     7 'norm      '    1.3901       1.0000         .10000E-03   10000.    
     8 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .30182E-02   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    1.9659       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .24043E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    3.9531       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .47462E-02   1.0000         .10000E-03   10000.    
    15 'Prefactor '    11.651       1.0000         .10000E-03   10000.    
    16 'norm      '    8.2127       1.0000         .10000E-03   10000.    
    17 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    11.237       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10559E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .51800E-02   1.0000         .10000E-03   10000.    
    21 'norm      '    1.0127       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.1250       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .88685       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=   5553.611     FROM MIGRAD    STATUS=CONVERGED    545 CALLS     1863 TOTAL
                     EDM=   .27E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          12.078        41.923        .95458E-06    .83475E-05
   2  norm          3.4025        1.7041        .25307E-06    .71123E-03
   3  norm          .10005E-03    7.8421       -.18552E-05** at limit **
   4  Prefactor     16.030        5.4564        .38128E-07   -.66610E-04
   5  Prefactor     3.0173        302.34        .21339E-05    .30768E-04
   6  Prefactor     .10000E-03    13.980        .21370E-05** at limit **
   7  norm          1.3899        1.7463        .10416E-06    .43523E-04
   8  norm          .10000E-03    2.5762        .61513E-07** at limit **
   9  Prefactor     .10000E-03    17.016       -.36009E-06** at limit **
  10  Prefactor     .10000E-03    2.1215       -.14747E-07** at limit **
  11  norm          1.9646        1.5718        .23754E-07    .23226E-04
  12  Prefactor     .10000E-03    11.638       -.20291E-07** at limit **
  13  norm          3.9514        2.2959       -.83616E-08   -.56572E-05
  14  Prefactor     .10000E-03    44.983       -.27768E-06** at limit **
  15  Prefactor     11.681        8.9017       -.15066E-05   -.19445E-03
  16  norm          8.2383        10.026        .37009E-07    .67876E-05
  17  norm          .10000E-03    1.8084        .69126E-07** at limit **
  18  Prefactor     11.519        30.040       -.79207E-06   -.70993E-05
  19  Prefactor     .10000E-03    11.064       -.90901E-06** at limit **
  20  Prefactor     .10000E-03    23.724       -.23340E-05** at limit **
  21  norm          1.0001        4.5988        .16319E-05    .52992E-04
  22  Normalizat    1.1248        .17937       -.10869E-05    .12144E-03
  23  Prefactor     .88769        .21271        .19820E-05    .47242E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 12.0782
  norm       = 3.4025
  norm       = 0.000100052
  Prefactor  = 16.0295
  Prefactor  = 3.01731
  Prefactor  = 0.0001
  norm       = 1.38988
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.9646
  Prefactor  = 0.0001
  norm       = 3.95136
  Prefactor  = 0.0001
  Prefactor  = 11.6807
  norm       = 8.23831
  norm       = 0.0001
  Prefactor  = 11.5194
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.00015
  Normalizat = 1.12475
  Prefactor  = 0.887685
 **********
 **   18 **HESSE 
 **********

 FCN=   5553.611     FROM HESSE     STATUS=OK           370 CALLS     2233 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          12.078        41.969        .10790E-03   -1.5013    
   2  norm          3.4025        1.7020        .62101E-04   -1.5339    
   3  norm          .10005E-03    27.606        .35534E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     16.030        5.4651        .95548E-04   -1.4907    
   5  Prefactor     3.0173        317.98        .22749E-03   -1.5361    
   6  Prefactor     .10000E-03    14.015        .20216E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          1.3899        1.7220        .10589E-03   -1.5472    
   8  norm          .10000E-03    2.5842        .11680E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    17.124        .19822E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    2.1316        .10598E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          1.9646        1.5765        .81150E-04   -1.5428    
  12  Prefactor     .10000E-03    11.666        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          3.9514        2.2954        .83380E-04   -1.5310    
  14  Prefactor     .10000E-03    45.045        .19273E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     11.681        8.9783        .11736E-03   -1.5024    
  16  norm          8.2383        10.025        .13990E-03   -1.5134    
  17  norm          .10000E-03    1.8420        .97800E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     11.519        29.998        .11951E-03   -1.5029    
  19  Prefactor     .10000E-03    11.153        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    23.795        .19153E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          1.0001        4.6514        .30256E-03   -1.5508    
  22  Normalizat    1.1248        .20533        .22470E-03   -.88961    
  23  Prefactor     .88769        .24157        .30088E-03   -.96573    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.99152e-09
Minuit parameter uncertainties:
  1  42.0717
  2  1.70201
  3  0.00239223
  4  5.46524
  5  62.2918
  6  6.13562e-05
  7  1.72208
  8  2.22717e-07
  9  1.75171e-05
  10  2.29438e-06
  11  1.5765
  12  1.63708e-06
  13  2.29543
  14  2.75006e-05
  15  8.97937
  16  10.0269
  17  1.1381e-06
  18  30.0368
  19  7.14201e-05
  20  9.72878e-05
  21  4.31406
  22  0.205477
  23  0.24186
Done.

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

Extracting fit parameters...

4FGL J1228.7+4858
   Spectrum: PowerLaw
359    Prefactor:  1.000e-04  1.752e-05  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.877e-01  2.419e-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.125e+00  2.055e-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: 7.50e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.86e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/698556/likelihoodResults_339120001_339379201_4FGL_J1228.7+4858_daily_bin385.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) = 5553.61156479
delta logL = -0.000278257565697

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5553.61128657
delta logL = -4.42960299551e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10352E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4508       1.0000          .0000       10.000    
     3 'Normalizat'    1.1248       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88770       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=   5553.611     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      233 TOTAL
                     EDM=   .51E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1048.5        .90712E-02** at limit **
   2  Index         2.4444        5.7849        .50000        .31583E-05
   3  Normalizat    1.1248        .37014E-01    .37072E-01    .49137E-05
   4  Prefactor     .88769        .44779E-01    .68014E-01    .13268E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.44443
  Normalizat = 1.12475
  Prefactor  = 0.887686
 **********
 **   18 **HESSE 
 **********

 FCN=   5553.611     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      266 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6367.3        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4444        6.0073        .50000       -.53648    
   3  Normalizat    1.1248        .79781E-01    .22470E-03   -.88961    
   4  Prefactor     .88769        .96403E-01    .30088E-03   -.96573    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.40841e-09
Minuit parameter uncertainties:
  1  0.000144409
  2  56.6549
  3  0.07979
  4  0.0964213
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/698556': 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) = 5553.61128646
delta logL = 6.83321559336e-08

Extracting fit parameters...

4FGL J1228.7+4858
   Spectrum: PowerLaw
359    Prefactor:  1.000e-04  1.444e-04  1.000e-04  1.000e+04 ( 1.000e-13)
360        Index:  2.444e+00  5.665e+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.877e-01  9.642e-02  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.125e+00  7.979e-02  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/698556/cmap_HighResolution_339120001_339379201_4FGL_J1228.7+4858_daily_bin385.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.86e-03', job_status='DONE', photon_flux_upper_limit='7.50e-08', time_completed='2021-09-05 18:36:55.567331', job_id='698556', GAL2='0.89', fit_tolerance='1e-08', EG2='1.12', EG='1.12', time_epoch_completed='1630892215.57', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.89', dlogl='6.83e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.56' WHERE bin_id='385' AND source_name='4FGL J1228.7+4858' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 18:36:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0032>
Subject: Job 698556: <4FGL_J1228.7+4858_daily_bin385> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1228.7+4858_daily_bin385 187.179 48.9827 339120001 339379201 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 :                                   658.00 sec.
    Max Memory :                                 1193 MB
    Average Memory :                             329.82 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   689 sec.
    Turnaround time :                            692 sec.

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

