/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 85 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 = 7446
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1228.7+4858_daily_bin3
RA = 187.179, Dec = 48.9827
tmin = 240105601, tmax = 240364801
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='692695', job_status='RUN', time_executed='2021-09-05 18:06:56.534799', time_epoch_executed='1630890416.53' WHERE source_name='4FGL J1228.7+4858' and cadence='daily' and bin_id='3'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/692695

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/692695/ft1_4FGL_J1228.7+4858_daily_bin3.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/692695/ft2_4FGL_J1228.7+4858_daily_bin3.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/692695/ft1_4FGL_J1228.7+4858_daily_bin3.fits outfile=/scratch/kocevski/692695/ft1_filteredMKT_4FGL_J1228.7+4858_daily_bin3.fits ra=187.179 dec=48.9827 rad=12.0 tmin=240105601.0 tmax=240364801.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 1.45
user 1.26
sys 0.16

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/692695/ft2_4FGL_J1228.7+4858_daily_bin3.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/692695/ft1_filteredMKT_4FGL_J1228.7+4858_daily_bin3.fits evtable="EVENTS" outfile="/scratch/kocevski/692695/ft1_filtered_4FGL_J1228.7+4858_daily_bin3.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.49
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/692695/ft1_filtered_4FGL_J1228.7+4858_daily_bin3.fits" evtable="EVENTS" scfile=/scratch/kocevski/692695/ft2_4FGL_J1228.7+4858_daily_bin3.fits sctable="SC_DATA" outfile=/scratch/kocevski/692695/ltcube_240105601_240364801_4FGL_J1228.7+4858_daily_bin3.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/692695/ft2_4FGL_J1228.7+4858_daily_bin3.fits
.....................!
real 13.01
user 12.59
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/692695/ft1_filtered_4FGL_J1228.7+4858_daily_bin3.fits evtable="EVENTS" scfile=/scratch/kocevski/692695/ft2_4FGL_J1228.7+4858_daily_bin3.fits sctable="SC_DATA" expcube=/scratch/kocevski/692695/ltcube_240105601_240364801_4FGL_J1228.7+4858_daily_bin3.fits outfile=/scratch/kocevski/692695/expmap_240105601_240364801_4FGL_J1228.7+4858_daily_bin3.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/692695/ltcube_240105601_240364801_4FGL_J1228.7+4858_daily_bin3.fits
.....................!
real 191.69
user 186.27
sys 4.77

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/692695/ft1_filtered_4FGL_J1228.7+4858_daily_bin3.fits scfile=/scratch/kocevski/692695/ft2_4FGL_J1228.7+4858_daily_bin3.fits outfile=/scratch/kocevski/692695/cmap_240105601_240364801_4FGL_J1228.7+4858_daily_bin3.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.36
sys 0.16

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/692695/ft1_filtered_4FGL_J1228.7+4858_daily_bin3.fits evtable="EVENTS" scfile=/scratch/kocevski/692695/ft2_4FGL_J1228.7+4858_daily_bin3.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/692695/Model_4FGL_J1228.7+4858_daily_bin3.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/692695/ft1_filtered_4FGL_J1228.7+4858_daily_bin3.fits.....................!
real 38.97
user 37.56
sys 1.25

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10071E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    2.4300       1.0000         .10000E-03   10000.    
     3 'norm      '    .59702E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .91546       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10669E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    43.983       1.0000         .10000E-03   10000.    
     7 'norm      '    2.8472       1.0000         .10000E-03   10000.    
     8 'norm      '    .10306E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    27.053       1.0000         .10000E-03   10000.    
    10 'Prefactor '    13.920       1.0000         .10000E-03   10000.    
    11 'norm      '    .28460       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10080E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    2.6271       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10541       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10407E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    53.712       1.0000         .10000E-03   10000.    
    20 'Prefactor '    19.906       1.0000         .10000E-03   10000.    
    21 'norm      '    .71256E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.2767       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .55889       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=   3858.705     FROM MIGRAD    STATUS=CONVERGED    527 CALLS     2625 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    20.747        .19349E-06** at limit **
   2  norm          2.4287        1.7557        .12054E-06   -.59576E-03
   3  norm          .10019E-03    15.395        .35852E-05** at limit **
   4  Prefactor     .92198        3.9076        .18665E-06    .14384E-04
   5  Prefactor     .10000E-03    72.133       -.26967E-07** at limit **
   6  Prefactor     43.966        34.789        .12946E-06   -.13981E-03
   7  norm          2.8479        3.2670        .18921E-06    .61290E-04
   8  norm          .10000E-03    11.684        .93306E-06** at limit **
   9  Prefactor     27.067        25.733        .21522E-06    .58552E-04
  10  Prefactor     13.916        9.5915       -.34693E-06   -.31743E-03
  11  norm          .28089        3.4895        .74642E-06   -.15462E-03
  12  Prefactor     .10000E-03    22.411        .16332E-06** at limit **
  13  norm          2.6276        3.1275        .16546E-06    .28875E-04
  14  Prefactor     .10000E-03    23.449       -.10308E-06** at limit **
  15  Prefactor     .10000E-03    3.3373       -.13639E-07** at limit **
  16  norm          .10000E-03    11.081        .38983E-07** at limit **
  17  norm          .11020        3.4669       -.74726E-06    .41384E-03
  18  Prefactor     .10000E-03    24.698        .80585E-06** at limit **
  19  Prefactor     53.720        25.834       -.20798E-05   -.90397E-03
  20  Prefactor     19.920        39.543       -.23146E-06   -.15795E-04
  21  norm          .10001E-03    4.1842        .16975E-05** at limit **
  22  Normalizat    1.2765        .22646       -.13428E-05   -.45124E-03
  23  Prefactor     .55898        .25595        .12695E-05   -.22354E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 2.4287
  norm       = 0.000100192
  Prefactor  = 0.921978
  Prefactor  = 0.0001
  Prefactor  = 43.9656
  norm       = 2.84795
  norm       = 0.0001
  Prefactor  = 27.0668
  Prefactor  = 13.9163
  norm       = 0.280887
  Prefactor  = 0.0001
  norm       = 2.62756
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.110196
  Prefactor  = 0.0001
  Prefactor  = 53.7199
  Prefactor  = 19.9205
  norm       = 0.00010001
  Normalizat = 1.27651
  Prefactor  = 0.558978
 **********
 **   18 **HESSE 
 **********

 FCN=   3858.705     FROM HESSE     STATUS=OK           374 CALLS     2999 TOTAL
                     EDM=   .34E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    20.744        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          2.4287        1.7074        .65514E-04   -1.5396    
   3  norm          .10019E-03    48.517        .37489E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .92198        3.6028        .21023E-03   -1.5516    
   5  Prefactor     .10000E-03    72.204        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     43.966        33.657        .60451E-04   -1.4381    
   7  norm          2.8479        3.2622        .11401E-03   -1.5370    
   8  norm          .10000E-03    11.883        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     27.067        25.645        .77022E-04   -1.4667    
  10  Prefactor     13.916        9.4786        .10736E-03   -1.4962    
  11  norm          .28089        7.1918        .19604E-02   -1.5602    
  12  Prefactor     .10000E-03    22.523        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          2.6276        3.1136        .11454E-03   -1.5384    
  14  Prefactor     .10000E-03    23.451        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    3.3383        .11082E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    11.107        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .11020        49.060        .21099E-02   -1.5642    
  18  Prefactor     .10000E-03    24.716        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     53.720        27.221        .54728E-04   -1.4241    
  20  Prefactor     19.920        39.440        .89773E-04   -1.4815    
  21  norm          .10001E-03    27.183        .21201E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.2765        .25643        .20524E-03   -.84270    
  23  Prefactor     .55898        .28519        .34896E-03   -1.0934    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.35174e-08
Minuit parameter uncertainties:
  1  8.9484e-05
  2  1.70745
  3  0.00610117
  4  3.6036
  5  9.28334e-05
  6  33.672
  7  3.26237
  8  8.87119e-05
  9  25.6552
  10  9.47964
  11  2.84246
  12  1.19507e-05
  13  3.11375
  14  5.27741e-05
  15  7.54691e-07
  16  1.28322e-05
  17  4.65196
  18  0.000120774
  19  27.2271
  20  39.4916
  21  0.00104125
  22  0.256685
  23  0.285932
Done.

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

Extracting fit parameters...

4FGL J1228.7+4858
   Spectrum: PowerLaw
359    Prefactor:  2.707e+01  2.566e+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:  5.590e-01  2.859e-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.277e+00  2.567e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.77
Ra Dec: 187.179 48.983
Photon Index (Fixed Index): 2.56 +/- 0.00
Photon Flux (Fixed Index): 4.52e-08 +/- 4.28e-08
Energy Flux (Fixed Index): 1.24e-05 +/- 1.17e-05

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

Saving results to:
/scratch/kocevski/692695/likelihoodResults_240105601_240364801_4FGL_J1228.7+4858_daily_bin3.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) = 3858.66574106
delta logL = 0.0390069550272

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3858.66350963
delta logL = 0.0412383849662

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    33.102       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3440       1.0000          .0000       10.000    
     3 'Normalizat'    1.2833       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .55244       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=   3858.664     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      290 TOTAL
                     EDM=   .39E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     33.102        36.597        .69648E-04   -.45052E-04
   2  Index         2.3440        .72110        .70030E-02   -.39412E-04
   3  Normalizat    1.2832        .24275        .20478E-03    .46096E-04
   4  Prefactor     .55254        .28252        .35078E-03    .32199E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 33.1023
  Index      = 2.34398
  Normalizat = 1.28325
  Prefactor  = 0.552536
 **********
 **   18 **HESSE 
 **********

 FCN=   3858.664     FROM HESSE     STATUS=OK            25 CALLS      315 TOTAL
                     EDM=   .49E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     33.102        35.734        .27859E-05   -1.4557    
   2  Index         2.3440        .70407        .28012E-03   -.56002    
   3  Normalizat    1.2832        .24283        .40956E-04   -.84068    
   4  Prefactor     .55254        .28261        .14031E-04   -1.0962    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.9329e-11
Minuit parameter uncertainties:
  1  35.7571
  2  0.707353
  3  0.243044
  4  0.283334
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/692695': 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) = 3858.66350956
delta logL = 0.0412384519068

Extracting fit parameters...

4FGL J1228.7+4858
   Spectrum: PowerLaw
359    Prefactor:  3.310e+01  3.576e+01  1.000e-04  1.000e+04 ( 1.000e-13)
360        Index:  2.344e+00  7.074e-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.525e-01  2.833e-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.283e+00  2.430e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.85
Ra Dec: 187.179 48.983
Photon Index (Free Index): 2.34 +/- 0.71
Photon Flux (Free Index): 4.03e-08 +/- 4.26e-08
Energy Flux (Free Index): 1.43e-05 +/- 1.56e-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/692695/cmap_HighResolution_240105601_240364801_4FGL_J1228.7+4858_daily_bin3.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.14e-02', comment='SUCCESS', photon_flux='4.52e-08', energy_flux2='1.43e-05', photon_flux_error='4.28e-08', dlogl='4.12e-02', energy_flux='1.24e-05', photon_flux2='4.03e-08', job_status='DONE', time_completed='2021-09-05 18:16:44.693470', photon_index_error2='0.71', photon_index2='2.34', ts='1.77', fit_tolerance='1e-08', GAL='0.56', photon_index_error='0.00', photon_flux_upper_limit='1.46e-07', energy_flux_error2='1.56e-05', EG='1.28', time_epoch_completed='1630891004.69', return_code='0', job_id='692695', GAL2='0.55', EG2='1.28', return_code2='0', energy_flux_error='1.17e-05', photon_flux_error2='4.26e-08', ts2='1.85', photon_index='2.56' WHERE bin_id='3' AND source_name='4FGL J1228.7+4858' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 18:16:44 PDT 2021


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

Job <4FGL_J1228.7+4858_daily_bin3> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sun Sep  5 18:05:20 2021
Job was executed on host(s) <bullet0069>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 18:05:22 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:05:22 2021
Terminated at Sun Sep  5 18:16:45 2021
Results reported at Sun Sep  5 18:16:45 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1228.7+4858_daily_bin3 187.179 48.9827 240105601 240364801 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 :                                   586.00 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             306.64 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   682 sec.
    Turnaround time :                            685 sec.

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

