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


Performing analysis on: 4FGL_J1228.7+4858_daily_bin226
RA = 187.179, Dec = 48.9827
tmin = 297907201, tmax = 298166401
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='694383', job_status='RUN', time_executed='2021-09-05 18:10:45.361478', time_epoch_executed='1630890645.36' WHERE source_name='4FGL J1228.7+4858' and cadence='daily' and bin_id='226'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/694383

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/694383/ft1_4FGL_J1228.7+4858_daily_bin226.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/694383/ft2_4FGL_J1228.7+4858_daily_bin226.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/694383/ft1_4FGL_J1228.7+4858_daily_bin226.fits outfile=/scratch/kocevski/694383/ft1_filteredMKT_4FGL_J1228.7+4858_daily_bin226.fits ra=187.179 dec=48.9827 rad=12.0 tmin=297907201.0 tmax=298166401.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 3.54
user 3.33
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/694383/ft2_4FGL_J1228.7+4858_daily_bin226.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/694383/ft1_filteredMKT_4FGL_J1228.7+4858_daily_bin226.fits evtable="EVENTS" outfile="/scratch/kocevski/694383/ft1_filtered_4FGL_J1228.7+4858_daily_bin226.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/694383/ft1_filtered_4FGL_J1228.7+4858_daily_bin226.fits" evtable="EVENTS" scfile=/scratch/kocevski/694383/ft2_4FGL_J1228.7+4858_daily_bin226.fits sctable="SC_DATA" outfile=/scratch/kocevski/694383/ltcube_297907201_298166401_4FGL_J1228.7+4858_daily_bin226.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/694383/ft2_4FGL_J1228.7+4858_daily_bin226.fits
.....................!
real 12.17
user 11.76
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/694383/ft1_filtered_4FGL_J1228.7+4858_daily_bin226.fits evtable="EVENTS" scfile=/scratch/kocevski/694383/ft2_4FGL_J1228.7+4858_daily_bin226.fits sctable="SC_DATA" expcube=/scratch/kocevski/694383/ltcube_297907201_298166401_4FGL_J1228.7+4858_daily_bin226.fits outfile=/scratch/kocevski/694383/expmap_297907201_298166401_4FGL_J1228.7+4858_daily_bin226.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/694383/ltcube_297907201_298166401_4FGL_J1228.7+4858_daily_bin226.fits
.....................!
real 190.34
user 184.46
sys 5.40

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/694383/ft1_filtered_4FGL_J1228.7+4858_daily_bin226.fits scfile=/scratch/kocevski/694383/ft2_4FGL_J1228.7+4858_daily_bin226.fits outfile=/scratch/kocevski/694383/cmap_297907201_298166401_4FGL_J1228.7+4858_daily_bin226.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.35
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/694383/ft1_filtered_4FGL_J1228.7+4858_daily_bin226.fits scfile=/scratch/kocevski/694383/ft2_4FGL_J1228.7+4858_daily_bin226.fits outfile=/scratch/kocevski/694383/cmap_HighResolution_297907201_298166401_4FGL_J1228.7+4858_daily_bin226.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.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/694383/ft1_filtered_4FGL_J1228.7+4858_daily_bin226.fits evtable="EVENTS" scfile=/scratch/kocevski/694383/ft2_4FGL_J1228.7+4858_daily_bin226.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/694383/Model_4FGL_J1228.7+4858_daily_bin226.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/694383/ft1_filtered_4FGL_J1228.7+4858_daily_bin226.fits.....................!
real 64.66
user 63.26
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10044E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    2.4765       1.0000         .10000E-03   10000.    
     3 'norm      '    2.8008       1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.1121       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10139E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10111E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    6.1840       1.0000         .10000E-03   10000.    
     8 'norm      '    .10459E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.7728       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .28120E-02   1.0000         .10000E-03   10000.    
    11 'norm      '    4.0681       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10253E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    3.3249       1.0000         .10000E-03   10000.    
    14 'Prefactor '    34.617       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    35.178       1.0000         .10000E-03   10000.    
    17 'norm      '    75.553       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    13.539       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10060E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .14395E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.1872       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .89164       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=   7761.291     FROM MIGRAD    STATUS=CONVERGED    511 CALLS     2605 TOTAL
                     EDM=   .51E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    16.468        .34846E-06** at limit **
   2  norm          2.4764        1.2788       -.11486E-07   -.61537E-04
   3  norm          2.7995        7.1912       -.59535E-06   -.26814E-03
   4  Prefactor     3.1116        3.7090       -.28492E-06   -.49310E-03
   5  Prefactor     .10000E-03    16.967        .31251E-05** at limit **
   6  Prefactor     .10000E-03    9.6223       -.16362E-05** at limit **
   7  norm          6.1828        3.0214       -.37976E-07   -.20178E-03
   8  norm          .10000E-03    3.3031        .46456E-06** at limit **
   9  Prefactor     1.7384        46.232       -.22859E-04    .69973E-05
  10  Prefactor     .10017E-03    4.1612        .48055E-06** at limit **
  11  norm          4.0668        2.1099       -.93322E-07   -.30145E-03
  12  Prefactor     .10000E-03    11.578        .24991E-05** at limit **
  13  norm          3.3234        2.2350       -.37627E-07   -.13564E-03
  14  Prefactor     34.623        62.598        .10146E-04   -.58053E-04
  15  Prefactor     .10000E-03    4.3126        .12714E-05** at limit **
  16  norm          35.163        18.329       -.31045E-05    .22933E-03
  17  norm          75.557        9.8747       -.16474E-06    .27540E-03
  18  Prefactor     .10000E-03    14.833       -.50239E-05** at limit **
  19  Prefactor     13.536        13.596       -.23862E-06    .12733E-03
  20  Prefactor     .10000E-03    9.9625        .12285E-05** at limit **
  21  norm          .10000E-03    1.9493       -.59173E-06** at limit **
  22  Normalizat    1.1874        .17182        .10296E-05    .10047E-03
  23  Prefactor     .89139        .19919        .18348E-06    .11517E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 2.47642
  norm       = 2.79949
  Prefactor  = 3.11157
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 6.18284
  norm       = 0.0001
  Prefactor  = 1.73839
  Prefactor  = 0.00010017
  norm       = 4.06676
  Prefactor  = 0.0001
  norm       = 3.32338
  Prefactor  = 34.6231
  Prefactor  = 0.0001
  norm       = 35.1631
  norm       = 75.5572
  Prefactor  = 0.0001
  Prefactor  = 13.536
  Prefactor  = 0.0001
  norm       = 0.000100002
  Normalizat = 1.18736
  Prefactor  = 0.891387
 **********
 **   18 **HESSE 
 **********

 FCN=   7761.291     FROM HESSE     STATUS=OK           376 CALLS     2981 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    16.470        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          2.4764        1.2789        .69068E-04   -1.5393    
   3  norm          2.7995        7.2113        .24309E-03   -1.5373    
   4  Prefactor     3.1116        3.7179        .17436E-03   -1.5355    
   5  Prefactor     .10000E-03    16.946        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    9.6119        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          6.1828        3.0379        .99322E-04   -1.5211    
   8  norm          .10000E-03    3.3564        .15656E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     1.7384        49.276        .31447E-03   -1.5444    
  10  Prefactor     .10017E-03    4.3316        .53672E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          4.0668        2.1123        .86996E-04   -1.5305    
  12  Prefactor     .10000E-03    11.629        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          3.3234        2.2326        .10416E-03   -1.5343    
  14  Prefactor     34.623        62.252        .68111E-04   -1.4530    
  15  Prefactor     .10000E-03    4.3289        .17848E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          35.163        18.254        .67567E-04   -1.4521    
  17  norm          75.557        9.8794        .46194E-04   -1.3967    
  18  Prefactor     .10000E-03    14.781        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     13.536        13.364        .10886E-03   -1.4972    
  20  Prefactor     .10000E-03    9.9635        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    4.3030        .23423E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.1874        .20793        .24539E-03   -.86994    
  23  Prefactor     .89139        .23837        .33644E-03   -.96443    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.30509e-09
Minuit parameter uncertainties:
  1  1.36419e-05
  2  1.27887
  3  7.21349
  4  3.71819
  5  0.000108889
  6  6.56573e-05
  7  3.03798
  8  7.68076e-05
  9  18.5269
  10  0.00171668
  11  2.11232
  12  3.07463e-05
  13  2.2327
  14  62.3691
  15  2.802e-05
  16  18.2572
  17  9.87964
  18  0.000163712
  19  13.367
  20  3.35748e-05
  21  0.00017849
  22  0.208072
  23  0.238654
Done.

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

Extracting fit parameters...

4FGL J1228.7+4858
   Spectrum: PowerLaw
359    Prefactor:  1.738e+00  1.853e+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.914e-01  2.387e-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.187e+00  2.081e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.01
Ra Dec: 187.179 48.983
Photon Flux Upper Limit: 8.24e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.43e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/694383/likelihoodResults_297907201_298166401_4FGL_J1228.7+4858_daily_bin226.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) = 7760.89760432
delta logL = 0.393032137114

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7760.65528349
delta logL = 0.635352967984

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    8.9768       1.0000          .0000       10.000    
     3 'Normalizat'    1.1362       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93634       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=   7760.655     FROM MIGRAD    STATUS=CONVERGED    199 CALLS      533 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .19154E-01    .20827E-03** at limit **
   2  Index         8.9770        9.2848        .12812E-01    .20104E-04
   3  Normalizat    1.1365        .80712E-01    .24995E-03    .51487E-04
   4  Prefactor     .93587        .97259E-01    .32934E-03    .13777E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 8.97697
  Normalizat = 1.13649
  Prefactor  = 0.935874
 **********
 **   18 **HESSE 
 **********

 FCN=   7760.655     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      568 TOTAL
                     EDM=   .38E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    .14858E-01    .24172E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         8.9770        9.2515        .51248E-03    .91966    
   3  Normalizat    1.1365        .77062E-01    .99982E-05   -.88589    
   4  Prefactor     .93587        .93047E-01    .13174E-04   -.94899    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.84743e-11
Minuit parameter uncertainties:
  1  3.22049e-08
  2  6.217
  3  0.0770699
  4  0.0930631
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/694383': 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): 102
logL (Free Index) = 7760.6552141
delta logL = 0.635422365604

Extracting fit parameters...

4FGL J1228.7+4858
   Spectrum: PowerLaw
359    Prefactor:  1.000e-04  3.220e-08  1.000e-04  1.000e+04 ( 1.000e-13)
360        Index:  8.977e+00  6.217e+00  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:  9.359e-01  9.306e-02  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.136e+00  7.707e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.34
Ra Dec: 187.179 48.983
Photon Index (Free Index): 8.98 +/- 6.22
Photon Flux (Free Index): 3.88e-08 +/- 4.82e-07
Energy Flux (Free Index): 4.41e-06 +/- 5.46e-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/694383/cmap_HighResolution_297907201_298166401_4FGL_J1228.7+4858_daily_bin226.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.43e-03', comment='SUCCESS', energy_flux2='4.41e-06', dlogl='6.35e-01', photon_flux2='3.88e-08', job_status='DONE', time_completed='2021-09-05 18:25:53.078261', photon_index_error2='6.22', photon_index2='8.98', ts='0.01', fit_tolerance='1e-08', GAL='0.89', photon_index_error='0.00', photon_flux_upper_limit='8.24e-08', energy_flux_error2='5.46e-05', EG='1.19', time_epoch_completed='1630891553.08', return_code='0', job_id='694383', GAL2='0.94', EG2='1.14', return_code2='102', photon_flux_error2='4.82e-07', ts2='1.34', photon_index='2.56' WHERE bin_id='226' AND source_name='4FGL J1228.7+4858' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 18:25:53 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0246>
Subject: Job 694383: <4FGL_J1228.7+4858_daily_bin226> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1228.7+4858_daily_bin226 187.179 48.9827 297907201 298166401 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 :                                   897.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             332.20 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   921 sec.
    Turnaround time :                            922 sec.

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

