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


Performing analysis on: 4FGL_J1228.7+4858_daily_bin238
RA = 187.179, Dec = 48.9827
tmin = 301017601, tmax = 301276801
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='694401', job_status='RUN', time_executed='2021-09-05 18:10:41.617579', time_epoch_executed='1630890641.62' WHERE source_name='4FGL J1228.7+4858' and cadence='daily' and bin_id='238'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/694401

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/694401/ft1_4FGL_J1228.7+4858_daily_bin238.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/694401/ft2_4FGL_J1228.7+4858_daily_bin238.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/694401/ft1_4FGL_J1228.7+4858_daily_bin238.fits outfile=/scratch/kocevski/694401/ft1_filteredMKT_4FGL_J1228.7+4858_daily_bin238.fits ra=187.179 dec=48.9827 rad=12.0 tmin=301017601.0 tmax=301276801.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.57
user 3.33
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/694401/ft1_filtered_4FGL_J1228.7+4858_daily_bin238.fits" evtable="EVENTS" scfile=/scratch/kocevski/694401/ft2_4FGL_J1228.7+4858_daily_bin238.fits sctable="SC_DATA" outfile=/scratch/kocevski/694401/ltcube_301017601_301276801_4FGL_J1228.7+4858_daily_bin238.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/694401/ft2_4FGL_J1228.7+4858_daily_bin238.fits
.....................!
real 11.87
user 11.48
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/694401/ft1_filtered_4FGL_J1228.7+4858_daily_bin238.fits evtable="EVENTS" scfile=/scratch/kocevski/694401/ft2_4FGL_J1228.7+4858_daily_bin238.fits sctable="SC_DATA" expcube=/scratch/kocevski/694401/ltcube_301017601_301276801_4FGL_J1228.7+4858_daily_bin238.fits outfile=/scratch/kocevski/694401/expmap_301017601_301276801_4FGL_J1228.7+4858_daily_bin238.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/694401/ltcube_301017601_301276801_4FGL_J1228.7+4858_daily_bin238.fits
.....................!
real 190.56
user 185.86
sys 4.33

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/694401/ft1_filtered_4FGL_J1228.7+4858_daily_bin238.fits scfile=/scratch/kocevski/694401/ft2_4FGL_J1228.7+4858_daily_bin238.fits outfile=/scratch/kocevski/694401/cmap_301017601_301276801_4FGL_J1228.7+4858_daily_bin238.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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/694401/ft1_filtered_4FGL_J1228.7+4858_daily_bin238.fits scfile=/scratch/kocevski/694401/ft2_4FGL_J1228.7+4858_daily_bin238.fits outfile=/scratch/kocevski/694401/cmap_HighResolution_301017601_301276801_4FGL_J1228.7+4858_daily_bin238.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/694401/ft1_filtered_4FGL_J1228.7+4858_daily_bin238.fits evtable="EVENTS" scfile=/scratch/kocevski/694401/ft2_4FGL_J1228.7+4858_daily_bin238.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/694401/Model_4FGL_J1228.7+4858_daily_bin238.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/694401/ft1_filtered_4FGL_J1228.7+4858_daily_bin238.fits.....................!
real 57.51
user 56.18
sys 1.16

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10456E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    7.2483       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10554E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.3003       1.0000         .10000E-03   10000.    
     6 'Prefactor '    30.761       1.0000         .10000E-03   10000.    
     7 'norm      '    5.7437       1.0000         .10000E-03   10000.    
     8 'norm      '    .14174       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    2.7984       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    2.4503       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10224E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.5116       1.0000         .10000E-03   10000.    
    16 'norm      '    8.6942       1.0000         .10000E-03   10000.    
    17 'norm      '    13.570       1.0000         .10000E-03   10000.    
    18 'Prefactor '    8.0460       1.0000         .10000E-03   10000.    
    19 'Prefactor '    11.212       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.0756       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .92161       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=   6805.955     FROM MIGRAD    STATUS=CONVERGED    506 CALLS     2554 TOTAL
                     EDM=   .24E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    14.032       -.15548E-06** at limit **
   2  norm          .10000E-03    .47971        .32490E-06** at limit **
   3  norm          7.2412        10.621        .23703E-05   -.16249E-03
   4  Prefactor     .10000E-03    1.4317       -.15758E-06** at limit **
   5  Prefactor     4.2926        163.92       -.26416E-04    .61427E-05
   6  Prefactor     30.765        22.387        .28580E-05   -.23378E-03
   7  norm          5.7443        2.4306       -.39869E-07   -.76819E-04
   8  norm          .14243        2.7833       -.96292E-06   -.16284E-03
   9  Prefactor     .10000E-03    3.5547        .88337E-08** at limit **
  10  Prefactor     .10000E-03    1.5901        .13368E-07** at limit **
  11  norm          2.7985        1.7669        .13668E-07   -.38372E-04
  12  Prefactor     .10000E-03    5.4094       -.85155E-08** at limit **
  13  norm          2.4505        1.8880       -.14548E-07   -.75011E-04
  14  Prefactor     .10000E-03    39.982        .10456E-06** at limit **
  15  Prefactor     3.5124        5.7398       -.42237E-06   -.19603E-03
  16  norm          8.6945        14.151        .19372E-06   -.48348E-04
  17  norm          13.569        5.2863        .81822E-08   -.87584E-05
  18  Prefactor     8.0443        22.831       -.23479E-05    .33411E-04
  19  Prefactor     11.216        15.263        .76300E-06   -.75832E-04
  20  Prefactor     .10000E-03    11.544        .40852E-07** at limit **
  21  norm          .10000E-03    2.2677       -.33970E-07** at limit **
  22  Normalizat    1.0756        .15503        .11910E-06    .31052E-04
  23  Prefactor     .92159        .18531       -.13483E-06    .25655E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 0.0001
  norm       = 7.24116
  Prefactor  = 0.0001
  Prefactor  = 4.29262
  Prefactor  = 30.765
  norm       = 5.74426
  norm       = 0.142435
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.79848
  Prefactor  = 0.0001
  norm       = 2.4505
  Prefactor  = 0.0001
  Prefactor  = 3.51239
  norm       = 8.69447
  norm       = 13.5694
  Prefactor  = 8.04431
  Prefactor  = 11.2164
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 1.07555
  Prefactor  = 0.921588
 **********
 **   18 **HESSE 
 **********

 FCN=   6805.955     FROM HESSE     STATUS=OK           376 CALLS     2930 TOTAL
                     EDM=   .57E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    14.032        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    .81552        .10949E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          7.2412        10.461        .14898E-03   -1.5170    
   4  Prefactor     .10000E-03    1.4496        .96245E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     4.2926        164.70        .19427E-03   -1.5294    
   6  Prefactor     30.765        22.083        .72242E-04   -1.4598    
   7  norm          5.7443        2.4401        .79157E-04   -1.5229    
   8  norm          .14243        12.972        .26999E-02   -1.5633    
   9  Prefactor     .10000E-03    3.5560        .15190E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    1.5952        .10156E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          2.7985        1.7639        .84130E-04   -1.5373    
  12  Prefactor     .10000E-03    5.4166        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          2.4505        1.8896        .96196E-04   -1.5395    
  14  Prefactor     .10000E-03    40.068        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     3.5124        5.7587        .21574E-03   -1.5333    
  16  norm          8.6945        14.147        .13594E-03   -1.5118    
  17  norm          13.569        5.2886        .10873E-03   -1.4971    
  18  Prefactor     8.0443        22.801        .14135E-03   -1.5141    
  19  Prefactor     11.216        15.158        .11964E-03   -1.5038    
  20  Prefactor     .10000E-03    11.557        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    2.2800        .12060E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.0756        .18081        .21989E-03   -.90541    
  23  Prefactor     .92159        .21524        .29045E-03   -.95391    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.72362e-08
Minuit parameter uncertainties:
  1  7.79771e-06
  2  3.02534e-05
  3  10.4637
  4  2.01347e-05
  5  53.337
  6  22.0884
  7  2.44011
  8  2.71819
  9  4.92409e-07
  10  2.95449e-07
  11  1.76394
  12  6.91844e-07
  13  1.88961
  14  1.01731e-05
  15  5.75962
  16  14.1523
  17  5.28883
  18  22.8254
  19  15.1628
  20  5.93452e-06
  21  6.80545e-06
  22  0.180909
  23  0.215435
Done.

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

Extracting fit parameters...

4FGL J1228.7+4858
   Spectrum: PowerLaw
359    Prefactor:  1.000e-04  4.924e-07  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:  9.216e-01  2.154e-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.076e+00  1.809e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/694401/likelihoodResults_301017601_301276801_4FGL_J1228.7+4858_daily_bin238.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): 102
logL (Free Index) = 6805.95586757
delta logL = -0.0013220591718

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6805.95454532
delta logL = 1.95124812308e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10079E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5328       1.0000          .0000       10.000    
     3 'Normalizat'    1.0756       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92158       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=   6805.955     FROM MIGRAD    STATUS=CONVERGED    107 CALLS      261 TOTAL
                     EDM=   .56E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    31.506        .15526E-01** at limit **
   2  Index         1.6417        9.0638        .50000       -.94542E-07
   3  Normalizat    1.0756        .86937E-02    .21989E-03    .24484E-03
   4  Prefactor     .92159        .10759E-01    .29045E-03    .19105E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.64165
  Normalizat = 1.07555
  Prefactor  = 0.921589
 **********
 **   18 **HESSE 
 **********

 FCN=   6805.955     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      290 TOTAL
                     EDM=   .42E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    236.59        .19670E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.6417        6.0562        .50000       -.73646    
   3  Normalizat    1.0756        .24852E-01    .43979E-04   -.90541    
   4  Prefactor     .92159        .30756E-01    .11618E-04   -.95391    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.22572e-09
Minuit parameter uncertainties:
  1  0.000510333
  2  869.134
  3  0.0248518
  4  0.0307568
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/694401': 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) = 6805.95453984
delta logL = 5.67550250707e-06

Extracting fit parameters...

4FGL J1228.7+4858
   Spectrum: PowerLaw
359    Prefactor:  1.000e-04  5.103e-04  1.000e-04  1.000e+04 ( 1.000e-13)
360        Index:  1.642e+00  8.691e+02  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.216e-01  3.076e-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.076e+00  2.485e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 187.179 48.983

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/694401/cmap_HighResolution_301017601_301276801_4FGL_J1228.7+4858_daily_bin238.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.59e-03', job_status='DONE', photon_flux_upper_limit='3.31e-08', time_completed='2021-09-05 18:23:58.603525', job_id='694401', GAL2='0.92', fit_tolerance='1e-08', EG2='1.08', EG='1.08', time_epoch_completed='1630891438.6', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.92', dlogl='5.68e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.56' WHERE bin_id='238' AND source_name='4FGL J1228.7+4858' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 18:23:58 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0105>
Subject: Job 694401: <4FGL_J1228.7+4858_daily_bin238> in cluster <slac> Done

Job <4FGL_J1228.7+4858_daily_bin238> 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) <bullet0105>, 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:23:59 2021
Results reported at Sun Sep  5 18:23:59 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1228.7+4858_daily_bin238 187.179 48.9827 301017601 301276801 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 :                                   792.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             334.44 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   805 sec.
    Turnaround time :                            807 sec.

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

