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


Performing analysis on: 4FGL_J1228.7+4858_daily_bin615
RA = 187.179, Dec = 48.9827
tmin = 398736001, tmax = 398995201
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='698893', job_status='RUN', time_executed='2021-09-05 18:26:06.898569', time_epoch_executed='1630891566.9' WHERE source_name='4FGL J1228.7+4858' and cadence='daily' and bin_id='615'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/698893

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/698893/ft1_4FGL_J1228.7+4858_daily_bin615.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/698893/ft2_4FGL_J1228.7+4858_daily_bin615.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/698893/ft1_4FGL_J1228.7+4858_daily_bin615.fits outfile=/scratch/kocevski/698893/ft1_filteredMKT_4FGL_J1228.7+4858_daily_bin615.fits ra=187.179 dec=48.9827 rad=12.0 tmin=398736001.0 tmax=398995201.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.13
user 5.86
sys 0.25

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/698893/ft2_4FGL_J1228.7+4858_daily_bin615.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/698893/ft1_filteredMKT_4FGL_J1228.7+4858_daily_bin615.fits evtable="EVENTS" outfile="/scratch/kocevski/698893/ft1_filtered_4FGL_J1228.7+4858_daily_bin615.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.58
user 0.34
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/698893/ft1_filtered_4FGL_J1228.7+4858_daily_bin615.fits" evtable="EVENTS" scfile=/scratch/kocevski/698893/ft2_4FGL_J1228.7+4858_daily_bin615.fits sctable="SC_DATA" outfile=/scratch/kocevski/698893/ltcube_398736001_398995201_4FGL_J1228.7+4858_daily_bin615.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/698893/ft2_4FGL_J1228.7+4858_daily_bin615.fits
.....................!
real 11.48
user 11.11
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/698893/ft1_filtered_4FGL_J1228.7+4858_daily_bin615.fits evtable="EVENTS" scfile=/scratch/kocevski/698893/ft2_4FGL_J1228.7+4858_daily_bin615.fits sctable="SC_DATA" expcube=/scratch/kocevski/698893/ltcube_398736001_398995201_4FGL_J1228.7+4858_daily_bin615.fits outfile=/scratch/kocevski/698893/expmap_398736001_398995201_4FGL_J1228.7+4858_daily_bin615.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/698893/ltcube_398736001_398995201_4FGL_J1228.7+4858_daily_bin615.fits
.....................!
real 190.41
user 185.28
sys 4.75

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/698893/ft1_filtered_4FGL_J1228.7+4858_daily_bin615.fits scfile=/scratch/kocevski/698893/ft2_4FGL_J1228.7+4858_daily_bin615.fits outfile=/scratch/kocevski/698893/cmap_398736001_398995201_4FGL_J1228.7+4858_daily_bin615.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=187.179 yref=48.9827 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/698893/ft1_filtered_4FGL_J1228.7+4858_daily_bin615.fits scfile=/scratch/kocevski/698893/ft2_4FGL_J1228.7+4858_daily_bin615.fits outfile=/scratch/kocevski/698893/cmap_HighResolution_398736001_398995201_4FGL_J1228.7+4858_daily_bin615.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.56
user 0.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/698893/ft1_filtered_4FGL_J1228.7+4858_daily_bin615.fits evtable="EVENTS" scfile=/scratch/kocevski/698893/ft2_4FGL_J1228.7+4858_daily_bin615.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/698893/Model_4FGL_J1228.7+4858_daily_bin615.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/698893/ft1_filtered_4FGL_J1228.7+4858_daily_bin615.fits.....................!
real 42.05
user 40.71
sys 1.16

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    2.7763       1.0000         .10000E-03   10000.    
     3 'norm      '    .15240E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.9029       1.0000         .10000E-03   10000.    
     5 'Prefactor '    114.06       1.0000         .10000E-03   10000.    
     6 'Prefactor '    39.617       1.0000         .10000E-03   10000.    
     7 'norm      '    .97279       1.0000         .10000E-03   10000.    
     8 'norm      '    1.5567       1.0000         .10000E-03   10000.    
     9 'Prefactor '    11.108       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    6.8704       1.0000         .10000E-03   10000.    
    12 'Prefactor '    24.065       1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .17271E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10025E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    67.987       1.0000         .10000E-03   10000.    
    19 'Prefactor '    25.787       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10774E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10223E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .90538       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.3709       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=   4552.268     FROM MIGRAD    STATUS=CONVERGED    525 CALLS     2557 TOTAL
                     EDM=   .48E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    27.279       -.61421E-06** at limit **
   2  norm          2.7760        1.5035       -.67936E-07   -.23854E-04
   3  norm          .10000E-03    18.232       -.72961E-06** at limit **
   4  Prefactor     1.9055        5.3604        .53620E-05   -.18910E-03
   5  Prefactor     114.01        76.327        .28574E-05   -.10285E-03
   6  Prefactor     39.580        35.143       -.31204E-05   -.18493E-04
   7  norm          .97275        2.4802       -.78024E-07   -.12572E-03
   8  norm          1.5711        16.718        .69280E-05    .19787E-04
   9  Prefactor     11.059        28.751       -.65480E-05   -.14437E-03
  10  Prefactor     .10000E-03    2.5582       -.41960E-07** at limit **
  11  norm          6.8724        3.2697        .12282E-06    .23116E-03
  12  Prefactor     24.066        25.974        .23921E-06   -.12125E-03
  13  norm          .10000E-03    .89766       -.34575E-07** at limit **
  14  Prefactor     .10000E-03    20.572       -.60368E-06** at limit **
  15  Prefactor     .10000E-03    43.333       -.28761E-05** at limit **
  16  norm          .10000E-03    5.0308        .98728E-08** at limit **
  17  norm          .10000E-03    4.1132        .47089E-05** at limit **
  18  Prefactor     68.109        55.823       -.80853E-05   -.22496E-03
  19  Prefactor     25.792        21.026        .12452E-05   -.19337E-03
  20  Prefactor     .10000E-03    38.355        .63149E-05** at limit **
  21  norm          .10000E-03    3.1115        .28066E-06** at limit **
  22  Normalizat    .90581        .22773       -.49158E-05   -.32934E-03
  23  Prefactor     1.3705        .27201        .44357E-05   -.28547E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 2.77599
  norm       = 0.000100001
  Prefactor  = 1.90553
  Prefactor  = 114.013
  Prefactor  = 39.5803
  norm       = 0.972746
  norm       = 1.57112
  Prefactor  = 11.0594
  Prefactor  = 0.0001
  norm       = 6.87239
  Prefactor  = 24.0655
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  norm       = 0.000100004
  Prefactor  = 68.1091
  Prefactor  = 25.7917
  Prefactor  = 0.000100001
  norm       = 0.0001
  Normalizat = 0.905812
  Prefactor  = 1.37051
 **********
 **   18 **HESSE 
 **********

 FCN=   4552.268     FROM HESSE     STATUS=OK           362 CALLS     2919 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    27.283        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          2.7760        1.5050        .58178E-04   -1.5375    
   3  norm          .10000E-03    18.555        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.9055        5.5072        .10983E-02   -1.5432    
   5  Prefactor     114.01        76.065        .18834E-03   -1.3568    
   6  Prefactor     39.580        35.494        .63682E-04   -1.4449    
   7  norm          .97275        2.4485        .15906E-03   -1.5511    
   8  norm          1.5711        15.745        .34117E-03   -1.5457    
   9  Prefactor     11.059        27.827        .12021E-03   -1.5043    
  10  Prefactor     .10000E-03    2.5639        .10538E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          6.8724        3.2669        .81540E-04   -1.5184    
  12  Prefactor     24.066        25.981        .81655E-04   -1.4726    
  13  norm          .10000E-03    .90325        .62421E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    20.569        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    44.884        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    5.0311        .14781E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    7.5767        .24515E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     68.109        56.533        .24339E-03   -1.4056    
  19  Prefactor     25.792        20.978        .78887E-04   -1.4692    
  20  Prefactor     .10000E-03    38.683        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    3.1326        .11618E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .90581        .26551        .26496E-03   -.96256    
  23  Prefactor     1.3705        .32050        .27732E-03   -.81234    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.18353e-09
Minuit parameter uncertainties:
  1  4.85901e-05
  2  1.50505
  3  0.000239831
  4  5.50867
  5  76.1304
  6  35.5133
  7  2.44873
  8  9.95053
  9  27.8601
  10  1.57146e-06
  11  3.26695
  12  25.9928
  13  7.8595e-07
  14  5.61532e-05
  15  0.000370179
  16  9.15901e-07
  17  0.000351045
  18  56.5781
  19  20.9837
  20  0.000337496
  21  1.94054e-05
  22  0.265893
  23  0.320966
Done.

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

Extracting fit parameters...

4FGL J1228.7+4858
   Spectrum: PowerLaw
359    Prefactor:  1.106e+01  2.786e+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:  1.371e+00  3.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:  9.058e-01  2.659e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/698893/likelihoodResults_398736001_398995201_4FGL_J1228.7+4858_daily_bin615.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) = 4552.15001659
delta logL = 0.118473528549

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4552.14904457
delta logL = 0.119445552445

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    20.222       1.0000         .10000E-03   10000.    
     2 'Index     '    2.0517       1.0000          .0000       10.000    
     3 'Normalizat'    .91449       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3588       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=   4552.149     FROM MIGRAD    STATUS=CONVERGED     84 CALLS      304 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     20.223        34.309        .89067E-04   -.76074E-04
   2  Index         2.0516        .88397        .10977E-01   -.37877E-04
   3  Normalizat    .91459        .25056        .26379E-03    .94512E-04
   4  Prefactor     1.3587        .31590        .27822E-03    .72203E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 20.2226
  Index      = 2.05164
  Normalizat = 0.914587
  Prefactor  = 1.35868
 **********
 **   18 **HESSE 
 **********

 FCN=   4552.149     FROM HESSE     STATUS=OK            23 CALLS      327 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     20.223        34.023        .35627E-05   -1.4808    
   2  Index         2.0516        .87679        .43909E-03   -.63065    
   3  Normalizat    .91459        .25081        .10552E-04   -.95949    
   4  Prefactor     1.3587        .31621        .11129E-04   -.81579    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.1764e-10
Minuit parameter uncertainties:
  1  34.0558
  2  0.883826
  3  0.251133
  4  0.316658
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/698893': 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) = 4552.14904449
delta logL = 0.119445631725

Extracting fit parameters...

4FGL J1228.7+4858
   Spectrum: PowerLaw
359    Prefactor:  2.022e+01  3.406e+01  1.000e-04  1.000e+04 ( 1.000e-13)
360        Index:  2.052e+00  8.838e-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:  1.359e+00  3.167e-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:  9.146e-01  2.511e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.26
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/698893/cmap_HighResolution_398736001_398995201_4FGL_J1228.7+4858_daily_bin615.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.35e-03', job_status='DONE', photon_flux_upper_limit='1.20e-07', time_completed='2021-09-05 18:37:09.328299', job_id='698893', GAL2='1.36', fit_tolerance='1e-08', EG2='0.91', EG='0.91', time_epoch_completed='1630892229.33', return_code2='0', ts='0.26', comment='SUCCESS', return_code='0', GAL='1.37', dlogl='1.19e-01', ts2='0.50', photon_index_error='0.00', photon_index='2.56' WHERE bin_id='615' AND source_name='4FGL J1228.7+4858' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 18:37:09 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0066>
Subject: Job 698893: <4FGL_J1228.7+4858_daily_bin615> in cluster <slac> Done

Job <4FGL_J1228.7+4858_daily_bin615> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sun Sep  5 18:25:48 2021
Job was executed on host(s) <bullet0066>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 18:25:50 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:50 2021
Terminated at Sun Sep  5 18:37:10 2021
Results reported at Sun Sep  5 18:37:10 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1228.7+4858_daily_bin615 187.179 48.9827 398736001 398995201 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 :                                   648.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             333.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   679 sec.
    Turnaround time :                            682 sec.

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

