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


Performing analysis on: 4FGL_J1228.7+4858_daily_bin48
RA = 187.179, Dec = 48.9827
tmin = 251769601, tmax = 252028801
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='692762', job_status='RUN', time_executed='2021-09-05 18:08:43.838425', time_epoch_executed='1630890523.84' WHERE source_name='4FGL J1228.7+4858' and cadence='daily' and bin_id='48'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/692762

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/692762/ft1_4FGL_J1228.7+4858_daily_bin48.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/692762/ft2_4FGL_J1228.7+4858_daily_bin48.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/692762/ft1_4FGL_J1228.7+4858_daily_bin48.fits outfile=/scratch/kocevski/692762/ft1_filteredMKT_4FGL_J1228.7+4858_daily_bin48.fits ra=187.179 dec=48.9827 rad=12.0 tmin=251769601.0 tmax=252028801.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 2.34
user 1.97
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/692762/ft1_filtered_4FGL_J1228.7+4858_daily_bin48.fits" evtable="EVENTS" scfile=/scratch/kocevski/692762/ft2_4FGL_J1228.7+4858_daily_bin48.fits sctable="SC_DATA" outfile=/scratch/kocevski/692762/ltcube_251769601_252028801_4FGL_J1228.7+4858_daily_bin48.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/692762/ft2_4FGL_J1228.7+4858_daily_bin48.fits
.....................!
real 12.70
user 12.25
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/692762/ft1_filtered_4FGL_J1228.7+4858_daily_bin48.fits evtable="EVENTS" scfile=/scratch/kocevski/692762/ft2_4FGL_J1228.7+4858_daily_bin48.fits sctable="SC_DATA" expcube=/scratch/kocevski/692762/ltcube_251769601_252028801_4FGL_J1228.7+4858_daily_bin48.fits outfile=/scratch/kocevski/692762/expmap_251769601_252028801_4FGL_J1228.7+4858_daily_bin48.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/692762/ltcube_251769601_252028801_4FGL_J1228.7+4858_daily_bin48.fits
.....................!
real 191.77
user 184.67
sys 5.80

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/692762/ft1_filtered_4FGL_J1228.7+4858_daily_bin48.fits scfile=/scratch/kocevski/692762/ft2_4FGL_J1228.7+4858_daily_bin48.fits outfile=/scratch/kocevski/692762/cmap_251769601_252028801_4FGL_J1228.7+4858_daily_bin48.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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/692762/ft1_filtered_4FGL_J1228.7+4858_daily_bin48.fits scfile=/scratch/kocevski/692762/ft2_4FGL_J1228.7+4858_daily_bin48.fits outfile=/scratch/kocevski/692762/cmap_HighResolution_251769601_252028801_4FGL_J1228.7+4858_daily_bin48.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.40
sys 0.13

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    1.0686       1.0000         .10000E-03   10000.    
     3 'norm      '    14.399       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .11449       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .11035E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    1.1084       1.0000         .10000E-03   10000.    
     9 'Prefactor '    68.514       1.0000         .10000E-03   10000.    
    10 'Prefactor '    10.295       1.0000         .10000E-03   10000.    
    11 'norm      '    2.0337       1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.6393       1.0000         .10000E-03   10000.    
    13 'norm      '    1.6093       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10359E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    4.4623       1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10081E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    9.2594       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.1744       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .84659       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=   8026.329     FROM MIGRAD    STATUS=CONVERGED     99 CALLS     2198 TOTAL
                     EDM=   .35E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 11.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    26.100       -.23305E-04** at limit **
   2  norm          1.0688        .81913        .12915E-06    .68015E-03
   3  norm          14.399        1.0034        .23942E-07    .57472E-04
   4  Prefactor     .11525        .35234       -.19144E-05   -.32164E-03
   5  Prefactor     .10019E-03    8.1576        .14982E-04** at limit **
   6  Prefactor     .10014E-03    39.423        .46783E-04** at limit **
   7  norm          .10000E-03    .83503        .35442E-06** at limit **
   8  norm          1.1207        7.6228        .35523E-05   -.15490E-03
   9  Prefactor     68.482        9.1868       -.51440E-05    .99201E-02
  10  Prefactor     10.295        5.3812        .21418E-05    .69433E-03
  11  norm          2.0338        1.5510       -.28184E-06    .12267E-03
  12  Prefactor     2.6560        4.8968        .13708E-04   -.10079E-02
  13  norm          1.6094        1.6625       -.19939E-06   -.26417E-04
  14  Prefactor     .10063E-03    63.802       -.28372E-04** at limit **
  15  Prefactor     .10000E-03    2.2405        .78156E-07** at limit **
  16  norm          4.4618        1.0149        .11667E-06    .12233E-03
  17  norm          .10000E-03    1.0830       -.33360E-07** at limit **
  18  Prefactor     .10009E-03    12.725        .10076E-05** at limit **
  19  Prefactor     .10000E-03    9.8250        .12800E-05** at limit **
  20  Prefactor     .10004E-03    12.726       -.13027E-04** at limit **
  21  norm          9.2605        4.2362        .68423E-07   -.20739E-04
  22  Normalizat    1.1743        .16960        .10737E-06   -.20553E-04
  23  Prefactor     .84659        .20500       -.36238E-06   -.43002E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100001
  norm       = 1.06878
  norm       = 14.3988
  Prefactor  = 0.115247
  Prefactor  = 0.00010019
  Prefactor  = 0.000100135
  norm       = 0.0001
  norm       = 1.12074
  Prefactor  = 68.4815
  Prefactor  = 10.2955
  norm       = 2.03377
  Prefactor  = 2.65603
  norm       = 1.60945
  Prefactor  = 0.000100626
  Prefactor  = 0.0001
  norm       = 4.4618
  norm       = 0.0001
  Prefactor  = 0.000100092
  Prefactor  = 0.0001
  Prefactor  = 0.000100038
  norm       = 9.26047
  Normalizat = 1.17431
  Prefactor  = 0.846594
 **********
 **   18 **HESSE 
 **********

 FCN=   8026.329     FROM HESSE     STATUS=OK           426 CALLS     2624 TOTAL
                     EDM=   .45E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    28.180        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.0688        .84093        .11765E-01   -1.5501    
   3  norm          14.399        9.4118        .26388E-02   -1.4949    
   4  Prefactor     .11525        1.1904        .60520E-01   -1.5640    
   5  Prefactor     .10019E-03    15.459        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10014E-03    42.833        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    .80375        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.1207        9.9748        .11230E-01   -1.5496    
   9  Prefactor     68.482        29.360        .12123E-02   -1.4051    
  10  Prefactor     10.295        5.3933        .31220E-02   -1.5066    
  11  norm          2.0338        1.5575        .72512E-02   -1.5423    
  12  Prefactor     2.6560        56.068        .62744E-02   -1.5382    
  13  norm          1.6094        1.6826        .83487E-02   -1.5454    
  14  Prefactor     .10063E-03    68.679        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    2.2345        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          4.4618        6.8266        .47654E-02   -1.5285    
  17  norm          .10000E-03    1.0767        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10009E-03    17.692        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    9.7947        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10004E-03    13.850        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          9.2605        4.2462        .32927E-02   -1.5099    
  22  Normalizat    1.1743        .15072        .35551E-01   -.87400    
  23  Prefactor     .84659        .17703        .68620E-01   -.98033    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.45574e-06
Minuit parameter uncertainties:
  1  0.000388048
  2  0.840941
  3  9.41277
  4  0.740475
  5  0.00342891
  6  0.00481907
  7  1.36772e-06
  8  6.68824
  9  29.3665
  10  5.39359
  11  1.55753
  12  24.432
  13  1.6827
  14  0.0131256
  15  1.17072e-05
  16  6.82783
  17  5.23518e-06
  18  0.00254585
  19  7.12551e-05
  20  0.00144791
  21  4.24636
  22  0.150771
  23  0.177151
Done.

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

Extracting fit parameters...

4FGL J1228.7+4858
   Spectrum: PowerLaw
359    Prefactor:  6.848e+01  2.937e+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:  8.466e-01  1.772e-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.174e+00  1.508e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 13.47
Ra Dec: 187.179 48.983
Photon Index (Fixed Index): 2.56 +/- 0.00
Photon Flux (Fixed Index): 1.14e-07 +/- 4.90e-08
Energy Flux (Fixed Index): 3.13e-05 +/- 1.34e-05

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) = 8025.79028474
delta logL = 0.538566331682

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8025.78798161
delta logL = 0.540869462307

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    40.463       1.0000         .10000E-03   10000.    
     2 'Index     '    3.0108       1.0000          .0000       10.000    
     3 'Normalizat'    1.1346       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88398       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=   8025.788     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      293 TOTAL
                     EDM=   .39E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     40.469        36.467        .63015E-04   -.39160E-03
   2  Index         3.0108        .57638        .36348E-02   -.15475E-03
   3  Normalizat    1.1348        .17672        .21986E-03   -.17943E-04
   4  Prefactor     .88370        .21016        .29799E-03    .23685E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 40.4688
  Index      = 3.01082
  Normalizat = 1.13482
  Prefactor  = 0.883701
 **********
 **   18 **HESSE 
 **********

 FCN=   8025.788     FROM HESSE     STATUS=OK            25 CALLS      318 TOTAL
                     EDM=   .37E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     40.469        30.957        .12603E-04   -1.4435    
   2  Index         3.0108        .48918        .14539E-03   -.40916    
   3  Normalizat    1.1348        .17607        .87945E-05   -.88642    
   4  Prefactor     .88370        .20937        .11919E-04   -.96713    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.67624e-10
Minuit parameter uncertainties:
  1  30.9696
  2  0.490115
  3  0.176161
  4  0.209558
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/692762': 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) = 8025.78798051
delta logL = 0.540870564097

Extracting fit parameters...

4FGL J1228.7+4858
   Spectrum: PowerLaw
359    Prefactor:  4.047e+01  3.097e+01  1.000e-04  1.000e+04 ( 1.000e-13)
360        Index:  3.011e+00  4.901e-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:  8.837e-01  2.096e-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.135e+00  1.762e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 14.70
Ra Dec: 187.179 48.983
Photon Index (Free Index): 3.01 +/- 0.49
Photon Flux (Free Index): 1.41e-07 +/- 5.14e-08
Energy Flux (Free Index): 2.79e-05 +/- 9.90e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/692762/cmap_HighResolution_251769601_252028801_4FGL_J1228.7+4858_daily_bin48.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.14e-07', energy_flux2='2.79e-05', photon_flux_error='4.90e-08', dlogl='5.41e-01', energy_flux='3.13e-05', photon_flux2='1.41e-07', job_status='DONE', time_completed='2021-09-05 18:20:49.952358', photon_index_error2='0.49', photon_index2='3.01', ts='13.47', fit_tolerance='1e-08', GAL='0.85', photon_index_error='0.00', energy_flux_error2='9.90e-06', EG='1.17', time_epoch_completed='1630891249.95', return_code='0', job_id='692762', GAL2='0.88', EG2='1.13', return_code2='0', energy_flux_error='1.34e-05', photon_flux_error2='5.14e-08', ts2='14.70', photon_index='2.56' WHERE bin_id='48' AND source_name='4FGL J1228.7+4858' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 18:20:49 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0239>
Subject: Job 692762: <4FGL_J1228.7+4858_daily_bin48> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1228.7+4858_daily_bin48 187.179 48.9827 251769601 252028801 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 :                                   723.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             281.69 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   922 sec.
    Turnaround time :                            925 sec.

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

