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


Performing analysis on: 4FGL_J1228.7+4858_daily_bin37
RA = 187.179, Dec = 48.9827
tmin = 248918401, tmax = 249177601
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='692745', job_status='RUN', time_executed='2021-09-05 18:09:28.533718', time_epoch_executed='1630890568.53' WHERE source_name='4FGL J1228.7+4858' and cadence='daily' and bin_id='37'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/692745

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/692745/ft1_4FGL_J1228.7+4858_daily_bin37.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/692745/ft2_4FGL_J1228.7+4858_daily_bin37.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/692745/ft1_4FGL_J1228.7+4858_daily_bin37.fits outfile=/scratch/kocevski/692745/ft1_filteredMKT_4FGL_J1228.7+4858_daily_bin37.fits ra=187.179 dec=48.9827 rad=12.0 tmin=248918401.0 tmax=249177601.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 1.96
user 1.76
sys 0.17

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/692745/ft1_filtered_4FGL_J1228.7+4858_daily_bin37.fits" evtable="EVENTS" scfile=/scratch/kocevski/692745/ft2_4FGL_J1228.7+4858_daily_bin37.fits sctable="SC_DATA" outfile=/scratch/kocevski/692745/ltcube_248918401_249177601_4FGL_J1228.7+4858_daily_bin37.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/692745/ft2_4FGL_J1228.7+4858_daily_bin37.fits
.....................!
real 12.96
user 12.56
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/692745/ft1_filtered_4FGL_J1228.7+4858_daily_bin37.fits evtable="EVENTS" scfile=/scratch/kocevski/692745/ft2_4FGL_J1228.7+4858_daily_bin37.fits sctable="SC_DATA" expcube=/scratch/kocevski/692745/ltcube_248918401_249177601_4FGL_J1228.7+4858_daily_bin37.fits outfile=/scratch/kocevski/692745/expmap_248918401_249177601_4FGL_J1228.7+4858_daily_bin37.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/692745/ltcube_248918401_249177601_4FGL_J1228.7+4858_daily_bin37.fits
.....................!
real 191.59
user 186.18
sys 4.72

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

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

This is gtbin version HEAD
real 0.53
user 0.36
sys 0.16

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/692745/ft1_filtered_4FGL_J1228.7+4858_daily_bin37.fits evtable="EVENTS" scfile=/scratch/kocevski/692745/ft2_4FGL_J1228.7+4858_daily_bin37.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/692745/Model_4FGL_J1228.7+4858_daily_bin37.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/692745/ft1_filtered_4FGL_J1228.7+4858_daily_bin37.fits.....................!
real 42.09
user 40.76
sys 1.16

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    3.6550       1.0000         .10000E-03   10000.    
     3 'norm      '    8.8684       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10094E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    7.4565       1.0000         .10000E-03   10000.    
     9 'Prefactor '    8.3312       1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.9778       1.0000         .10000E-03   10000.    
    11 'norm      '    4.8401       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10240E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    1.4324       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .49610E-02   1.0000         .10000E-03   10000.    
    17 'norm      '    3.9975       1.0000         .10000E-03   10000.    
    18 'Prefactor '    50.310       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .12320E-01   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .32585E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    15.745       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .89933       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .97135       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=   4493.317     FROM MIGRAD    STATUS=CONVERGED    912 CALLS     2569 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    15.501        .18142E-02** at limit **
   2  norm          3.6551        1.4783        .50091E-04   -.29959E-04
   3  norm          8.8660        8.8780        .13459E-03    .20187E-04
   4  Prefactor     .10000E-03    3.0972        .22533E-03** at limit **
   5  Prefactor     .10000E-03    20.162        .18142E-02** at limit **
   6  Prefactor     .10000E-03    11.959        .18142E-02** at limit **
   7  norm          .10000E-03    .98558        .64465E-03** at limit **
   8  norm          7.4595        10.290        .14687E-03    .61924E-06
   9  Prefactor     8.2521        30.002        .13889E-03    .55742E-04
  10  Prefactor     3.9736        7.8699        .20223E-03   -.60152E-05
  11  norm          4.8411        3.3819        .45420E-03    .19481E-03
  12  Prefactor     .10000E-03    19.988        .18142E-02** at limit **
  13  norm          1.4322        1.4029        .75281E-04    .47117E-04
  14  Prefactor     .10000E-03    15.940        .18142E-02** at limit **
  15  Prefactor     .10000E-03    10.109        .18142E-02** at limit **
  16  norm          .10001E-03    11.538        .74717E-01** at limit **
  17  norm          3.9968        4.8701        .15434E-03    .14128E-03
  18  Prefactor     50.311        42.514        .56539E-04    .26140E-05
  19  Prefactor     .10004E-03    229.94        .58446E-02** at limit **
  20  Prefactor     .10001E-03    52.079        .21355E-02** at limit **
  21  norm          15.746        7.2602        .10094E-03    .48256E-03
  22  Normalizat    .89914        .21166        .22677E-03    .38800E-03
  23  Prefactor     .97167        .25392        .26900E-03   -.10701E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100002
  norm       = 3.65505
  norm       = 8.86596
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 7.45946
  Prefactor  = 8.2521
  Prefactor  = 3.97357
  norm       = 4.84108
  Prefactor  = 0.0001
  norm       = 1.43223
  Prefactor  = 0.000100002
  Prefactor  = 0.000100001
  norm       = 0.000100011
  norm       = 3.99678
  Prefactor  = 50.3109
  Prefactor  = 0.000100041
  Prefactor  = 0.000100007
  norm       = 15.7462
  Normalizat = 0.89914
  Prefactor  = 0.971666
 **********
 **   18 **HESSE 
 **********

 FCN=   4493.317     FROM HESSE     STATUS=OK           356 CALLS     2925 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    15.501        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          3.6551        1.4783        .20037E-05   -1.5326    
   3  norm          8.8660        8.8781        .53838E-05   -1.5112    
   4  Prefactor     .10000E-03    3.0973        .45067E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    20.162        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    11.960        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    .98565        .12893E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          7.4595        10.286        .58749E-05   -1.5162    
   9  Prefactor     8.2521        29.986        .55557E-05   -1.5133    
  10  Prefactor     3.9736        7.8694        .80892E-05   -1.5309    
  11  norm          4.8411        3.3818        .18168E-04   -1.5268    
  12  Prefactor     .10000E-03    19.992        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.4322        1.4029        .30113E-05   -1.5469    
  14  Prefactor     .10000E-03    15.940        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    10.111        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10001E-03    11.203        .76807E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          3.9968        4.8697        .61734E-05   -1.5308    
  18  Prefactor     50.311        42.491        .22616E-05   -1.4288    
  19  Prefactor     .10004E-03    238.62        .23379E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10001E-03    52.088        .42709E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          15.746        7.2324        .20187E-04   -1.4914    
  22  Normalizat    .89914        .21184        .45354E-04   -.96490    
  23  Prefactor     .97167        .25415        .10760E-04   -.93680    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.09253e-09
Minuit parameter uncertainties:
  1  0.000341111
  2  1.4783
  3  8.87941
  4  3.40587e-06
  5  8.93358e-05
  6  1.48348e-05
  7  1.58957e-06
  8  10.2883
  9  30.0404
  10  7.87143
  11  3.38197
  12  0.000187951
  13  1.40292
  14  0.000309736
  15  0.000228321
  16  0.00071477
  17  4.87016
  18  42.5169
  19  0.00631317
  20  0.00119328
  21  7.23278
  22  0.212035
  23  0.254465
Done.

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

Extracting fit parameters...

4FGL J1228.7+4858
   Spectrum: PowerLaw
359    Prefactor:  8.252e+00  3.004e+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:  9.717e-01  2.545e-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:  8.991e-01  2.120e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/692745/likelihoodResults_248918401_249177601_4FGL_J1228.7+4858_daily_bin37.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) = 4492.65460021
delta logL = 0.662282223718

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4492.6101756
delta logL = 0.706706835178

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.6284       1.0000         .10000E-03   10000.    
     2 'Index     '    4.3550       1.0000          .0000       10.000    
     3 'Normalizat'    .83759       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0191       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=   4492.610     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      256 TOTAL
                     EDM=   .77E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.6235        28.624        .82861E-02    .14292E-03
   2  Index         4.3565        3.1894        .13602        .61178E-04
   3  Normalizat    .83777        .47752E-01    .44099E-01   -.94926E-04
   4  Prefactor     1.0189        .58645E-01    .42235E-01   -.17972E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.62349
  Index      = 4.35648
  Normalizat = 0.837767
  Prefactor  = 1.01892
 **********
 **   18 **HESSE 
 **********

 FCN=   4492.610     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      289 TOTAL
                     EDM=   .51E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.6235        64.985        .73647E-04   -1.5453    
   2  Index         4.3565        7.1639        .48041E-02   -.12906    
   3  Normalizat    .83777        .19183        .23378E-03   -.98683    
   4  Prefactor     1.0189        .23320        .26330E-03   -.92101    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.05372e-10
Minuit parameter uncertainties:
  1  20.5662
  2  6.6165
  3  0.191986
  4  0.233428
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/692745': 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) = 4492.61017482
delta logL = 0.70670761965

Extracting fit parameters...

4FGL J1228.7+4858
   Spectrum: PowerLaw
359    Prefactor:  1.623e+00  2.057e+01  1.000e-04  1.000e+04 ( 1.000e-13)
360        Index:  4.356e+00  6.617e+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:  1.019e+00  2.334e-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:  8.378e-01  1.920e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.62
Ra Dec: 187.179 48.983
Photon Index (Free Index): 4.36 +/- 6.62
Photon Flux (Free Index): 6.33e-08 +/- 5.86e-08
Energy Flux (Free Index): 9.00e-06 +/- 1.25e-05

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/692745/cmap_HighResolution_248918401_249177601_4FGL_J1228.7+4858_daily_bin37.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.81e-03', comment='SUCCESS', energy_flux2='9.00e-06', dlogl='7.07e-01', photon_flux2='6.33e-08', job_status='DONE', time_completed='2021-09-05 18:19:51.460396', photon_index_error2='6.62', photon_index2='4.36', ts='0.12', fit_tolerance='1e-08', GAL='0.97', photon_index_error='0.00', photon_flux_upper_limit='1.13e-07', energy_flux_error2='1.25e-05', EG='0.90', time_epoch_completed='1630891191.46', return_code='0', job_id='692745', GAL2='1.02', EG2='0.84', return_code2='102', photon_flux_error2='5.86e-08', ts2='1.62', photon_index='2.56' WHERE bin_id='37' AND source_name='4FGL J1228.7+4858' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 18:19:51 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0217>
Subject: Job 692745: <4FGL_J1228.7+4858_daily_bin37> in cluster <slac> Done

Job <4FGL_J1228.7+4858_daily_bin37> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sun Sep  5 18:05:24 2021
Job was executed on host(s) <bullet0217>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 18:05:26 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep  5 18:05:26 2021
Terminated at Sun Sep  5 18:19:51 2021
Results reported at Sun Sep  5 18:19:51 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1228.7+4858_daily_bin37 187.179 48.9827 248918401 249177601 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 :                                   621.09 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             222.17 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   865 sec.
    Turnaround time :                            867 sec.

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

