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


Performing analysis on: 4FGL_J1228.7+4858_daily_bin1299
RA = 187.179, Dec = 48.9827
tmin = 576028801, tmax = 576288001
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='703216', job_status='RUN', time_executed='2021-09-05 18:40:56.710776', time_epoch_executed='1630892456.71' WHERE source_name='4FGL J1228.7+4858' and cadence='daily' and bin_id='1299'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/703216

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/703216/ft1_4FGL_J1228.7+4858_daily_bin1299.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/703216/ft2_4FGL_J1228.7+4858_daily_bin1299.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/703216/ft1_4FGL_J1228.7+4858_daily_bin1299.fits outfile=/scratch/kocevski/703216/ft1_filteredMKT_4FGL_J1228.7+4858_daily_bin1299.fits ra=187.179 dec=48.9827 rad=12.0 tmin=576028801.0 tmax=576288001.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.67
user 3.41
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/703216/ft1_filtered_4FGL_J1228.7+4858_daily_bin1299.fits" evtable="EVENTS" scfile=/scratch/kocevski/703216/ft2_4FGL_J1228.7+4858_daily_bin1299.fits sctable="SC_DATA" outfile=/scratch/kocevski/703216/ltcube_576028801_576288001_4FGL_J1228.7+4858_daily_bin1299.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/703216/ft2_4FGL_J1228.7+4858_daily_bin1299.fits
.....................!
real 12.06
user 11.73
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/703216/ft1_filtered_4FGL_J1228.7+4858_daily_bin1299.fits evtable="EVENTS" scfile=/scratch/kocevski/703216/ft2_4FGL_J1228.7+4858_daily_bin1299.fits sctable="SC_DATA" expcube=/scratch/kocevski/703216/ltcube_576028801_576288001_4FGL_J1228.7+4858_daily_bin1299.fits outfile=/scratch/kocevski/703216/expmap_576028801_576288001_4FGL_J1228.7+4858_daily_bin1299.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/703216/ltcube_576028801_576288001_4FGL_J1228.7+4858_daily_bin1299.fits
.....................!
real 190.01
user 185.11
sys 4.50

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/703216/ft1_filtered_4FGL_J1228.7+4858_daily_bin1299.fits scfile=/scratch/kocevski/703216/ft2_4FGL_J1228.7+4858_daily_bin1299.fits outfile=/scratch/kocevski/703216/cmap_576028801_576288001_4FGL_J1228.7+4858_daily_bin1299.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.54
user 0.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/703216/ft1_filtered_4FGL_J1228.7+4858_daily_bin1299.fits scfile=/scratch/kocevski/703216/ft2_4FGL_J1228.7+4858_daily_bin1299.fits outfile=/scratch/kocevski/703216/cmap_HighResolution_576028801_576288001_4FGL_J1228.7+4858_daily_bin1299.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.55
user 0.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/703216/ft1_filtered_4FGL_J1228.7+4858_daily_bin1299.fits evtable="EVENTS" scfile=/scratch/kocevski/703216/ft2_4FGL_J1228.7+4858_daily_bin1299.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/703216/Model_4FGL_J1228.7+4858_daily_bin1299.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/703216/ft1_filtered_4FGL_J1228.7+4858_daily_bin1299.fits.....................!
real 50.70
user 49.27
sys 1.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    23.330       1.0000         .10000E-03   10000.    
     2 'norm      '    .10168E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .27668       1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.2339       1.0000         .10000E-03   10000.    
     5 'Prefactor '    35.259       1.0000         .10000E-03   10000.    
     6 'Prefactor '    43.948       1.0000         .10000E-03   10000.    
     7 'norm      '    1.9421       1.0000         .10000E-03   10000.    
     8 'norm      '    1.8304       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10076E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.3677       1.0000         .10000E-03   10000.    
    11 'norm      '    6.0999       1.0000         .10000E-03   10000.    
    12 'Prefactor '    22.404       1.0000         .10000E-03   10000.    
    13 'norm      '    1.4594       1.0000         .10000E-03   10000.    
    14 'Prefactor '    9.3137       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10273E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    36.656       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    44.391       1.0000         .10000E-03   10000.    
    21 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.2543       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .54038       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=   5854.374     FROM MIGRAD    STATUS=CONVERGED    496 CALLS     2562 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          23.331        27.239        .10337E-05    .27512E-05
   2  norm          .10000E-03    .49993        .16303E-06** at limit **
   3  norm          .28640        5.7299        .23224E-06   -.47597E-03
   4  Prefactor     3.2334        3.0408        .20084E-06   -.31863E-04
   5  Prefactor     35.248        32.417       -.14367E-04   -.17824E-04
   6  Prefactor     43.946        23.929       -.22379E-05    .20258E-04
   7  norm          1.9415        2.4429       -.91851E-06   -.71430E-03
   8  norm          1.8297        4.9057       -.12032E-05   -.76561E-03
   9  Prefactor     .10000E-03    13.453        .54731E-05** at limit **
  10  Prefactor     1.3672        4.2269       -.13681E-05   -.81756E-03
  11  norm          6.1001        2.6669        .25608E-07    .12283E-03
  12  Prefactor     22.400        19.250       -.45790E-05    .11587E-04
  13  norm          1.4593        1.4189       -.37475E-07    .10588E-03
  14  Prefactor     9.3130        24.600       -.14636E-05   -.22267E-05
  15  Prefactor     .10000E-03    3.5397       -.21439E-06** at limit **
  16  norm          .10000E-03    4.4879       -.12892E-06** at limit **
  17  norm          .10000E-03    1.9890        .73811E-06** at limit **
  18  Prefactor     36.625        47.671       -.43477E-04    .35571E-05
  19  Prefactor     .10000E-03    12.489       -.59944E-05** at limit **
  20  Prefactor     44.399        50.246        .13844E-04    .27945E-04
  21  norm          .10000E-03    2.0420        .45313E-06** at limit **
  22  Normalizat    1.2545        .17077        .48354E-05   -.16735E-03
  23  Prefactor     .54005        .19597        .45704E-06    .16067E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 23.3308
  norm       = 0.0001
  norm       = 0.286398
  Prefactor  = 3.2334
  Prefactor  = 35.2483
  Prefactor  = 43.946
  norm       = 1.94153
  norm       = 1.82973
  Prefactor  = 0.0001
  Prefactor  = 1.36719
  norm       = 6.1001
  Prefactor  = 22.3996
  norm       = 1.45933
  Prefactor  = 9.31302
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.000100001
  Prefactor  = 36.6253
  Prefactor  = 0.0001
  Prefactor  = 44.399
  norm       = 0.0001
  Normalizat = 1.25454
  Prefactor  = 0.54005
 **********
 **   18 **HESSE 
 **********

 FCN=   5854.374     FROM HESSE     STATUS=OK           378 CALLS     2940 TOTAL
                     EDM=   .50E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          23.331        27.238        .82930E-04   -1.4742    
   2  norm          .10000E-03    1.2584        .10476E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .28640        27.472        .35495E-02   -1.5601    
   4  Prefactor     3.2334        3.0275        .11702E-03   -1.5348    
   5  Prefactor     35.248        32.232        .67489E-04   -1.4520    
   6  Prefactor     43.946        23.847        .60475E-04   -1.4381    
   7  norm          1.9415        2.4443        .12449E-03   -1.5429    
   8  norm          1.8297        4.8862        .26753E-03   -1.5437    
   9  Prefactor     .10000E-03    13.496        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     1.3672        4.1754        .25373E-03   -1.5474    
  11  norm          6.1001        2.6590        .75638E-04   -1.5214    
  12  Prefactor     22.400        19.275        .84624E-04   -1.4761    
  13  norm          1.4593        1.4213        .87275E-04   -1.5466    
  14  Prefactor     9.3130        24.592        .13132E-03   -1.5098    
  15  Prefactor     .10000E-03    3.5518        .14057E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    4.4960        .15831E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    2.0337        .10545E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     36.625        47.542        .66195E-04   -1.4497    
  19  Prefactor     .10000E-03    12.620        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     44.399        50.152        .60173E-04   -1.4374    
  21  norm          .10000E-03    2.0866        .10675E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.2545        .19269        .19617E-03   -.84934    
  23  Prefactor     .54005        .22069        .34471E-03   -1.1017    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.95461e-09
Minuit parameter uncertainties:
  1  27.2528
  2  3.20711e-05
  3  5.61159
  4  3.02765
  5  32.2483
  6  23.8518
  7  2.44446
  8  4.8873
  9  1.34871e-05
  10  4.17624
  11  2.65904
  12  19.2799
  13  1.42134
  14  24.6186
  15  1.02539e-05
  16  1.28322e-06
  17  8.74906e-05
  18  47.5915
  19  7.54539e-05
  20  50.1997
  21  2.9432e-05
  22  0.1928
  23  0.221039
Done.

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

Extracting fit parameters...

4FGL J1228.7+4858
   Spectrum: PowerLaw
359    Prefactor:  1.000e-04  1.349e-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:  5.400e-01  2.210e-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.255e+00  1.928e-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.58e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.14e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/703216/likelihoodResults_576028801_576288001_4FGL_J1228.7+4858_daily_bin1299.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) = 5854.37448185
delta logL = -0.000353045522388

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5854.37412902
delta logL = -2.10750840779e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5632       1.0000          .0000       10.000    
     3 'Normalizat'    1.2544       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .54019       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=   5854.374     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      207 TOTAL
                     EDM=   .55E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6423.1        .90712E-02** at limit **
   2  Index         2.5707        6.6000        .50000       -.51149E-05
   3  Normalizat    1.2545        .12559        .33675E-01    .74530E-05
   4  Prefactor     .54004        .14863        .77841E-01    .35808E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.57074
  Normalizat = 1.25454
  Prefactor  = 0.540045
 **********
 **   18 **HESSE 
 **********

 FCN=   5854.374     FROM HESSE     STATUS=OK            31 CALLS      238 TOTAL
                     EDM=   .56E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    30.990        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5707        6.0333        .50000       -.50734    
   3  Normalizat    1.2545        .17904        .19616E-03   -.84934    
   4  Prefactor     .54004        .21463        .34472E-03   -1.1017    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.55031e-11
Minuit parameter uncertainties:
  1  1.13599e-05
  2  6.62673
  3  0.179127
  4  0.214957
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/703216': 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) = 5854.37412879
delta logL = 1.78060872713e-08

Extracting fit parameters...

4FGL J1228.7+4858
   Spectrum: PowerLaw
359    Prefactor:  1.000e-04  1.136e-05  1.000e-04  1.000e+04 ( 1.000e-13)
360        Index:  2.571e+00  6.627e+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:  5.400e-01  2.150e-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.255e+00  1.791e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 187.179 48.983

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

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.14e-03', job_status='DONE', photon_flux_upper_limit='6.58e-08', time_completed='2021-09-05 18:53:18.470815', job_id='703216', GAL2='0.54', fit_tolerance='1e-08', EG2='1.25', EG='1.25', time_epoch_completed='1630893198.47', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.54', dlogl='1.78e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.56' WHERE bin_id='1299' AND source_name='4FGL J1228.7+4858' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 18:53:18 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0072>
Subject: Job 703216: <4FGL_J1228.7+4858_daily_bin1299> in cluster <slac> Done

Job <4FGL_J1228.7+4858_daily_bin1299> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Sun Sep  5 18:40:35 2021
Job was executed on host(s) <bullet0072>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 18:40:36 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:40:36 2021
Terminated at Sun Sep  5 18:53:19 2021
Results reported at Sun Sep  5 18:53:19 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1228.7+4858_daily_bin1299 187.179 48.9827 576028801 576288001 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 :                                   718.33 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             295.60 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   762 sec.
    Turnaround time :                            764 sec.

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

