/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 0 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 = 7493
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1228.7+4858_daily_bin239
RA = 187.179, Dec = 48.9827
tmin = 301276801, tmax = 301536001
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='694402', job_status='RUN', time_executed='2021-09-05 18:10:43.149364', time_epoch_executed='1630890643.15' WHERE source_name='4FGL J1228.7+4858' and cadence='daily' and bin_id='239'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/694402

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/694402/ft1_4FGL_J1228.7+4858_daily_bin239.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/694402/ft2_4FGL_J1228.7+4858_daily_bin239.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/694402/ft1_4FGL_J1228.7+4858_daily_bin239.fits outfile=/scratch/kocevski/694402/ft1_filteredMKT_4FGL_J1228.7+4858_daily_bin239.fits ra=187.179 dec=48.9827 rad=12.0 tmin=301276801.0 tmax=301536001.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 4.54
user 4.30
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/694402/ft1_filtered_4FGL_J1228.7+4858_daily_bin239.fits" evtable="EVENTS" scfile=/scratch/kocevski/694402/ft2_4FGL_J1228.7+4858_daily_bin239.fits sctable="SC_DATA" outfile=/scratch/kocevski/694402/ltcube_301276801_301536001_4FGL_J1228.7+4858_daily_bin239.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/694402/ft2_4FGL_J1228.7+4858_daily_bin239.fits
.....................!
real 12.01
user 11.67
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/694402/ft1_filtered_4FGL_J1228.7+4858_daily_bin239.fits evtable="EVENTS" scfile=/scratch/kocevski/694402/ft2_4FGL_J1228.7+4858_daily_bin239.fits sctable="SC_DATA" expcube=/scratch/kocevski/694402/ltcube_301276801_301536001_4FGL_J1228.7+4858_daily_bin239.fits outfile=/scratch/kocevski/694402/expmap_301276801_301536001_4FGL_J1228.7+4858_daily_bin239.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/694402/ltcube_301276801_301536001_4FGL_J1228.7+4858_daily_bin239.fits
.....................!
real 192.68
user 187.09
sys 5.23

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

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

This is gtbin version HEAD
real 0.54
user 0.39
sys 0.13

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/694402/ft1_filtered_4FGL_J1228.7+4858_daily_bin239.fits evtable="EVENTS" scfile=/scratch/kocevski/694402/ft2_4FGL_J1228.7+4858_daily_bin239.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/694402/Model_4FGL_J1228.7+4858_daily_bin239.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/694402/ft1_filtered_4FGL_J1228.7+4858_daily_bin239.fits.....................!
real 56.90
user 55.61
sys 1.13

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    1.0472       1.0000         .10000E-03   10000.    
     3 'norm      '    13.043       1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.3553       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    10.848       1.0000         .10000E-03   10000.    
     8 'norm      '    3.6899       1.0000         .10000E-03   10000.    
     9 'Prefactor '    23.069       1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.5001       1.0000         .10000E-03   10000.    
    11 'norm      '    2.3306       1.0000         .10000E-03   10000.    
    12 'Prefactor '    13.722       1.0000         .10000E-03   10000.    
    13 'norm      '    3.5100       1.0000         .10000E-03   10000.    
    14 'Prefactor '    18.977       1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.7838       1.0000         .10000E-03   10000.    
    16 'norm      '    28.602       1.0000         .10000E-03   10000.    
    17 'norm      '    18.727       1.0000         .10000E-03   10000.    
    18 'Prefactor '    16.606       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10323E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10246E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.2034       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .74537       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=   6826.381     FROM MIGRAD    STATUS=CONVERGED    500 CALLS     2548 TOTAL
                     EDM=   .38E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    13.960       -.49157E-05** at limit **
   2  norm          1.0472        .99937       -.14867E-06   -.40039E-03
   3  norm          13.042        9.4734       -.12258E-06    .27682E-04
   4  Prefactor     3.3548        2.6710       -.28978E-06   -.21149E-03
   5  Prefactor     .10000E-03    24.035       -.30275E-05** at limit **
   6  Prefactor     .10000E-03    11.824        .73597E-06** at limit **
   7  norm          10.848        2.8040       -.14365E-06    .41920E-04
   8  norm          3.6900        7.2172       -.63675E-06   -.34188E-03
   9  Prefactor     23.072        27.617        .33025E-05    .18710E-04
  10  Prefactor     4.5003        4.5400       -.42425E-06   -.40364E-04
  11  norm          2.3304        1.7358        .19591E-07    .11530E-03
  12  Prefactor     13.716        22.687       -.83103E-05   -.16903E-04
  13  norm          3.5101        1.9012        .56738E-08    .41869E-04
  14  Prefactor     18.975        48.098       -.37070E-05    .28511E-05
  15  Prefactor     4.7828        12.083       -.16086E-05   -.12211E-03
  16  norm          28.602        17.031       -.23419E-06    .73576E-05
  17  norm          18.728        6.0879        .63940E-06   -.21132E-03
  18  Prefactor     16.587        34.406       -.33758E-04   -.11269E-03
  19  Prefactor     .10000E-03    9.6098       -.21777E-05** at limit **
  20  Prefactor     .10000E-03    19.057        .75050E-05** at limit **
  21  norm          .10001E-03    1.9559        .15596E-05** at limit **
  22  Normalizat    1.2033        .16641        .24855E-05   -.32404E-03
  23  Prefactor     .74543        .19264        .74847E-06   -.42720E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 1.04725
  norm       = 13.0421
  Prefactor  = 3.35483
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 10.8484
  norm       = 3.68998
  Prefactor  = 23.0717
  Prefactor  = 4.50031
  norm       = 2.33042
  Prefactor  = 13.7159
  norm       = 3.51008
  Prefactor  = 18.9752
  Prefactor  = 4.78282
  norm       = 28.6016
  norm       = 18.7278
  Prefactor  = 16.5871
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  norm       = 0.000100006
  Normalizat = 1.20333
  Prefactor  = 0.745428
 **********
 **   18 **HESSE 
 **********

 FCN=   6826.381     FROM HESSE     STATUS=OK           380 CALLS     2928 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    13.954        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.0472        .97695        .77742E-04   -1.5503    
   3  norm          13.042        9.4662        .11091E-03   -1.4986    
   4  Prefactor     3.3548        2.6662        .11574E-03   -1.5342    
   5  Prefactor     .10000E-03    24.048        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    11.881        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          10.848        2.8085        .67242E-04   -1.5049    
   8  norm          3.6900        7.1569        .21025E-03   -1.5324    
   9  Prefactor     23.072        27.572        .83397E-04   -1.4747    
  10  Prefactor     4.5003        4.5282        .16724E-03   -1.5284    
  11  norm          2.3304        1.7333        .89435E-04   -1.5403    
  12  Prefactor     13.716        22.691        .10813E-03   -1.4967    
  13  norm          3.5101        1.9019        .81420E-04   -1.5333    
  14  Prefactor     18.975        48.097        .91941E-04   -1.4836    
  15  Prefactor     4.7828        12.063        .18395E-03   -1.5271    
  16  norm          28.602        17.028        .74912E-04   -1.4638    
  17  norm          18.728        6.0842        .92552E-04   -1.4842    
  18  Prefactor     16.587        34.480        .98284E-04   -1.4893    
  19  Prefactor     .10000E-03    9.6368        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    19.347        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10001E-03    10.047        .22186E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.2033        .19568        .22252E-03   -.86500    
  23  Prefactor     .74543        .22489        .33347E-03   -1.0177    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.35023e-09
Minuit parameter uncertainties:
  1  2.62958e-06
  2  0.97697
  3  9.46726
  4  2.66626
  5  1.86295e-05
  6  3.07262e-05
  7  2.80853
  8  7.15855
  9  27.5873
  10  4.52854
  11  1.73331
  12  22.7049
  13  1.90195
  14  48.1953
  15  12.069
  16  17.0304
  17  6.08443
  18  34.5211
  19  1.17212e-05
  20  0.000524571
  21  0.000510164
  22  0.195799
  23  0.225164
Done.

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

Extracting fit parameters...

4FGL J1228.7+4858
   Spectrum: PowerLaw
359    Prefactor:  2.307e+01  2.759e+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.454e-01  2.252e-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.203e+00  1.958e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.15
Ra Dec: 187.179 48.983
Photon Index (Fixed Index): 2.56 +/- 0.00
Photon Flux (Fixed Index): 3.85e-08 +/- 4.60e-08
Energy Flux (Fixed Index): 1.05e-05 +/- 1.26e-05

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

Saving results to:
/scratch/kocevski/694402/likelihoodResults_301276801_301536001_4FGL_J1228.7+4858_daily_bin239.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) = 6826.02922314
delta logL = 0.352142567483

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6825.87371191
delta logL = 0.507653795531

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6825.874     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      228 TOTAL
                     EDM=   .50E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.6132        7.8782        .39012E-02   -.22131E-02
   2  Index         1.0609        .39820        .25165       -.84977E-04
   3  Normalizat    1.2349        .15792        .49796E-01    .32245E-05
   4  Prefactor     .73163        .19179        .76039E-01    .25499E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.61319
  Index      = 1.06094
  Normalizat = 1.23485
  Prefactor  = 0.731631
 **********
 **   18 **HESSE 
 **********

 FCN=   6825.874     FROM HESSE     STATUS=OK            31 CALLS      259 TOTAL
                     EDM=   .41E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.6132        14.323        .15605E-03   -1.5194    
   2  Index         1.0609        .78201        .10240E-01   -.90725    
   3  Normalizat    1.2349        .18405        .22015E-03   -.85532    
   4  Prefactor     .73163        .22311        .33660E-03   -1.0230    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.05589e-08
Minuit parameter uncertainties:
  1  14.3301
  2  0.790666
  3  0.184142
  4  0.22338
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/694402': 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) = 6825.87371182
delta logL = 0.507653889096

Extracting fit parameters...

4FGL J1228.7+4858
   Spectrum: PowerLaw
359    Prefactor:  6.613e+00  1.433e+01  1.000e-04  1.000e+04 ( 1.000e-13)
360        Index:  1.061e+00  7.907e-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.316e-01  2.234e-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.235e+00  1.841e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.15
Ra Dec: 187.179 48.983
Photon Index (Free Index): 1.06 +/- 0.79
Photon Flux (Free Index): 3.75e-09 +/- 5.77e-09
Energy Flux (Free Index): 4.64e-05 +/- 7.38e-05

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/694402/cmap_HighResolution_301276801_301536001_4FGL_J1228.7+4858_daily_bin239.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.39e-03', comment='SUCCESS', photon_flux='3.85e-08', energy_flux2='4.64e-05', photon_flux_error='4.60e-08', dlogl='5.08e-01', energy_flux='1.05e-05', photon_flux2='3.75e-09', job_status='DONE', time_completed='2021-09-05 18:24:13.284549', photon_index_error2='0.79', photon_index2='1.06', ts='1.15', fit_tolerance='1e-08', GAL='0.75', photon_index_error='0.00', photon_flux_upper_limit='1.20e-07', energy_flux_error2='7.38e-05', EG='1.20', time_epoch_completed='1630891453.28', return_code='0', job_id='694402', GAL2='0.73', EG2='1.23', return_code2='0', energy_flux_error='1.26e-05', photon_flux_error2='5.77e-09', ts2='2.15', photon_index='2.56' WHERE bin_id='239' AND source_name='4FGL J1228.7+4858' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 18:24:13 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0106>
Subject: Job 694402: <4FGL_J1228.7+4858_daily_bin239> in cluster <slac> Done

Job <4FGL_J1228.7+4858_daily_bin239> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Sun Sep  5 18:10:32 2021
Job was executed on host(s) <bullet0106>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 18:10:33 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:10:33 2021
Terminated at Sun Sep  5 18:24:14 2021
Results reported at Sun Sep  5 18:24:14 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1228.7+4858_daily_bin239 187.179 48.9827 301276801 301536001 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 :                                   800.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             353.63 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   820 sec.
    Turnaround time :                            822 sec.

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

