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


Performing analysis on: 4FGL_J1228.7+4858_daily_bin49
RA = 187.179, Dec = 48.9827
tmin = 252028801, tmax = 252288001
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='692763', job_status='RUN', time_executed='2021-09-05 18:09:39.162698', time_epoch_executed='1630890579.16' WHERE source_name='4FGL J1228.7+4858' and cadence='daily' and bin_id='49'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/692763

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/692763/ft1_4FGL_J1228.7+4858_daily_bin49.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/692763/ft2_4FGL_J1228.7+4858_daily_bin49.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/692763/ft1_4FGL_J1228.7+4858_daily_bin49.fits outfile=/scratch/kocevski/692763/ft1_filteredMKT_4FGL_J1228.7+4858_daily_bin49.fits ra=187.179 dec=48.9827 rad=12.0 tmin=252028801.0 tmax=252288001.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.43
user 1.24
sys 0.17

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/692763/ft2_4FGL_J1228.7+4858_daily_bin49.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/692763/ft1_filteredMKT_4FGL_J1228.7+4858_daily_bin49.fits evtable="EVENTS" outfile="/scratch/kocevski/692763/ft1_filtered_4FGL_J1228.7+4858_daily_bin49.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/692763/ft1_filtered_4FGL_J1228.7+4858_daily_bin49.fits" evtable="EVENTS" scfile=/scratch/kocevski/692763/ft2_4FGL_J1228.7+4858_daily_bin49.fits sctable="SC_DATA" outfile=/scratch/kocevski/692763/ltcube_252028801_252288001_4FGL_J1228.7+4858_daily_bin49.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/692763/ft2_4FGL_J1228.7+4858_daily_bin49.fits
.....................!
real 13.00
user 12.65
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/692763/ft1_filtered_4FGL_J1228.7+4858_daily_bin49.fits evtable="EVENTS" scfile=/scratch/kocevski/692763/ft2_4FGL_J1228.7+4858_daily_bin49.fits sctable="SC_DATA" expcube=/scratch/kocevski/692763/ltcube_252028801_252288001_4FGL_J1228.7+4858_daily_bin49.fits outfile=/scratch/kocevski/692763/expmap_252028801_252288001_4FGL_J1228.7+4858_daily_bin49.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/692763/ltcube_252028801_252288001_4FGL_J1228.7+4858_daily_bin49.fits
.....................!
real 190.84
user 186.30
sys 4.15

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/692763/ft1_filtered_4FGL_J1228.7+4858_daily_bin49.fits scfile=/scratch/kocevski/692763/ft2_4FGL_J1228.7+4858_daily_bin49.fits outfile=/scratch/kocevski/692763/cmap_252028801_252288001_4FGL_J1228.7+4858_daily_bin49.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.55
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/692763/ft1_filtered_4FGL_J1228.7+4858_daily_bin49.fits scfile=/scratch/kocevski/692763/ft2_4FGL_J1228.7+4858_daily_bin49.fits outfile=/scratch/kocevski/692763/cmap_HighResolution_252028801_252288001_4FGL_J1228.7+4858_daily_bin49.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.55
user 0.38
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .50040E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    1.9261       1.0000         .10000E-03   10000.    
     3 'norm      '    3.5898       1.0000         .10000E-03   10000.    
     4 'Prefactor '    6.2548       1.0000         .10000E-03   10000.    
     5 'Prefactor '    8.7753       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .11582E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10082E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    54.993       1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.5257       1.0000         .10000E-03   10000.    
    11 'norm      '    2.2688       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10628E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    4.2564       1.0000         .10000E-03   10000.    
    14 'Prefactor '    17.490       1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.3472       1.0000         .10000E-03   10000.    
    16 'norm      '    6.2549       1.0000         .10000E-03   10000.    
    17 'norm      '    .92030       1.0000         .10000E-03   10000.    
    18 'Prefactor '    15.888       1.0000         .10000E-03   10000.    
    19 'Prefactor '    17.699       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .27513E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10048E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.2400       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .57965       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=   6979.069     FROM MIGRAD    STATUS=CONVERGED    578 CALLS     2255 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    12.215        .38140E-07** at limit **
   2  norm          1.9194        1.3968       -.36328E-07   -.70366E-04
   3  norm          3.5713        4.8829       -.70000E-07   -.27225E-04
   4  Prefactor     6.2502        3.5885        .16792E-06   -.86607E-04
   5  Prefactor     9.3611        60.130        .36722E-05    .36099E-05
   6  Prefactor     .10000E-03    34.769        .14897E-06** at limit **
   7  norm          .10000E-03    .86723        .11898E-06** at limit **
   8  norm          .10000E-03    7.2631        .51884E-07** at limit **
   9  Prefactor     55.350        22.358        .19587E-06   -.62667E-05
  10  Prefactor     2.5257        3.4400        .14206E-07   -.76152E-04
  11  norm          2.2693        1.6321       -.14018E-07   -.21823E-04
  12  Prefactor     .10000E-03    9.6732        .15254E-07** at limit **
  13  norm          4.2592        2.0811        .40573E-07    .88774E-06
  14  Prefactor     18.132        29.809        .71117E-05    .64525E-04
  15  Prefactor     2.3535        3.0118        .13133E-05   -.23008E-02
  16  norm          6.2633        7.3421       -.25402E-06   -.57506E-05
  17  norm          .92656        3.2717       -.21649E-05   -.72678E-03
  18  Prefactor     15.540        30.447        .16592E-04    .18137E-03
  19  Prefactor     17.929        14.187       -.35758E-06    .11409E-04
  20  Prefactor     .10000E-03    15.740       -.61320E-06** at limit **
  21  norm          .10000E-03    2.4515       -.55964E-07** at limit **
  22  Normalizat    1.2396        .15738       -.83808E-06    .65853E-04
  23  Prefactor     .57921        .18451       -.10438E-05   -.10473E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 1.91943
  norm       = 3.57131
  Prefactor  = 6.25019
  Prefactor  = 9.36113
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 55.35
  Prefactor  = 2.52566
  norm       = 2.2693
  Prefactor  = 0.0001
  norm       = 4.25924
  Prefactor  = 18.1323
  Prefactor  = 2.35348
  norm       = 6.26329
  norm       = 0.926562
  Prefactor  = 15.5396
  Prefactor  = 17.9288
  Prefactor  = 0.000100002
  norm       = 0.0001
  Normalizat = 1.23961
  Prefactor  = 0.57921
 **********
 **   18 **HESSE 
 **********

 FCN=   6979.069     FROM HESSE     STATUS=OK           376 CALLS     2631 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    12.215        .21157E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.9194        1.3954        .71383E-04   -1.5431    
   3  norm          3.5713        4.8733        .20618E-03   -1.5330    
   4  Prefactor     6.2502        3.5831        .11312E-03   -1.5208    
   5  Prefactor     9.3611        60.610        .13531E-03   -1.5096    
   6  Prefactor     .10000E-03    35.334        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    1.3021        .15018E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    7.4892        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     55.350        22.321        .54091E-04   -1.4219    
  10  Prefactor     2.5257        3.4282        .17158E-03   -1.5390    
  11  norm          2.2693        1.6386        .85999E-04   -1.5407    
  12  Prefactor     .10000E-03    9.6988        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          4.2592        2.0805        .81595E-04   -1.5295    
  14  Prefactor     18.132        29.707        .95769E-04   -1.4856    
  15  Prefactor     2.3535        6.9185        .13379E-02   -1.5401    
  16  norm          6.2633        7.3409        .16051E-03   -1.5207    
  17  norm          .92656        3.2679        .26389E-03   -1.5515    
  18  Prefactor     15.540        30.572        .10048E-03   -1.4919    
  19  Prefactor     17.929        14.169        .95202E-04   -1.4861    
  20  Prefactor     .10000E-03    15.814        .21426E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    2.5107        .25484E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.2396        .17778        .20213E-03   -.85387    
  23  Prefactor     .57921        .20727        .33899E-03   -1.0847    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.17808e-08
Minuit parameter uncertainties:
  1  2.17871e-06
  2  1.39539
  3  4.87381
  4  3.58322
  5  47.7098
  6  5.30968e-05
  7  1.34068e-05
  8  1.37507e-05
  9  22.3243
  10  3.42845
  11  1.63862
  12  3.69349e-06
  13  2.08052
  14  29.7317
  15  6.92081
  16  7.34196
  17  3.26854
  18  30.6025
  19  14.172
  20  0.000317737
  21  1.29513e-05
  22  0.177872
  23  0.207542
Done.

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

Extracting fit parameters...

4FGL J1228.7+4858
   Spectrum: PowerLaw
359    Prefactor:  5.535e+01  2.232e+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:  5.792e-01  2.075e-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.240e+00  1.779e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 14.70
Ra Dec: 187.179 48.983
Photon Index (Fixed Index): 2.56 +/- 0.00
Photon Flux (Fixed Index): 9.24e-08 +/- 3.72e-08
Energy Flux (Fixed Index): 2.53e-05 +/- 1.02e-05

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) = 6977.62876646
delta logL = 1.43994883325

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6977.62757131
delta logL = 1.44114398231

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    83.003       1.0000         .10000E-03   10000.    
     2 'Index     '    1.9907       1.0000          .0000       10.000    
     3 'Normalizat'    1.2800       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .54333       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=   6977.628     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      237 TOTAL
                     EDM=   .45E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     83.108        68.875        .11022E-02    .52500E-05
   2  Index         1.9919        .55406        .13934        .39486E-04
   3  Normalizat    1.2797        .15877        .33174E-01   -.27647E-04
   4  Prefactor     .54352        .18729        .78769E-01    .25909E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 83.1076
  Index      = 1.99191
  Normalizat = 1.27967
  Prefactor  = 0.543523
 **********
 **   18 **HESSE 
 **********

 FCN=   6977.628     FROM HESSE     STATUS=OK            29 CALLS      266 TOTAL
                     EDM=   .21E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     83.108        34.987        .44089E-04   -1.3882    
   2  Index         1.9919        .30934        .55833E-02   -.64552    
   3  Normalizat    1.2797        .17389        .19947E-03   -.84175    
   4  Prefactor     .54352        .20503        .34884E-03   -1.1002    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.05491e-12
Minuit parameter uncertainties:
  1  34.9957
  2  0.309653
  3  0.173967
  4  0.205308
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/692763': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6977.62755716
delta logL = 1.44115813858

Extracting fit parameters...

4FGL J1228.7+4858
   Spectrum: PowerLaw
359    Prefactor:  8.311e+01  3.500e+01  1.000e-04  1.000e+04 ( 1.000e-13)
360        Index:  1.992e+00  3.097e-01  0.000e+00  1.000e+01 (-1.000e+00)
361        Scale:  8.802e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
687    Prefactor:  5.435e-01  2.053e-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.280e+00  1.740e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 17.61
Ra Dec: 187.179 48.983
Photon Index (Free Index): 1.99 +/- 0.31
Photon Flux (Free Index): 6.37e-08 +/- 3.31e-08
Energy Flux (Free Index): 4.49e-05 +/- 2.79e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/692763/cmap_HighResolution_252028801_252288001_4FGL_J1228.7+4858_daily_bin49.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='9.24e-08', energy_flux2='4.49e-05', photon_flux_error='3.72e-08', dlogl='1.44e+00', energy_flux='2.53e-05', photon_flux2='6.37e-08', job_status='DONE', time_completed='2021-09-05 18:20:50.967473', photon_index_error2='0.31', photon_index2='1.99', ts='14.70', fit_tolerance='1e-08', GAL='0.58', photon_index_error='0.00', energy_flux_error2='2.79e-05', EG='1.24', time_epoch_completed='1630891250.97', return_code='0', job_id='692763', GAL2='0.54', EG2='1.28', return_code2='0', energy_flux_error='1.02e-05', photon_flux_error2='3.31e-08', ts2='17.61', photon_index='2.56' WHERE bin_id='49' AND source_name='4FGL J1228.7+4858' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 18:20:50 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0091>
Subject: Job 692763: <4FGL_J1228.7+4858_daily_bin49> in cluster <slac> Done

Job <4FGL_J1228.7+4858_daily_bin49> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sun Sep  5 18:05:25 2021
Job was executed on host(s) <bullet0091>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 18:05:28 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:28 2021
Terminated at Sun Sep  5 18:20:51 2021
Results reported at Sun Sep  5 18:20:51 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1228.7+4858_daily_bin49 187.179 48.9827 252028801 252288001 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 :                                   669.04 sec.
    Max Memory :                                 1168 MB
    Average Memory :                             257.66 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   923 sec.
    Turnaround time :                            926 sec.

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

