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


Performing analysis on: 4FGL_J1028.4-0234_daily_bin815
RA = 157.121, Dec = -2.5829
tmin = 450576001, tmax = 450835201
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='908638', job_status='RUN', time_executed='2021-09-01 23:33:50.299774', time_epoch_executed='1630564430.3' WHERE source_name='4FGL J1028.4-0234' and cadence='daily' and bin_id='815'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/908638

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/908638/ft1_4FGL_J1028.4-0234_daily_bin815.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/908638/ft2_4FGL_J1028.4-0234_daily_bin815.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/908638/ft1_4FGL_J1028.4-0234_daily_bin815.fits outfile=/scratch/kocevski/908638/ft1_filteredMKT_4FGL_J1028.4-0234_daily_bin815.fits ra=157.121 dec=-2.5829 rad=12.0 tmin=450576001.0 tmax=450835201.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 3.52
user 3.29
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/908638/ft1_filtered_4FGL_J1028.4-0234_daily_bin815.fits" evtable="EVENTS" scfile=/scratch/kocevski/908638/ft2_4FGL_J1028.4-0234_daily_bin815.fits sctable="SC_DATA" outfile=/scratch/kocevski/908638/ltcube_450576001_450835201_4FGL_J1028.4-0234_daily_bin815.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/908638/ft2_4FGL_J1028.4-0234_daily_bin815.fits
.....................!
real 16.34
user 15.95
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/908638/ft1_filtered_4FGL_J1028.4-0234_daily_bin815.fits evtable="EVENTS" scfile=/scratch/kocevski/908638/ft2_4FGL_J1028.4-0234_daily_bin815.fits sctable="SC_DATA" expcube=/scratch/kocevski/908638/ltcube_450576001_450835201_4FGL_J1028.4-0234_daily_bin815.fits outfile=/scratch/kocevski/908638/expmap_450576001_450835201_4FGL_J1028.4-0234_daily_bin815.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/908638/ltcube_450576001_450835201_4FGL_J1028.4-0234_daily_bin815.fits
.....................!
real 196.23
user 190.81
sys 4.90

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/908638/ft1_filtered_4FGL_J1028.4-0234_daily_bin815.fits scfile=/scratch/kocevski/908638/ft2_4FGL_J1028.4-0234_daily_bin815.fits outfile=/scratch/kocevski/908638/cmap_450576001_450835201_4FGL_J1028.4-0234_daily_bin815.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.54
user 0.35
sys 0.18

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/908638/ft1_filtered_4FGL_J1028.4-0234_daily_bin815.fits scfile=/scratch/kocevski/908638/ft2_4FGL_J1028.4-0234_daily_bin815.fits outfile=/scratch/kocevski/908638/cmap_HighResolution_450576001_450835201_4FGL_J1028.4-0234_daily_bin815.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.56
user 0.40
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/908638/ft1_filtered_4FGL_J1028.4-0234_daily_bin815.fits evtable="EVENTS" scfile=/scratch/kocevski/908638/ft2_4FGL_J1028.4-0234_daily_bin815.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/908638/Model_4FGL_J1028.4-0234_daily_bin815.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/908638/ft1_filtered_4FGL_J1028.4-0234_daily_bin815.fits.....................!
real 61.60
user 60.22
sys 1.15

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/908638/ft1_filtered_4FGL_J1028.4-0234_daily_bin815.fits', '/scratch/kocevski/908638/ft2_4FGL_J1028.4-0234_daily_bin815.fits', expMap='/scratch/kocevski/908638/expmap_450576001_450835201_4FGL_J1028.4-0234_daily_bin815.fits', expCube='/scratch/kocevski/908638/ltcube_450576001_450835201_4FGL_J1028.4-0234_daily_bin815.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/908638/Model_4FGL_J1028.4-0234_daily_bin815.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/908638/ft1_filtered_4FGL_J1028.4-0234_daily_bin815.fits
Spacecraft file(s): /scratch/kocevski/908638/ft2_4FGL_J1028.4-0234_daily_bin815.fits
Exposure map: /scratch/kocevski/908638/expmap_450576001_450835201_4FGL_J1028.4-0234_daily_bin815.fits
Exposure cube: /scratch/kocevski/908638/ltcube_450576001_450835201_4FGL_J1028.4-0234_daily_bin815.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/908638/Model_4FGL_J1028.4-0234_daily_bin815.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) = 6502.63038055

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.2654       1.0000         .10000E-03   10000.    
     2 'norm      '    .45746       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    14.820       1.0000         .10000E-03   10000.    
     5 'Prefactor '    44.439       1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    1.0275       1.0000         .10000E-03   10000.    
    12 'Prefactor '    6.7180       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10270E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    20.468       1.0000         .10000E-03   10000.    
    15 'norm      '    2.1258       1.0000         .10000E-03   10000.    
    16 'norm      '    16.407       1.0000         .10000E-03   10000.    
    17 'Prefactor '    2.1140       1.0000         .10000E-03   10000.    
    18 'Normalizat'    .52352       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.2436       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=   6502.600     FROM MIGRAD    STATUS=CONVERGED    382 CALLS     1947 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.2654        .63427        .13850E-07   -.20304E-03
   2  norm          .45715        1.1545       -.51410E-06   -.20964E-02
   3  Prefactor     .10000E-03    5.1425       -.11020E-05** at limit **
   4  Prefactor     14.806        34.346       -.28530E-04   -.11806E-04
   5  Prefactor     44.444        37.354        .62263E-05    .30733E-04
   6  norm          .10000E-03    5.8092        .30371E-05** at limit **
   7  Prefactor     .10000E-03    3.0994        .20524E-07** at limit **
   8  Prefactor     .10000E-03    15.523       -.24155E-06** at limit **
   9  Prefactor     .10000E-03    12.003        .38373E-06** at limit **
  10  Prefactor     .10000E-03    3.7272        .10288E-06** at limit **
  11  norm          1.0283        1.3619        .10329E-06   -.38633E-03
  12  Prefactor     6.7170        5.8659        .60555E-07   -.13337E-03
  13  Prefactor     .10001E-03    1.4897       -.70110E-06** at limit **
  14  Prefactor     20.469        11.366        .57488E-06    .27732E-03
  15  norm          2.1258        .85491        .71927E-07    .18365E-04
  16  norm          16.407        8.4603       -.89522E-07   -.16146E-05
  17  Prefactor     2.1141        17.267       -.29017E-05   -.28198E-03
  18  Normalizat    .52350        .19807        .18097E-05    .10554E-03
  19  Prefactor     1.2436        .14974        .85017E-07    .20206E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.26536
  norm       = 0.457153
  Prefactor  = 0.0001
  Prefactor  = 14.8062
  Prefactor  = 44.4439
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.0283
  Prefactor  = 6.71699
  Prefactor  = 0.000100006
  Prefactor  = 20.4687
  norm       = 2.12578
  norm       = 16.4071
  Prefactor  = 2.11405
  Normalizat = 0.523496
  Prefactor  = 1.24357
 **********
 **   18 **HESSE 
 **********

 FCN=   6502.600     FROM HESSE     STATUS=OK           276 CALLS     2223 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.2654        .62490        .43450E-04   -1.5483    
   2  norm          .45715        1.0137        .13545E-02   -1.5573    
   3  Prefactor     .10000E-03    5.1652        .17857E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     14.806        33.851        .10404E-03   -1.4938    
   5  Prefactor     44.444        37.253        .60141E-04   -1.4374    
   6  norm          .10000E-03    5.8127        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    3.1155        .13863E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    15.529        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    12.007        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    3.7286        .15204E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          1.0283        1.2471        .10134E-02   -1.5505    
  12  Prefactor     6.7170        5.8342        .15481E-03   -1.5190    
  13  Prefactor     .10001E-03    6.3915        .18619E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     20.469        11.139        .88531E-04   -1.4803    
  15  norm          2.1258        .86179        .36856E-04   -1.5416    
  16  norm          16.407        8.4578        .98879E-04   -1.4898    
  17  Prefactor     2.1141        17.697        .28371E-03   -1.5417    
  18  Normalizat    .52350        .21287        .36342E-03   -1.1134    
  19  Prefactor     1.2436        .16407        .19373E-03   -.85001    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.45072e-09
Minuit parameter uncertainties:
  1  0.624902
  2  1.01376
  3  3.46653e-06
  4  33.8953
  5  37.2726
  6  3.40327e-06
  7  1.6139e-06
  8  3.59145e-06
  9  1.72947e-06
  10  4.74773e-07
  11  1.24712
  12  5.83473
  13  0.000391339
  14  11.1406
  15  0.861797
  16  8.45846
  17  12.2378
  18  0.213199
  19  0.164142
Done.

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

Extracting fit parameters...

4FGL J1028.4-0234
   Spectrum: PowerLaw
235    Prefactor:  6.717e+00  5.835e+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.244e+00  1.641e-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:  5.235e-01  2.132e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.33
Ra Dec: 157.121 -2.583
Photon Index (Fixed Index): 2.61 +/- 0.00
Photon Flux (Fixed Index): 4.58e-08 +/- 3.97e-08
Energy Flux (Fixed Index): 1.18e-05 +/- 1.03e-05

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

Saving results to:
/scratch/kocevski/908638/likelihoodResults_450576001_450835201_4FGL_J1028.4-0234_daily_bin815.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) = 6502.35775614
delta logL = 0.24264384814

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6502.3566485
delta logL = 0.243751482785

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.7539       1.0000         .10000E-03   10000.    
     2 'Index     '    2.0525       1.0000          .0000       10.000    
     3 'Normalizat'    .54505       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2349       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=   6502.357     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      210 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.8107        10.485        .38599E-02    .82859E-04
   2  Index         2.0600        .87860        .25495       -.29516E-04
   3  Normalizat    .54472        .18917        .80546E-01    .33858E-04
   4  Prefactor     1.2349        .14987        .33855E-01   -.13812E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.81068
  Index      = 2.05999
  Normalizat = 0.544724
  Prefactor  = 1.23489
 **********
 **   18 **HESSE 
 **********

 FCN=   6502.357     FROM HESSE     STATUS=OK            33 CALLS      243 TOTAL
                     EDM=   .64E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.8107        7.1788        .15439E-03   -1.5186    
   2  Index         2.0600        .79253        .10376E-01   -.62859    
   3  Normalizat    .54472        .20677        .35673E-03   -1.1039    
   4  Prefactor     1.2349        .16386        .19432E-03   -.85264    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.42688e-10
Minuit parameter uncertainties:
  1  7.17968
  2  0.797687
  3  0.207064
  4  0.163929
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/908638': 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) = 6502.35659983
delta logL = 0.243800151836

Extracting fit parameters...

4FGL J1028.4-0234
   Spectrum: PowerLaw
235    Prefactor:  6.811e+00  7.180e+00  1.000e-04  1.000e+04 ( 1.000e-12)
236        Index:  2.060e+00  7.977e-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.235e+00  1.639e-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:  5.447e-01  2.071e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.80
Ra Dec: 157.121 -2.583
Photon Index (Free Index): 2.06 +/- 0.80
Photon Flux (Free Index): 2.61e-08 +/- 3.89e-08
Energy Flux (Free Index): 1.56e-05 +/- 1.80e-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/908638/cmap_HighResolution_450576001_450835201_4FGL_J1028.4-0234_daily_bin815.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.05e-02', comment='SUCCESS', photon_flux='4.58e-08', energy_flux2='1.56e-05', photon_flux_error='3.97e-08', dlogl='2.44e-01', energy_flux='1.18e-05', photon_flux2='2.61e-08', job_status='DONE', time_completed='2021-09-01 23:43:37.944504', photon_index_error2='0.80', photon_index2='2.06', ts='2.33', fit_tolerance='1e-08', GAL='1.24', photon_index_error='0.00', photon_flux_upper_limit='1.34e-07', energy_flux_error2='1.80e-05', EG='0.52', time_epoch_completed='1630565017.94', return_code='0', job_id='908638', GAL2='1.23', EG2='0.54', return_code2='0', energy_flux_error='1.03e-05', photon_flux_error2='3.89e-08', ts2='2.80', photon_index='2.61' WHERE bin_id='815' AND source_name='4FGL J1028.4-0234' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 23:43:37 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0078>
Subject: Job 908638: <4FGL_J1028.4-0234_daily_bin815> in cluster <slac> Done

Job <4FGL_J1028.4-0234_daily_bin815> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep  1 23:30:29 2021
Job was executed on host(s) <bullet0078>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 23:31:13 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:31:13 2021
Terminated at Wed Sep  1 23:43:38 2021
Results reported at Wed Sep  1 23:43:38 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1028.4-0234_daily_bin815 157.121 -2.5829 450576001 450835201 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 :                                   586.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             259.46 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   745 sec.
    Turnaround time :                            789 sec.

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

