/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 108 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 = 7472
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1028.4-0234_daily_bin241
RA = 157.121, Dec = -2.5829
tmin = 301795201, tmax = 302054401
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='905866', job_status='RUN', time_executed='2021-09-01 23:24:26.195175', time_epoch_executed='1630563866.2' WHERE source_name='4FGL J1028.4-0234' and cadence='daily' and bin_id='241'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/905866

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/905866/ft1_4FGL_J1028.4-0234_daily_bin241.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/905866/ft2_4FGL_J1028.4-0234_daily_bin241.fits


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

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

Done.
real 4.04
user 3.81
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/905866/ft2_4FGL_J1028.4-0234_daily_bin241.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/905866/ft1_filteredMKT_4FGL_J1028.4-0234_daily_bin241.fits evtable="EVENTS" outfile="/scratch/kocevski/905866/ft1_filtered_4FGL_J1028.4-0234_daily_bin241.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.35
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/905866/ft1_filtered_4FGL_J1028.4-0234_daily_bin241.fits" evtable="EVENTS" scfile=/scratch/kocevski/905866/ft2_4FGL_J1028.4-0234_daily_bin241.fits sctable="SC_DATA" outfile=/scratch/kocevski/905866/ltcube_301795201_302054401_4FGL_J1028.4-0234_daily_bin241.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/905866/ft2_4FGL_J1028.4-0234_daily_bin241.fits
.....................!
real 13.97
user 13.52
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/905866/ft1_filtered_4FGL_J1028.4-0234_daily_bin241.fits evtable="EVENTS" scfile=/scratch/kocevski/905866/ft2_4FGL_J1028.4-0234_daily_bin241.fits sctable="SC_DATA" expcube=/scratch/kocevski/905866/ltcube_301795201_302054401_4FGL_J1028.4-0234_daily_bin241.fits outfile=/scratch/kocevski/905866/expmap_301795201_302054401_4FGL_J1028.4-0234_daily_bin241.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/905866/ltcube_301795201_302054401_4FGL_J1028.4-0234_daily_bin241.fits
.....................!
real 192.20
user 186.88
sys 4.78

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/905866/ft1_filtered_4FGL_J1028.4-0234_daily_bin241.fits scfile=/scratch/kocevski/905866/ft2_4FGL_J1028.4-0234_daily_bin241.fits outfile=/scratch/kocevski/905866/cmap_301795201_302054401_4FGL_J1028.4-0234_daily_bin241.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.56
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/905866/ft1_filtered_4FGL_J1028.4-0234_daily_bin241.fits scfile=/scratch/kocevski/905866/ft2_4FGL_J1028.4-0234_daily_bin241.fits outfile=/scratch/kocevski/905866/cmap_HighResolution_301795201_302054401_4FGL_J1028.4-0234_daily_bin241.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.57
user 0.38
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/905866/ft1_filtered_4FGL_J1028.4-0234_daily_bin241.fits evtable="EVENTS" scfile=/scratch/kocevski/905866/ft2_4FGL_J1028.4-0234_daily_bin241.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/905866/Model_4FGL_J1028.4-0234_daily_bin241.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/905866/ft1_filtered_4FGL_J1028.4-0234_daily_bin241.fits.....................!
real 61.27
user 59.87
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.3977       1.0000         .10000E-03   10000.    
     2 'norm      '    1.6055       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10162E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .15926E-02   1.0000         .10000E-03   10000.    
     5 'Prefactor '    7.5594       1.0000         .10000E-03   10000.    
     6 'norm      '    13.803       1.0000         .10000E-03   10000.    
     7 'Prefactor '    18.835       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10056E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .19724       1.0000         .10000E-03   10000.    
    12 'Prefactor '    12.343       1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.0139       1.0000         .10000E-03   10000.    
    14 'Prefactor '    9.8975       1.0000         .10000E-03   10000.    
    15 'norm      '    .10073E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    6.4208       1.0000         .10000E-03   10000.    
    17 'Prefactor '    3.6560       1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.3322       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .69934       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=   5942.007     FROM MIGRAD    STATUS=CONVERGED    409 CALLS     1672 TOTAL
                     EDM=   .13E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.3974        .95136       -.13134E-07   -.23571E-04
   2  norm          1.6055        1.4046       -.22941E-07   -.80222E-04
   3  Prefactor     .10000E-03    5.8795       -.59990E-07** at limit **
   4  Prefactor     .10000E-03    112.60       -.48541E-05** at limit **
   5  Prefactor     7.4528        55.774        .19691E-05    .63538E-05
   6  norm          13.804        16.296        .39037E-07   -.87425E-05
   7  Prefactor     18.844        12.170       -.31617E-06   -.63878E-04
   8  Prefactor     .10000E-03    35.028       -.85376E-08** at limit **
   9  Prefactor     .10000E-03    44.924       -.51207E-06** at limit **
  10  Prefactor     .10000E-03    8.2180       -.13751E-06** at limit **
  11  norm          .19599        1.2642        .33834E-06   -.27518E-03
  12  Prefactor     12.342        8.3230       -.22958E-06   -.79944E-04
  13  Prefactor     1.0181        2.7895        .11704E-05    .30366E-03
  14  Prefactor     9.8962        8.2041       -.48581E-06   -.16016E-03
  15  norm          .10000E-03    .20088        .18550E-06** at limit **
  16  norm          6.4217        5.8963       -.10940E-06   -.28514E-04
  17  Prefactor     3.6604        6.2318       -.38088E-08   -.14833E-03
  18  Normalizat    1.3319        .23893        .34714E-05   -.18631E-03
  19  Prefactor     .69944        .16677       -.35664E-05   -.50304E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.39741
  norm       = 1.60552
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 7.4528
  norm       = 13.8045
  Prefactor  = 18.8436
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.195988
  Prefactor  = 12.342
  Prefactor  = 1.01809
  Prefactor  = 9.89622
  norm       = 0.0001
  norm       = 6.42172
  Prefactor  = 3.66038
  Normalizat = 1.33187
  Prefactor  = 0.699438
 **********
 **   18 **HESSE 
 **********

 FCN=   5942.007     FROM HESSE     STATUS=OK           276 CALLS     1948 TOTAL
                     EDM=   .28E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.3974        .95121        .38100E-04   -1.5339    
   2  norm          1.6055        1.4046        .83211E-04   -1.5455    
   3  Prefactor     .10000E-03    5.8852        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    115.12        .20423E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     7.4528        57.121        .14586E-03   -1.5162    
   6  norm          13.804        16.286        .10781E-03   -1.4965    
   7  Prefactor     18.844        12.153        .92286E-04   -1.4840    
   8  Prefactor     .10000E-03    35.048        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    44.975        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    8.2281        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .19599        2.4191        .15687E-02   -1.5619    
  12  Prefactor     12.342        8.2500        .11402E-03   -1.5005    
  13  Prefactor     1.0181        2.8296        .20906E-03   -1.5506    
  14  Prefactor     9.8962        8.2148        .12737E-03   -1.5079    
  15  norm          .10000E-03    .23341        .65122E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          6.4217        5.8978        .15839E-03   -1.5201    
  17  Prefactor     3.6604        6.0552        .21126E-03   -1.5325    
  18  Normalizat    1.3319        .24788        .25170E-03   -.82620    
  19  Prefactor     .69944        .17330        .24636E-03   -1.0355    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.79179e-08
Minuit parameter uncertainties:
  1  0.95121
  2  1.40465
  3  4.03182e-06
  4  0.000583227
  5  41.3202
  6  16.291
  7  12.1546
  8  4.99164e-07
  9  0.00010419
  10  7.29428e-06
  11  1.37685
  12  8.25074
  13  2.82997
  14  8.21577
  15  1.99771e-07
  16  5.8983
  17  6.05622
  18  0.248105
  19  0.173429
Done.

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

Extracting fit parameters...

4FGL J1028.4-0234
   Spectrum: PowerLaw
235    Prefactor:  1.234e+01  8.251e+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:  6.994e-01  1.734e-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:  1.332e+00  2.481e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.78
Ra Dec: 157.121 -2.583
Photon Index (Fixed Index): 2.61 +/- 0.00
Photon Flux (Fixed Index): 8.41e-08 +/- 5.61e-08
Energy Flux (Fixed Index): 2.18e-05 +/- 1.46e-05

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

Saving results to:
/scratch/kocevski/905866/likelihoodResults_301795201_302054401_4FGL_J1028.4-0234_daily_bin241.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) = 5941.88963352
delta logL = 0.117696888815

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5941.88256249
delta logL = 0.124767912663

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.043       1.0000         .10000E-03   10000.    
     2 'Index     '    2.9657       1.0000          .0000       10.000    
     3 'Normalizat'    1.3023       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .71516       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5941.883     FROM MIGRAD    STATUS=CONVERGED    100 CALLS      305 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.047        9.5623        .63221E-03    .15726E-03
   2  Index         2.9660        .81033        .64059E-02    .32694E-03
   3  Normalizat    1.3026        .24515        .25403E-03   -.67130E-06
   4  Prefactor     .71477        .17579        .24398E-03   -.83876E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.0465
  Index      = 2.96598
  Normalizat = 1.30261
  Prefactor  = 0.714767
 **********
 **   18 **HESSE 
 **********

 FCN=   5941.883     FROM HESSE     STATUS=OK            27 CALLS      332 TOTAL
                     EDM=   .45E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.047        8.8541        .12644E-03   -1.5074    
   2  Index         2.9660        .74993        .12812E-02   -.41895    
   3  Normalizat    1.3026        .24493        .10161E-04   -.83489    
   4  Prefactor     .71477        .17557        .97590E-05   -1.0295    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.54401e-12
Minuit parameter uncertainties:
  1  8.85527
  2  0.753344
  3  0.245149
  4  0.175708
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/905866': 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) = 5941.88255846
delta logL = 0.124771943661

Extracting fit parameters...

4FGL J1028.4-0234
   Spectrum: PowerLaw
235    Prefactor:  1.005e+01  8.855e+00  1.000e-04  1.000e+04 ( 1.000e-12)
236        Index:  2.966e+00  7.533e-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:  7.148e-01  1.757e-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:  1.303e+00  2.451e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.04
Ra Dec: 157.121 -2.583
Photon Index (Free Index): 2.97 +/- 0.75
Photon Flux (Free Index): 1.06e-07 +/- 7.49e-08
Energy Flux (Free Index): 2.15e-05 +/- 1.33e-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/905866/cmap_HighResolution_301795201_302054401_4FGL_J1028.4-0234_daily_bin241.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.54e-02', comment='SUCCESS', photon_flux='8.41e-08', energy_flux2='2.15e-05', photon_flux_error='5.61e-08', dlogl='1.25e-01', energy_flux='2.18e-05', photon_flux2='1.06e-07', job_status='DONE', time_completed='2021-09-01 23:33:41.079569', photon_index_error2='0.75', photon_index2='2.97', ts='3.78', fit_tolerance='1e-08', GAL='0.70', photon_index_error='0.00', photon_flux_upper_limit='1.96e-07', energy_flux_error2='1.33e-05', EG='1.33', time_epoch_completed='1630564421.08', return_code='0', job_id='905866', GAL2='0.71', EG2='1.30', return_code2='0', energy_flux_error='1.46e-05', photon_flux_error2='7.49e-08', ts2='4.04', photon_index='2.61' WHERE bin_id='241' AND source_name='4FGL J1028.4-0234' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 23:33:41 PDT 2021


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

Job <4FGL_J1028.4-0234_daily_bin241> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Wed Sep  1 23:20:31 2021
Job was executed on host(s) <bullet0078>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 23:22:29 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:22:29 2021
Terminated at Wed Sep  1 23:33:44 2021
Results reported at Wed Sep  1 23:33:44 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1028.4-0234_daily_bin241 157.121 -2.5829 301795201 302054401 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 :                                   553.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             315.43 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   672 sec.
    Turnaround time :                            793 sec.

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

