/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 165 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 = 7303
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1228.7+4858_daily_bin1180
RA = 187.179, Dec = 48.9827
tmin = 545184001, tmax = 545443201
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='703067', job_status='RUN', time_executed='2021-09-05 18:43:32.565185', time_epoch_executed='1630892612.57' WHERE source_name='4FGL J1228.7+4858' and cadence='daily' and bin_id='1180'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/703067

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/703067/ft1_4FGL_J1228.7+4858_daily_bin1180.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/703067/ft2_4FGL_J1228.7+4858_daily_bin1180.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/703067/ft1_4FGL_J1228.7+4858_daily_bin1180.fits outfile=/scratch/kocevski/703067/ft1_filteredMKT_4FGL_J1228.7+4858_daily_bin1180.fits ra=187.179 dec=48.9827 rad=12.0 tmin=545184001.0 tmax=545443201.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.03
user 3.75
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/703067/ft1_filtered_4FGL_J1228.7+4858_daily_bin1180.fits" evtable="EVENTS" scfile=/scratch/kocevski/703067/ft2_4FGL_J1228.7+4858_daily_bin1180.fits sctable="SC_DATA" outfile=/scratch/kocevski/703067/ltcube_545184001_545443201_4FGL_J1228.7+4858_daily_bin1180.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/703067/ft2_4FGL_J1228.7+4858_daily_bin1180.fits
.....................!
real 11.60
user 11.22
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/703067/ft1_filtered_4FGL_J1228.7+4858_daily_bin1180.fits evtable="EVENTS" scfile=/scratch/kocevski/703067/ft2_4FGL_J1228.7+4858_daily_bin1180.fits sctable="SC_DATA" expcube=/scratch/kocevski/703067/ltcube_545184001_545443201_4FGL_J1228.7+4858_daily_bin1180.fits outfile=/scratch/kocevski/703067/expmap_545184001_545443201_4FGL_J1228.7+4858_daily_bin1180.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/703067/ltcube_545184001_545443201_4FGL_J1228.7+4858_daily_bin1180.fits
.....................!
real 191.02
user 185.13
sys 5.47

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/703067/ft1_filtered_4FGL_J1228.7+4858_daily_bin1180.fits scfile=/scratch/kocevski/703067/ft2_4FGL_J1228.7+4858_daily_bin1180.fits outfile=/scratch/kocevski/703067/cmap_545184001_545443201_4FGL_J1228.7+4858_daily_bin1180.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.76
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/703067/ft1_filtered_4FGL_J1228.7+4858_daily_bin1180.fits scfile=/scratch/kocevski/703067/ft2_4FGL_J1228.7+4858_daily_bin1180.fits outfile=/scratch/kocevski/703067/cmap_HighResolution_545184001_545443201_4FGL_J1228.7+4858_daily_bin1180.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.74
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/703067/ft1_filtered_4FGL_J1228.7+4858_daily_bin1180.fits evtable="EVENTS" scfile=/scratch/kocevski/703067/ft2_4FGL_J1228.7+4858_daily_bin1180.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/703067/Model_4FGL_J1228.7+4858_daily_bin1180.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/703067/ft1_filtered_4FGL_J1228.7+4858_daily_bin1180.fits...................................!
real 18.17
user 15.40
sys 1.23

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/703067/ft1_filtered_4FGL_J1228.7+4858_daily_bin1180.fits', '/scratch/kocevski/703067/ft2_4FGL_J1228.7+4858_daily_bin1180.fits', expMap='/scratch/kocevski/703067/expmap_545184001_545443201_4FGL_J1228.7+4858_daily_bin1180.fits', expCube='/scratch/kocevski/703067/ltcube_545184001_545443201_4FGL_J1228.7+4858_daily_bin1180.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/703067/Model_4FGL_J1228.7+4858_daily_bin1180.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/703067/ft1_filtered_4FGL_J1228.7+4858_daily_bin1180.fits
Spacecraft file(s): /scratch/kocevski/703067/ft2_4FGL_J1228.7+4858_daily_bin1180.fits
Exposure map: /scratch/kocevski/703067/expmap_545184001_545443201_4FGL_J1228.7+4858_daily_bin1180.fits
Exposure cube: /scratch/kocevski/703067/ltcube_545184001_545443201_4FGL_J1228.7+4858_daily_bin1180.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/703067/Model_4FGL_J1228.7+4858_daily_bin1180.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 454.913580261

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 453.768387609

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.0925       1.0000         .10000E-03   10000.    
     2 'norm      '    2.2036       1.0000         .10000E-03   10000.    
     3 'norm      '    .73681E-01   1.0000         .10000E-03   10000.    
     4 'Prefactor '    29.991       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .91012E-01   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .22980E-01   1.0000         .10000E-03   10000.    
     7 'norm      '    2.7286       1.0000         .10000E-03   10000.    
     8 'norm      '    .13552E-02   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .31232E-02   1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.1042       1.0000         .10000E-03   10000.    
    11 'norm      '    3.6111       1.0000         .10000E-03   10000.    
    12 'Prefactor '    108.42       1.0000         .10000E-03   10000.    
    13 'norm      '    .13069E-01   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .41003       1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.9880       1.0000         .10000E-03   10000.    
    16 'norm      '    .17071E-02   1.0000         .10000E-03   10000.    
    17 'norm      '    .50419E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .80918       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .12070       1.0000         .10000E-03   10000.    
    20 'Prefactor '    3.6917       1.0000         .10000E-03   10000.    
    21 'norm      '    .83553E-02   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.0949       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .45943       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=   453.7573     FROM MIGRAD    STATUS=CONVERGED    173 CALLS      403 TOTAL
                     EDM=   .47E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .11042E-03    998.58        .87525E-06** at limit **
   2  norm          2.2065        2.5097        .26780E-06   -.73441E-05
   3  norm          .10000E-03    52.572       -.40742E-05** at limit **
   4  Prefactor     29.778        44.452        .90972E-06   -.35940E-03
   5  Prefactor     .10000E-03    56.050       -.21835E-05** at limit **
   6  Prefactor     .10000E-03    130.87       -.20523E-05** at limit **
   7  norm          2.7286        1.0179         .0000         .0000    
   8  norm          .10000E-03    35.582       -.44909E-06** at limit **
   9  Prefactor     .10000E-03    105.54       -.83738E-06** at limit **
  10  Prefactor     1.1042        1.1851         .0000         .0000    
  11  norm          3.6111        1.0099         .0000         .0000    
  12  Prefactor     107.86        12.050       -.61401E-07    .92016E-02
  13  norm          .10000E-03    24.344       -.62859E-06** at limit **
  14  Prefactor     .10001E-03    287.15        .52686E-05** at limit **
  15  Prefactor     1.9880        1.0358         .0000         .0000    
  16  norm          .10000E-03    40.100       -.21724E-05** at limit **
  17  norm          .10000E-03    10.946       -.28359E-06** at limit **
  18  Prefactor     .10000E-03    154.15       -.43788E-05** at limit **
  19  Prefactor     .10004E-03    242.39        .55115E-05** at limit **
  20  Prefactor     .10018E-03    555.51        .21793E-04** at limit **
  21  norm          .10000E-03    35.431       -.38396E-05** at limit **
  22  Normalizat    1.0977        .66684        .30522E-05    .56447E-05
  23  Prefactor     .45909        .70122       -.51567E-05    .29790E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000110424
  norm       = 2.20647
  norm       = 0.0001
  Prefactor  = 29.7781
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.72859
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.10422
  norm       = 3.61115
  Prefactor  = 107.865
  norm       = 0.0001
  Prefactor  = 0.000100015
  Prefactor  = 1.98797
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.00010004
  Prefactor  = 0.000100184
  norm       = 0.0001
  Normalizat = 1.09773
  Prefactor  = 0.459091
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   453.7573     FROM HESSE     STATUS=FAILED        33 CALLS      436 TOTAL
                     EDM=   .47E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .11042E-03    1002.0        .49821E-02   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          2.2065        2.4909        .69286E-02   -1.5411    
   3  norm          .10000E-03    51.787        .93850E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     29.778        44.263        .18290E-02   -1.4616    
   5  Prefactor     .10000E-03    56.018        .94683E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    131.21        .91374E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          558.03        555.21         .0000       -1.5378    
   8  norm          .10000E-03    .26391       -.44909E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    .24464       -.83738E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     1.1042        1.1851         .0000       -1.5498    
  11  norm          3.6111        1.0099         .0000       -1.5328    
  12  Prefactor     107.86        .99747       -.61401E-07   -1.3627    
  13  norm          .10000E-03    .20649       -.62859E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10001E-03    .29690        .52686E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     1.9880        1.0358         .0000       -1.5426    
  16  norm          .10000E-03    .25923       -.21724E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    .27966       -.28359E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    .38900       -.43788E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10004E-03    .23085        .55115E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10018E-03    .69036E-01    .21793E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    .21163       -.38396E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.0977        1.1604        .30522E-05   -.89825    
  23  Prefactor     .45909        .79764       -.51567E-05   -1.1389    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 4.73904e-11
Minuit parameter uncertainties:
  1  0.207972
  2  2.49102
  3  2.23876e-05
  4  44.3119
  5  1.5479e-05
  6  0.000322688
  7  1.01786
  8  3.19057e-07
  9  1.19685e-05
  10  1.18513
  11  1.00992
  12  0.997467
  13  3.42717e-07
  14  0.000132047
  15  1.03576
  16  1.10485e-06
  17  9.55197e-08
  18  1.89068e-06
  19  0.000192964
  20  0.000225541
  21  1.96078e-06
  22  1.1891
  23  0.818336
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 453.757342091

Extracting fit parameters...

4FGL J1228.7+4858
   Spectrum: PowerLaw
359    Prefactor:  1.000e-04  1.197e-05  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:  4.591e-01  8.183e-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.098e+00  1.189e+00  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/703067/likelihoodResults_545184001_545443201_4FGL_J1228.7+4858_daily_bin1180.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) = 453.757386052
delta logL = -4.39604317535e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 453.757342474
delta logL = -3.82234361496e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10518E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.1415       1.0000          .0000       10.000    
     3 'Normalizat'    1.0977       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .45911       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=   453.7573     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      269 TOTAL
                     EDM=   .44E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10737E-03    93.247        .16591E-01** at limit **
   2  Index         2.9947        8.4760        .50000        .35418E-05
   3  Normalizat    1.0977        .15479E-01    .20346E-03   -.78675E-04
   4  Prefactor     .45909        .16447E-01    .32222E-03   -.27258E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000107373
  Index      = 2.99469
  Normalizat = 1.09773
  Prefactor  = 0.459095
 **********
 **   18 **HESSE 
 **********

 FCN=   453.7573     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      298 TOTAL
                     EDM=   .40E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10737E-03    802.67        .17694E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.9947        8.4374        .50000       -.41268    
   3  Normalizat    1.0977        .46451E-01    .40693E-04   -.89825    
   4  Prefactor     .45909        .49351E-01    .12889E-04   -1.1389    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.97434e-09
Minuit parameter uncertainties:
  1  0.155993
  2  1342.46
  3  0.0464531
  4  0.0493557
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/703067': 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) = 453.757342362
delta logL = -2.70931536761e-07

Extracting fit parameters...

4FGL J1228.7+4858
   Spectrum: PowerLaw
359    Prefactor:  1.074e-04  1.560e-01  1.000e-04  1.000e+04 ( 1.000e-13)
360        Index:  2.995e+00  1.342e+03  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:  4.591e-01  4.936e-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.098e+00  4.645e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/703067/cmap_HighResolution_545184001_545443201_4FGL_J1228.7+4858_daily_bin1180.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.50e-02', job_status='DONE', photon_flux_upper_limit='9.61e-07', time_completed='2021-09-05 18:49:19.899934', job_id='703067', GAL2='0.46', fit_tolerance='1e-08', EG2='1.10', EG='1.10', time_epoch_completed='1630892959.9', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='101', GAL='0.46', dlogl='-2.71e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.56' WHERE bin_id='1180' AND source_name='4FGL J1228.7+4858' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 18:49:19 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0030>
Subject: Job 703067: <4FGL_J1228.7+4858_daily_bin1180> in cluster <slac> Done

Job <4FGL_J1228.7+4858_daily_bin1180> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Sun Sep  5 18:40:21 2021
Job was executed on host(s) <bullet0030>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 18:40:24 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:40:24 2021
Terminated at Sun Sep  5 18:49:20 2021
Results reported at Sun Sep  5 18:49:20 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1228.7+4858_daily_bin1180 187.179 48.9827 545184001 545443201 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 :                                   340.16 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             360.67 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   536 sec.
    Turnaround time :                            539 sec.

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

