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


Performing analysis on: 4FGL_J1228.7+4858_daily_bin1349
RA = 187.179, Dec = 48.9827
tmin = 588988801, tmax = 589248001
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='703293', job_status='RUN', time_executed='2021-09-05 18:41:02.232505', time_epoch_executed='1630892462.23' WHERE source_name='4FGL J1228.7+4858' and cadence='daily' and bin_id='1349'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/703293

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/703293/ft1_4FGL_J1228.7+4858_daily_bin1349.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/703293/ft2_4FGL_J1228.7+4858_daily_bin1349.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/703293/ft1_4FGL_J1228.7+4858_daily_bin1349.fits outfile=/scratch/kocevski/703293/ft1_filteredMKT_4FGL_J1228.7+4858_daily_bin1349.fits ra=187.179 dec=48.9827 rad=12.0 tmin=588988801.0 tmax=589248001.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.17
user 2.92
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/703293/ft2_4FGL_J1228.7+4858_daily_bin1349.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/703293/ft1_filteredMKT_4FGL_J1228.7+4858_daily_bin1349.fits evtable="EVENTS" outfile="/scratch/kocevski/703293/ft1_filtered_4FGL_J1228.7+4858_daily_bin1349.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/703293/ft1_filtered_4FGL_J1228.7+4858_daily_bin1349.fits" evtable="EVENTS" scfile=/scratch/kocevski/703293/ft2_4FGL_J1228.7+4858_daily_bin1349.fits sctable="SC_DATA" outfile=/scratch/kocevski/703293/ltcube_588988801_589248001_4FGL_J1228.7+4858_daily_bin1349.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/703293/ft2_4FGL_J1228.7+4858_daily_bin1349.fits
.....................!
real 12.96
user 12.59
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/703293/ft1_filtered_4FGL_J1228.7+4858_daily_bin1349.fits evtable="EVENTS" scfile=/scratch/kocevski/703293/ft2_4FGL_J1228.7+4858_daily_bin1349.fits sctable="SC_DATA" expcube=/scratch/kocevski/703293/ltcube_588988801_589248001_4FGL_J1228.7+4858_daily_bin1349.fits outfile=/scratch/kocevski/703293/expmap_588988801_589248001_4FGL_J1228.7+4858_daily_bin1349.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/703293/ltcube_588988801_589248001_4FGL_J1228.7+4858_daily_bin1349.fits
.....................!
real 193.15
user 187.44
sys 5.17

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/703293/ft1_filtered_4FGL_J1228.7+4858_daily_bin1349.fits scfile=/scratch/kocevski/703293/ft2_4FGL_J1228.7+4858_daily_bin1349.fits outfile=/scratch/kocevski/703293/cmap_588988801_589248001_4FGL_J1228.7+4858_daily_bin1349.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.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/703293/ft1_filtered_4FGL_J1228.7+4858_daily_bin1349.fits scfile=/scratch/kocevski/703293/ft2_4FGL_J1228.7+4858_daily_bin1349.fits outfile=/scratch/kocevski/703293/cmap_HighResolution_588988801_589248001_4FGL_J1228.7+4858_daily_bin1349.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.36
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/703293/ft1_filtered_4FGL_J1228.7+4858_daily_bin1349.fits evtable="EVENTS" scfile=/scratch/kocevski/703293/ft2_4FGL_J1228.7+4858_daily_bin1349.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/703293/Model_4FGL_J1228.7+4858_daily_bin1349.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/703293/ft1_filtered_4FGL_J1228.7+4858_daily_bin1349.fits.....................!
real 30.38
user 28.98
sys 1.29

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1402.7       1.0000         .10000E-03   10000.    
     2 'norm      '    .24681E-02   1.0000         .10000E-03   10000.    
     3 'norm      '    33.248       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    232.78       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10541E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    6.9028       1.0000         .10000E-03   10000.    
     8 'norm      '    11.813       1.0000         .10000E-03   10000.    
     9 'Prefactor '    32.853       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    1.9163       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10220E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    1.1974       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .11369E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    7.0099       1.0000         .10000E-03   10000.    
    16 'norm      '    11.395       1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    8.3915       1.0000         .10000E-03   10000.    
    19 'Prefactor '    40.311       1.0000         .10000E-03   10000.    
    20 'Prefactor '    26.640       1.0000         .10000E-03   10000.    
    21 'norm      '    1.6219       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .86105       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .72986       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=   2769.433     FROM MIGRAD    STATUS=CONVERGED     80 CALLS     2116 TOTAL
                     EDM=   .32E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  8.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1402.7        1.0500        .12459E-06   -.17753E-02
   2  norm          .10004E-03    5.4851       -.81559E-05** at limit **
   3  norm          33.305        20.985        .48502E-04   -.96577E-03
   4  Prefactor     .10000E-03    2.1508        .29789E-05** at limit **
   5  Prefactor     232.80        9.4609        .84228E-05   -.20844E-01
   6  Prefactor     .10002E-03    17.070       -.21425E-04** at limit **
   7  norm          6.9014        4.3832        .67836E-06    .15120E-04
   8  norm          11.822        1.7120        .55346E-05   -.58780E-04
   9  Prefactor     32.818        12.976       -.30128E-04    .54919E-03
  10  Prefactor     .10000E-03    1.4221        .18095E-05** at limit **
  11  norm          1.9161        1.4667       -.25508E-06    .18565E-03
  12  Prefactor     .10000E-03    19.187        .32157E-04** at limit **
  13  norm          1.1973        1.2268        .22823E-05    .19138E-03
  14  Prefactor     .10001E-03    41.157        .37953E-04** at limit **
  15  Prefactor     7.0084        5.6568       -.39514E-05   -.82269E-04
  16  norm          11.379        2.1287       -.54648E-05   -.26908E-02
  17  norm          .10000E-03    1.7806        .35804E-05** at limit **
  18  Prefactor     8.3799        3.5387       -.15075E-04   -.26095E-02
  19  Prefactor     40.347        11.186        .22954E-04    .84996E-02
  20  Prefactor     26.605        12.799       -.33009E-04    .73102E-03
  21  norm          1.6193        3.4764       -.87442E-05   -.11358E-03
  22  Normalizat    .86124        .25515        .30505E-05    .47058E-05
  23  Prefactor     .72993        .31158        .11988E-05    .56016E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 1402.67
  norm       = 0.000100043
  norm       = 33.3047
  Prefactor  = 0.0001
  Prefactor  = 232.801
  Prefactor  = 0.000100021
  norm       = 6.90141
  norm       = 11.822
  Prefactor  = 32.8185
  Prefactor  = 0.0001
  norm       = 1.91614
  Prefactor  = 0.000100002
  norm       = 1.19733
  Prefactor  = 0.000100014
  Prefactor  = 7.00844
  norm       = 11.3787
  norm       = 0.0001
  Prefactor  = 8.37993
  Prefactor  = 40.3469
  Prefactor  = 26.6052
  norm       = 1.61929
  Normalizat = 0.861237
  Prefactor  = 0.729934
 **********
 **   18 **HESSE 
 **********

 FCN=   2769.433     FROM HESSE     STATUS=OK           426 CALLS     2542 TOTAL
                     EDM=   .71E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1402.7        1248.3        .28797E-03   -.80303    
   2  norm          .10004E-03    4.7044        .61454E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          33.305        33.018        .17374E-02   -1.4553    
   4  Prefactor     .10000E-03    2.1502        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     232.80        182.53        .66320E-03   -1.2644    
   6  Prefactor     .10002E-03    21.213        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          6.9014        4.3862        .38176E-02   -1.5182    
   8  norm          11.822        10.662        .29139E-02   -1.5020    
   9  Prefactor     32.818        32.247        .17477E-02   -1.4562    
  10  Prefactor     .10000E-03    1.4209        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          1.9161        1.4648        .75058E-02   -1.5431    
  12  Prefactor     .10000E-03    19.191        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.1973        1.2049        .10382E-01   -1.5489    
  14  Prefactor     .10001E-03    41.273        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     7.0084        5.6614        .37880E-02   -1.5178    
  16  norm          11.379        15.996        .29670E-02   -1.5033    
  17  norm          .10000E-03    1.7674        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     8.3799        41.837        .34597E-02   -1.5129    
  19  Prefactor     40.347        24.448        .15783E-02   -1.4437    
  20  Prefactor     26.605        40.888        .19404E-02   -1.4676    
  21  norm          1.6193        3.8947        .83072E-02   -1.5453    
  22  Normalizat    .86124        .22248        .44402E-01   -.97836    
  23  Prefactor     .72993        .26472        .65128E-01   -1.0237    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.09141e-06
Minuit parameter uncertainties:
  1  1276.88
  2  0.000903448
  3  33.0359
  4  4.05435e-07
  5  182.98
  6  0.00134347
  7  4.38636
  8  10.6638
  9  32.2646
  10  2.00158e-06
  11  1.46479
  12  0.000339645
  13  1.20491
  14  0.00152902
  15  5.66179
  16  16.0016
  17  2.69711e-06
  18  37.4898
  19  24.4544
  20  40.9311
  21  3.89535
  22  0.222714
  23  0.265176
Done.

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

Extracting fit parameters...

4FGL J1228.7+4858
   Spectrum: PowerLaw
359    Prefactor:  3.282e+01  3.226e+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:  7.299e-01  2.652e-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:  8.612e-01  2.227e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.86
Ra Dec: 187.179 48.983
Photon Index (Fixed Index): 2.56 +/- 0.00
Photon Flux (Fixed Index): 5.48e-08 +/- 5.38e-08
Energy Flux (Fixed Index): 1.50e-05 +/- 1.47e-05

TS (Fixed Index): 1.86
Ra Dec: 187.179 48.983
Photon Flux Upper Limit: 1.77e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.38e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/703293/likelihoodResults_588988801_589248001_4FGL_J1228.7+4858_daily_bin1349.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) = 2769.18397533
delta logL = 0.248785338867

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2769.18310055
delta logL = 0.24966011814

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    54.226       1.0000         .10000E-03   10000.    
     2 'Index     '    2.0435       1.0000          .0000       10.000    
     3 'Normalizat'    .88102       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .70772       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6900E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   2769.183     FROM MIGRAD    STATUS=CONVERGED     80 CALLS      296 TOTAL
                     EDM=   .58E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     54.230        50.823        .54470E-04   -.24946E-03
   2  Index         2.0435        .63441        .65713E-02   -.13622E-03
   3  Normalizat    .88098        .25234        .21489E-03    .88140E-04
   4  Prefactor     .70777        .31026        .29187E-03    .10275E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 54.2296
  Index      = 2.04347
  Normalizat = 0.880983
  Prefactor  = 0.70777
 **********
 **   18 **HESSE 
 **********

 FCN=   2769.183     FROM HESSE     STATUS=OK            23 CALLS      319 TOTAL
                     EDM=   .61E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     54.230        50.322        .10894E-04   -1.4234    
   2  Index         2.0435        .62809        .26285E-03   -.63268    
   3  Normalizat    .88098        .25252        .85956E-05   -.97132    
   4  Prefactor     .70777        .31048        .11675E-04   -1.0322    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.05862e-10
Minuit parameter uncertainties:
  1  50.3613
  2  0.630659
  3  0.25286
  4  0.311246
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/703293': 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) = 2769.18310054
delta logL = 0.249660136701

Extracting fit parameters...

4FGL J1228.7+4858
   Spectrum: PowerLaw
359    Prefactor:  5.423e+01  5.036e+01  1.000e-04  1.000e+04 ( 1.000e-13)
360        Index:  2.043e+00  6.307e-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:  7.078e-01  3.112e-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:  8.810e-01  2.529e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.37
Ra Dec: 187.179 48.983
Photon Index (Free Index): 2.04 +/- 0.63
Photon Flux (Free Index): 4.42e-08 +/- 4.48e-08
Energy Flux (Free Index): 2.76e-05 +/- 3.63e-05

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/703293/cmap_HighResolution_588988801_589248001_4FGL_J1228.7+4858_daily_bin1349.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.38e-02', comment='SUCCESS', photon_flux='5.48e-08', energy_flux2='2.76e-05', photon_flux_error='5.38e-08', dlogl='2.50e-01', energy_flux='1.50e-05', photon_flux2='4.42e-08', job_status='DONE', time_completed='2021-09-05 18:49:54.467701', photon_index_error2='0.63', photon_index2='2.04', ts='1.86', fit_tolerance='1e-08', GAL='0.73', photon_index_error='0.00', photon_flux_upper_limit='1.77e-07', energy_flux_error2='3.63e-05', EG='0.86', time_epoch_completed='1630892994.47', return_code='0', job_id='703293', GAL2='0.71', EG2='0.88', return_code2='0', energy_flux_error='1.47e-05', photon_flux_error2='4.48e-08', ts2='2.37', photon_index='2.56' WHERE bin_id='1349' AND source_name='4FGL J1228.7+4858' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 18:49:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0044>
Subject: Job 703293: <4FGL_J1228.7+4858_daily_bin1349> in cluster <slac> Done

Job <4FGL_J1228.7+4858_daily_bin1349> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Sun Sep  5 18:40:42 2021
Job was executed on host(s) <bullet0044>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 18:40:43 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:43 2021
Terminated at Sun Sep  5 18:49:54 2021
Results reported at Sun Sep  5 18:49:54 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1228.7+4858_daily_bin1349 187.179 48.9827 588988801 589248001 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 :                                   499.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             258.33 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   551 sec.
    Turnaround time :                            552 sec.

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

