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


Performing analysis on: 4FGL_J1028.4-0234_daily_bin697
RA = 157.121, Dec = -2.5829
tmin = 419990401, tmax = 420249601
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='907562', job_status='RUN', time_executed='2021-09-01 23:32:56.723035', time_epoch_executed='1630564376.72' WHERE source_name='4FGL J1028.4-0234' and cadence='daily' and bin_id='697'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/907562

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/907562/ft1_4FGL_J1028.4-0234_daily_bin697.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/907562/ft2_4FGL_J1028.4-0234_daily_bin697.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/907562/ft1_4FGL_J1028.4-0234_daily_bin697.fits outfile=/scratch/kocevski/907562/ft1_filteredMKT_4FGL_J1028.4-0234_daily_bin697.fits ra=157.121 dec=-2.5829 rad=12.0 tmin=419990401.0 tmax=420249601.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 2.79
user 2.59
sys 0.19

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/907562/ft2_4FGL_J1028.4-0234_daily_bin697.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/907562/ft2_4FGL_J1028.4-0234_daily_bin697.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/907562/ft1_filteredMKT_4FGL_J1028.4-0234_daily_bin697.fits evtable="EVENTS" outfile="/scratch/kocevski/907562/ft1_filtered_4FGL_J1028.4-0234_daily_bin697.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.44
user 0.28
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/907562/ft1_filtered_4FGL_J1028.4-0234_daily_bin697.fits" evtable="EVENTS" scfile=/scratch/kocevski/907562/ft2_4FGL_J1028.4-0234_daily_bin697.fits sctable="SC_DATA" outfile=/scratch/kocevski/907562/ltcube_419990401_420249601_4FGL_J1028.4-0234_daily_bin697.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/907562/ft2_4FGL_J1028.4-0234_daily_bin697.fits
.....................!
real 10.85
user 10.53
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/907562/ft1_filtered_4FGL_J1028.4-0234_daily_bin697.fits evtable="EVENTS" scfile=/scratch/kocevski/907562/ft2_4FGL_J1028.4-0234_daily_bin697.fits sctable="SC_DATA" expcube=/scratch/kocevski/907562/ltcube_419990401_420249601_4FGL_J1028.4-0234_daily_bin697.fits outfile=/scratch/kocevski/907562/expmap_419990401_420249601_4FGL_J1028.4-0234_daily_bin697.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/907562/ltcube_419990401_420249601_4FGL_J1028.4-0234_daily_bin697.fits
.....................!
real 155.68
user 151.74
sys 3.68

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 164 point sources and 0 extended sources

Setting source of interest to:
4FGL J1028.4-0234 @ 157.121 -2.5829

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/907562/ft1_filtered_4FGL_J1028.4-0234_daily_bin697.fits scfile=/scratch/kocevski/907562/ft2_4FGL_J1028.4-0234_daily_bin697.fits outfile=/scratch/kocevski/907562/cmap_419990401_420249601_4FGL_J1028.4-0234_daily_bin697.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=157.121 yref=-2.5829 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.46
user 0.32
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/907562/ft1_filtered_4FGL_J1028.4-0234_daily_bin697.fits scfile=/scratch/kocevski/907562/ft2_4FGL_J1028.4-0234_daily_bin697.fits outfile=/scratch/kocevski/907562/cmap_HighResolution_419990401_420249601_4FGL_J1028.4-0234_daily_bin697.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=157.121 yref=-2.5829 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.48
user 0.34
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/907562/ft1_filtered_4FGL_J1028.4-0234_daily_bin697.fits evtable="EVENTS" scfile=/scratch/kocevski/907562/ft2_4FGL_J1028.4-0234_daily_bin697.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/907562/Model_4FGL_J1028.4-0234_daily_bin697.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/907562/ft1_filtered_4FGL_J1028.4-0234_daily_bin697.fits....................!
real 43.30
user 42.20
sys 1.01

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/907562/ft1_filtered_4FGL_J1028.4-0234_daily_bin697.fits', '/scratch/kocevski/907562/ft2_4FGL_J1028.4-0234_daily_bin697.fits', expMap='/scratch/kocevski/907562/expmap_419990401_420249601_4FGL_J1028.4-0234_daily_bin697.fits', expCube='/scratch/kocevski/907562/ltcube_419990401_420249601_4FGL_J1028.4-0234_daily_bin697.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/907562/Model_4FGL_J1028.4-0234_daily_bin697.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1028.4-0234'

4FGL J1028.4-0234
   Spectrum: PowerLaw
235    Prefactor:  1.582e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
236        Index:  2.613e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
237        Scale:  6.037e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/907562/ft1_filtered_4FGL_J1028.4-0234_daily_bin697.fits
Spacecraft file(s): /scratch/kocevski/907562/ft2_4FGL_J1028.4-0234_daily_bin697.fits
Exposure map: /scratch/kocevski/907562/expmap_419990401_420249601_4FGL_J1028.4-0234_daily_bin697.fits
Exposure cube: /scratch/kocevski/907562/ltcube_419990401_420249601_4FGL_J1028.4-0234_daily_bin697.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/907562/Model_4FGL_J1028.4-0234_daily_bin697.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) = 5257.53876102

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.3784       1.0000         .10000E-03   10000.    
     2 'norm      '    3.0138       1.0000         .10000E-03   10000.    
     3 'Prefactor '    23.564       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10417E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    54.508       1.0000         .10000E-03   10000.    
     6 'norm      '    .10026E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    6.5027       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.1285       1.0000         .10000E-03   10000.    
    10 'Prefactor '    21.907       1.0000         .10000E-03   10000.    
    11 'norm      '    6.2853       1.0000         .10000E-03   10000.    
    12 'Prefactor '    7.1583       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.7845       1.0000         .10000E-03   10000.    
    15 'norm      '    1.1528       1.0000         .10000E-03   10000.    
    16 'norm      '    15.998       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    .60831       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.1830       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5280E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5257.527     FROM MIGRAD    STATUS=CONVERGED    362 CALLS     1843 TOTAL
                     EDM=   .54E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.3783        1.0993        .69660E-08   -.40897E-05
   2  norm          3.0137        2.4202        .93986E-08   -.11093E-04
   3  Prefactor     23.558        16.093       -.11055E-05   -.21454E-04
   4  Prefactor     .10000E-03    23.334        .21198E-05** at limit **
   5  Prefactor     54.549        39.659        .60239E-05    .99262E-04
   6  norm          .10000E-03    8.0178       -.16957E-06** at limit **
   7  Prefactor     6.5395        12.770       -.48040E-05    .36752E-04
   8  Prefactor     .10000E-03    23.960       -.20400E-05** at limit **
   9  Prefactor     2.9376        382.36       -.45662E-05    .19138E-04
  10  Prefactor     21.957        25.489       -.48847E-05    .22533E-04
  11  norm          6.2853        2.0340       -.82432E-08    .45460E-04
  12  Prefactor     7.1570        6.1949       -.43633E-07   -.45717E-05
  13  Prefactor     .10000E-03    1.0693       -.13308E-06** at limit **
  14  Prefactor     2.7854        6.5367        .54828E-06    .17907E-04
  15  norm          1.1530        .56568        .11353E-07    .21334E-04
  16  norm          15.998        11.172        .16092E-06    .30027E-05
  17  Prefactor     .10000E-03    4.2467       -.78477E-07** at limit **
  18  Normalizat    .60834        .23860       -.96751E-06    .22758E-05
  19  Prefactor     1.1829        .17806       -.22439E-06   -.14106E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 5.3783
  norm       = 3.01367
  Prefactor  = 23.5582
  Prefactor  = 0.0001
  Prefactor  = 54.549
  norm       = 0.0001
  Prefactor  = 6.53954
  Prefactor  = 0.0001
  Prefactor  = 2.93764
  Prefactor  = 21.9569
  norm       = 6.28529
  Prefactor  = 7.15699
  Prefactor  = 0.0001
  Prefactor  = 2.78539
  norm       = 1.15297
  norm       = 15.998
  Prefactor  = 0.0001
  Normalizat = 0.608339
  Prefactor  = 1.18291
 **********
 **   18 **HESSE 
 **********

 FCN=   5257.527     FROM HESSE     STATUS=OK           276 CALLS     2119 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.3783        1.0995        .32983E-04   -1.5244    
   2  norm          3.0137        2.4232        .97932E-04   -1.5361    
   3  Prefactor     23.558        16.076        .82517E-04   -1.4737    
   4  Prefactor     .10000E-03    23.358        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     54.549        39.838        .27165E-03   -1.4229    
   6  norm          .10000E-03    8.0199        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     6.5395        12.909        .15738E-03   -1.5196    
   8  Prefactor     .10000E-03    23.942        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     2.9376        432.29        .22921E-02   -1.5365    
  10  Prefactor     21.957        26.405        .85577E-04   -1.4770    
  11  norm          6.2853        2.0340        .56004E-04   -1.5207    
  12  Prefactor     7.1570        6.1923        .14993E-03   -1.5173    
  13  Prefactor     .10000E-03    1.0763        .73170E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     2.7854        6.5058        .24385E-03   -1.5374    
  15  norm          1.1530        .56508        .36463E-04   -1.5493    
  16  norm          15.998        11.172        .10014E-03   -1.4908    
  17  Prefactor     .10000E-03    4.2621        .14579E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    .60834        .26369        .36257E-03   -1.0763    
  19  Prefactor     1.1829        .19857        .21050E-03   -.86859    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.14962e-10
Minuit parameter uncertainties:
  1  1.09946
  2  2.42326
  3  16.0791
  4  1.00499e-06
  5  39.8579
  6  7.17903e-05
  7  12.9147
  8  0.00010876
  9  71.8046
  10  26.4192
  11  2.03406
  12  6.19281
  13  4.63797e-06
  14  6.50741
  15  0.565082
  16  11.173
  17  2.37995e-06
  18  0.264232
  19  0.198696
Done.

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

Extracting fit parameters...

4FGL J1028.4-0234
   Spectrum: PowerLaw
235    Prefactor:  7.157e+00  6.193e+00  1.000e-04  1.000e+04 ( 1.000e-12)
236        Index:  2.613e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
237        Scale:  6.037e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
525    Prefactor:  1.183e+00  1.987e-01  0.000e+00  1.000e+01 ( 1.000e+00)
526        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
527        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
524   Normalization:  6.083e-01  2.642e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.56
Ra Dec: 157.121 -2.583
Photon Index (Fixed Index): 2.61 +/- 0.00
Photon Flux (Fixed Index): 4.88e-08 +/- 4.21e-08
Energy Flux (Fixed Index): 1.26e-05 +/- 1.09e-05

TS (Fixed Index): 2.56
Ra Dec: 157.121 -2.583
Photon Flux Upper Limit: 1.50e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.17e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/907562/likelihoodResults_419990401_420249601_4FGL_J1028.4-0234_daily_bin697.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) = 5256.62317269
delta logL = 0.903912992104

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5256.59333932
delta logL = 0.933746357106

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.6688       1.0000         .10000E-03   10000.    
     2 'Index     '    1.5729       1.0000          .0000       10.000    
     3 'Normalizat'    .65415       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1598       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5280E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5256.593     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      211 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.6741        4.7588        .42178E-02   -.16239E-02
   2  Index         1.5733        .40706        .20254       -.70634E-04
   3  Normalizat    .65408        .22149        .79141E-01    .24679E-04
   4  Prefactor     1.1598        .17500        .35660E-01   -.20338E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.67412
  Index      = 1.57332
  Normalizat = 0.654081
  Prefactor  = 1.15978
 **********
 **   18 **HESSE 
 **********

 FCN=   5256.593     FROM HESSE     STATUS=OK            31 CALLS      242 TOTAL
                     EDM=   .81E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.6741        5.7788        .69662E-03   -1.5232    
   2  Index         1.5733        .56668        .78091E-02   -.75506    
   3  Normalizat    .65408        .24823        .35043E-03   -1.0573    
   4  Prefactor     1.1598        .19663        .21215E-03   -.87578    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.14517e-12
Minuit parameter uncertainties:
  1  5.77933
  2  0.568993
  3  0.248653
  4  0.196758
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/907562': 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) = 5256.59333882
delta logL = 0.933746854681

Extracting fit parameters...

4FGL J1028.4-0234
   Spectrum: PowerLaw
235    Prefactor:  5.674e+00  5.779e+00  1.000e-04  1.000e+04 ( 1.000e-12)
236        Index:  1.573e+00  5.690e-01  0.000e+00  1.000e+01 (-1.000e+00)
237        Scale:  6.037e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
525    Prefactor:  1.160e+00  1.968e-01  0.000e+00  1.000e+01 ( 1.000e+00)
526        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
527        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
524   Normalization:  6.541e-01  2.487e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.44
Ra Dec: 157.121 -2.583
Photon Index (Free Index): 1.57 +/- 0.57
Photon Flux (Free Index): 1.64e-08 +/- 1.78e-08
Energy Flux (Free Index): 4.06e-05 +/- 5.91e-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/907562/cmap_HighResolution_419990401_420249601_4FGL_J1028.4-0234_daily_bin697.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.17e-02', comment='SUCCESS', photon_flux='4.88e-08', energy_flux2='4.06e-05', photon_flux_error='4.21e-08', dlogl='9.34e-01', energy_flux='1.26e-05', photon_flux2='1.64e-08', job_status='DONE', time_completed='2021-09-01 23:40:04.675606', photon_index_error2='0.57', photon_index2='1.57', ts='2.56', fit_tolerance='1e-08', GAL='1.18', photon_index_error='0.00', photon_flux_upper_limit='1.50e-07', energy_flux_error2='5.91e-05', EG='0.61', time_epoch_completed='1630564804.68', return_code='0', job_id='907562', GAL2='1.16', EG2='0.65', return_code2='0', energy_flux_error='1.09e-05', photon_flux_error2='1.78e-08', ts2='4.44', photon_index='2.61' WHERE bin_id='697' AND source_name='4FGL J1028.4-0234' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 23:40:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0189>
Subject: Job 907562: <4FGL_J1028.4-0234_daily_bin697> in cluster <slac> Done

Job <4FGL_J1028.4-0234_daily_bin697> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Wed Sep  1 23:25:41 2021
Job was executed on host(s) <bullet0189>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 23:29:33 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep  1 23:29:33 2021
Terminated at Wed Sep  1 23:40:05 2021
Results reported at Wed Sep  1 23:40:05 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1028.4-0234_daily_bin697 157.121 -2.5829 419990401 420249601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1028.4-0234 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   428.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             223.55 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   631 sec.
    Turnaround time :                            864 sec.

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

