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


Performing analysis on: 4FGL_J1228.7+4858_daily_bin192
RA = 187.179, Dec = 48.9827
tmin = 289094401, tmax = 289353601
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='694330', job_status='RUN', time_executed='2021-09-05 18:10:44.148536', time_epoch_executed='1630890644.15' WHERE source_name='4FGL J1228.7+4858' and cadence='daily' and bin_id='192'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/694330

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/694330/ft1_4FGL_J1228.7+4858_daily_bin192.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/694330/ft2_4FGL_J1228.7+4858_daily_bin192.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/694330/ft1_4FGL_J1228.7+4858_daily_bin192.fits outfile=/scratch/kocevski/694330/ft1_filteredMKT_4FGL_J1228.7+4858_daily_bin192.fits ra=187.179 dec=48.9827 rad=12.0 tmin=289094401.0 tmax=289353601.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 3.60
user 3.39
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/694330/ft1_filtered_4FGL_J1228.7+4858_daily_bin192.fits" evtable="EVENTS" scfile=/scratch/kocevski/694330/ft2_4FGL_J1228.7+4858_daily_bin192.fits sctable="SC_DATA" outfile=/scratch/kocevski/694330/ltcube_289094401_289353601_4FGL_J1228.7+4858_daily_bin192.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/694330/ft2_4FGL_J1228.7+4858_daily_bin192.fits
.....................!
real 12.95
user 12.42
sys 0.42

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/694330/ft1_filtered_4FGL_J1228.7+4858_daily_bin192.fits evtable="EVENTS" scfile=/scratch/kocevski/694330/ft2_4FGL_J1228.7+4858_daily_bin192.fits sctable="SC_DATA" expcube=/scratch/kocevski/694330/ltcube_289094401_289353601_4FGL_J1228.7+4858_daily_bin192.fits outfile=/scratch/kocevski/694330/expmap_289094401_289353601_4FGL_J1228.7+4858_daily_bin192.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/694330/ltcube_289094401_289353601_4FGL_J1228.7+4858_daily_bin192.fits
.....................!
real 193.43
user 187.29
sys 5.21

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/694330/ft1_filtered_4FGL_J1228.7+4858_daily_bin192.fits scfile=/scratch/kocevski/694330/ft2_4FGL_J1228.7+4858_daily_bin192.fits outfile=/scratch/kocevski/694330/cmap_289094401_289353601_4FGL_J1228.7+4858_daily_bin192.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.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/694330/ft1_filtered_4FGL_J1228.7+4858_daily_bin192.fits scfile=/scratch/kocevski/694330/ft2_4FGL_J1228.7+4858_daily_bin192.fits outfile=/scratch/kocevski/694330/cmap_HighResolution_289094401_289353601_4FGL_J1228.7+4858_daily_bin192.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.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/694330/ft1_filtered_4FGL_J1228.7+4858_daily_bin192.fits evtable="EVENTS" scfile=/scratch/kocevski/694330/ft2_4FGL_J1228.7+4858_daily_bin192.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/694330/Model_4FGL_J1228.7+4858_daily_bin192.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/694330/ft1_filtered_4FGL_J1228.7+4858_daily_bin192.fits.....................!
real 55.17
user 53.51
sys 1.32

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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      '    5.7900       1.0000         .10000E-03   10000.    
     3 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    9.4748       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    9.7620       1.0000         .10000E-03   10000.    
     8 'norm      '    .10018E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10092E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.7080       1.0000         .10000E-03   10000.    
    11 'norm      '    4.3734       1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.0714       1.0000         .10000E-03   10000.    
    13 'norm      '    2.8551       1.0000         .10000E-03   10000.    
    14 'Prefactor '    57.561       1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.0362       1.0000         .10000E-03   10000.    
    16 'norm      '    9.2224       1.0000         .10000E-03   10000.    
    17 'norm      '    3.7893       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    18.362       1.0000         .10000E-03   10000.    
    20 'Prefactor '    12.704       1.0000         .10000E-03   10000.    
    21 'norm      '    3.0354       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.1653       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .59144       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6900E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6227.099     FROM MIGRAD    STATUS=CONVERGED     69 CALLS     2041 TOTAL
                     EDM=   .79E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 12.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    6.6421       -.20479E-04** at limit **
   2  norm          5.7899        1.8691       -.21296E-06    .12821E-02
   3  norm          .10000E-03    7.2554        .78030E-06** at limit **
   4  Prefactor     9.4742        1.1700       -.19035E-06   -.43082E-02
   5  Prefactor     .10001E-03    32.778       -.60791E-04** at limit **
   6  Prefactor     .10014E-03    7.7185        .30110E-04** at limit **
   7  norm          9.7623        2.6629        .17074E-06    .67103E-03
   8  norm          .10000E-03    3.7757        .21260E-05** at limit **
   9  Prefactor     .10015E-03    12.912        .41895E-04** at limit **
  10  Prefactor     1.7080        2.3754       -.48989E-05   -.43995E-04
  11  norm          4.3735        1.9736        .13831E-05    .14407E-05
  12  Prefactor     4.0704        1.0083       -.14965E-07    .72316E-04
  13  norm          2.8551        1.6771       -.12699E-06   -.69273E-03
  14  Prefactor     57.560        1.0264       -.27055E-06    .17513E-02
  15  Prefactor     2.0361        2.4096       -.65116E-05   -.22459E-02
  16  norm          9.2236        1.0021        .87532E-08    .64238E-04
  17  norm          3.7897        2.7889       -.40910E-05    .23009E-02
  18  Prefactor     .10002E-03    8.0708       -.28733E-04** at limit **
  19  Prefactor     18.367        1.2818        .15584E-05   -.26626E-02
  20  Prefactor     12.704        1.0057       -.24914E-06    .25710E-03
  21  norm          3.0339        1.1012       -.18054E-05   -.10314E-02
  22  Normalizat    1.1651        .18545        .31681E-05    .42565E-03
  23  Prefactor     .59161        .21988       -.14908E-05    .17340E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 5.78991
  norm       = 0.000100001
  Prefactor  = 9.47417
  Prefactor  = 0.000100011
  Prefactor  = 0.000100143
  norm       = 9.76234
  norm       = 0.0001
  Prefactor  = 0.000100153
  Prefactor  = 1.70798
  norm       = 4.37348
  Prefactor  = 4.0704
  norm       = 2.85509
  Prefactor  = 57.5605
  Prefactor  = 2.03607
  norm       = 9.22356
  norm       = 3.78965
  Prefactor  = 0.000100017
  Prefactor  = 18.367
  Prefactor  = 12.7036
  norm       = 3.03395
  Normalizat = 1.16515
  Prefactor  = 0.591611
 **********
 **   18 **HESSE 
 **********

 FCN=   6227.099     FROM HESSE     STATUS=OK           422 CALLS     2463 TOTAL
                     EDM=   .61E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    15.110        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          5.7899        1.8738        .41728E-02   -1.5227    
   3  norm          .10000E-03    7.2147        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     9.4742        4.3037        .32548E-02   -1.5092    
   5  Prefactor     .10001E-03    33.539        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10014E-03    17.601        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          9.7623        2.6693        .32064E-02   -1.5083    
   8  norm          .10000E-03    3.7386        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10015E-03    20.741        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     1.7080        2.3946        .80427E-02   -1.5447    
  11  norm          4.3735        1.9780        .48149E-02   -1.5290    
  12  Prefactor     4.0704        12.717        .49955E-02   -1.5304    
  13  norm          2.8551        1.6765        .60152E-02   -1.5370    
  14  Prefactor     57.560        62.149        .13219E-02   -1.4189    
  15  Prefactor     2.0361        3.6068        .72461E-02   -1.5423    
  16  norm          9.2236        11.124        .32993E-02   -1.5100    
  17  norm          3.7897        3.6090        .51843E-02   -1.5319    
  18  Prefactor     .10002E-03    14.818        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     18.367        22.224        .23367E-02   -1.4851    
  20  Prefactor     12.704        18.202        .28096E-02   -1.4995    
  21  norm          3.0339        4.6372        .58226E-02   -1.5360    
  22  Normalizat    1.1651        .17016        .35803E-01   -.87687    
  23  Prefactor     .59161        .19604        .77661E-01   -1.0794    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.12748e-08
Minuit parameter uncertainties:
  1  9.94762e-05
  2  1.87383
  3  0.000150464
  4  4.30385
  5  0.00123759
  6  0.00317561
  7  2.66929
  8  3.06844e-06
  9  0.00355852
  10  2.39471
  11  1.97803
  12  12.7253
  13  1.67654
  14  62.2196
  15  3.60721
  16  11.1266
  17  3.60923
  18  0.00101334
  19  22.2339
  20  18.2097
  21  4.63774
  22  0.170237
  23  0.196263
Done.

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

Extracting fit parameters...

4FGL J1228.7+4858
   Spectrum: PowerLaw
359    Prefactor:  1.002e-04  3.559e-03  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:  5.916e-01  1.963e-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.165e+00  1.702e-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: 6.94e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.41e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/694330/likelihoodResults_289094401_289353601_4FGL_J1228.7+4858_daily_bin192.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) = 6227.09919525
delta logL = -0.000227745582379

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6227.09896742
delta logL = 9.17134457268e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10071E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6094       1.0000          .0000       10.000    
     3 'Normalizat'    1.1652       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .59161       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=   6227.099     FROM MIGRAD    STATUS=CONVERGED     61 CALLS      213 TOTAL
                     EDM=   .25E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    25.813        .33816E-05** at limit **
   2  Index         2.6587        6.1881        .33733E-04   -.21077E-04
   3  Normalizat    1.1651        .16232       -.41349E-07   -.54408E-04
   4  Prefactor     .59161        .19458        .19663E-07   -.18793E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100012
  Index      = 2.65872
  Normalizat = 1.16515
  Prefactor  = 0.591612
 **********
 **   18 **HESSE 
 **********

 FCN=   6227.099     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      246 TOTAL
                     EDM=   .23E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    6796.2        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.6587        5.3189        .50000       -.48732    
   3  Normalizat    1.1651        .66666E-01    .21143E-03   -.87687    
   4  Prefactor     .59161        .79745E-01    .34389E-03   -1.0794    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.33359e-10
Minuit parameter uncertainties:
  1  0.0141305
  2  56.1847
  3  0.0666704
  4  0.0797604
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/694330': 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) = 6227.09896705
delta logL = 4.54667315353e-07

Extracting fit parameters...

4FGL J1228.7+4858
   Spectrum: PowerLaw
359    Prefactor:  1.000e-04  1.413e-02  1.000e-04  1.000e+04 ( 1.000e-13)
360        Index:  2.659e+00  5.618e+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:  5.916e-01  7.976e-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.165e+00  6.667e-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/694330/cmap_HighResolution_289094401_289353601_4FGL_J1228.7+4858_daily_bin192.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.41e-03', job_status='DONE', photon_flux_upper_limit='6.94e-08', time_completed='2021-09-05 18:22:41.791229', job_id='694330', GAL2='0.59', fit_tolerance='1e-08', EG2='1.17', EG='1.17', time_epoch_completed='1630891361.79', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.59', dlogl='4.55e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.56' WHERE bin_id='192' AND source_name='4FGL J1228.7+4858' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 18:22:41 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0069>
Subject: Job 694330: <4FGL_J1228.7+4858_daily_bin192> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1228.7+4858_daily_bin192 187.179 48.9827 289094401 289353601 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 :                                   711.25 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             293.05 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   735 sec.
    Turnaround time :                            738 sec.

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

